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

98 行
3.1KB

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