| @@ -183,8 +183,8 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | |||||
| { | { | ||||
| global $cfg_soft_lang, $cfg_cmsurl; | global $cfg_soft_lang, $cfg_cmsurl; | ||||
| if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'; | if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..'; | ||||
| $htmlhead = "<html><head><meta charset='utf-8'><title>提示信息</title><meta name='viewport' content='width=device-width,initial-scale=1'>"; | |||||
| $htmlhead .= "<base target='_self'></head><body>".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."<center><script>"; | |||||
| $htmlhead = "<html><head><meta charset='utf-8'><title>提示信息</title><meta name='viewport' content='width=device-width,initial-scale=1'><base target='_self'></head>"; | |||||
| $htmlhead .= "<body>".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."<center><script>"; | |||||
| $htmlfoot = "</script></center></body></html>"; | $htmlfoot = "</script></center></body></html>"; | ||||
| $litime = ($limittime == 0 ? 1000 : $limittime); | $litime = ($limittime == 0 ? 1000 : $limittime); | ||||
| $func = ''; | $func = ''; | ||||
| @@ -203,17 +203,17 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | |||||
| } | } | ||||
| $func .= "var pgo=0;function JumpUrl(){if (pgo==0){location='$gourl'; pgo=1;}}"; | $func .= "var pgo=0;function JumpUrl(){if (pgo==0){location='$gourl'; pgo=1;}}"; | ||||
| $rmsg = $func; | $rmsg = $func; | ||||
| $rmsg .= "document.write(\"<style>body{margin:0;line-height:1.5;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#f2f2f2}a{color:#28a745;text-decoration:none}.xushu-tips{margin:68px auto 0;padding:0;width:420px;height:auto;background:#fff;border-radius:.2rem}.tips{margin:0 20px;padding:16px 0;border-bottom:1px solid #f6f6f6}.tips p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #ff5722}.frame{padding:20px;min-height:120px;color:#666}.go a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;font-size:12px;color:#fff;background:#28a745;border:1px solid #28a745;box-sizing:border-box;border-radius:.2rem;transition:all .6s;text-align:center}.go a:hover{opacity:.8}@media (max-width:768px){body{padding:0 16px}.xushu-tips{width:100%}}</style>\");"; | |||||
| $rmsg .= "document.write(\"<div class='xushu-tips'>"; | |||||
| $rmsg .= "<div class='tips'><p>提示信息</p></div>\");"; | |||||
| $rmsg .= "document.write(\"<div class='frame'>\");"; | |||||
| $rmsg .= "document.write(\"<style>body{margin:0;line-height:1.5;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#f2f2f2}a{color:#28a745;text-decoration:none}.tips{margin:68px auto 0;padding:0;width:420px;height:auto;background:#fff;border-radius:.2rem}.tips-head{margin:0 20px;padding:16px 0;border-bottom:1px solid #f6f6f6}.tips-head p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #ff5722}.tips-box{padding:20px;min-height:120px;color:#666}.btn a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;font-size:12px;color:#fff;background:#28a745;border-radius:.2rem;text-align:center;transition:all .6s}.btn a:hover{opacity:.8}@media (max-width:768px){body{padding:0 15px}.tips{width:100%}}</style>\");"; | |||||
| $rmsg .= "document.write(\"<div class='tips'>"; | |||||
| $rmsg .= "<div class='tips-head'><p>提示信息</p></div>\");"; | |||||
| $rmsg .= "document.write(\"<div class='tips-box'>\");"; | |||||
| $rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");"; | $rmsg .= "document.write(\"".str_replace("\"","“",$msg)."\");"; | ||||
| $rmsg .= "document.write(\""; | $rmsg .= "document.write(\""; | ||||
| if($onlymsg==0) | if($onlymsg==0) | ||||
| { | { | ||||
| if( $gourl != 'javascript:;' && $gourl != '') | if( $gourl != 'javascript:;' && $gourl != '') | ||||
| { | { | ||||
| $rmsg .= "<div class='go'><a href='{$gourl}'>点击反应</a></div>\");"; | |||||
| $rmsg .= "<div class='btn'><a href='{$gourl}'>点击反应</a></div>\");"; | |||||
| $rmsg .= "setTimeout('JumpUrl()',$litime);"; | $rmsg .= "setTimeout('JumpUrl()',$litime);"; | ||||
| } else { | } else { | ||||
| $rmsg .= "</div>\");"; | $rmsg .= "</div>\");"; | ||||