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

104 lines
4.0KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>关键词管理</title>
  6. <script language="javascript">
  7. //获得选中文件的文件名
  8. function SelKw(kw)
  9. {
  10. if(document.form2.keywords.value)
  11. {
  12. document.form2.keywords.value += ","+kw;
  13. } else {
  14. document.form2.keywords.value = kw;
  15. }
  16. }
  17. function ReturnValue()
  18. {
  19. if(window.opener.document.<?php echo $f?>.value)
  20. {
  21. window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value;
  22. } else {
  23. window.opener.document.<?php echo $f?>.value = document.form2.keywords.value;
  24. }
  25. //window.opener=true; //firefox出错
  26. window.close();
  27. }
  28. function showHide(objname)
  29. {
  30. var obj = document.getElementById(objname);
  31. if(obj.style.display=="none") obj.style.display = "block";
  32. else obj.style.display="none";
  33. }
  34. function AddNewKw()
  35. {
  36. showHide("addnew");
  37. }
  38. </script>
  39. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  40. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  41. <link rel="stylesheet" href="../static/web/css/admin.css">
  42. </head>
  43. <body>
  44. <div class="main">
  45. <table width="100%" align="center" cellpadding="1" cellspacing="1" class="table maintable mt-3 mb-3">
  46. <form name='form1' action="article_keywords_main.php">
  47. <input type='hidden' name='dopost' value='add'>
  48. <tr id="addnew" style="display:none">
  49. <td width="100%" height="26" colspan="2" align="center" bgcolor="#009900">
  50. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  51. <tr>
  52. <td width="90" align="center">关键词:</td>
  53. <td width="270"><input name="keyword" type="text" id="keyword" style="width:260px"></td>
  54. <td width="60">链接:</td>
  55. <td width="270"><input name="rpurl" type="text" id="rpurl" style="width:260px"></td>
  56. <td width="60">频率:</td>
  57. <td width="70"><input name="rank" type="text" id="rank" style="width:60px"></td>
  58. <td><input type="submit" name="Submit" value="保存" class="np"></td>
  59. </tr>
  60. </table>
  61. </td>
  62. </tr>
  63. </form>
  64. <form name='form2'>
  65. <tr>
  66. <td width="100%" height="26" colspan="2" background="../static/web/img/tbg.gif">
  67. <table width="100%" cellpadding="0" cellspacing="0" class="table table-borderless">
  68. <tr>
  69. <td width="31%">选择关键词</td>
  70. <td width="69%" align="right">
  71. <button class="btn btn-success btn-sm" type="button" name="kwa" onClick="AddNewKw()">新增关键词</button>
  72. <button class="btn btn-success btn-sm" type="button" name="kwm" onClick="location='article_keywords_main.php';">关键词管理</button>
  73. </td>
  74. </tr>
  75. </table>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>
  80. {dede:datalist empty='<center>暂无内容</center>'}
  81. <a href='javascript:SelKw("{dede:field.keyword/}")'>{dede:field.keyword/}</a>
  82. {/dede:datalist}
  83. </td>
  84. </tr>
  85. <tr>
  86. <td height="26" bgcolor="#E4FAC7" style="line-height:180%">
  87. <table cellspacing="0" cellpadding="0" class="table table-borderless">
  88. <tr>
  89. <td width="260">已选的关键词:</td>
  90. <td width="320"><input name="keywords" type="text" id="keywords" style="width:300px" value="<?php echo $keywords?>"></td>
  91. <td width="93"><button type="button" class="btn btn-success btn-sm" name="Submit" onClick="ReturnValue()"> 选用 </button></td>
  92. </tr>
  93. </table>
  94. </td>
  95. </tr>
  96. <tr align="center">
  97. <td height="36" bgcolor="#f8f8f8">{dede:pagelist listsize='6'/}</td>
  98. </tr>
  99. </form>
  100. </table>
  101. <div class="tbbottom" style="text-align:right;width:98%" align="left"></div>
  102. </div>
  103. </body>
  104. </html>