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

130 lines
5.2KB

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