Changeset 16531


Ignore:
Timestamp:
2007/10/22 10:56:23 (17 years ago)
Author:
nanasess
Message:

GLOBAL_ERR を body 内に div タグで出力するように修正

Location:
branches/feature-module-update/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/Smarty/templates/default/site_main.tpl

    r16272 r16531  
    55 *}--> 
    66<body onload="preLoadImg('<!--{$smarty.const.URL_DIR}-->'); <!--{$tpl_onload}-->"> 
     7<!--{$GLOBAL_ERR}--> 
    78<noscript> 
    89  <p>JavaScript を有効にしてご利用下さい.</p> 
  • branches/feature-module-update/data/class/SC_View.php

    r16446 r16531  
    111111            global $GLOBAL_ERR; 
    112112            if(!defined('OUTPUT_ERR')) { 
    113                 print($GLOBAL_ERR); 
     113                // GLOBAL_ERR を割り当て 
     114                $this->assign("GLOBAL_ERR", $GLOBAL_ERR); 
    114115                define('OUTPUT_ERR','ON'); 
    115116            } 
  • branches/feature-module-update/data/class/util/SC_Utils.php

    r16497 r16531  
    6868            $path = HTML_PATH . "install/index.php"; 
    6969            if(file_exists($path)) { 
    70                 SC_Utils::sfErrorHeader(">> /install/index.phpは、インストール完了後にファイルを削除してください。"); 
     70                SC_Utils::sfErrorHeader("&gt;&gt; /install/index.phpは、インストール完了後にファイルを削除してください。"); 
    7171            } 
    7272 
     
    7474            $path = HTML_PATH . "install.php"; 
    7575            if(file_exists($path)) { 
    76                 SC_Utils::sfErrorHeader(">> /install.phpはセキュリティーホールとなります。削除してください。"); 
     76                SC_Utils::sfErrorHeader("&gt;&gt; /install.phpはセキュリティーホールとなります。削除してください。"); 
    7777            } 
    7878        } 
     
    9292    function sfErrorHeader($mess, $print = false) { 
    9393        global $GLOBAL_ERR; 
    94         if($GLOBAL_ERR == "") { 
    95             $GLOBAL_ERR = "<meta http-equiv='Content-Type' content='text/html; charset=" . CHAR_CODE . "'>\n"; 
    96         } 
    97         $GLOBAL_ERR.= "<table width='100%' border='0' cellspacing='0' cellpadding='0' summary=' '>\n"; 
    98         $GLOBAL_ERR.= "<tr>\n"; 
    99         $GLOBAL_ERR.= "<td bgcolor='#ffeebb' height='25' colspan='2' align='center'>\n"; 
    100         $GLOBAL_ERR.= "<SPAN style='color:red; font-size:12px'><strong>" . $mess . "</strong></span>\n"; 
    101         $GLOBAL_ERR.= "</td>\n"; 
    102         $GLOBAL_ERR.= "    </tr>\n"; 
    103         $GLOBAL_ERR.= "</table>\n"; 
    104  
     94        $GLOBAL_ERR.="<div style='color: #F00; font-weight: bold; " 
     95            . "background-color: #FEB; text-align: center; padding: 5px;'>"; 
     96        $GLOBAL_ERR.= $mess; 
     97        $GLOBAL_ERR.= "</div>"; 
    10598        if($print) { 
    10699            print($GLOBAL_ERR); 
Note: See TracChangeset for help on using the changeset viewer.