website.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 id="listsite">
  13. <table class="layui-table">
  14. <colgroup>
  15. <col width="30%">
  16. <col width="25%">
  17. <col width="15%">
  18. <col width="15%">
  19. <col width="15%">
  20. </colgroup>
  21. <thead>
  22. <tr>
  23. <th>域名</th>
  24. <th>证书</th>
  25. <th>强制HTTPS</th>
  26. <th>最后更新</th>
  27. <th>操作</th>
  28. </tr>
  29. </thead>
  30. <tbody id = "website">
  31. </tbody>
  32. </table>
  33. </div>
  34. <!--站点END-->
  35. </div>
  36. </div>
  37. </div>
  38. <?php
  39. include_once('tpl/footer.php');
  40. ?>
  41. <script>
  42. $(document).ready(function(){
  43. $("title").empty();
  44. $("title").append("站点管理");
  45. $.get("./functions/method.php?type=list_site",function(data,status){
  46. $("#website").hide();
  47. $("#website").append(data);
  48. $("#website").show();
  49. });
  50. });
  51. function delsite(id){
  52. //alert(id);
  53. var msg = "确认删除?";
  54. if (confirm(msg)==true){
  55. $.post("./functions/method.php?type=del_site",{id:id},function(data,status){
  56. if(data == 'ok') {
  57. $("#ssl"+id).remove();
  58. }
  59. //alert(data);
  60. });
  61. }else{
  62. return false;
  63. }
  64. }
  65. </script>