国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
3.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>更新整站</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  11. <script src="../static/web/js/jquery.min.js"></script>
  12. <script src="../static/web/js/moment.min.js"></script>
  13. <script src="../static/web/js/daterangepicker.js"></script>
  14. </head>
  15. <body>
  16. <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
  17. <input type="hidden" name="action" value="make">
  18. <table align="center" class="table maintable my-3">
  19. <tr>
  20. <td bgcolor="#f5f5f5" colspan="2">更新整站</td>
  21. </tr>
  22. <tr>
  23. <td width="260">更新选项:</td>
  24. <td>
  25. <label><input type="radio" name="uptype" id="uptype1" onclick="SelUp()" value="time" checked="checked"> 指定时间的所有更新</label>
  26. <label><input type="radio" name="uptype" id="uptype2" onclick="SelUp()" value="id"> 指定文档的所有更新</label>
  27. <label><input type="radio" name="uptype" id="uptype3" onclick="SelUp()" value="mkall"> 更新所有</label>
  28. </td>
  29. </tr>
  30. <tr id="seltime">
  31. <td>起始时间:</td>
  32. <td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker" class="admin-input-sm"></td>
  33. </tr>
  34. <tr id="selid" style="display:none">
  35. <td>起始id:</td>
  36. <td><input type="text" name="startid" id="startid" value="0" class="admin-input-sm"></td>
  37. </tr>
  38. <tr>
  39. <td bgcolor="#e9ecef" colspan="2" align="center">
  40. <button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button>
  41. <button type="button" class="btn btn-outline-success btn-sm" onclick="location='sys_cache_up.php';">更新缓存</button>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td colspan="2" id="mtd">
  46. <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  47. </td>
  48. </tr>
  49. </table>
  50. </form>
  51. <script>
  52. $(document).ready(function() {
  53. $('.datepicker').daterangepicker({
  54. "singleDatePicker": true,
  55. "autoApply": true,
  56. "showDropdowns": true,
  57. "linkedCalendars": false,
  58. "timePicker": true,
  59. "timePicker24Hour": true,
  60. "showCustomRangeLabel": false,
  61. ranges: {
  62. '今日': [moment(), moment()],
  63. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  64. '本月': [moment().startOf('month'), moment().startOf('month')],
  65. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month')
  66. .startOf('month')
  67. ]
  68. },
  69. "locale": {
  70. format: 'YYYY-MM-DD HH:mm',
  71. applyLabel: '确定',
  72. cancelLabel: '取消',
  73. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  74. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  75. firstDay: 1
  76. }
  77. }, function(start) {
  78. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  79. });
  80. })
  81. </script>
  82. <script>
  83. function SelUp() {
  84. var ob1 = document.getElementById("uptype1");
  85. var ob2 = document.getElementById("uptype2");
  86. var ob3 = document.getElementById("uptype3");
  87. if (ob1.checked) {
  88. document.getElementById("seltime").style.display = "";
  89. document.getElementById("selid").style.display = "none";
  90. } else if (ob2.checked) {
  91. document.getElementById("seltime").style.display = "none";
  92. document.getElementById("selid").style.display = "";
  93. } else {
  94. document.getElementById("seltime").style.display = "none";
  95. document.getElementById("selid").style.display = "none";
  96. }
  97. }
  98. </script>
  99. </body>
  100. </html>