kaindy7633 发表于 2013-1-25 03:15:17

[转]分享一个thinkphp提示页面代码

下面是代码:已经解决了官方的错误提示页面不能正常跳转的情况。 
<html>
 <head>
  <metahttp-equiv="Content-Type" content="text/html;charset=utf-8"/>
  <title>页面提示</title>
  <scripttype="text/javascript">
   functionrefresh(){
    location.href= "<{$jumpUrl}>";
   }
   setTimeout("refresh()",<{$waitSecond}>000);
  </script>
  <styletype="text/css">
   *{margin:0px;padding:0px;font-size:12px;font-family:Arial,Verdana;}
   #wrapper{width:450px;height:200px;background:#F5F5F5;border:1pxsolid#D2D2D2;position:absolute;top:40%;left:50%;margin-top:-100px;margin-left:-225px;}
   p.msg-title{width:100%;height:30px;line-height:30px;text-align:center;color:#EE7A38;margin-top:40px;font:14pxArial,Verdana;font-weight:bold;}
   p.message{width:100%;height:40px;line-height:40px;text-align:center;color:blue;margin-top:5px;margin-bottom:5px;}
   p.error{width:100%;height:40px;line-height:40px;text-align:center;color:red;margin-top:5px;margin-bottom:5px;}
   p.notice{width:100%;height:25px;line-height:25px;text-align:center;}
  </style>
 </head>
 <body>
  <divid="wrapper">
   <pclass="msg-title"><{$msgTitle}></p>
   <presentname="message">
    <pclass="message"><{$message}></p>
   </present>
   <presentname="error">
    <pclass="error"><{$error}></p>
   </present>
   <presentname="closeWin">
    <pclass="notice">系统将在 <spanstyle="color:blue;font-weight:bold"><{$waitSecond}></span> 秒后自动关闭,如果不想等待,直接点击 <ahref="<{$jumpUrl}>">这里</a>关闭</p>
   </present>
   <notpresentname="closeWin">
    <pclass="notice">系统将在 <spanstyle="color:blue;font-weight:bold"><{$waitSecond}></span> 秒后自动跳转,如果不想等待,直接点击 <ahref="<{$jumpUrl}>">这里</a>关闭</p>
   </notpresent>
  </div>
 </body>
</html>
页: [1]
查看完整版本: [转]分享一个thinkphp提示页面代码