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

114 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/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="css/base.css" rel="stylesheet">
  9. <link rel="stylesheet" href="../static/css/daterangepicker.css">
  10. <script src="../static/js/jquery.js"></script>
  11. <script src="../static/js/moment.min.js"></script>
  12. <script src="../static/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 background="images/allbg.gif" leftmargin="8" topmargin="8">
  61. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-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="30" colspan="2" bgcolor="#EDF9D5" background="images/tbg.gif" style="padding-left:10px">
  66. <strong>一键更新网站:</strong></td>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td width="30%" height="30" bgcolor="#FFFFFF">&nbsp;更新选项:</td>
  71. <td valign="top" bgcolor="#FFFFFF">
  72. <label><input name="uptype" id="uptype1" type="radio" value="time" onClick="SelUp()" checked="checked">&nbsp;指定时间的所有更新</label>
  73. <label><input name="uptype" id="uptype2" type="radio" onClick="SelUp()" value="id">&nbsp;指定ID文档的所有更新</label>
  74. <label><input name="uptype" id="uptype3" type="radio" onClick="SelUp()" value="mkall">&nbsp;更新所有</label>
  75. </td>
  76. </tr>
  77. <tr id="seltime">
  78. <td height="26" bgcolor="#FFFFFF">&nbsp;起始时间:</td>
  79. <td height="26" bgcolor="#FFFFFF"><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time()); ?>" style="width:200px" class="datepicker"></td>
  80. </tr>
  81. <tr bgcolor="#FFFFFF" id="selid" style="display:none">
  82. <td height="26">&nbsp;起始ID:</td>
  83. <td height="26"><input name="startid" type="text" id="startid" value="0" size="4"></td>
  84. </tr>
  85. <tr>
  86. <td height="30" colspan="2" bgcolor="#ffffff" align="center"><button type="submit" name="Submit" class="btn btn-success">开始更新</button></td>
  87. </tr>
  88. </form>
  89. <tr bgcolor="#F9FCEF">
  90. <td colspan="2" style="line-height:26px">&nbsp;进行状态:
  91. <script>
  92. function ResizeDiv(obj,ty)
  93. {
  94. if(ty=="+") document.all[obj].style.pixelHeight += 50;
  95. else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  96. }
  97. </script>
  98. <span style="float:right">
  99. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>&nbsp;
  100. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  101. </span>
  102. </td>
  103. </tr>
  104. <tr bgcolor="#FFFFFF">
  105. <td colspan="2" id="mtd">
  106. <div id="mdv" style="width:100%;height:350px"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="350px"></iframe></div>
  107. <script>
  108. document.all.mdv.style.pixelHeight = screen.height - 360;
  109. </script>
  110. </td>
  111. </tr>
  112. </table>
  113. </body>
  114. </html>