|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
- <title>修改频道</title>
- <script language="javascript" src="../static/web/js/jquery.min.js"></script>
- <script language="javascript" src="js/main.js"></script>
- <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="../static/web/css/admin.css">
- <style>
- .style1 {
- color: #dc3545
- }
- td {
- padding: 2px;
- padding-left: 6px;
- line-height: 150%;
- }
- .style2 {
- color: #424b51;
- }
- </style>
- </head>
- <body>
- <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
- <form name="form1" action="mychannel_edit.php" method="post" target="stafrm">
- <input type='hidden' name='mid' value='<?php echo $mid?>'>
- <input type='hidden' name='maintable' value='<?php echo $channel['maintable']?>'>
- <input type='hidden' name='addontable' value='<?php echo $channel['addtable']; ?>'>
- <input type='hidden' name='step' value='<?php echo $step?>'>
- <input type='hidden' name='dopost' value='modifysearch'>
- <tr>
- <td height="26" colspan="2" background="../static/web/img/tbg.gif" style="padding-left:10px">
- <div style="width:100px;float:right"><a href="mychannel_edit.php?dopost=del&mid=<?php echo $mid; ?>">删除自定义搜索</a></div>
- <a href="mychannel_main.php">内容模型管理</a> > 自定义搜索管理(自定义搜索在方便搜索的同时在一定程度上降低了效率,请根据需求定义搜索)
- </td>
- </tr>
- <tr>
- <td width="260" height="26">频道ID:</td>
- <td height="26"><?php echo $mid; ?></td>
- </tr>
- <tr>
- <td height="26">频道名称:<br></td>
- <td height="26"><?php echo $channel['typename']?></td>
- </tr>
- <?php
- if($channel['issystem'] >= 0) {
- ?>
- <tr>
- <td height="26">主表可供自定义搜索的字段<br>
- <span class="style2" id="help2">标题、关键词、摘要为默认选项,不用选择 </span>
- </td>
- <td height="26"><?php echo $mainfields; ?></td>
- </tr>
- <?php
- }
- ?>
- <tr>
- <td height="26">附件表可供自定义搜索的字段:<br>
- <span class="style2" id="help4">这里的字段是程序依据字段类型自动选择生成的</span>
- </td>
- <td><?php echo $addonfields; ?></td>
- </tr>
- <tr>
- <td height="26">自定义搜索结果页模板<br>
- <span class="style2" id="help5" style="display:none">只填写文件名,且文件必须在templets/default目录中</span>
- </td>
- <td><input type="text" name="template" value="<?php echo $template; ?>" style="width:260px"></td>
- </tr>
- <tr>
- <td align="center" colspan="2" class="py-3">
- <button type="submit" class="btn btn-success btn-sm">保存</button>
- <button type="button" onclick="location='mychannel_main.php';" class="btn btn-success btn-sm">返回</button>
- </td>
- </tr>
- </form>
- <tr>
- <td height="26" colspan="2" bgcolor="#f8f8f8">
- <table width="100%" class="table table-borderless">
- <tr>
- <td width="70%">结果:</td>
- <td width="30%" align="right">
- <script language='javascript'>
- function ResizeDiv(obj, ty) {
- if (ty == "+") document.all[obj].style.pixelHeight += 50;
- else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
- }
- </script>
- <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
- <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" id="mtd">
- <div id="mdv" style="width:100%;height:300px">
- <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
- </div>
- </td>
- </tr>
- </table>
- </body>
- </html>
|