Changeset 1323

Show
Ignore:
Timestamp:
02/14/2009 02:47:39 AM (13 months ago)
Author:
DarTar
Message:

[m] styling of error messages, refs #353

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1.6.6/setup/header.php

    r1322 r1323  
    22 
    33// stuff 
    4 function test($text, $condition, $errorText = "<em class=\"error\">Please use your browser's back button to correct any errors on the previous page.</em>", $stopOnError = 1) { 
    5         print("$text "); 
     4function test($text, $condition, $errorText = '<em class="error">Please use your browser\'s back button to correct any errors on the previous page.</em>', $stopOnError = 1) { 
     5        echo $text; 
    66        if ($condition) 
    77        { 
    8                 print("<span class=\"ok\">OK</span><br />\n"); 
     8                echo ' <span class="ok">OK</span><br />'."\n"; 
    99        } 
    1010        else 
    1111        { 
    12                 print("<span class=\"failed\">FAILED</span>"); 
    13                 if ($errorText) print(": ".$errorText); 
    14                 print("<br />\n"); 
     12                echo ' <span class="failed">FAILED</span>'; 
     13                if ($errorText) echo '<p>'.$errorText.'</p>'."\n"; 
     14                echo '<br />'."\n"; 
    1515                if ($stopOnError) 
    1616                { 
     
    185185} 
    186186 
    187 /* inline system messages */ 
    188187em.error { 
    189188        border: 2px solid #A33;