Changeset 21481 for branches/version-2_12-dev/html/user_data
- Timestamp:
- 2012/02/11 05:48:00 (14 years ago)
- Location:
- branches/version-2_12-dev/html/user_data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/html/user_data/packages/admin/js/ownersstore.js.php
r21441 r21481 41 41 remove: function() { 42 42 $("#TB_window").fadeOut( 43 "fast",43 'fast', 44 44 function(){ 45 $('#TB_window,#TB_overlay,#TB_HideSelect').trigger( "unload").unbind().remove();45 $('#TB_window,#TB_overlay,#TB_HideSelect').trigger('unload').unbind().remove(); 46 46 } 47 47 ); 48 48 $("#TB_load").remove(); 49 49 //if IE 6 50 if (typeof document.body.style.maxHeight == "undefined") {51 $( "body", "html").css({height: "auto", width: "auto"});52 $( "html").css("overflow", "");50 if (typeof document.body.style.maxHeight == 'undefined') { 51 $('body', 'html').css({height: 'auto', width: 'auto'}); 52 $('html').css('overflow', ""); 53 53 } 54 54 return false; … … 57 57 show_loading: function() { 58 58 //if IE 6 59 if (typeof document.body.style.maxHeight === "undefined") {60 $( "body","html").css({height: "100%", width: "100%"});61 $( "html").css("overflow","hidden");59 if (typeof document.body.style.maxHeight === 'undefined') { 60 $('body','html').css({height: "100%", width: "100%"}); 61 $('html').css('overflow','hidden'); 62 62 //iframe to hide select elements in ie6 63 if (document.getElementById( "TB_HideSelect") === null) {64 $( "body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");63 if (document.getElementById('TB_HideSelect') === null) { 64 $('body').append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"); 65 65 $("#TB_overlay").click(this.remove); 66 66 } 67 67 //all others 68 68 } else { 69 if (document.getElementById( "TB_overlay") === null) {70 $( "body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");69 if (document.getElementById('TB_overlay') === null) { 70 $('body').append("<div id='TB_overlay'></div><div id='TB_window'></div>"); 71 71 $("#TB_overlay").click(this.remove); 72 72 } … … 75 75 if (this.detectMacFF()) { 76 76 //use png overlay so hide flash 77 $("#TB_overlay").addClass( "TB_overlayMacFFBGHack");77 $("#TB_overlay").addClass('TB_overlayMacFFBGHack'); 78 78 } else { 79 79 //use background and opacity 80 $("#TB_overlay").addClass( "TB_overlayBG");80 $("#TB_overlay").addClass('TB_overlayBG'); 81 81 } 82 82 83 83 //add and show loader to the page 84 $( "body").append(84 $('body').append( 85 85 "<div id='TB_load'>" 86 86 + " <p style='color:#ffffff'>" + loading_message + "</p>" … … 101 101 var ajaxContentH = TB_HEIGHT - 45; 102 102 103 if ($("#TB_window").css( "display") != "block") {103 if ($("#TB_window").css('display') != 'block') { 104 104 $("#TB_window").append( 105 105 "<div id='TB_title'>" … … 112 112 //this means the window is already up, we are just loading new content via ajax 113 113 } else { 114 $("#TB_ajaxContent")[0].style.width = ajaxContentW + "px";115 $("#TB_ajaxContent")[0].style.height = ajaxContentH + "px";114 $("#TB_ajaxContent")[0].style.width = ajaxContentW +'px'; 115 $("#TB_ajaxContent")[0].style.height = ajaxContentH +'px'; 116 116 $("#TB_ajaxContent")[0].scrollTop = 0; 117 117 } … … 127 127 $("#TB_ajaxWindowTitle").html(title); 128 128 $("#TB_ajaxContent").html(contents); 129 $("#TB_window").css({display: "block"});129 $("#TB_window").css({display:'block'}); 130 130 131 131 // DL成功時に設定ボタンを表示 -
branches/version-2_12-dev/html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php
r21420 r21481 52 52 $this->tpl_subtitle = "プラグイン「{$this->arrPluginInfo['name']}」の設定"; 53 53 54 if (empty($_POST[ "mode"])) {55 $_POST[ "mode"] = "";54 if (empty($_POST['mode'])) { 55 $_POST['mode'] = ""; 56 56 } 57 57 58 if (empty($_GET[ "mode"])) {59 $_GET[ "mode"] = "";58 if (empty($_GET['mode'])) { 59 $_GET['mode'] = ""; 60 60 } 61 61 } … … 64 64 * Page のプロセス. 65 65 * 66 * POST パラメーター "mode"が register の場合は登録処理を行う.67 * 登録処理の後, 自ページをリロードし, GET パラメーター "mode"を付与する.68 * 登録に成功し, GET パラメーター "mode"の値が success の場合は66 * POST パラメーター 'mode' が register の場合は登録処理を行う. 67 * 登録処理の後, 自ページをリロードし, GET パラメーター 'mode' を付与する. 68 * 登録に成功し, GET パラメーター 'mode' の値が success の場合は 69 69 * 「登録に成功しました」というメッセージをポップアップで表示する. 70 * 登録に失敗し, GET パラメーター "mode"の値が failure の場合は70 * 登録に失敗し, GET パラメーター 'mode' の値が failure の場合は 71 71 * 「登録に失敗しました」というメッセージをポップアップで表示する. 72 72 * … … 79 79 SC_Utils_Ex::sfIsSuccess(new SC_Session()); 80 80 81 switch ($_POST[ "mode"]) {82 case "register":81 switch ($_POST['mode']) { 82 case 'register': 83 83 if ($this->register($_POST['ga_ua'])) { 84 SC_Response_Ex::reload(array( "mode" => "success"), true);84 SC_Response_Ex::reload(array('mode' => 'success'), true); 85 85 exit; 86 86 } else { 87 SC_Response_Ex::reload(array( "mode" => "failure"), true);87 SC_Response_Ex::reload(array('mode' => 'failure'), true); 88 88 exit; 89 89 } … … 93 93 } 94 94 95 switch ($_GET[ "mode"]) {96 case "success":95 switch ($_GET['mode']) { 96 case 'success': 97 97 $this->tpl_onload .= "window.alert('登録に成功しました。');"; 98 98 break; 99 99 100 case "failure":100 case 'failure': 101 101 $this->tpl_onload .= "window.alert('登録に失敗しました。');"; 102 102 break; … … 124 124 125 125 $configFile = $this->arrPluginInfo['fullpath'] . "classes/pages/ga_config.php"; 126 $handle = fopen($configFile, "w");126 $handle = fopen($configFile, 'w'); 127 127 if (!$handle) { 128 128 return false;
Note: See TracChangeset
for help on using the changeset viewer.
