做网站好还是做淘宝好网页设计实训总结200
web/
2025/9/25 13:54:02/
文章来源:
做网站好还是做淘宝好,网页设计实训总结200,怎样做网站关键词优化,美词原创网站建设thinkphp3.2自定义success及error跳转页面 默认的thinkphp success及error的默认模板不是很好看#xff0c;下面分享如何自定义success及error页面#xff0c;这里用的是thinkphp 3.2.2版本 默认的thinkphp success及error的默认模板不是很好看#xff0c;下面分享大家如何自…thinkphp3.2自定义success及error跳转页面 默认的thinkphp success及error的默认模板不是很好看下面分享如何自定义success及error页面这里用的是thinkphp 3.2.2版本 默认的thinkphp success及error的默认模板不是很好看下面分享大家如何自定义success及error页面这里用的是thinkphp 3.2.2版本 首先在配置文件中添加以下代码(/Application/Admin/Conf/config.php) //自定义success和error的提示页面模板 TMPL_ACTION_SUCCESSPublic:dispatch_jump, TMPL_ACTION_ERRORPublic:dispatch_jump, 这里error和success是公用的一个模板文件代码如下(/Application/Admin/View/Public/dispatch_jump.html) !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlnshttp://www.w3.org/1999/xhtml head meta http-equivContent-Type contenttext/html; charsetutf-8 / title跳转提示/title style typetext/css *{ padding: 0; margin: 0; } body{ background: #fff; font-family: 微软雅黑; color: #333; font-size: 6px; } .message{width: 400px;height: 150px;margin:auto;border:1px solid #1B8F24;margin-top: 30px;} .head{width: 100%;height: 30px;background: rgb(222,245,194);text-align: center;padding-top: 5px;} .content{height: 120px;width: 100%;} .success ,.error{text-align: center;margin-top: 30px;} .jump{text-align: center;margin-top: 20px;} /style /head body div classmessage div classheadspanAce Admin提示信息:/span/div div classcontent ?php if(isset($message)) {? p classsuccess:) ?php echo($message); ?/p ?php }else{? p classerror:( ?php echo($error); ?/p ?php }? p classdetail/p p classjump a idhref href?php echo($jumpUrl); ?如果你的浏览器没有自动跳转请点击这里.../a br / 等待时间 b idwait?php echo($waitSecond); ?/b /p /div /div script typetext/javascript (function(){ var wait document.getElementById(wait),href document.getElementById(href).href; var interval setInterval(function(){ var time --wait.innerHTML; if(time 0) { location.href href; clearInterval(interval); }; }, 1000); })(); /script /body /html复制代码 详细内容请点击http://www.jb100.net/html/content-28-252-1.html转载于:https://www.cnblogs.com/shsgl/p/5474070.html
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/81656.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!