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

109 lines
4.2KB

  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. }
  14. else
  15. {
  16. document.form2.keywords.value = kw;
  17. }
  18. }
  19. function ReturnValue()
  20. {
  21. if(window.opener.document.<?php echo $f?>.value)
  22. {
  23. window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value;
  24. }
  25. else
  26. {
  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. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  44. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  45. <link href="css/base.css" rel="stylesheet" type="text/css">
  46. </head>
  47. <body background="images/allbg.gif" leftmargin="1" topmargin="1">
  48. <div class="main">
  49. <table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3">
  50. <form name='form1' action="article_keywords_main.php">
  51. <input type='hidden' name='dopost' value='add' />
  52. <tr id="addnew" style="display:none">
  53. <td width="100%" height="24" colspan="2" align="center" bgcolor="#009900">
  54. <table border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  55. <tr>
  56. <td width="60" align="center">关键字:</td>
  57. <td width="140"><input name="keyword" type="text" id="keyword" style="width:130px" /></td>
  58. <td width="40">链接:</td>
  59. <td width="140"><input name="rpurl" type="text" id="rpurl" style="width:130px" /></td>
  60. <td width="40">频率:</td>
  61. <td width="50"><input name="rank" type="text" id="rank" style="width:30px" value="30" /></td>
  62. <td width="80"><input type="submit" name="Submit" value="保存" class="np"></td>
  63. </tr>
  64. </table>
  65. </td>
  66. </tr>
  67. </form>
  68. <form name='form2'>
  69. <tr>
  70. <td width="100%" height="26" colspan="2" background="images/tbg.gif">
  71. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
  72. <tr>
  73. <td width="31%"><strong>选择关键字</strong></td>
  74. <td width="69%" align="right">
  75. <button class="btn btn-success btn-sm" type="button" name="kwa" onClick="AddNewKw()">新增关键字</button>
  76. <button class="btn btn-success btn-sm" type="button" name="kwm" onClick="location='article_keywords_main.php';">关键字管理</button>
  77. </td>
  78. </tr>
  79. </table></td>
  80. </tr>
  81. <tr>
  82. <td bgcolor="#FFFFFF" style="line-height:180%">
  83. {dede:datalist}
  84. <a href='javascript:SelKw("{dede:field.keyword/}")'>{dede:field.keyword/}</a>
  85. {/dede:datalist}
  86. </td>
  87. </tr>
  88. <tr>
  89. <td height="24" bgcolor="#E4FAC7" style="line-height:180%">
  90. <table border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  91. <tr>
  92. <td width="120">已选的关键字:</td>
  93. <td width="320"><input name="keywords" type="text" id="keywords" style="width:300" value="<?php echo $keywords?>"></td>
  94. <td width="93"><button type="button" class="btn btn-success btn-sm" name="Submit" onClick="ReturnValue()"> 选用 </button></td>
  95. </tr>
  96. </table>
  97. </td>
  98. </tr>
  99. <tr align="center">
  100. <td height="24" bgcolor="#F9FCEF">
  101. {dede:pagelist listsize=3/}
  102. </td>
  103. </tr>
  104. </form>
  105. </table>
  106. <div class="tbbottom" style="text-align:right;width:99%" align="left"></div>
  107. </div>
  108. </body>
  109. </html>