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

135 lines
3.5KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>重复文档检测</title>
  6. <script language="javascript">
  7. //获得选中文件的文件名
  8. function getCheckboxItem()
  9. {
  10. var allSel="";
  11. if(document.form2.arcTitle.value) return document.form2.arcTitle.value;
  12. for(i=0;i<document.form2.arcTitle.length;i++)
  13. {
  14. if(document.form2.arcTitle[i].checked)
  15. {
  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. {
  32. for(i=0;i<document.form2.arcTitle.length;i++){
  33. if(!document.form2.arcTitle[i].checked){
  34. document.form2.arcTitle[i].checked=true;
  35. }
  36. }
  37. }
  38. function noSelAll()
  39. {
  40. for(i=0;i<document.form2.arcTitle.length;i++){
  41. if(document.form2.arcTitle[i].checked){
  42. document.form2.arcTitle[i].checked=false;
  43. }
  44. }
  45. }
  46. </script>
  47. <style type="text/css">
  48. <!--
  49. body {
  50. margin-left: 0px;
  51. margin-top: 0px;
  52. margin-right: 0px;
  53. margin-bottom: 0px;
  54. }
  55. body,td,th {
  56. font-size: 12px;
  57. }
  58. a:link {
  59. text-decoration: none;
  60. }
  61. a:visited {
  62. text-decoration: none;
  63. }
  64. a:hover {
  65. text-decoration: none;
  66. }
  67. a:active {
  68. text-decoration: none;
  69. }
  70. a {
  71. font-size: 12px;
  72. }
  73. -->
  74. </style>
  75. </head>
  76. <body>
  77. <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbtitle">
  78. <tr bgcolor="#E7E7E7">
  79. <td height="24" colspan="3" bgcolor="#EDF9D5">
  80. <strong>·重复文档列表:</strong>
  81. </td>
  82. </tr>
  83. <form name="form2" method="POST" action="article_test_same.php">
  84. <input type='hidden' name='deltype' value='<?php echo $deltype; ?>' />
  85. <input type='hidden' name='dopost' value='delsel' />
  86. <input type='hidden' name='pagesize' value='<?php echo $pagesize; ?>' />
  87. <input type='hidden' name='channelid' value='<?php echo $channelid; ?>' />
  88. <input type='hidden' name='maintable' value='<?php echo $maintable; ?>' />
  89. <input type='hidden' name='titles' value='' />
  90. <tr bgcolor="#F8FBFB" height="24" align="center">
  91. <td width="9%"> 选择 </td>
  92. <td width="10%"> 重复数量 </td>
  93. <td width="81%"> 文档标题 </td>
  94. </tr>
  95. <?php
  96. while($row = $dsql->GetArray())
  97. {
  98. if($row['dd']==1 ) break;
  99. ?>
  100. <tr bgcolor="#FFFFFF" align="center" height="24" onMouseMove="javascript:this.bgColor='#EFEFEF';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
  101. <td>
  102. <input name="arcTitles" type="checkbox" id="arcTitle" value="<?php echo urlencode($row['title'])?>" class="np" />
  103. </td>
  104. <td>
  105. <?php
  106. $allarc += $row['dd'];
  107. echo $row['dd'];
  108. ?>
  109. </td>
  110. <td>
  111. <?php echo $row['title']; ?>
  112. </td>
  113. </tr>
  114. <?php
  115. }
  116. ?>
  117. <tr bgcolor="#E5F9FF">
  118. <td height="28" colspan="3" bgcolor="#EDF9D5">
  119. &nbsp;
  120. <input type='button' name='bt1' value='全选' onclick='selAll()' />
  121. &nbsp;
  122. <input type='button' name='bt2' value='反选' onclick='noSelAll()' />
  123. &nbsp;
  124. <input type='button' name='bt3' value='删除' onclick='delArc()' />
  125. &nbsp;
  126. (共有 <?php echo $allarc; ?> 篇重复标题的文档!)
  127. </td>
  128. </tr>
  129. </form>
  130. </table>
  131. </body>
  132. </html>