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

91 lines
3.0KB

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