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

article_keywords_select.htm 3.8KB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 language="javascript">
  11. //获得选中文件的文件名
  12. function SelKw(kw)
  13. {
  14. if(document.form2.keywords.value)
  15. {
  16. document.form2.keywords.value += ","+kw;
  17. } else {
  18. document.form2.keywords.value = kw;
  19. }
  20. }
  21. function ReturnValue()
  22. {
  23. if(window.opener.document.<?php echo $f?>.value)
  24. {
  25. window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value;
  26. } else {
  27. window.opener.document.<?php echo $f?>.value = document.form2.keywords.value;
  28. }
  29. //window.opener=true; //firefox出错
  30. window.close();
  31. }
  32. function showHide(objname)
  33. {
  34. var obj = document.getElementById(objname);
  35. if(obj.style.display=="none") obj.style.display = "block";
  36. else obj.style.display="none";
  37. }
  38. function AddNewKw()
  39. {
  40. showHide("addnew");
  41. }
  42. </script>
  43. </head>
  44. <body>
  45. <div class="main">
  46. <table width="100%" align="center" cellpadding="1" cellspacing="1" class="table maintable mt-3 mb-3">
  47. <form name="form1" action="article_keywords_main.php">
  48. <input type="hidden" name="dopost" value="add">
  49. <tr id="addnew" style="display:none">
  50. <td height="26" align="center" colspan="2" style="border-top:0">
  51. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  52. <tr>
  53. <td width="170"><input name="keyword" type="text" id="keyword" placeholder="请输入关键词" style="width:160px"></td>
  54. <td width="170"><input name="rpurl" type="text" id="rpurl" placeholder="请输入链接" style="width:160px"></td>
  55. <td width="170"><input name="rank" type="text" id="rank" placeholder="请输入频率" style="width:160px"></td>
  56. <td><input type="submit" name="Submit" value="保存" class="btn btn-success btn-sm"></td>
  57. </tr>
  58. </table>
  59. </td>
  60. </tr>
  61. </form>
  62. <form name="form2">
  63. <tr>
  64. <td width="100%" height="26" colspan="2" background="../static/web/img/tbg.gif">
  65. <table width="100%" cellpadding="0" cellspacing="0" class="table table-borderless">
  66. <tr>
  67. <td width="30%">选择关键词</td>
  68. <td width="70%" align="right">
  69. <button class="btn btn-success btn-sm" type="button" name="kwa" onClick="AddNewKw()">新增关键词</button>
  70. <button class="btn btn-success btn-sm" type="button" name="kwm" onClick="location='article_keywords_main.php';">关键词管理</button>
  71. </td>
  72. </tr>
  73. </table>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td colspan="2">
  78. {dede:datalist empty='<center>暂无内容</center>'}
  79. <a href="javascript:SelKw('{dede:field.keyword/}')">{dede:field.keyword/}</a>
  80. {/dede:datalist}
  81. </td>
  82. </tr>
  83. <tr>
  84. <td height="26" colspan="2">
  85. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  86. <tr>
  87. <td width="270"><input name="keywords" type="text" id="keywords" value="<?php echo $keywords?>" placeholder="请输入关键词" style="width:260px"></td>
  88. <td><button type="button" class="btn btn-success btn-sm" name="Submit" onClick="ReturnValue()">选用</button></td>
  89. </tr>
  90. </table>
  91. </td>
  92. </tr>
  93. <tr align="center">
  94. <td height="36" bgcolor="#f8f8f8" colspan="2">{dede:pagelist listsize='6'/}</td>
  95. </tr>
  96. </form>
  97. </table>
  98. </div>
  99. </body>
  100. </html>