国内流行的内容管理系统(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.

98 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. function SelUp() {
  53. var ob1 = document.getElementById("uptype1");
  54. var ob2 = document.getElementById("uptype2");
  55. var ob3 = document.getElementById("uptype3");
  56. if (ob1.checked) {
  57. document.getElementById("seltime").style.display = "";
  58. document.getElementById("selid").style.display = "none";
  59. } else if (ob2.checked) {
  60. document.getElementById("seltime").style.display = "none";
  61. document.getElementById("selid").style.display = "";
  62. } else {
  63. document.getElementById("seltime").style.display = "none";
  64. document.getElementById("selid").style.display = "none";
  65. }
  66. }
  67. $(document).ready(function() {
  68. $('.datepicker').daterangepicker({
  69. "singleDatePicker": true,
  70. "autoApply": true,
  71. "showDropdowns": true,
  72. "linkedCalendars": false,
  73. "timePicker": true,
  74. "timePicker24Hour": true,
  75. "showCustomRangeLabel": false,
  76. ranges: {
  77. '今日': [moment(), moment()],
  78. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  79. '本月': [moment().startOf('month'), moment().startOf('month')],
  80. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month')
  81. .startOf('month')
  82. ]
  83. },
  84. "locale": {
  85. format: 'YYYY-MM-DD HH:mm',
  86. applyLabel: '确定',
  87. cancelLabel: '取消',
  88. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  89. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  90. firstDay: 1
  91. }
  92. }, function(start) {
  93. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  94. });
  95. })
  96. </script>
  97. </body>
  98. </html>