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

107 lines
4.2KB

  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: #424b51;
  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 height="26" colspan="2" background="../static/web/img/tbg.gif" style="padding-left:10px">
  36. <div style="width:100px;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" height="26">频道ID:</td>
  42. <td height="26"><?php echo $mid; ?></td>
  43. </tr>
  44. <tr>
  45. <td height="26">频道名称:<br></td>
  46. <td height="26"><?php echo $channel['typename']?></td>
  47. </tr>
  48. <?php
  49. if($channel['issystem'] >= 0) {
  50. ?>
  51. <tr>
  52. <td height="26">主表可供自定义搜索的字段<br>
  53. <span class="style2" id="help2">标题、关键词、摘要为默认选项,不用选择 </span>
  54. </td>
  55. <td height="26"><?php echo $mainfields; ?></td>
  56. </tr>
  57. <?php
  58. }
  59. ?>
  60. <tr>
  61. <td height="26">附件表可供自定义搜索的字段:<br>
  62. <span class="style2" id="help4">这里的字段是程序依据字段类型自动选择生成的</span>
  63. </td>
  64. <td><?php echo $addonfields; ?></td>
  65. </tr>
  66. <tr>
  67. <td height="26">自定义搜索结果页模板<br>
  68. <span class="style2" id="help5" style="display:none">只填写文件名,且文件必须在templets/default目录中</span>
  69. </td>
  70. <td><input type="text" name="template" value="<?php echo $template; ?>" style="width:260px"></td>
  71. </tr>
  72. <tr>
  73. <td align="center" colspan="2" class="py-3">
  74. <button type="submit" class="btn btn-success btn-sm">保存</button>
  75. <button type="button" onclick="location='mychannel_main.php';" class="btn btn-success btn-sm">返回</button>
  76. </td>
  77. </tr>
  78. </form>
  79. <tr>
  80. <td height="26" colspan="2" bgcolor="#f8f8f8">
  81. <table width="100%" class="table table-borderless">
  82. <tr>
  83. <td width="70%">结果:</td>
  84. <td width="30%" align="right">
  85. <script>
  86. function ResizeDiv(obj, ty) {
  87. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  88. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  89. }
  90. </script>
  91. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  92. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  93. </td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td colspan="2" id="mtd">
  100. <div id="mdv" style="width:100%;height:360px">
  101. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  102. </div>
  103. </td>
  104. </tr>
  105. </table>
  106. </body>
  107. </html>