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

206 lines
8.7KB

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