国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

105 Zeilen
4.1KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>更新整站</title>
  7. <link rel="stylesheet" href="/static/web/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. <ol class="breadcrumb">
  17. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  18. <li class="breadcrumb-item active">更新整站</li>
  19. </ol>
  20. <div class="card shadow-sm">
  21. <div class="card-header">更新整站</div>
  22. <div class="card-body">
  23. <form name="form1" action="makehtml_all.php" method="post" target="stafrm">
  24. <input type="hidden" name="action" value="make">
  25. <div class="table-responsive">
  26. <table class="table table-borderless">
  27. <tbody>
  28. <tr>
  29. <td width="260">更新选项</td>
  30. <td>
  31. <label><input type="radio" name="uptype" id="uptype1" onclick="SelUp();" value="time" checked> 指定时间的所有更新</label>
  32. <label><input type="radio" name="uptype" id="uptype2" onclick="SelUp();" value="id"> 指定文档的所有更新</label>
  33. <label><input type="radio" name="uptype" id="uptype3" onclick="SelUp();" value="mkall"> 更新所有</label>
  34. </td>
  35. </tr>
  36. <tr id="seltime">
  37. <td>起始时间</td>
  38. <td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker admin-input-sm"></td>
  39. </tr>
  40. <tr id="selid" style="display:none">
  41. <td>起始id</td>
  42. <td><input type="text" name="startid" id="startid" value="0" class="admin-input-sm"></td>
  43. </tr>
  44. <tr>
  45. <td colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">开始执行</button></td>
  46. </tr>
  47. <tr>
  48. <td colspan="2">
  49. <div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  50. </td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </div>
  55. </form>
  56. </div>
  57. </div>
  58. <script>
  59. function SelUp() {
  60. var ob1 = document.getElementById("uptype1");
  61. var ob2 = document.getElementById("uptype2");
  62. var ob3 = document.getElementById("uptype3");
  63. if (ob1.checked) {
  64. document.getElementById("seltime").style.display = '';
  65. document.getElementById("selid").style.display = "none";
  66. } else if (ob2.checked) {
  67. document.getElementById("seltime").style.display = "none";
  68. document.getElementById("selid").style.display = '';
  69. } else {
  70. document.getElementById("seltime").style.display = "none";
  71. document.getElementById("selid").style.display = "none";
  72. }
  73. }
  74. $(document).ready(function() {
  75. $('.datepicker').daterangepicker({
  76. "singleDatePicker": true,
  77. "autoApply": true,
  78. "showDropdowns": true,
  79. "linkedCalendars": false,
  80. "timePicker": true,
  81. "timePicker24Hour": true,
  82. "showCustomRangeLabel": false,
  83. ranges: {
  84. '今日': [moment(), moment()],
  85. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  86. '本月': [moment().startOf('month'), moment().startOf('month')],
  87. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month')
  88. .startOf('month')
  89. ]
  90. },
  91. "locale": {
  92. format: 'YYYY-MM-DD HH:mm',
  93. applyLabel: '确定',
  94. cancelLabel: '取消',
  95. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  96. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  97. firstDay: 1
  98. }
  99. }, function(start) {
  100. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  101. });
  102. });
  103. </script>
  104. </body>
  105. </html>