示例#1
0
function foldingMenu($id, $s, $msg)
{
    //On Error Resume Next
    $nRnd = '';
    $c = '';
    if ($id == '') {
        $nRnd = cLng(rnd() * 29252888);
    } else {
        $nRnd = $id;
    }
    $c = '<div style="width:100%; font-size:12px;;line-height:150%;margin-bottom:4px;">';
    $c = $c . '  <label onClick="ERRORDIV' . $nRnd . '.style.display=(ERRORDIV' . $nRnd . '.style.display==\'none\'?\'\':\'none\')">';
    $c = $c . '  <span style="background-color:#666;color:#FFFFFF;height:23px;font-size:14px;cursor:pointer">〖 ' . $s . ' 〗</span><br />';
    $c = $c . '  </label>';
    $c = $c . '  <div id="ERRORDIV' . $nRnd . '" style="width:100%;border:1px solid #820222;padding:5px;overflow:hidden;display:none;">';
    $c = $c . $msg;
    $c = $c . '  </div>';
    $c = $c . '</div>';
    $foldingMenu = $c;
    return @$foldingMenu;
}
示例#2
0
function doError($s, $msg)
{
    //On Error Resume Next
    $nRnd = '';
    $c = '';
    $nRnd = cLng(rnd() * 29252888);
    $c = '<br />';
    $c = $c . '<div style="width:100%; font-size:12px;;line-height:150%">';
    $c = $c . '  <label onClick="ERRORDIV' . $nRnd . '.style.display=(ERRORDIV' . $nRnd . '.style.display==\'none\'?\'\':\'none\')">';
    $c = $c . '  <span style="background-color:#820222;color:#FFFFFF;height:23px;font-size:14px;cursor:pointer">〖 出错 提示信息 ERROR 〗</span><br />';
    $c = $c . '  </label>';
    $c = $c . '  <div id="ERRORDIV' . $nRnd . '" style="width:100%;border:1px solid #820222;padding:5px;overflow:hidden;">';
    $c = $c . ' <span style="color:#FF0000;">出错描述</span> ' . $s . '<br />';
    $c = $c . ' <span style="color:#FF0000;">回显信息</span> ' . $msg . '<br />';
    $c = $c . '  </div>';
    $c = $c . '</div>';
    $c = $c . '<br />';
    echo $c;
    die;
    //终止,程序停止
}
示例#3
0
function val($s)
{
    if ($s . '' == '' || is_numeric($s)) {
        $val = 0;
    } else {
        $val = cLng($s);
    }
    return @$val;
}