index.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <div class="row">
  2. <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
  3. <div class="widget am-cf">
  4. <form class="am-form tpl-form-line-form">
  5. <div class="widget-body">
  6. <fieldset>
  7. <div class="widget-head am-cf">
  8. <div class="widget-title am-fl">服务器信息</div>
  9. </div>
  10. <div class="am-form-group">
  11. <div class="am-scrollable-horizontal">
  12. <table class="am-table am-table-centered">
  13. <tbody>
  14. <tr>
  15. <th width="30%">参数</th>
  16. <th>值</th>
  17. <th></th>
  18. </tr>
  19. <?php if (isset($server)): foreach ($server as $item): ?>
  20. <tr class="<?= isset($statusClass) ? $statusClass[$item['status']] : '' ?>">
  21. <td><?= $item['name'] ?></td>
  22. <td><?= $item['value'] ?> </td>
  23. <td><?= $item['status'] !== 'normal' ? $item['remark'] : '' ?> </td>
  24. </tr>
  25. <?php endforeach; endif; ?>
  26. </tbody>
  27. </table>
  28. </div>
  29. </div>
  30. <div class="widget-head am-cf">
  31. <div class="widget-title am-fl">PHP环境要求</div>
  32. </div>
  33. <div class="am-form-group">
  34. <div class="am-scrollable-horizontal">
  35. <table class="am-table am-table-centered">
  36. <tbody>
  37. <tr>
  38. <th width="30%">选项</th>
  39. <th>要求</th>
  40. <th>状态</th>
  41. <th></th>
  42. </tr>
  43. <?php if (isset($phpinfo)): foreach ($phpinfo as $item): ?>
  44. <tr class="<?= isset($statusClass) ? $statusClass[$item['status']] : '' ?>">
  45. <td><?= $item['name'] ?></td>
  46. <td><?= $item['value'] ?> </td>
  47. <td>
  48. <?php if ($item['status'] !== 'danger'): ?>
  49. <i class="am-icon-check x-color-green"></i>
  50. <?php else: ?>
  51. <i class="am-icon-times x-color-red"></i>
  52. <?php endif; ?>
  53. </td>
  54. <td><?= $item['status'] !== 'normal' ? $item['remark'] : '' ?> </td>
  55. </tr>
  56. <?php endforeach; endif; ?>
  57. </tbody>
  58. </table>
  59. </div>
  60. </div>
  61. <div class="widget-head am-cf">
  62. <div class="widget-title am-fl">目录权限监测</div>
  63. </div>
  64. <div class="am-form-group">
  65. <div class="am-scrollable-horizontal">
  66. <table class="am-table am-table-centered">
  67. <tbody>
  68. <tr>
  69. <th width="30%">名称</th>
  70. <th class="am-text-left">路径</th>
  71. <th>状态</th>
  72. <th></th>
  73. </tr>
  74. <?php if (isset($writeable)): foreach ($writeable as $item): ?>
  75. <tr class="<?= isset($statusClass) ? $statusClass[$item['status']] : '' ?>">
  76. <td><?= $item['name'] ?></td>
  77. <td class="am-text-left"><?= $item['value'] ?> </td>
  78. <td>
  79. <?php if ($item['status'] !== 'danger'): ?>
  80. <i class="am-icon-check x-color-green"></i>
  81. <?php else: ?>
  82. <i class="am-icon-times x-color-red"></i>
  83. <?php endif; ?>
  84. </td>
  85. <td><?= $item['status'] !== 'normal' ? $item['remark'] : '' ?> </td>
  86. </tr>
  87. <?php endforeach; endif; ?>
  88. </tbody>
  89. </table>
  90. </div>
  91. </div>
  92. </fieldset>
  93. </div>
  94. </form>
  95. </div>
  96. </div>
  97. </div>