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

122 lines
4.8KB

  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" 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 height="26" colspan="2" background="../static/web/img/tbg.gif" style="padding-left:10px">更新整站
  69. </td>
  70. </tr>
  71. <tr>
  72. <td width="260" height="26">更新选项:</td>
  73. <td height="26">
  74. <label><input name="uptype" id="uptype1" type="radio" value="time" onClick="SelUp()" checked="checked">&nbsp;指定时间的所有更新</label>
  75. <label><input name="uptype" id="uptype2" type="radio" onClick="SelUp()" value="id">&nbsp;指定ID文档的所有更新</label>
  76. <label><input name="uptype" id="uptype3" type="radio" onClick="SelUp()" value="mkall">&nbsp;更新所有</label>
  77. </td>
  78. </tr>
  79. <tr id="seltime">
  80. <td height="26">起始时间:</td>
  81. <td height="26"><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time()); ?>" class="datepicker" style="width:160px"></td>
  82. </tr>
  83. <tr id="selid" style="display:none">
  84. <td height="26">起始ID:</td>
  85. <td height="26"><input name="startid" type="text" id="startid" value="0" style="width:60px"></td>
  86. </tr>
  87. <tr>
  88. <td height="26" bgcolor="#F8FCF1" colspan="2" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button></td>
  89. </tr>
  90. </form>
  91. <tr>
  92. <td height="26" colspan="2">
  93. <table width="100%" class="table table-borderless">
  94. <tr>
  95. <td width="70%">结果:</td>
  96. <td width="30%" align="right">
  97. <script>
  98. function ResizeDiv(obj, ty) {
  99. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  100. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  101. }
  102. </script>
  103. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  104. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  105. </td>
  106. </tr>
  107. </table>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td colspan="2" id="mtd">
  112. <div id="mdv" style="width:100%;height:360px">
  113. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="360px"></iframe>
  114. </div>
  115. <script>
  116. document.all.mdv.style.pixelHeight = screen.height - 360;
  117. </script>
  118. </td>
  119. </tr>
  120. </table>
  121. </body>
  122. </html>