exception.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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"><head>
  3. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  4. <title>系统发生错误</title>
  5. <style type="text/css">
  6. *{ padding: 0; margin: 0; }
  7. html{ overflow-y: scroll; }
  8. body{ background: #fff; font-family: 'Microsoft YaHei'; color: #333; font-size: 16px; }
  9. img{ border: 0; }
  10. .error{ padding: 24px 48px; }
  11. .face{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  12. h1{ font-size: 32px; line-height: 48px; }
  13. .error .content{ padding-top: 10px}
  14. .error .info{ margin-bottom: 12px; }
  15. .error .info .title{ margin-bottom: 3px; }
  16. .error .info .title h3{ color: #000; font-weight: 700; font-size: 16px; }
  17. .error .info .text{ line-height: 24px; }
  18. .copyright{ padding: 12px 48px; color: #999; }
  19. .copyright a{ color: #000; text-decoration: none; }
  20. </style>
  21. </head>
  22. <body>
  23. <div class="error">
  24. <p class="face">:(</p>
  25. <h1><?php echo strip_tags($e['message']);?></h1>
  26. <div class="content">
  27. <?php if(isset($e['file'])) {?>
  28. <div class="info">
  29. <div class="title">
  30. <h3>错误地址:</h3>
  31. </div>
  32. <div class="text">
  33. <p>FILE: <?php echo $e['file'] ;?> &#12288;LINE: <?php echo $e['line'];?></p>
  34. </div>
  35. </div>
  36. <?php }?>
  37. <?php if(isset($e['trace'])) {?>
  38. <div class="info">
  39. <div class="title">
  40. <h3>TRACE</h3>
  41. </div>
  42. <div class="text">
  43. <p><?php echo nl2br($e['trace']);?></p>
  44. </div>
  45. </div>
  46. <?php }?>
  47. </div>
  48. </div>
  49. <div class="copyright">
  50. </div>
  51. </body>
  52. </html>