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

167 lines
6.9KB

  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">文档批量维护</td>
  65. </tr>
  66. <tr>
  67. <td width="260">选定栏目:</td>
  68. <td>
  69. <?php
  70. $tl = new TypeLink(0);
  71. $typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
  72. echo "<select name='typeid' style='width:260px'>";
  73. echo "<option value='0' selected>不限栏目</option>";
  74. echo $typeOptions;
  75. echo "</select>";
  76. ?>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>起始id:</td>
  81. <td>
  82. 开始:<input name="startid" type="text" id="startid" size="10">
  83. 结束:<input name="endid" type="text" id="endid" size="10">
  84. </td>
  85. </tr>
  86. <tr>
  87. <td>文档发布时间:</td>
  88. <td>
  89. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  90. <tr>
  91. <td colspan="2">
  92. <label><input type="checkbox" name="seltime" id="seltime" value="1" onClick="ShowHideTime()"> 启用时间筛选(仅移动或删除文档可用该选项)</label>
  93. </td>
  94. </tr>
  95. <tr id="seltimeField" style="display:none">
  96. <td width="260">开始:<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?>
  97. <input name="starttime" value="<?php echo $nowtime;?>" type="text" id="starttime" class="datepicker">
  98. </td>
  99. <td width="260">结束:<?php $nowtime = GetDateTimeMk(time());?>
  100. <input name="endtime" value="<?php echo $nowtime;?>" type="text" id="endtime" class="datepicker">
  101. </td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. <tr>
  107. <td>用户的登录id:</td>
  108. <td><input name="userid" type="text" id="userid" size="20">(网址uid=后面跟的id)</td>
  109. </tr>
  110. <tr>
  111. <td>操作:</td>
  112. <td>
  113. <label><input type="radio" name="action" value="check" onClick="ShowHideMove()" checked="1"> 审核文档</label>
  114. <label><input type="radio" name="action" value="makehtml" onClick="ShowHideMove()"> 更新网页</label>
  115. <label><input type="radio" name="action" value="move" onClick="ShowHideMove()"> 移动文档</label>
  116. <label><input type="radio" name="action" value="del" onClick="ShowHideMove()"> 删除文档</label>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td colspan="2" bgcolor="#fbfce2" align="center">
  121. <button type="button" name="b112" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button>
  122. </td>
  123. </tr>
  124. </form>
  125. <form name="form2" action="content_batchup_action.php" target="stafrm" method="post">
  126. <input type="hidden" name="dopost" value="go">
  127. <tr>
  128. <td>操作:</td>
  129. <td>
  130. <label><input type="radio" value="delnulltitle" name="action"> 删除空标题的文档</label>
  131. <label><input type="radio" value="delnullbody" name="action"> 删除内容为空的文档</label>
  132. <label><input type="radio" value="modddpic" name="action"> 更正缩图错误</label>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td colspan="2" bgcolor="#fbfce2" align="center">
  137. <button type="button" name="b112" onClick="document.form2.submit();" class="btn btn-success btn-sm">开始操作</button>
  138. </td>
  139. </tr>
  140. </form>
  141. <tr>
  142. <td colspan="2">
  143. <table width="100%" class="table table-borderless">
  144. <tr>
  145. <td width="30%">结果:</td>
  146. <td width="70%" align="right">
  147. <script>
  148. function ResizeDiv(obj, ty) {
  149. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  150. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  151. }
  152. </script>
  153. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  154. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  155. </td>
  156. </tr>
  157. </table>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td colspan="2" id="mtd">
  162. <div id="mdv" class="biz-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  163. </td>
  164. </tr>
  165. </table>
  166. </body>
  167. </html>