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

121 lines
4.7KB

  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/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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 mt-3 mb-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="#f8f8f8" 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" style="width:160px"></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" style="width:60px"></td>
  85. </tr>
  86. <tr>
  87. <td bgcolor="#F8FCF1" 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">
  92. <table width="100%" class="table table-borderless">
  93. <tr>
  94. <td width="30%">结果:</td>
  95. <td width="70%" align="right">
  96. <script>
  97. function ResizeDiv(obj, ty) {
  98. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  99. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  100. }
  101. </script>
  102. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  103. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  104. </td>
  105. </tr>
  106. </table>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td colspan="2" id="mtd">
  111. <div id="mdv" style="width:100%;height:360px">
  112. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="360px"></iframe>
  113. </div>
  114. <script>
  115. document.all.mdv.style.pixelHeight = screen.height - 360;
  116. </script>
  117. </td>
  118. </tr>
  119. </table>
  120. </body>
  121. </html>