index.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. include_once('tpl/header.php');
  3. ?>
  4. <div class="layui-container" style = "margin-top:40px;">
  5. <div class="layui-row">
  6. <div class="layui-col-lg10 layui-col-md-offset1">
  7. <!--提示-->
  8. <div>
  9. <pre class="layui-code">若信息未及时显示,请按Ctrl + F5刷新。</pre>
  10. </div>
  11. <!--表单-->
  12. <div><h1>站点列表</h1></div>
  13. <!--站点列表-->
  14. <div id="listsite">
  15. <table class="layui-table">
  16. <colgroup>
  17. <col width="30%">
  18. <col width="25%">
  19. <col width="15%">
  20. <col width="15%">
  21. <col width="15%">
  22. </colgroup>
  23. <thead>
  24. <tr>
  25. <th>域名</th>
  26. <th>证书</th>
  27. <th>强制HTTPS</th>
  28. <th>最后更新</th>
  29. <th>操作</th>
  30. </tr>
  31. </thead>
  32. <tbody id = "website">
  33. </tbody>
  34. </table>
  35. </div>
  36. <!--站点END-->
  37. <!--证书列表-->
  38. <div><h1>证书列表</h1></div>
  39. <!--证书列表-->
  40. <div id="ssllist">
  41. <table class="layui-table">
  42. <colgroup>
  43. <col width="50%">
  44. <col width="15%">
  45. <col width="20%">
  46. <col width="15%">
  47. </colgroup>
  48. <thead>
  49. <tr>
  50. <th>域名</th>
  51. <th>最后更新</th>
  52. <th>备注</th>
  53. <th>操作</th>
  54. </tr>
  55. </thead>
  56. <tbody id = "listssl">
  57. </tbody>
  58. </table>
  59. </div>
  60. <!--证书END-->
  61. <!--证书列表END-->
  62. </div>
  63. </div>
  64. </div>
  65. <?php
  66. include_once('tpl/footer.php');
  67. ?>
  68. <script>
  69. layui.use('layer', function(){
  70. var layer = layui.layer;
  71. });
  72. $(document).ready(function(){
  73. $.get("./functions/method.php?type=list_site",function(data,status){
  74. $("#website").append(data);
  75. });
  76. $.get("./functions/method.php?type=list_ssl",function(data,status){
  77. $("#listssl").append(data);
  78. });
  79. });
  80. function delsite(canshu) {
  81. layer.open({
  82. title:'温馨提示',
  83. content:'请在站点管理中删除!',
  84. time:2000
  85. });
  86. }
  87. function delssl(canshu) {
  88. layer.open({
  89. title:'温馨提示',
  90. content:'请在SSL证书列表中删除!',
  91. time:2000
  92. });
  93. }
  94. </script>