国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

151 řádky
6.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>标签管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script src="../static/web/js/style.js"></script>
  13. <style>.col-form-label{padding-top:0}</style>
  14. <script>
  15. function checkall(form, prefix, checkall) {
  16. var checkall = checkall ? checkall : 'all';
  17. for (var i = 0; i < form.elements.length; i++) {
  18. var e = form.elements[i];
  19. if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
  20. e.checked = form.elements[checkall].checked;
  21. }
  22. }
  23. }
  24. function UpdateOne(tid) {
  25. location = "tags_main.php?action=update&count=" + document.getElementById('count' + tid).value + "&tid=" + tid;
  26. }
  27. function DeleteOne(tid) {
  28. location = "tags_main.php?action=delete&ids=" + tid;
  29. }
  30. function UpdateKwDes(tid, tag) {
  31. $.get("tags_main.php?action=get_one&tid=" + tid, function(data) {
  32. let rs = JSON.parse(data);
  33. let title = rs.title ? rs.title : "";
  34. let keywords = rs.keywords ? rs.keywords : "";
  35. let description = rs.description ? rs.description : "";
  36. ShowMsg(`
  37. <div class="form-group row">
  38. <label for="iptTitle" class="col-sm-3 col-form-label">标签</label>
  39. <div class="col-sm-9">
  40. <input type="text" name="title" class="form-control" disabled
  41. value="${tag}">
  42. </div>
  43. </div>
  44. <div class="form-group row">
  45. <label for="iptKw" class="col-sm-3 col-form-label">标题</label>
  46. <div class="col-sm-9">
  47. <input type="text" name="title" class="form-control" id="iptTitle"
  48. placeholder="例如:DedeBIZ织梦商业组件" value="${title}">
  49. </div>
  50. </div>
  51. <div class="form-group row">
  52. <label for="iptKw" class="col-sm-3 col-form-label">关键词</label>
  53. <div class="col-sm-9">
  54. <input type="text" name="kw" class="form-control" id="iptKw"
  55. placeholder="例如:DedeBIZ 织梦 Dede商业" value="${keywords}">
  56. </div>
  57. </div>
  58. <div class="form-group row">
  59. <label for="iptDes" class="col-sm-3 col-form-label">描述</label>
  60. <div class="col-sm-9">
  61. <textarea id="iptDes" name="des" class="form-control" row=3
  62. placeholder="例如:国内流行的内容管理系统(CMS)多端全媒体解决方案">${description}</textarea>
  63. </div>
  64. </div>
  65. `, {
  66. footer: `<button type="button" class="btn btn-outline-success btn-sm" onclick="UpdateKwDesDo(${tid}, '~modalID~')">设置</button>`,
  67. });
  68. })
  69. }
  70. function UpdateKwDesDo(tid, mdlID) {
  71. let title = $("#iptTitle").val();
  72. let kw = $("#iptKw").val();
  73. let des = $("#iptDes").val();
  74. $.post("tags_main.php?action=set_one", {
  75. tid: tid,
  76. title: title,
  77. kw: kw,
  78. des: des,
  79. }, function(data) {
  80. let rs = JSON.parse(data);
  81. if (rs.code === 200) {
  82. location.reload();
  83. }
  84. })
  85. }
  86. </script>
  87. </head>
  88. <body>
  89. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  90. <tr bgcolor="#f8f8f8">
  91. <form name="form1" action="tags_main.php?action=fetch" method="post">
  92. <td width="180"><input type="text" name="startaid" placeholder="请输入开始ID" style="width:160px"></td>
  93. <td width="170"><input type="text" name="endaid" placeholder="请输入结束ID" style="width:160px"></td>
  94. <td>
  95. <button name="submit" type="submit" class="btn btn-success btn-sm">获取标签</button>
  96. <a href="makehtml_taglist.php" name="sb" class="btn btn-success btn-sm">生成</a>
  97. </td>
  98. </form>
  99. </tr>
  100. </table>
  101. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3">
  102. <tr>
  103. <td colspan="8" bgcolor="#f8f8f8">标签管理</td>
  104. </tr>
  105. <tr align="center" bgcolor="#fbfce2">
  106. <td width="8%">选择</td>
  107. <td width="5%">id</td>
  108. <td width="30%">标签</td>
  109. <td width="10%"><a href="tags_main.php?tag=<?php echo $tag;?>&orderby=count&orderway=<?php echo $neworderway;?>">点击</a></td>
  110. <td width="10%"><a href="tags_main.php?tag=<?php echo $tag;?>&orderby=total&orderway=<?php echo $neworderway;?>">文档数</a></td>
  111. <td width="10%"><a href="tags_main.php?tag=<?php echo $tag;?>&orderby=addtime&orderway=<?php echo $neworderway;?>">添加时间</a></td>
  112. <td width="10%">更新时间</td>
  113. <td width="22%">操作</td>
  114. </tr>
  115. <form name="form3" action="tags_main.php?action=delete" method="post">
  116. {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'}
  117. <?php
  118. $fields['addtime'] = GetDateMk($fields['addtime']);
  119. $fields['uptime'] = GetDateMk($fields['uptime']);
  120. $fields['tag'] = dede_htmlspecialchars($fields['tag']);
  121. ?>
  122. <tr align="center" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';">
  123. <td><input type="checkbox" name="ids[]" value="<?php echo $fields['id'];?>"></td>
  124. <td>{dede:field.id/}</td>
  125. <td><a href="../apps/tags.php?/<?php echo $fields['id'];?>/" target="_blank">{dede:field.tag/}</a></td>
  126. <td><input type="text" value="<?php echo $fields['count'];?>" id="count<?php echo $fields['id'];?>" size='5'></td>
  127. <td><?php echo $fields['total'];?></td>
  128. <td><?php echo $fields['addtime'];?></td>
  129. <td><?php echo $fields['uptime'];?></td>
  130. <td>
  131. <a href='javascript:UpdateKwDes(<?php echo $fields['id'];?>,"<?php echo $fields['tag'];?>");' class="btn btn-success btn-sm">设置</a>
  132. <a href="javascript:UpdateOne(<?php echo $fields['id'];?>);" class="btn btn-success btn-sm">更新</a>
  133. <a href="makehtml_taglist.php?tagid=<?php echo $fields['id'];?>" class="btn btn-success btn-sm">生成</a>
  134. <a href="javascript:DeleteOne(<?php echo $fields['id'];?>);" class="btn btn-success btn-sm">删除</a>
  135. </td>
  136. </tr>
  137. {/dede:datalist}
  138. <tr>
  139. <td colspan="8">
  140. <label class="mr-2"><input type="checkbox" onclick="checkall(this.form,'ids')" name="all"> 全选</label>
  141. <button type="button" onclick="document.form3.submit()" class="btn btn-danger btn-sm">删除</button>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td colspan="8" bgcolor="#f8f8f8" align="center" class="py-2">{dede:pagelist/}</td>
  146. </tr>
  147. </form>
  148. </table>
  149. </body>
  150. </html>