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

94 lines
3.1KB

  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 language="javascript">
  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 height="26" 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 height="26" bgcolor="#F8FCF1" 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 height="26" align="center" onMouseMove="javascript:this.bgColor='#EFEFEF';"
  69. onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
  70. <td><input name="arcTitles" type="checkbox" id="arcTitle" value="<?php echo urlencode($row['title'])?>" class="np"></td>
  71. <td>
  72. <?php
  73. $allarc += $row['dd'];
  74. echo $row['dd'];
  75. ?>
  76. </td>
  77. <td><?php echo $row['title']; ?></td>
  78. </tr>
  79. <?php
  80. }
  81. ?>
  82. <tr>
  83. <td height="26" colspan="3">
  84. <input type="button" name="bt1" onclick="selAll()" value="全选" class="btn btn-success btn-sm">
  85. <input type="button" name="bt2" onclick="noSelAll()" value="反选" class="btn btn-success btn-sm">
  86. <input type="button" name="bt3" onclick="delArc()" value="删除" class="btn btn-success btn-sm">
  87. </td>
  88. </tr>
  89. </form>
  90. </table>
  91. </body>
  92. </html>