think_exception.tpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. if(C('LAYOUT_ON')) {
  3. echo '{__NOLAYOUT__}';
  4. }
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml"><head>
  8. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  9. <title>系统发生错误</title>
  10. <style type="text/css">
  11. *{ padding: 0; margin: 0; }
  12. html{ overflow-y: scroll; }
  13. body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
  14. img{ border: 0; }
  15. .error{ padding: 24px 48px; }
  16. .face{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  17. h1{ font-size: 32px; line-height: 48px; }
  18. .error .content{ padding-top: 10px}
  19. .error .info{ margin-bottom: 12px; }
  20. .error .info .title{ margin-bottom: 3px; }
  21. .error .info .title h3{ color: #000; font-weight: 700; font-size: 16px; }
  22. .error .info .text{ line-height: 24px; }
  23. .copyright{ padding: 12px 48px; color: #999; }
  24. .copyright a{ color: #000; text-decoration: none; }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="error">
  29. <p class="face">:(</p>
  30. <h1><?php echo strip_tags($e['message']);?></h1>
  31. <h1>系统更新</h1>
  32. <div class="content">
  33. <?php if(isset($e['file'])) {?>
  34. <div class="info">
  35. <div class="title">
  36. <h3>错误位置</h3>
  37. </div>
  38. <div class="text">
  39. <p>FILE: <?php echo $e['file'] ;?> &#12288;LINE: <?php echo $e['line'];?></p>
  40. </div>
  41. </div>
  42. <?php }?>
  43. <?php if(isset($e['trace'])) {?>
  44. <div class="info">
  45. <div class="title">
  46. <h3>TRACE</h3>
  47. </div>
  48. <div class="text">
  49. <p><?php echo nl2br($e['trace']);?></p>
  50. </div>
  51. </div>
  52. <?php }?>
  53. </div>
  54. </div>
  55. <div class="copyright">
  56. <!-- <p><a title="官方网站" href="http://www.thinkphp.cn">ThinkPHP</a><sup><?php echo THINK_VERSION ?></sup> { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]</p> -->
  57. </div>
  58. </body>
  59. </html>