<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>自定义搜索管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
		<script src="/static/web/js/jquery.min.js"></script>
		<script src="/static/web/js/bootstrap.min.js"></script>
		<script src="/static/web/js/admin.main.js"></script>
	</head>
	<body>
		<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">
			<table class="table shadow-sm my-3">
				<tr>
					<td colspan="2"><a href="mychannel_main.php">文档模型管理</a> - 自定义搜索管理</td>
				</tr>
				<tr>
					<td width="260">栏目id：</td>
					<td><?php echo $mid;?></td>
				</tr>
				<tr>
					<td>栏目名称：</td>
					<td><?php echo $channel['typename']?></td>
				</tr>
				<?php if ($channel['issystem'] >= 0) {?>
				<tr>
					<td>主表可供自定义搜索的字段：</td>
					<td><?php echo $mainfields;?></td>
				</tr>
				<?php }?>
				<tr>
					<td>附件表可供自定义搜索的字段：</td>
					<td><?php echo $addonfields;?>（字段是程序依据字段类型自动选择生成）</td>
				</tr>
				<tr>
					<td>自定义搜索结果页模板：</td>
					<td>
						<input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg">
						<span>（填写文件名，且文件必须在theme/apps目录）</span>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2">
						<button type="submit" class="btn btn-success btn-sm">保存</button>
						<button type="button" class="btn btn-outline-success btn-sm" onclick="location='mychannel_main.php';">返回</button>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<div class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>