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

65 řádky
2.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 mb-3">
  14. <div class="card-body">
  15. <input type="text" name="keywords" id="keywords" value="<?php echo $keywords?>" class="admin-input-lg mr-2">
  16. <button type="button" onclick="ReturnValue();" class="btn btn-success btn-sm">选用</button>
  17. <button type="button" onclick="location='article_keywords_main.php';" class="btn btn-success btn-sm">关键词管理</button>
  18. </div>
  19. </div>
  20. <div class="card shadow-sm">
  21. <div class="card-header">文档关键词选择</div>
  22. <div class="card-body">
  23. <form name="form2">
  24. <div class="table-responsive">
  25. <table class="table table-borderless table-hover">
  26. <tbody>
  27. <tr>
  28. <td colspan="2">
  29. {dede:datalist}
  30. <a href="javascript:SelKw('{dede:field.keyword/}')">{dede:field.keyword/}</a>
  31. {/dede:datalist}
  32. </td>
  33. </tr>
  34. </tbody>
  35. </table>
  36. </div>
  37. </form>
  38. {dede:pagelist listsize='6'/}
  39. </div>
  40. </div>
  41. </div>
  42. <script>
  43. function SelKw(kw) {
  44. if (document.form2.keywords.value) {
  45. document.form2.keywords.value += ","+kw;
  46. } else {
  47. document.form2.keywords.value = kw;
  48. }
  49. }
  50. function ReturnValue() {
  51. if (window.opener.document.<?php echo $f?>.value) {
  52. window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value;
  53. } else {
  54. window.opener.document.<?php echo $f?>.value = document.form2.keywords.value;
  55. }
  56. window.close();
  57. }
  58. function showHide(objname) {
  59. var obj = document.getElementById(objname);
  60. if (obj.style.display=="none") obj.style.display = "block";
  61. else obj.style.display="none";
  62. }
  63. </script>
  64. </body>
  65. </html>