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

133 lines
5.3KB

  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. </head>
  15. <body>
  16. <form name="form1" action="content_batchup_action.php" target="stafrm" method="post">
  17. <input type="hidden" name="dopost" value="go">
  18. <table align="center" class="table maintable my-3">
  19. <tr>
  20. <td bgcolor="#f5f5f5" colspan="2">文档批量维护</td>
  21. </tr>
  22. <tr>
  23. <td width="260">选定栏目:</td>
  24. <td>
  25. <?php
  26. $tl = new TypeLink(0);
  27. $typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
  28. echo "<select name='typeid' class='admin-input-sm'>";
  29. echo "<option value='0' selected>不限栏目</option>";
  30. echo $typeOptions;
  31. echo "</select>";
  32. ?>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>起始id:</td>
  37. <td>
  38. <label>开始:<input name="startid" type="text" id="startid" class="admin-input-xs"></label>
  39. <label>结束:<input name="endid" type="text" id="endid" class="admin-input-xs"></label>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>文档发布时间:</td>
  44. <td class="p-0">
  45. <table class="table table-borderless">
  46. <tr>
  47. <td colspan="2">
  48. <label><input type="checkbox" name="seltime" id="seltime" value="1" onclick="ShowHideTime()"> 启用时间筛选(仅移动或删除文档可用该选项)</label>
  49. </td>
  50. </tr>
  51. <tr id="seltimeField" style="display:none">
  52. <td width="260">开始:<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?> <input type="text" name="starttime" id="starttime" class="admin-input-sm" value="<?php echo $nowtime;?>"></td>
  53. <td width="260">结束:<?php $nowtime = GetDateTimeMk(time());?> <input type="text" name="endtime" id="endtime" class="admin-input-sm" value="<?php echo $nowtime;?>"></td>
  54. </tr>
  55. </table>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td>会员的登录id:</td>
  60. <td><input name="userid" type="text" id="userid" class="admin-input-xs">(网址uid=后面跟的id)</td>
  61. </tr>
  62. <tr>
  63. <td>条件操作:</td>
  64. <td>
  65. <label><input type="radio" name="action" value="check" onclick="ShowHideMove()" checked="1"> 审核文档</label>
  66. <label><input type="radio" name="action" value="makehtml" onclick="ShowHideMove()"> 更新网页</label>
  67. <label><input type="radio" name="action" value="move" onclick="ShowHideMove()"> 移动文档</label>
  68. <label><input type="radio" name="action" value="del" onclick="ShowHideMove()"> 删除文档</label>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td>批量操作:</td>
  73. <td>
  74. <label><input type="radio" value="delnulltitle" name="action"> 删除空标题的文档</label>
  75. <label><input type="radio" value="delnullbody" name="action"> 删除文档为空的文档</label>
  76. <label><input type="radio" value="modddpic" name="action"> 更正缩图错误</label>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td colspan="2" bgcolor="#e9ecef" align="center"><button type="button" name="b112" onclick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button></td>
  81. </tr>
  82. <tr>
  83. <td colspan="2" id="mtd">
  84. <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  85. </td>
  86. </tr>
  87. </table>
  88. </form>
  89. <script>
  90. function ShowHideTime() {
  91. var selBox = document.getElementById('seltime');
  92. var obj = document.getElementById('seltimeField');
  93. if (selBox.checked) obj.style.display = "block";
  94. else obj.style.display = "none";
  95. }
  96. function ShowHideMove() {
  97. var selBox = document.getElementById('moveradio');
  98. var obj = document.querySelectorAll('.moveField').forEach(v=>{
  99. if (selBox.checked) v.style.display = "block";
  100. else v.style.display = "none";
  101. })
  102. }
  103. $(document).ready(function () {
  104. $('.datepicker').daterangepicker({
  105. "singleDatePicker": true,
  106. "autoApply": true,
  107. "showDropdowns": true,
  108. "linkedCalendars": false,
  109. "timePicker": true,
  110. "timePicker24Hour": true,
  111. "timePickerSeconds": true,
  112. "showCustomRangeLabel": false,
  113. ranges: {
  114. '今日': [moment(), moment()],
  115. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  116. '本月': [moment().startOf('month'), moment().startOf('month')],
  117. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
  118. },
  119. "locale": {
  120. format: 'YYYY-MM-DD HH:mm:ss',
  121. applyLabel: '确定',
  122. cancelLabel: '取消',
  123. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  124. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  125. firstDay: 1
  126. }
  127. }, function (start) {
  128. $(this).val(start.format("YYYY-MM-DD HH:mm:ss"));
  129. });
  130. })
  131. </script>
  132. </body>
  133. </html>