Subversion Repositories cheapmusic

Rev

Rev 138 | Rev 147 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 138 Rev 141
Line 73... Line 73...
73
exit;
73
exit;
74
 
74
 
75
function myExit($msg, $value, $isError = false) {
75
function myExit($msg, $value, $isError = false) {
76
    $xh = new HTML;
76
    $xh = new HTML;
77
    $xh->init($_SESSION["htmlIndent"]);
77
    $xh->init($_SESSION["htmlIndent"]);
78
    $xh->add_attribute("class", ($isError ? 'text-danger' : 'text-success'));
78
    $xh->add_attribute("class", ($isError ? "alert alert-danger" : "text-success"));
79
    $xh->tag('span', $msg);
79
    $xh->tag('span', $msg);
80
 
80
 
81
    $html = $xh->flush();
81
    $html = $xh->flush();
82
//    error_log(print_r($html, 1));
82
//    error_log(print_r($html, 1));
83
    echo $html;
83
    echo $html;