index.php 1.9 KB

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