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

208 lines
8.5KB

  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 height="26" colspan="2" background="../static/web/img/tbg.gif">
  65. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  66. <tr>
  67. <td width="30%" style="padding-left:10px">文档批量维护</td>
  68. <td 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 height="26">起始ID:</td>
  88. <td height="26">开始:
  89. <input name="startid" type="text" id="startid" size="10">
  90. 结束:
  91. <input name="endid" type="text" id="endid" size="10"></td>
  92. </tr>
  93. <tr>
  94. <td height="26">档案发布时间:</td>
  95. <td height="26">
  96. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  97. <tr>
  98. <td colspan="2">
  99. <label><input name="seltime" type="checkbox" class="np" id="seltime" value="1" onClick="ShowHideTime()">
  100. 启用时间筛选(仅移动或删除文档可用该选项)</label>
  101. </td>
  102. </tr>
  103. <tr id='seltimeField' style='display:none' height='26'>
  104. <td width="260">开始:
  105. <?php $nowtime = GetDateTimeMk(time()-(24*3600*30)); ?>
  106. <input name="starttime" value="<?php echo $nowtime; ?>" type="text" id="starttime" class="datepicker">
  107. </td>
  108. <td width="260">结束:
  109. <?php $nowtime = GetDateTimeMk(time()); ?>
  110. <input name="endtime" value="<?php echo $nowtime; ?>" type="text" id="endtime" class="datepicker">
  111. </td>
  112. </tr>
  113. </table>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td height="26">用户的登录id:</td>
  118. <td height="26"><input name="userid" type="text" id="userid" size="20">(网址uid=后面跟的id)</td>
  119. </tr>
  120. <tr>
  121. <td height="26">操作:</td>
  122. <td height="26">
  123. <label><input name="action" type="radio" class="np" id="checkradio" onClick="ShowHideMove()" value="check"
  124. checked='1'>
  125. 审核文档</label>
  126. <label><input name="action" type="radio" class="np" value="makehtml" id="makehtmlradio" onClick="ShowHideMove()">
  127. 更新HTML</label>
  128. <label><input name="action" type="radio" class="np" value="move" id="moveradio" onClick="ShowHideMove()">
  129. 移动文档</label>
  130. <label><input name="action" type="radio" class="np" id="delradio" value="del" onClick="ShowHideMove()">
  131. 删除文档</label></td>
  132. </tr>
  133. <tr>
  134. <td height="26" align="center"><span class='moveField' style='display:none'>移动选项:</span></td>
  135. <td height="26">
  136. <?php
  137. echo "<span class='moveField' style='display:none'>新位置:";
  138. echo "<select name='newtypeid' style='width:260px'>";
  139. echo $typeOptions;
  140. echo "</select>";
  141. echo "<hr>";
  142. echo "标题关键词:<input id='movekeyword' type='text' name='keyword' value='' ></span>";
  143. ?>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td height="26" bgcolor="#F8FCF1" colspan="2" align="center">
  148. <button name="b112" type="button" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button>
  149. </td>
  150. </tr>
  151. </form>
  152. <tr>
  153. <td height="26" colspan="2">
  154. <table width="100%" class="table table-borderless">
  155. <tr>
  156. <td width="70%">结果:</td>
  157. <td width="30%" align="right">
  158. <script>
  159. function ResizeDiv(obj, ty) {
  160. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  161. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  162. }
  163. </script>
  164. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  165. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  166. </td>
  167. </tr>
  168. </table>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td colspan="2" id="mtd">
  173. <div id="mdv" style="width:100%;height:360px">
  174. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  175. </div>
  176. </td>
  177. </tr>
  178. <form name="form2" action="content_batchup_action.php" target="stafrm" method="post">
  179. <input type="hidden" name="dopost" value="go">
  180. <tr>
  181. <td height="26" colspan="2" background="../static/web/img/tbg.gif">
  182. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  183. <tr>
  184. <td width="30%" style="padding-left:10px">错误文档修正</td>
  185. <td width="70%" align="right"></td>
  186. </tr>
  187. </table>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td height="26" colspan="2" align="center">
  192. <label><input type='radio' value='delnulltitle' name='action' class='np'>
  193. 删除空标题的文章</label>
  194. <label><input type='radio' value='delnullbody' name='action' class='np'>
  195. 删除内容为空的文章</label>
  196. <label><input type='radio' value='modddpic' name='action' class='np'>
  197. 更正缩图错误</label>
  198. </td>
  199. </tr>
  200. <tr>
  201. <td height="26" colspan="2" bgcolor="#f8f8f8" align="center">
  202. <button name="b112" type="button" onClick="document.form2.submit();" class="btn btn-success btn-sm">开始操作</button>
  203. </td>
  204. </tr>
  205. </form>
  206. </table>
  207. </body>
  208. </html>