error.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>{#if $code == 0#}提示{#else#}出错了{#/if#}</title>
  6. <link href="{#helper\globals::getCss("style")#}" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="{#helper\globals::getJs("jquery")#}"></script>
  8. <script language="javascript">
  9. $(function(){
  10. $('.error').css({'position':'absolute','left':($(window).width()-490)/2});
  11. $(window).resize(function(){
  12. $('.error').css({'position':'absolute','left':($(window).width()-490)/2});
  13. })
  14. });
  15. </script>
  16. </head>
  17. <body style="background:#edf6fa;">
  18. <div class="place">
  19. <span>位置:</span>
  20. <ul class="placeul">
  21. <li><a href="{#helper\globals::getFullUrl("main/index")#}">首页</a></li>
  22. <li>{#if $code == 0#}提示{#else#}错误提示{#/if#}</li>
  23. </ul>
  24. </div>
  25. <div class="error {#if $code == 404#}error404{#/if#}">
  26. <h2>{#if $code != 0#}非常遗憾,{#/if#}{#$desc|default:'您访问的页面存在问题!'#}</h2>
  27. <p>{#if $code != 0#}看到这个提示,就自认倒霉吧!{#/if#}</p>
  28. {#if $code != 0#}
  29. <div class="reindex"><a href="{#helper\globals::getFullUrl("/main/index")#}" target="_parent">返回首页
  30. {#/if#}
  31. </a></div>
  32. </div>
  33. </body>
  34. </html>