国内流行的内容管理系统(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="<?php echo $cfg_soft_lang;?>">
  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. <script>
  15. $(document).ready(function() {
  16. $('.datepicker').daterangepicker({
  17. "singleDatePicker": true,
  18. "autoApply": true,
  19. "showDropdowns": true,
  20. "linkedCalendars": false,
  21. "timePicker": true,
  22. "timePicker24Hour": true,
  23. "showCustomRangeLabel": false,
  24. ranges: {
  25. '今日': [moment(), moment()],
  26. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  27. '本月': [moment().startOf('month'), moment().startOf('month')],
  28. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month')
  29. .startOf('month')
  30. ]
  31. },
  32. "locale": {
  33. format: 'YYYY-MM-DD HH:mm',
  34. applyLabel: '确定',
  35. cancelLabel: '取消',
  36. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  37. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  38. firstDay: 1
  39. }
  40. }, function(start) {
  41. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  42. });
  43. })
  44. </script>
  45. <script>
  46. function SelUp() {
  47. var ob1 = document.getElementById("uptype1");
  48. var ob2 = document.getElementById("uptype2");
  49. var ob3 = document.getElementById("uptype3");
  50. if (ob1.checked) {
  51. document.getElementById("seltime").style.display = "";
  52. document.getElementById("selid").style.display = "none";
  53. } else if (ob2.checked) {
  54. document.getElementById("seltime").style.display = "none";
  55. document.getElementById("selid").style.display = "";
  56. } else {
  57. document.getElementById("seltime").style.display = "none";
  58. document.getElementById("selid").style.display = "none";
  59. }
  60. }
  61. </script>
  62. </head>
  63. <body>
  64. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
  65. <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
  66. <input type="hidden" name="action" value="make">
  67. <tr>
  68. <td bgcolor="#f5f5f5" colspan="2">更新整站</td>
  69. </tr>
  70. <tr>
  71. <td width="260">更新选项:</td>
  72. <td>
  73. <label><input type="radio" name="uptype" id="uptype1" onClick="SelUp()" value="time" checked="checked"> 指定时间的所有更新</label>
  74. <label><input type="radio" name="uptype" id="uptype2" onClick="SelUp()" value="id"> 指定ID文档的所有更新</label>
  75. <label><input type="radio" name="uptype" id="uptype3" onClick="SelUp()" value="mkall"> 更新所有</label>
  76. </td>
  77. </tr>
  78. <tr id="seltime">
  79. <td>起始时间:</td>
  80. <td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker" class="biz-input-sm"></td>
  81. </tr>
  82. <tr id="selid" style="display:none">
  83. <td>起始id:</td>
  84. <td><input type="text" name="startid" id="startid" value="0" class="biz-input-sm"></td>
  85. </tr>
  86. <tr>
  87. <td bgcolor="#fbfce2" colspan="2" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button></td>
  88. </tr>
  89. </form>
  90. <tr>
  91. <td colspan="2">结果:</td>
  92. </tr>
  93. <tr>
  94. <td colspan="2" id="mtd">
  95. <div id="mdv" class="biz-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="360px"></iframe></div>
  96. </td>
  97. </tr>
  98. </table>
  99. </body>
  100. </html>