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

149 lines
5.6KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>tags管理</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css" />
  10. <script language="javascript">
  11. function checkall(form, prefix, checkall) {
  12. var checkall = checkall ? checkall : 'all';
  13. for (var i = 0; i < form.elements.length; i++) {
  14. var e = form.elements[i];
  15. if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
  16. e.checked = form.elements[checkall].checked;
  17. }
  18. }
  19. }
  20. function UpdateOne(tid) {
  21. location = "tags_main.php?action=update&count=" + document.getElementById('count' + tid).value + "&tid=" + tid;
  22. }
  23. function DeleteOne(tid) {
  24. location = "tags_main.php?action=delete&ids=" + tid;
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <div class="bodytitle mt-3">
  30. <div class="bodytitleleft"></div>
  31. <div class="bodytitletxt" style="padding-left:10px;"><a href="tags_main.php">Tags标签管理</a></div>
  32. </div>
  33. <div class="main">
  34. <form name='form1' action="tags_main.php?action=fetch" method="post" style="margin-bottom:6px;">
  35. <table width="98%" border="0" cellspacing="1" align="center" class="table maintable" style="background:#CFCFCF;">
  36. <tr>
  37. <td height="20" align="left" bgcolor="#F0FBBD" background="images/wbg.gif"
  38. style="padding-left:10px;"><strong>提取Tag</strong></td>
  39. </tr>
  40. <tr>
  41. <td height="30" align="center" bgcolor="#Ffffff">
  42. 开始id:
  43. <input type="text" name="startaid" />
  44. 结束id:
  45. <input type="text" name="endaid" />
  46. &nbsp;
  47. <button name="submit" type="submit" class="btn btn-secondary">获取Tags</button>
  48. <small>(tag以文档关键词为准)</small>
  49. </td>
  50. </tr>
  51. </table>
  52. </form>
  53. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered"
  54. style="background:#CFCFCF;">
  55. <tr>
  56. <td height="20" colspan="7" bgcolor="#F0F0F0">
  57. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-borderless">
  58. <tr>
  59. <td align="left" style="padding-left:10px;"><strong>Tag维护</strong></td>
  60. <form name='form2' action="tags_main.php">
  61. <td width="40%" align="right">
  62. 搜索:
  63. <input type='text' name='tag' size='10' value="<?php echo $tag;?>">
  64. <button type='submit' name='sb' class="btn btn-secondary btn-sm">确定</button>
  65. &nbsp; <a href="makehtml_taglist.php" name='sb' class="btn btn-secondary btn-sm">更新Tag HTML</a>
  66. </td>
  67. </form>
  68. </tr>
  69. </table>
  70. </td>
  71. </tr>
  72. <tr align="center" bgcolor="#FBFCE2" height="26">
  73. <td width="5%">删</td>
  74. <td width="20%">标签</td>
  75. <td width="10%"><a
  76. href="tags_main.php?tag=<?php echo $tag;?>&orderby=count&orderway=<?php echo $neworderway;?>"><u>点击</u></a>
  77. </td>
  78. <td width="10%"><a
  79. href="tags_main.php?tag=<?php echo $tag;?>&orderby=total&orderway=<?php echo $neworderway;?>"><u>文档数</u></a>
  80. </td>
  81. <td width="15%"><a
  82. href="tags_main.php?tag=<?php echo $tag;?>&orderby=addtime&orderway=<?php echo $neworderway;?>"><u>添加时间</u></a>
  83. </td>
  84. <td width="15%">更新时间</td>
  85. <td width="20%">操作</td>
  86. </tr>
  87. <form name='form3' action="tags_main.php?action=delete" method="post">
  88. {dede:datalist}
  89. <?php
  90. $fields['addtime'] = GetDateMk($fields['addtime']);
  91. $fields['uptime'] = GetDateMk($fields['uptime']);
  92. $fields['tag'] = dede_htmlspecialchars($fields['tag']);
  93. ?>
  94. <tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  95. onMouseOut="javascript:this.bgColor='#FFFFFF';">
  96. <td height="24">
  97. <input type="checkbox" name="ids[]" value="<?php echo $fields['id']; ?>" class='np' />
  98. </td>
  99. <td>
  100. <a href="../tags.php?/<?php echo urlencode($fields['tag']); ?>/" target="_blank">{dede:field.tag
  101. /}</a>
  102. </td>
  103. <td>
  104. <input type='text' value='<?php echo $fields['count']; ?>'
  105. id='count<?php echo $fields['id']; ?>' size='5' />
  106. </td>
  107. <td>
  108. <?php echo $fields['total']; ?>
  109. </td>
  110. <td>
  111. <?php echo $fields['addtime']; ?>
  112. </td>
  113. <td>
  114. <?php echo $fields['uptime']; ?>
  115. </td>
  116. <td>
  117. <a href='javascript:UpdateOne(<?php echo $fields['id']; ?>);' class="btn btn-secondary btn-sm">更新</a>
  118. <a href='makehtml_taglist.php?tid=<?php echo $fields['id'];?>' class="btn btn-secondary btn-sm">生成HTML</a>
  119. <a href='javascript:DeleteOne(<?php echo $fields['id']; ?>);' class="btn btn-secondary btn-sm">删</a>
  120. </td>
  121. </tr>
  122. {/dede:datalist}
  123. <tr bgcolor="#F0FBBD">
  124. <td align="center" bgcolor="#F8FEE0" height="28">
  125. <label>
  126. <input type="checkbox" onclick="checkall(this.form, 'ids')" name="all" class="np" />
  127. <br />全选
  128. </label>
  129. </td>
  130. <td height="28" colspan="7" align="center" bgcolor="#F8FEE0">
  131. {dede:pagelist /}
  132. </td>
  133. </tr>
  134. </form>
  135. <tr align="center" bgcolor="#FAFDF0">
  136. <td height="40" colspan="8">
  137. <button type='button' onclick="document.form3.submit()" class="btn btn-secondary">删除所选</button>
  138. </td>
  139. </tr>
  140. </table>
  141. </div>
  142. </body>
  143. </html>