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

198 lines
8.0KB

  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. function ShowHideTime() {
  16. var selBox = document.getElementById('seltime');
  17. var obj = document.getElementById('seltimeField');
  18. if (selBox.checked) obj.style.display = "block";
  19. else obj.style.display = "none";
  20. }
  21. function ShowHideMove() {
  22. var selBox = document.getElementById('moveradio');
  23. var obj = document.querySelectorAll('.moveField').forEach(v=>{
  24. if (selBox.checked) v.style.display = "block";
  25. else v.style.display = "none";
  26. })
  27. }
  28. $(document).ready(function () {
  29. $('.datepicker').daterangepicker({
  30. "singleDatePicker": true,
  31. "autoApply": true,
  32. "showDropdowns": true,
  33. "linkedCalendars": false,
  34. "timePicker": true,
  35. "timePicker24Hour": true,
  36. "timePickerSeconds": true,
  37. "showCustomRangeLabel": false,
  38. ranges: {
  39. '今日': [moment(), moment()],
  40. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  41. '本月': [moment().startOf('month'), moment().startOf('month')],
  42. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
  43. },
  44. "locale": {
  45. format: 'YYYY-MM-DD HH:mm:ss',
  46. applyLabel: '确定',
  47. cancelLabel: '取消',
  48. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  49. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
  50. '七月', '八月', '九月', '十月', '十一月', '十二月'],
  51. firstDay: 1
  52. }
  53. }, function (start) {
  54. $(this).val(start.format("YYYY-MM-DD HH:mm:ss"));
  55. });
  56. })
  57. </script>
  58. </head>
  59. <body>
  60. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  61. <form name="form1" action="content_batchup_action.php" target="stafrm" method="post">
  62. <input type="hidden" name="dopost" value="go">
  63. <tr>
  64. <td bgcolor="#f8f8f8" colspan="2">
  65. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  66. <tr>
  67. <td width="30%">文档批量维护</td>
  68. <td width="70%" align="right"></td>
  69. </tr>
  70. </table>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td width="260">选定栏目:</td>
  75. <td>
  76. <?php
  77. $tl = new TypeLink(0);
  78. $typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
  79. echo "<select name='typeid' style='width:260px'>";
  80. echo "<option value='0' selected>不限栏目</option>";
  81. echo $typeOptions;
  82. echo "</select>";
  83. ?>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td>起始ID:</td>
  88. <td>
  89. 开始:<input name="startid" type="text" id="startid" size="10">
  90. 结束:<input name="endid" type="text" id="endid" size="10">
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>档案发布时间:</td>
  95. <td>
  96. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  97. <tr>
  98. <td colspan="2">
  99. <label><input type="checkbox" name="seltime" id="seltime" value="1" onClick="ShowHideTime()"> 启用时间筛选(仅移动或删除文档可用该选项)</label>
  100. </td>
  101. </tr>
  102. <tr id="seltimeField" style="display:none">
  103. <td width="260">开始:<?php $nowtime = GetDateTimeMk(time()-(24*3600*30)); ?>
  104. <input name="starttime" value="<?php echo $nowtime; ?>" type="text" id="starttime" class="datepicker">
  105. </td>
  106. <td width="260">结束:<?php $nowtime = GetDateTimeMk(time()); ?>
  107. <input name="endtime" value="<?php echo $nowtime; ?>" type="text" id="endtime" class="datepicker">
  108. </td>
  109. </tr>
  110. </table>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>用户的登录id:</td>
  115. <td><input name="userid" type="text" id="userid" size="20">(网址uid=后面跟的id)</td>
  116. </tr>
  117. <tr>
  118. <td>操作:</td>
  119. <td>
  120. <label><input type="radio" name="action" value="check" onClick="ShowHideMove()" checked="1"> 审核文档</label>
  121. <label><input type="radio" name="action" value="makehtml" onClick="ShowHideMove()"> 更新HTML</label>
  122. <label><input type="radio" name="action" value="move" onClick="ShowHideMove()"> 移动文档</label>
  123. <label><input type="radio" name="action" value="del" onClick="ShowHideMove()"> 删除文档</label>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td align="center"><span class="moveField" style="display:none">移动选项:</span></td>
  128. <td>
  129. <?php
  130. echo "<span class='moveField' style='display:none'>新位置:";
  131. echo "<select name='newtypeid' style='width:260px'>";
  132. echo $typeOptions;
  133. echo "</select>";
  134. echo "<hr>";
  135. echo "标题关键词:<input id='movekeyword' type='text' name='keyword' value=''></span>";
  136. ?>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td bgcolor="#FBFCE2" colspan="2" align="center">
  141. <button type="button" name="b112" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button>
  142. </td>
  143. </tr>
  144. </form>
  145. <tr>
  146. <td colspan="2">
  147. <table width="100%" class="table table-borderless">
  148. <tr>
  149. <td width="30%">结果:</td>
  150. <td width="70%" align="right">
  151. <script>
  152. function ResizeDiv(obj, ty) {
  153. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  154. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  155. }
  156. </script>
  157. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  158. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  159. </td>
  160. </tr>
  161. </table>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td colspan="2" id="mtd">
  166. <div id="mdv" style="width:100%;height:360px">
  167. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  168. </div>
  169. </td>
  170. </tr>
  171. <form name="form2" action="content_batchup_action.php" target="stafrm" method="post">
  172. <input type="hidden" name="dopost" value="go">
  173. <tr>
  174. <td bgcolor="#f8f8f8" colspan="2">
  175. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  176. <tr>
  177. <td width="30%">错误文档修正</td>
  178. <td width="70%" align="right"></td>
  179. </tr>
  180. </table>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td colspan="2" align="center">
  185. <label><input type="radio" value="delnulltitle" name="action"> 删除空标题的文章</label>
  186. <label><input type="radio" value="delnullbody" name="action"> 删除内容为空的文章</label>
  187. <label><input type="radio" value="modddpic" name="action"> 更正缩图错误</label>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td colspan="2" bgcolor="#f8f8f8" align="center">
  192. <button type="button" name="b112" onClick="document.form2.submit();" class="btn btn-success btn-sm">开始操作</button>
  193. </td>
  194. </tr>
  195. </form>
  196. </table>
  197. </body>
  198. </html>