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