Changeset 6027 for trunk


Ignore:
Timestamp:
02/08/12 20:01:56 (4 months ago)
Author:
vain
Message:
  • moves the inline css styles to error.css
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/errorhandler.core.php

    r6026 r6027  
    303303 
    304304        # Error Table 
    305         $html .= '<table><tr><td>'; 
     305        $html .= '<table width="80%"><tr><td>'; 
    306306 
    307307        # The inner Error Table 
    308         $html .= '<div id="panel"'; 
    309         $html .= 'style="background: none repeat scroll 0 0 #FDF599; border: 1px solid #E03937; border-radius: 3px; padding: 0 0 15px 15px; margin-bottom: 10px; box-shadow: 0 1px 2px gray;">'; 
    310         $html .= '<h3>Error <span style="font-weight: normal; font-size: 11px;">'.$errorname . ' ('. $errornumber .')</span></h3><h4>'.$errorstring.'</h4>'; 
     308        $html .= '<div id="panel1" class="panel">'; 
     309        $html .= '<h3>Error <span class="small">'.$errorname . ' ('. $errornumber .')</span></h3><h4>'.$errorstring.'</h4>'; 
    311310        $html .= '<strong>File: </strong>'.dirname($errorfile).DS; 
    312311        $html .= '<strong>'.basename($errorfile).'</strong>'; 
     
    315314 
    316315        # Error Context 
    317         $html .= '<tr><td colspan="2"><h3>Context</h3>'; 
    318         $html .= self::getErrorContext($errorfile, $errorline, 8) . '</td></tr>'; 
     316        $html .= '<tr><td colspan="2">'; 
     317        $html .= '<div id="panel2" class="panel">'; 
     318        $html .= '<h3>Context</h3>'; 
     319        $html .= '<span class="smalltext">You are viewing the source code of '. $errorfile.' around line '. $errorline .'.</span>'; 
     320        $html .= self::getErrorContext($errorfile, $errorline, 8) . '</div></td></tr>'; 
    319321 
    320322        # Add Debug Backtracing 
  • trunk/core/exception.core.php

    r6026 r6027  
    300300 
    301301        # Exception Table 
    302         $html   .= '<table><tr><td>'; 
     302        $html   .= '<table width="80%"><tr><td>'; 
    303303 
    304304        /** 
     
    308308         */ 
    309309 
    310         $html .= '<div id="panel"'; 
    311         $html .= 'style="background: none repeat scroll 0 0 #FDF599; border: 1px solid #E03937; border-radius: 3px; padding: 0 0 15px 15px; margin-bottom: 10px; box-shadow: 0 1px 2px gray;">'; 
     310        $html .= '<div id="panel1" class="panel">'; 
    312311        $html .= '<h3>Exception '.$code.'</h3><h4>'.$this->message.'</h4>'; 
    313312        $html .= '<strong>File: </strong>'.dirname($this->file).DS; 
  • trunk/themes/core/css/error.css

    r6007 r6027  
    2020    color: #222222; 
    2121    font-size:12px; 
     22} 
     23 
     24.panel { 
     25    background: none repeat scroll 0 0 #FDF599; 
     26    border: 1px solid #E03937; 
     27    border-radius: 3px 3px 3px 3px; 
     28    box-shadow: 0 1px 2px gray; 
     29    margin-bottom: 10px; 
     30    padding: 0 0 15px 15px; 
     31} 
     32 
     33.panel h3 { 
     34    border-bottom: 1px dotted #E03937; 
     35    padding-bottom: 0.6em; 
     36    width: 20%; 
     37} 
     38 
     39.panel smalltext { 
     40    font-weight: normal; 
     41    font-size: 10px; 
    2242} 
    2343 
Note: See TracChangeset for help on using the changeset viewer.