website.php 1.3 KB

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