<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>{%$lngpack.sitename%}</title>
<meta name="keywords" content="{%$lngpack.keyword%}" />
<meta name="description" content="{%$lngpack.description%}" />
<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/jquery.Slide.js"></script>
<link href="{%$rootpath%}css/espcms_public.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_v5div.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{%$rootdir%}index.php?ac=public&at=typepuv&tid={%$type.tid%}"></script>
<script type="text/javascript">
	$(window).load(function() {
		$("#clickmenubotton li span").hover(function() {
			$(this).addClass("menuhover");
			$(this).parent().find("ul.subnav").slideDown('fast').show();
			$(this).parent().hover(function() {
			}, function() {
				$(this).parent().find("ul.subnav").fadeOut('fast');
				$(this).parent().find("span").removeClass("menuhover");
			});
		});
	});
</script>
</head>

<body>
{%link file="public/head.html"%}

<div class="espcms_page ">

	{%get name=search class=mid:0,tid:0,att:0,keyword:$keyword,keyname:$keyname%}
	<form name="infosearch" method="post" action="{%$searchlink%}">
	<div class="espcms_member_login_center espcms_formwidth_c">
		<div class="title mb20"><div class="messageicon2"></div><div class="messtitle">搜索框</div></div>

		<div class="espcms_form_group">
			<label for="title" class="control_label16">搜索关键字</label>
			<div class="control_required20">
				<input type="text" name="keyword" class="col5 infoInput" value="{%$para.keyword%}" size="20" maxlength="30" placeholder="请输入搜索关键字" title="请输入搜索关键字" />
			</div>
		</div>
		<div class="espcms_form_group">
			<label for="title" class="control_label16">搜索类型</label>
			<div class="control_required20">
				<select size="1" name="keyname" class="infoInput">
					<option value="title"{%if $para.keyname=='title'%} selected{%/if%}>按内容标题搜索</option>
					<option value="summary"{%if $para.keyname=='summary'%} selected{%/if%}>按简介搜索</option>
					<option value="tsn"{%if $para.keyname=='tsn'%} selected{%/if%}>按编号搜索</option>
				</select>
			</div>
		</div>
		{%if count($type_array)>0%}
		<div class="espcms_form_group">
			<label for="title" class="control_label16">所属分类</label>
			<div class="control_required20">
				<select size="1" name="tid" id="tid" class="infoInput">
					{%forlist from=$type_array key=i%}
					<option value="{%$type_array[i].tid%}" title="{%$type_array[i].typename%}" {%$type_array[i].selected%}>{%if $type_array[i].level>1%}├{%/if%}{%$type_array[i].level|treelist('─')%} {%$type_array[i].typename%}</option>
					{%/forlist%}
				</select>
			</div>
		</div>
		{%/if%}

		{%forlist from=$attr_array key=list%}
		<div class="espcms_form_group">
			<label for="title" class="control_label16">{%$attr_array[list].typename%}</label>
			<div class="control_required20">
				{%if ($attr_array[list].inputtype=='select')%}
				<select size="1" name="attr_array[{%$attr_array[list].attrname%}]" class="infoInput" id="{%$attr_array[list].attrname%}">
					<option value="">{%$ST.botton_select_name%}{%$attr_array[list].typename%}</option>
					{%forlist from=$attr_array[list].attrvalue key=ii%}
					<option {%$attr_array[list].attrvalue[ii].selected%} value="{%$attr_array[list].attrvalue[ii].name%}">{%$attr_array[list].attrvalue[ii].name%}</option>
					{%/forlist%}
				</select>
				{%elseif ($attr_array[list].inputtype=='radio')%}
					{%forlist from=$attr_array[list].attrvalue key=ii%}
					<input type="radio" value="{%$attr_array[list].attrvalue[ii].name%}" class="infoInput" name="attr_array[{%$attr_array[list].attrname%}]" {%if $attr_array[list].attrvalue[ii].selected=='selected'%}checked="checked"{%/if%}/> {%$attr_array[list].attrvalue[ii].name%}&nbsp;
					{%/forlist%}
				{%elseif ($attr_array[list].inputtype=='checkbox')%}
					{%forlist from=$attr_array[list].attrvalue key=ii%}
					<input type="checkbox" value="{%$attr_array[list].attrvalue[ii].name%}" class="infoInput" name="attr_array[{%$attr_array[list].attrname%}][]" {%if $attr_array[list].attrvalue[ii].selected=='selected'%}checked{%/if%}/> {%$attr_array[list].attrvalue[ii].name%}&nbsp;
					{%/forlist%}
				{%else%}
					<input type="text" name="attr_array[{%$attr_array[list].attrname%}]" size="20" id="{%$attr_array[list].attrname%}" value="{%$attr_array[list].attrvalue%}" maxlength="{%$attr_array[list].attrlenther%}" class="infoInput"/>
				{%/if%}
			</div>
		</div>
		{%/forlist%}

		<div class="espcms_form_group">
			<label class="control_label16"></label>
			<div class="control_required20"><input type="submit" id="submit" class="button blue2" value="确认搜索"/></div>
		</div>
	</div>
	</form>
	{%/get%}

	<div class="espcms_page_typename_width">内容搜索结果{%if $keyword%}：{%$keyword%}{%/if%}</div>
	<div class="espcms_page_center_line"></div>

	{%if count($array) > 0%}
	<ul class="espcms_newslist unstyled">
		{%forlist from=$array key=i%}
		<li class="espcms_strlist">
			<dl>
				<dd class="tl"><a title="{%$array[i].title%}" target="_blank" href="{%$array[i].link%}">{%$array[i].ctitle%}</a></dd>
				<dd class="dr">{%$array[i].addtime|espcms_timeformat(3)%}</dd>
			</dl>
		</li>
		{%/forlist%}
	</ul>

	<div class="espcms_page_center_line"></div>
	<div class="espcms_page_botton">
		<div id="pagelist">{%$pagetext%}</div>
	</div>
	<div class="espcms_page_botton">
		<div id="pagination" class="pagination">
			{%$pagebotton%}
		</div>
	</div>
	{%else%}
	<div class="espcms_page_botton">
		<div id="pagination">暂未搜索到相关内容</div>
	</div>
	{%/if%}
</div>

{%link file="public/footer.html"%}
</body>
</html>
