|
打开 \include\common.func.php 找到
function ShowMsg(
{
中间代码省略...
}
整体都改为
function ShowMsg($msg, $gourl] $onlymsg=0] $limittime=0)
{
if(empty($GLOBALS['cfg_plus_dir',)) $GLOBALS['cfg_plus_dir', = '..';
$htmlhead = "\r\n\r\n提示信息\r\n\r\n\r\n\r\n";
$htmlhead .= "\r\ndiv{line-height:160%;}\r\n".(isset($GLOBALS['ucsynlogin',) ? $GLOBALS['ucsynlogin', : '')."\r\n\r\n\r\n\r\n\r\n\r\n";
$litime = ($limittime==0 ? 1000 : $limittime);
$func = '';
if($gourl=='-1')
{
if($limittime==0) $litime = 5000;
$gourl = "javascript:history.go(-1);";
}
if($gourl=='' || $onlymsg==1)
{
$msg = "";
}
else
{
//当网址为:close::objname 时, 关闭父框架的id=objname元素
if(preg_match('/close::/',$gourl))
{
$tgobj = trim(preg_replace('/close::/', '', $gourl));
$gourl = 'javascript:;';
$func .= "window.parent.document.getElementById('{$tgobj}').style.display='none';\r\n";
}
$func .= " var pgo=0;
function JumpUrl(){
if(pgo==0){ location='$gourl'; pgo=1; }
}\r\n";
$rmsg = $func;
$rmsg .= "document.write(\"body{background:#F6F6F6}.tips-box{margin-top:50px;padding:0;width:450px;border:10px solid #E8E8E8;background:#fff;color:#444;font-family:微软雅黑}.tips .title{margin:0 20px;padding:15px 0;border-bottom:1px dotted #DDD;text-align:left;font-size:15px}.tips .title p{padding-left:10px;height:18px;border-left:2px solid #009688;font-weight:600;line-height:18px;margin: 0;}.tips .content{position:relative;padding:30px;height:120px;background:#fff;color:#666;font-size:15px}.tips .content p.tip{color:#999;font-size:1px}.tips .content a.go{display:block;margin:15px auto 0;padding:6px 10px;width:80px;border:1px solid #019688;border-radius:3px;color:#1AA094;text-decoration:blink;font-size:13px}.tips .content a:hover{background:#1AA094;color:#fff}\");\r\n;";
$rmsg .= "document.write(\"";
$rmsg .= "提示信息
\");\r\n";
$rmsg .= "document.write(\"\");\r\n";
$rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");\r\n";
$rmsg .= "document.write(\"";
if($onlymsg==0)
{
if( $gourl != 'javascript:;' && $gourl != '')
{
$rmsg .= "[url={$gourl},点击跳转[/url]";
$rmsg .= "
\");\r\n";
$rmsg .= "setTimeout('JumpUrl()',$litime);";
}
else
{
$rmsg .= "
\");\r\n";
}
}
else
{
$rmsg .= "
\");\r\n";
}
$msg = $htmlhead.$rmsg.$htmlfoot;
}
echo $msg;
} |
|