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

  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. </head>
  48. <body>
  49. <table width="100%" cellpadding="2" cellspacing="1" class="tbtitle">
  50. <tr bgcolor="#E7E7E7">
  51. <td height="26" colspan="3">重复文档列表:</td>
  52. </tr>
  53. <form name="form2" method="POST" action="article_test_same.php">
  54. <input type='hidden' name='deltype' value='<?php echo $deltype; ?>'>
  55. <input type='hidden' name='dopost' value='delsel'>
  56. <input type='hidden' name='pagesize' value='<?php echo $pagesize; ?>'>
  57. <input type='hidden' name='channelid' value='<?php echo $channelid; ?>'>
  58. <input type='hidden' name='maintable' value='<?php echo $maintable; ?>'>
  59. <input type='hidden' name='titles' value=''>
  60. <tr bgcolor="#F8FBFB" height="26" align="center">
  61. <td width="9%">选择</td>
  62. <td width="10%">重复数量</td>
  63. <td width="81%">文档标题</td>
  64. </tr>
  65. <?php
  66. while($row = $dsql->GetArray())
  67. {
  68. if($row['dd']==1 ) break;
  69. ?>
  70. <tr height="26" align="center" onMouseMove="javascript:this.bgColor='#EFEFEF';" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#ffffff';">
  71. <td><input name="arcTitles" type="checkbox" id="arcTitle" value="<?php echo urlencode($row['title'])?>" class="np"></td>
  72. <td>
  73. <?php
  74. $allarc += $row['dd'];
  75. echo $row['dd'];
  76. ?>
  77. </td>
  78. <td><?php echo $row['title']; ?></td>
  79. </tr>
  80. <?php
  81. }
  82. ?>
  83. <tr bgcolor="#E5F9FF">
  84. <td height="26" colspan="3">
  85. &nbsp;<input type='button' name='bt1' value='全选' onclick='selAll()'>
  86. &nbsp;<input type='button' name='bt2' value='反选' onclick='noSelAll()'>
  87. &nbsp;<input type='button' name='bt3' value='删除' onclick='delArc()'>
  88. (共有 <?php echo $allarc; ?> 篇重复标题的文档)
  89. </td>
  90. </tr>
  91. </form>
  92. </table>
  93. </body>
  94. </html>