Ignore:
Timestamp:
2012/02/11 05:48:00 (14 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
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  
    4141    remove: function() { 
    4242        $("#TB_window").fadeOut( 
    43             "fast", 
     43            'fast', 
    4444            function(){ 
    45                 $('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove(); 
     45                $('#TB_window,#TB_overlay,#TB_HideSelect').trigger('unload').unbind().remove(); 
    4646            } 
    4747        ); 
    4848        $("#TB_load").remove(); 
    4949        //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', ""); 
    5353        } 
    5454        return false; 
     
    5757    show_loading: function() { 
    5858        //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'); 
    6262            //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>"); 
    6565                $("#TB_overlay").click(this.remove); 
    6666            } 
    6767        //all others 
    6868        } 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>"); 
    7171                $("#TB_overlay").click(this.remove); 
    7272            } 
     
    7575        if (this.detectMacFF()) { 
    7676            //use png overlay so hide flash 
    77             $("#TB_overlay").addClass("TB_overlayMacFFBGHack"); 
     77            $("#TB_overlay").addClass('TB_overlayMacFFBGHack'); 
    7878        } else { 
    7979            //use background and opacity 
    80             $("#TB_overlay").addClass("TB_overlayBG"); 
     80            $("#TB_overlay").addClass('TB_overlayBG'); 
    8181        } 
    8282 
    8383        //add and show loader to the page 
    84         $("body").append( 
     84        $('body').append( 
    8585              "<div id='TB_load'>" 
    8686            + "  <p style='color:#ffffff'>" + loading_message + "</p>" 
     
    101101        var ajaxContentH = TB_HEIGHT - 45; 
    102102 
    103         if ($("#TB_window").css("display") != "block") { 
     103        if ($("#TB_window").css('display') != 'block') { 
    104104            $("#TB_window").append( 
    105105                "<div id='TB_title'>" 
     
    112112         //this means the window is already up, we are just loading new content via ajax 
    113113        } 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'; 
    116116            $("#TB_ajaxContent")[0].scrollTop = 0; 
    117117        } 
     
    127127        $("#TB_ajaxWindowTitle").html(title); 
    128128        $("#TB_ajaxContent").html(contents); 
    129         $("#TB_window").css({display:"block"}); 
     129        $("#TB_window").css({display:'block'}); 
    130130 
    131131        // DL成功時に設定ボタンを表示 
  • branches/version-2_12-dev/html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php

    r21420 r21481  
    5252        $this->tpl_subtitle = "プラグイン「{$this->arrPluginInfo['name']}」の設定"; 
    5353 
    54         if (empty($_POST["mode"])) { 
    55             $_POST["mode"] = ""; 
     54        if (empty($_POST['mode'])) { 
     55            $_POST['mode'] = ""; 
    5656        } 
    5757 
    58         if (empty($_GET["mode"])) { 
    59             $_GET["mode"] = ""; 
     58        if (empty($_GET['mode'])) { 
     59            $_GET['mode'] = ""; 
    6060        } 
    6161    } 
     
    6464     * Page のプロセス. 
    6565     * 
    66      * POST パラメーター "mode" が register の場合は登録処理を行う. 
    67      * 登録処理の後, 自ページをリロードし, GET パラメーター "mode" を付与する. 
    68      * 登録に成功し, GET パラメーター "mode" の値が success の場合は 
     66     * POST パラメーター 'mode' が register の場合は登録処理を行う. 
     67     * 登録処理の後, 自ページをリロードし, GET パラメーター 'mode' を付与する. 
     68     * 登録に成功し, GET パラメーター 'mode' の値が success の場合は 
    6969     * 「登録に成功しました」というメッセージをポップアップで表示する. 
    70      * 登録に失敗し, GET パラメーター "mode" の値が failure の場合は 
     70     * 登録に失敗し, GET パラメーター 'mode' の値が failure の場合は 
    7171     * 「登録に失敗しました」というメッセージをポップアップで表示する. 
    7272     * 
     
    7979        SC_Utils_Ex::sfIsSuccess(new SC_Session()); 
    8080 
    81         switch ($_POST["mode"]) { 
    82         case "register": 
     81        switch ($_POST['mode']) { 
     82        case 'register': 
    8383            if ($this->register($_POST['ga_ua'])) { 
    84                 SC_Response_Ex::reload(array("mode" => "success"), true); 
     84                SC_Response_Ex::reload(array('mode' => 'success'), true); 
    8585                exit; 
    8686            } else { 
    87                 SC_Response_Ex::reload(array("mode" => "failure"), true); 
     87                SC_Response_Ex::reload(array('mode' => 'failure'), true); 
    8888                exit; 
    8989            } 
     
    9393        } 
    9494 
    95         switch ($_GET["mode"]) { 
    96         case "success": 
     95        switch ($_GET['mode']) { 
     96        case 'success': 
    9797            $this->tpl_onload .= "window.alert('登録に成功しました。');"; 
    9898            break; 
    9999 
    100         case "failure": 
     100        case 'failure': 
    101101            $this->tpl_onload .= "window.alert('登録に失敗しました。');"; 
    102102            break; 
     
    124124 
    125125        $configFile = $this->arrPluginInfo['fullpath'] . "classes/pages/ga_config.php"; 
    126         $handle = fopen($configFile, "w"); 
     126        $handle = fopen($configFile, 'w'); 
    127127        if (!$handle) { 
    128128            return false; 
Note: See TracChangeset for help on using the changeset viewer.