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

106 lines
4.4KB

  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" src="../static/web/js/jquery.min.js"></script>
  7. <script language="javascript" src="js/main.js"></script>
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  10. <link rel="stylesheet" href="../static/web/css/admin.css">
  11. <style>
  12. .style1 {
  13. color: #dc3545
  14. }
  15. td {
  16. padding: 2px;
  17. padding-left: 6px;
  18. line-height: 150%;
  19. }
  20. .style2 {
  21. color: #424b51;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  27. <form name="form1" action="mychannel_edit.php" method="post" target="stafrm">
  28. <input type='hidden' name='mid' value='<?php echo $mid?>'>
  29. <input type='hidden' name='maintable' value='<?php echo $channel['maintable']?>'>
  30. <input type='hidden' name='addontable' value='<?php echo $channel['addtable']; ?>'>
  31. <input type='hidden' name='step' value='<?php echo $step?>'>
  32. <input type='hidden' name='dopost' value='modifysearch'>
  33. <tr>
  34. <td height="26" colspan="2" background="../static/web/img/tbg.gif" style="padding-left:10px">
  35. <div style="width:100px;float:right"><a href="mychannel_edit.php?dopost=del&mid=<?php echo $mid; ?>">删除自定义搜索</a></div>
  36. <a href="mychannel_main.php">内容模型管理</a> &gt; 自定义搜索管理(自定义搜索在方便搜索的同时在一定程度上降低了效率,请根据需求定义搜索)
  37. </td>
  38. </tr>
  39. <tr>
  40. <td width="260" height="26">频道ID:</td>
  41. <td height="26"><?php echo $mid; ?></td>
  42. </tr>
  43. <tr>
  44. <td height="26">频道名称:<br></td>
  45. <td height="26"><?php echo $channel['typename']?></td>
  46. </tr>
  47. <?php
  48. if($channel['issystem'] >= 0) {
  49. ?>
  50. <tr>
  51. <td height="26">主表可供自定义搜索的字段<br>
  52. <span class="style2" id="help2">标题、关键词、摘要为默认选项,不用选择 </span>
  53. </td>
  54. <td height="26"><?php echo $mainfields; ?></td>
  55. </tr>
  56. <?php
  57. }
  58. ?>
  59. <tr>
  60. <td height="26">附件表可供自定义搜索的字段:<br>
  61. <span class="style2" id="help4">这里的字段是程序依据字段类型自动选择生成的</span>
  62. </td>
  63. <td><?php echo $addonfields; ?></td>
  64. </tr>
  65. <tr>
  66. <td height="26">自定义搜索结果页模板<br>
  67. <span class="style2" id="help5" style="display:none">只填写文件名,且文件必须在templets/default目录中</span>
  68. </td>
  69. <td><input type="text" name="template" value="<?php echo $template; ?>" style="width:260px"></td>
  70. </tr>
  71. <tr>
  72. <td align="center" colspan="2" class="py-3">
  73. <button type="submit" class="btn btn-success btn-sm">保存</button>
  74. <button type="button" onclick="location='mychannel_main.php';" class="btn btn-success btn-sm">返回</button>
  75. </td>
  76. </tr>
  77. </form>
  78. <tr>
  79. <td height="26" colspan="2" bgcolor="#f8f8f8">
  80. <table width="100%" class="table table-borderless">
  81. <tr>
  82. <td width="70%">结果:</td>
  83. <td width="30%" align="right">
  84. <script language='javascript'>
  85. function ResizeDiv(obj, ty) {
  86. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  87. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  88. }
  89. </script>
  90. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  91. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  92. </td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td colspan="2" id="mtd">
  99. <div id="mdv" style="width:100%;height:300px">
  100. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  101. </div>
  102. </td>
  103. </tr>
  104. </table>
  105. </body>
  106. </html>