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

146 lines
5.8KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>文档批量维护</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.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. 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 cellpadding="3" cellspacing="1" align="center" class="table maintable my-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 bgcolor="#f5f5f5" colspan="2">文档批量维护</td>
  64. </tr>
  65. <tr>
  66. <td width="260">选定栏目:</td>
  67. <td>
  68. <?php
  69. $tl = new TypeLink(0);
  70. $typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
  71. echo "<select name='typeid' class='admin-input-sm'>";
  72. echo "<option value='0' selected>不限栏目</option>";
  73. echo $typeOptions;
  74. echo "</select>";
  75. ?>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>起始id:</td>
  80. <td>
  81. 开始:<input name="startid" type="text" id="startid" class="admin-input-xs">
  82. 结束:<input name="endid" type="text" id="endid" class="admin-input-xs">
  83. </td>
  84. </tr>
  85. <tr>
  86. <td>文档发布时间:</td>
  87. <td class="p-0">
  88. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  89. <tr>
  90. <td colspan="2">
  91. <label><input type="checkbox" name="seltime" id="seltime" value="1" onClick="ShowHideTime()"> 启用时间筛选(仅移动或删除文档可用该选项)</label>
  92. </td>
  93. </tr>
  94. <tr id="seltimeField" style="display:none">
  95. <td width="260">开始:<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?>
  96. <input name="starttime" value="<?php echo $nowtime;?>" type="text" id="starttime" class="datepicker">
  97. </td>
  98. <td width="260">结束:<?php $nowtime = GetDateTimeMk(time());?>
  99. <input name="endtime" value="<?php echo $nowtime;?>" type="text" id="endtime" class="datepicker">
  100. </td>
  101. </tr>
  102. </table>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>用户的登录id:</td>
  107. <td><input name="userid" type="text" id="userid" class="admin-input-xs">(网址uid=后面跟的id)</td>
  108. </tr>
  109. <tr>
  110. <td>操作:</td>
  111. <td>
  112. <label><input type="radio" name="action" value="check" onClick="ShowHideMove()" checked="1"> 审核文档</label>
  113. <label><input type="radio" name="action" value="makehtml" onClick="ShowHideMove()"> 更新网页</label>
  114. <label><input type="radio" name="action" value="move" onClick="ShowHideMove()"> 移动文档</label>
  115. <label><input type="radio" name="action" value="del" onClick="ShowHideMove()"> 删除文档</label>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td colspan="2" bgcolor="#e9ecef" align="center"><button type="button" name="b112" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button></td>
  120. </tr>
  121. </form>
  122. <form name="form2" action="content_batchup_action.php" target="stafrm" method="post">
  123. <input type="hidden" name="dopost" value="go">
  124. <tr>
  125. <td>操作:</td>
  126. <td>
  127. <label><input type="radio" value="delnulltitle" name="action"> 删除空标题的文档</label>
  128. <label><input type="radio" value="delnullbody" name="action"> 删除文档为空的文档</label>
  129. <label><input type="radio" value="modddpic" name="action"> 更正缩图错误</label>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td colspan="2" bgcolor="#e9ecef" align="center"><button type="button" name="b112" onClick="document.form2.submit();" class="btn btn-success btn-sm">开始操作</button></td>
  134. </tr>
  135. </form>
  136. <tr>
  137. <td colspan="2">结果:</td>
  138. </tr>
  139. <tr>
  140. <td colspan="2" id="mtd">
  141. <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  142. </td>
  143. </tr>
  144. </table>
  145. </body>
  146. </html>