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

95 lines
3.1KB

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