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

118 lines
5.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <title>更新整站</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" rel="stylesheet" href="../static/web/css/admin.css">
  9. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/moment.min.js"></script>
  12. <script src="../static/web/js/daterangepicker.js"></script>
  13. <script>
  14. $(document).ready(function () {
  15. $('.datepicker').daterangepicker({
  16. "singleDatePicker": true,
  17. "autoApply": true,
  18. "showDropdowns": true,
  19. "linkedCalendars": false,
  20. "timePicker": true,
  21. "timePicker24Hour": true,
  22. "showCustomRangeLabel": false,
  23. ranges: {
  24. '今日': [moment(), moment()],
  25. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  26. '本月': [moment().startOf('month'), moment().startOf('month')],
  27. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
  28. },
  29. "locale": {
  30. format: 'YYYY-MM-DD HH:mm',
  31. applyLabel: '确定',
  32. cancelLabel: '取消',
  33. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  34. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月'],
  35. firstDay: 1
  36. }
  37. }, function (start) {
  38. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  39. });
  40. })
  41. </script>
  42. <script>
  43. function SelUp(){
  44. var ob1 = document.getElementById("uptype1");
  45. var ob2 = document.getElementById("uptype2");
  46. var ob3 = document.getElementById("uptype3");
  47. if(ob1.checked){
  48. document.getElementById("seltime").style.display = "";
  49. document.getElementById("selid").style.display = "none";
  50. } else if(ob2.checked){
  51. document.getElementById("seltime").style.display = "none";
  52. document.getElementById("selid").style.display = "";
  53. } else {
  54. document.getElementById("seltime").style.display = "none";
  55. document.getElementById("selid").style.display = "none";
  56. }
  57. }
  58. </script>
  59. </head>
  60. <body>
  61. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  62. <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
  63. <input type="hidden" name="action" value="make">
  64. <tr>
  65. <td height="26" colspan="2" background="../static/web/img/tbg.gif" style="padding-left:10px">更新整站</td>
  66. </tr>
  67. <tr>
  68. <td width="260" height="26">更新选项:</td>
  69. <td height="26">
  70. <label><input name="uptype" id="uptype1" type="radio" value="time" onClick="SelUp()" checked="checked">&nbsp;指定时间的所有更新</label>
  71. <label><input name="uptype" id="uptype2" type="radio" onClick="SelUp()" value="id">&nbsp;指定ID文档的所有更新</label>
  72. <label><input name="uptype" id="uptype3" type="radio" onClick="SelUp()" value="mkall">&nbsp;更新所有</label>
  73. </td>
  74. </tr>
  75. <tr id="seltime">
  76. <td height="26">起始时间:</td>
  77. <td height="26"><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time()); ?>" class="datepicker" style="width:160px"></td>
  78. </tr>
  79. <tr id="selid" style="display:none">
  80. <td height="26">起始ID:</td>
  81. <td height="26"><input name="startid" type="text" id="startid" value="0" style="width:60px"></td>
  82. </tr>
  83. <tr>
  84. <td height="26" bgcolor="#F8FCF1" colspan="2" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button></td>
  85. </tr>
  86. </form>
  87. <tr>
  88. <td height="26" colspan="2">
  89. <table width="100%" class="table table-borderless">
  90. <tr>
  91. <td width="70%">结果:</td>
  92. <td width="30%" align="right">
  93. <script language='javascript'>
  94. function ResizeDiv(obj, ty) {
  95. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  96. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  97. }
  98. </script>
  99. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  100. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  101. </td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. <tr>
  107. <td colspan="2" id="mtd">
  108. <div id="mdv" style="width:100%;height:300px">
  109. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="360px"></iframe>
  110. </div>
  111. <script>
  112. document.all.mdv.style.pixelHeight = screen.height - 360;
  113. </script>
  114. </td>
  115. </tr>
  116. </table>
  117. </body>
  118. </html>