php框架

 首页 > php框架 > ThinkPHP > ThinkPHP中自定义错误页面和提示页面 - Thinkphp

ThinkPHP中自定义错误页面和提示页面 - Thinkphp

分享到:
【字体:
导读:
          htmlheadmetahttp-equiv=Content-Typecontent=text html;charset=utf-8 title提示消息-ThinkPHP titlestyletype=text css...

ThinkPHP中自定义错误页面和提示页面

  1.  
  2.  
  3. "Content-Type" content="text/html; charset=utf-8" /> 
  4. 提示消息 - ThinkPHP 
  5.  
  6. "text/css"
  7. body { font: 75% Arail; text-align: center; } 
  8. #notice { width: 300px; background: #FFF; border: 1px solid #BBB; background: #EEE; padding: 3px; 
  9. position: absolute; left: 50%; top: 50%; margin-left: -155px; margin-top: -100px; } 
  10. #notice div { background: #FFF; padding: 30px 0 20px; font-size: 1.2em; font-weight:bold } 
  11. #notice p { background: #FFF; margin: 0; padding: 0 0 20px; } 
  12. a { color: #f00} a:hover { text-decoration: none; } 
  13.  
  14.  
  15.  
  16. "notice"
  17. "width:100%;text-align:left;padding-left:10px;padding-right:10px"
  18. echo $e['message']; ?> 
 
  • "font: italic bold 2cm cursive,serif; color:red"
  • × 
  •  
  •  
  •  

  • 在( "sec" style="color:blue;font-weight:bold">3 )秒后自动跳转,或直接点击 "javascript:window.location=''">这里 跳转
     
  • "display:block;text-decoration:underline;cursor:pointer;line-height:25px" onclick="stop(this)">停止 
  •  
  •  
  •  
  •  
  •  
  • 分享到:
    ThinkPHP 实现动态包含文件 - Thinkphp
    ThinkPHP 实现动态包含文件 问题描述:在做项目的时候遇到问题,也是很常见的问题,一般主页包含头部和脚步,为了方便管理,这些都需要使用包含文件来实现,ThinkPHP提供了包含文件的方法,以上是最简单的包含的操作的方式,但是在运行的过程中我发现,在请求的时候只是请求的是模板文件,也就是所谓的...
    ThinkPHP 非标准名称数据表快速创建模型...
    ThinkPHP 非标准名称数据表快速创建模型方法 非标准名称数据表,例如:cow_archives_4,类似命名方法常见于齐博cms,08cms等文档模型数据表命名,假设已在配置文件中配置数据表前缀:   新建模型,Archives4Model.class.php   D方法实例化: $archives4=D("Archives4");...
    •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
    • 在这里……