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

90 lines
2.9KB

  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. </head>
  11. <body>
  12. <form name="form2" method="POST" action="article_test_same.php">
  13. <input type="hidden" name="deltype" value="<?php echo $deltype;?>">
  14. <input type="hidden" name="dopost" value="delsel">
  15. <input type="hidden" name="pagesize" value="<?php echo $pagesize;?>">
  16. <input type="hidden" name="channelid" value="<?php echo $channelid;?>">
  17. <input type="hidden" name="maintable" value="<?php echo $maintable;?>">
  18. <input type="hidden" name="titles" value="">
  19. <table class="table maintable my-3">
  20. <tr>
  21. <td bgcolor="#f5f5f5" colspan="3">重复文档列表</td>
  22. </tr>
  23. <tr bgcolor="#e9ecef" align="center">
  24. <td width="10%">选择</td>
  25. <td width="10%">重复数量</td>
  26. <td width="80%">文档标题</td>
  27. </tr>
  28. <?php
  29. while($row = $dsql->GetArray())
  30. {
  31. if ($row['dd']==1 ) break;
  32. ?>
  33. <tr align="center">
  34. <td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td>
  35. <td>
  36. <?php
  37. $allarc += $row['dd'];
  38. echo $row['dd'];
  39. ?>
  40. </td>
  41. <td><?php echo $row['title'];?></td>
  42. </tr>
  43. <?php }?>
  44. <tr>
  45. <td colspan="3">
  46. <input type="button" name="bt1" onclick="selAll()" value="全选" class="btn btn-success btn-sm">
  47. <input type="button" name="bt2" onclick="noSelAll()" value="反选" class="btn btn-success btn-sm">
  48. <input type="button" name="bt3" onclick="delArc()" value="删除" class="btn btn-success btn-sm">
  49. </td>
  50. </tr>
  51. </table>
  52. </form>
  53. <script>
  54. //获得选中文件的文件名
  55. function getCheckboxItem() {
  56. var allSel = "";
  57. if (document.form2.arcTitle.value) return document.form2.arcTitle.value;
  58. for (i = 0; i < document.form2.arcTitle.length; i++) {
  59. if (document.form2.arcTitle[i].checked) {
  60. if (allSel == "")
  61. allSel = document.form2.arcTitle[i].value;
  62. else
  63. allSel = allSel + "`" + document.form2.arcTitle[i].value;
  64. }
  65. }
  66. return allSel;
  67. }
  68. //删除文档
  69. function delArc() {
  70. var qstr = getCheckboxItem();
  71. document.form2.titles.value = qstr;
  72. document.form2.submit();
  73. }
  74. function selAll() {
  75. for (i = 0; i < document.form2.arcTitle.length; i++) {
  76. if (!document.form2.arcTitle[i].checked) {
  77. document.form2.arcTitle[i].checked = true;
  78. }
  79. }
  80. }
  81. function noSelAll() {
  82. for (i = 0; i < document.form2.arcTitle.length; i++) {
  83. if (document.form2.arcTitle[i].checked) {
  84. document.form2.arcTitle[i].checked = false;
  85. }
  86. }
  87. }
  88. </script>
  89. </body>
  90. </html>