织梦DedeCMS提示信息提示框美化

织梦DedeCMS提示信息提示框美化,第1张

概述打开\include\common.func.php找到15214549435e4aa1c35316e_000000整体都改为15214549435e4aa1c35316e_000001注意:如果你有改过这个函数,记

下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。内存溢出小编现在分享给大家,也给大家做个参考。


打开 includecommon.func.PHP 找到

function ShowMsg(

{

中间代码省略...

}

整体都改为

function ShowMsg($msg,$gourl,$onlymsg=0,$limittime=0)

{

if(empty($GLOBALS['cfg_plus_dir'])) $GLOBALS['cfg_plus_dir'] = '..';

 

$HTMLhead = "<HTML>rn<head>rn<Title>提示信息</Title>rn<Meta http-equiv="Content-Type" content="text/HTML; charset=gb2312" />rn<Meta name="vIEwport" content="wIDth=device-wIDth,initial-scale=1,maximum-scale=1,user-scalable=no">rn<Meta name="renderer" content="webkit">rn<Meta http-equiv="Cache-Control" content="no-siteapp" />";

$HTMLhead .= "<base target='_self'/>rn<style>div{line-height:160%;}</style></head>rn<body leftmargin='0' topmargin='0' bgcolor='#FFFFFF'>".(isset($GLOBALS['ucsynlogin']) ? $GLOBALS['ucsynlogin'] : '')."rn<center>rn<script>rn";

$HTMLfoot = "</script>rn</center>rn</body>rn</HTML>rn";

 

$litime = ($limittime==0 ? 1000 : $limittime);

$func = '';

 

if($gourl=='-1')

{

if($limittime==0) $litime = 5000;

$gourl = "JavaScript:history.go(-1);";

}

 

if($gourl=='' || $onlymsg==1)

{

$msg = "<script>alert("".str_replace(""","“",$msg)."");</script>";

}

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';rn";

}

 

$func .= " var pgo=0;

function Jumpurl(){

if(pgo==0){ location='$gourl'; pgo=1; }

}rn";

$rmsg = $func;

$rmsg .= "document.write("<style>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}</style>");rn;";

$rmsg .= "document.write("<div class='tips tips-Box'>";

$rmsg .= "<div class='Title'><p>提示信息</p></div>");rn";

$rmsg .= "document.write("<div class='content'>");rn";

$rmsg .= "document.write("".str_replace(""",$msg)."");rn";

$rmsg .= "document.write("";

 

if($onlymsg==0)

{

if( $gourl != 'JavaScript:;' && $gourl != '')

{

$rmsg .= "<a href='{$gourl}' class='go'>点击跳转</a>";

$rmsg .= "<br/></div>");rn";

$rmsg .= "setTimeout('Jumpurl()',$litime);";

}

else

{

$rmsg .= "<br/></div>");rn";

}

}

else

{

$rmsg .= "<br/><br/></div>");rn";

}

$msg = $HTMLhead.$rmsg.$HTMLfoot;

}

echo $msg;

}

注意:如果你有改过这个函数,记得备份一个你的再尝试!

以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

总结

以上是内存溢出为你收集整理的织梦DedeCMS提示信息提示框美化全部内容,希望文章能够帮你解决织梦DedeCMS提示信息提示框美化所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zz/1025947.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存