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

131 lines
5.6KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>一键更新</title>
  6. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link href="css/base.css" rel="stylesheet" type="text/css" />
  9. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  10. <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script>
  11. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  12. <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
  13. <script language="javascript">
  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. // "timePickerSeconds": 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').startOf('month')]
  29. },
  30. "locale": {
  31. format: 'YYYY-MM-DD HH:mm',
  32. applyLabel: '确定',
  33. cancelLabel: '取消',
  34. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  35. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
  36. '七月', '八月', '九月', '十月', '十一月', '十二月'],
  37. firstDay: 1
  38. }
  39. }, function (start) {
  40. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  41. });
  42. })
  43. </script>
  44. <script language='javascript'>
  45. function SelUp(){
  46. var ob1 = document.getElementById("uptype1");
  47. var ob2 = document.getElementById("uptype2");
  48. var ob3 = document.getElementById("uptype3");
  49. if(ob1.checked){
  50. document.getElementById("seltime").style.display = "";
  51. document.getElementById("selid").style.display = "none";
  52. }else if(ob2.checked){
  53. document.getElementById("seltime").style.display = "none";
  54. document.getElementById("selid").style.display = "";
  55. }else{
  56. document.getElementById("seltime").style.display = "none";
  57. document.getElementById("selid").style.display = "none";
  58. }
  59. }
  60. </script>
  61. </head>
  62. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  63. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
  64. <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
  65. <input type="hidden" name="action" value="make" />
  66. <tr>
  67. <td height="28" colspan="2" bgcolor="#EDF9D5" background='images/tbg.gif' style="padding-left:10px;">
  68. <strong>一键更新网站:</strong></td>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td width="30%" height="30" bgcolor="#FFFFFF">&nbsp;&nbsp;更新选项:</td>
  73. <td valign="top" bgcolor="#FFFFFF">
  74. <label><input name="uptype" id="uptype1" type="radio" class="btn btn-secondary btn-sm" value="time" onClick="SelUp()" checked="checked" />
  75. 指定时间的所有更新</label>
  76. <label><input name="uptype" id="uptype2" type="radio" class="btn btn-secondary btn-sm" onClick="SelUp()" value="id" />
  77. 指定ID文档的所有更新</label>
  78. <label><input name="uptype" id="uptype3" type="radio" class="btn btn-secondary btn-sm" onClick="SelUp()" value="mkall" />
  79. 更新所有</label>
  80. </td>
  81. </tr>
  82. <tr id='seltime'>
  83. <td height="20" bgcolor="#FFFFFF">&nbsp;&nbsp;起始时间:</td>
  84. <td height="20" bgcolor="#FFFFFF">
  85. <input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time()); ?>" style="width:200px" class="datepicker"/>
  86. </td>
  87. </tr>
  88. <tr bgcolor="#FFFFFF" id="selid" style="display:none;">
  89. <td height="20">&nbsp;&nbsp;起始ID:</td>
  90. <td height="20">
  91. <input name="startid" type="text" id="startid" value="0" size="4" />
  92. </td>
  93. </tr>
  94. <tr>
  95. <td height="31" colspan="2" bgcolor="#ffffff" align="center" style="padding-top:6px">
  96. <button type="submit" name="Submit" class="btn btn-secondary">开始更新</button>
  97. </td>
  98. </tr>
  99. </form>
  100. <tr bgcolor="#F9FCEF">
  101. <td height="20" colspan="2">
  102. <table width="100%" class="table table-borderless">
  103. <tr>
  104. <td width="74%">进行状态: </td>
  105. <td width="26%" align="right">
  106. <script language='javascript'>
  107. function ResizeDiv(obj,ty)
  108. {
  109. if(ty=="+") document.all[obj].style.pixelHeight += 50;
  110. else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  111. }
  112. </script>
  113. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] </td>
  114. </tr>
  115. </table>
  116. </td>
  117. </tr>
  118. <tr bgcolor="#FFFFFF">
  119. <td colspan="2" id="mtd">
  120. <div id='mdv' style='width:100%;height:350px;'>
  121. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="350px"></iframe>
  122. </div>
  123. <script language="JavaScript">
  124. document.all.mdv.style.pixelHeight = screen.height - 360;
  125. </script>
  126. </td>
  127. </tr>
  128. </table>
  129. </body>
  130. </html>