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

207 lines
8.4KB

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