diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm index 57545733..ba4cd09e 100644 --- a/src/admin/templets/index_body.htm +++ b/src/admin/templets/index_body.htm @@ -15,7 +15,6 @@ -
diff --git a/src/system/common.func.php b/src/system/common.func.php index d105b033..a5c180a7 100755 --- a/src/system/common.func.php +++ b/src/system/common.func.php @@ -347,8 +347,8 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) return; } if (empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'; - $htmlhead = "系统提示"; + $htmlhead = "系统提示"; + $htmlfoot = ""; $litime = ($limittime == 0 ? 1000 : $limittime); $func = ''; if ($gourl == '-1') { @@ -362,23 +362,23 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) 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 .= ""; } - $func .= "var pgo=0;function JumpUrl(){if (pgo==0) {location='$gourl'; pgo=1;}}"; + $func .= ""; $rmsg = $func; - $rmsg .= "document.write(\"

系统提示

\");"; - $rmsg .= "document.write(\"
\");"; - $rmsg .= "document.write(\"".str_replace("\"", "“", $msg)."\");"; - $rmsg .= "document.write(\""; + $rmsg .= "

系统提示

"; + $rmsg .= "
"; + $rmsg .= "".str_replace("\"", "“", $msg).""; + $rmsg .= ""; if ($onlymsg == 0) { if ($gourl != 'javascript:;' && $gourl != '') { - $rmsg .= "\");"; - $rmsg .= "setTimeout('JumpUrl()', $litime);"; + $rmsg .= ""; + $rmsg .= ""; } else { - $rmsg .= "
\");"; + $rmsg .= "
"; } } else { - $rmsg .= "
\");"; + $rmsg .= "
"; } $msg = $htmlhead.$rmsg.$htmlfoot; }