国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

96 行
3.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>文档重复检测记录</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <div class="card shadow-sm">
  13. <div class="card-header">文档重复检测记录</div>
  14. <div class="card-body">
  15. <form name="form2" method="POST" action="article_test_same.php">
  16. <input type="hidden" name="deltype" value="<?php echo $deltype;?>">
  17. <input type="hidden" name="dopost" value="delsel">
  18. <input type="hidden" name="pagesize" value="<?php echo $pagesize;?>">
  19. <input type="hidden" name="channelid" value="<?php echo $channelid;?>">
  20. <input type="hidden" name="maintable" value="<?php echo $maintable;?>">
  21. <input type="hidden" name="titles">
  22. <div class="table-responsive">
  23. <table class="table table-borderless">
  24. <thead>
  25. <tr>
  26. <td scope="col">选择</td>
  27. <td scope="col">重复数量</td>
  28. <td scope="col">文档标题</td>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <?php
  33. while($row = $dsql->GetArray())
  34. {
  35. if ($row['dd']==1 ) break;
  36. ?>
  37. <tr>
  38. <td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td>
  39. <td>
  40. <?php
  41. $allarc += $row['dd'];
  42. echo $row['dd'];
  43. ?>
  44. </td>
  45. <td><?php echo $row['title'];?></td>
  46. </tr>
  47. <?php }?>
  48. <tr>
  49. <td colspan="3">
  50. <a href="javascript:selAll();" class="btn btn-success btn-sm">全选</a>
  51. <a href="javascript:noSelAll();" class="btn btn-success btn-sm">反选</a>
  52. <a href="javascript:delArc();" class="btn btn-danger btn-sm">删除</a>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. <script>
  62. function getCheckboxItem() {
  63. var allSel = '';
  64. if (document.form2.arcTitle.value) return document.form2.arcTitle.value;
  65. for (i = 0; i < document.form2.arcTitle.length; i++) {
  66. if (document.form2.arcTitle[i].checked) {
  67. if (allSel == "")
  68. allSel = document.form2.arcTitle[i].value;
  69. else
  70. allSel = allSel + "`" + document.form2.arcTitle[i].value;
  71. }
  72. }
  73. return allSel;
  74. }
  75. function delArc() {
  76. var qstr = getCheckboxItem();
  77. document.form2.titles.value = qstr;
  78. document.form2.submit();
  79. }
  80. function selAll() {
  81. for (i = 0; i < document.form2.arcTitle.length; i++) {
  82. if (!document.form2.arcTitle[i].checked) {
  83. document.form2.arcTitle[i].checked = true;
  84. }
  85. }
  86. }
  87. function noSelAll() {
  88. for (i = 0; i < document.form2.arcTitle.length; i++) {
  89. if (document.form2.arcTitle[i].checked) {
  90. document.form2.arcTitle[i].checked = false;
  91. }
  92. }
  93. }
  94. </script>
  95. </body>
  96. </html>