<!--#include file="_header.html" -->
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/search.js"></script>
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/calendar.js"></script>
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/common.js"></script>
<div style="clear:both"></div>
<!--{if(string.Empty == isPostBack || null == isPostBack)}-->
<script>
// 检查
var ShowTime=function(objchk,objtime){	
if($(objchk))
{
	if($(objchk).checked)
	{
		$(objtime).style.display='';
	}
	else
	{
        $(objtime).style.display='none';
	}
}
}
</script>
<div class="mainbox">
	<div class="notice">
		<span>
			<!--#include file="_nav.html"--></span>
	</div>
</div>
<div style="clear:both"></div>
<br />
<div class="mainbox border">
	<div class="tabtitle">
		<div id="tabgroup_bot">
			<p class="tabgroup_on">按作者搜索</p>
			<p class="tabgroup_on">按标题搜索</p>
			<p class="tabgroup_on">按内容搜索</p>
		</div>
		<div id="tabgroupbody">
			<!--按作者-->
			<dl>
				<form action="search.aspx" method="get" style="display: inline;" ID="Form1">
					<input name="refurl" type="hidden" value="search.aspx" /> <input type="hidden" value="1" name="isPostBack" />
					<input type="hidden" name="keywordin" value="author" />&nbsp;&nbsp;关键字：<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)"
						onMouseOut="IEvent('mouseout',this)" name="keyword" maxlength="12" style="width:200" />
					&nbsp;&nbsp;&nbsp;&nbsp;
					<select name="boardid" style="border: 1px solid #999999;">
						<option value="0" checked>选取所有版面</option>
						<!--#include file="_board_jump_list.html"-->
					</select>
					<br />
					<br />
					<input type="checkbox" name="InTime" id="InTime1" onclick="ShowTime('InTime1','IsShowTime1')"
						value="1" style="border: 0px; vertical-align: bottom !important; vertical-align: text-bottom;margin-left:30px;" /><label for="InTime1">选择时间段</label>
					<span id="IsShowTime1" style="display:none"><br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从&nbsp;<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"  name="frmTime" readonly="readonly" style="width:80" title="点击打开日期控件" onclick="javascript:calendar.setHook(this)" value="<%=System.DateTime.Now.ToString("yyyy")%>-<%=int.Parse(System.DateTime.Now.Month.ToString())%>-<%=System.DateTime.Now.Day.ToString()%>"/>&nbsp;到&nbsp;<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"   name="toTime" readonly="readonly" style="width:80" title="点击打开日期控件" onclick="javascript:calendar.setHook(this)" value="<%=System.DateTime.Now.ToString("yyyy")%>-<%=System.DateTime.Now.Month.ToString()%>-<%=System.DateTime.Now.Day.ToString()%>" />	
			</span><br />
					<br />
					<input type="submit" value="按作者搜索" name="submit" class="button_off" style="margin-left:50px;"
						onmouseover="this.className='button_on'" onmouseout="this.className='button_off'" />
					<br />
					<br />
				</form>
			</dl>
			<!--按标题-->
			<dl>
				<form action="search.aspx" method="get" style="display: inline;" ID="Form3">
					<input name="refurl" type="hidden" value="search.aspx" /> <input type="hidden" value="1" name="isPostBack" />
					<input type="hidden" name="keywordin" value="title" />&nbsp;&nbsp;关键字：<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)"
						onMouseOut="IEvent('mouseout',this)" name="keyword" maxlength="12" style="width:200" />
					&nbsp;&nbsp;&nbsp;&nbsp;
					<select name="boardid" style="border: 1px solid #999999;">
						<option value="0" checked>选取所有版面</option>
						<!--#include file="_board_jump_list.html"-->
					</select>
					<br />
					<br />
					<input type="checkbox" name="InTime" id="InTime2" onclick="ShowTime('InTime2','IsShowTime2')"
						value="1" style="border: 0px; vertical-align: bottom !important; vertical-align: text-bottom;margin-left:30px;" /><label for="InTime2">选择时间段</label>
					<span id="IsShowTime2" style="display:none"><br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从&nbsp;<input  onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"  name="frmTime" readonly="readonly" style="width:80" title="点击打开日期控件" onclick="javascript:calendar.setHook(this)" value="<%=System.DateTime.Now.ToString("yyyy")%>-<%=int.Parse(System.DateTime.Now.Month.ToString())%>-<%=System.DateTime.Now.Day.ToString()%>" />&nbsp;到&nbsp;<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"  name="toTime" readonly="readonly" style="width:80" title="点击打开日期控件" onclick="javascript:calendar.setHook(this)" value="<%=System.DateTime.Now.ToString("yyyy")%>-<%=System.DateTime.Now.Month.ToString()%>-<%=System.DateTime.Now.Day.ToString()%>" />	
			</span>
					<br />
					<br />
					<input type="submit" value="按标题搜索" style="margin-left:50px;" name="submit" class="button_off"
						onmouseover="this.className='button_on'" onmouseout="this.className='button_off'" />
					<br />
					<br />
				</form>
			</dl>
			<!--按内容-->
			<dl>
				<form action="search.aspx" method="get" style="display: inline;" ID="Form4">
					<input name="refurl" type="hidden" value="search.aspx" /> <input type="hidden" value="1" name="isPostBack" />
					<input type="hidden" name="keywordin" value="content" />&nbsp;&nbsp;关键字：<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)"
						onMouseOut="IEvent('mouseout',this)" name="keyword" maxlength="12" style="width:200" />
					&nbsp;&nbsp;&nbsp;&nbsp;
					<select name="boardid" style="border: 1px solid #999999;">
						<option value="0" checked>选取所有版面</option>
						<!--#include file="_board_jump_list.html"-->
					</select>
					<br />
					<br />
					<input type="checkbox" name="InTime" id="InTime3" onclick="javascript:ShowTime('InTime3','IsShowTime3')"
						value="1" style="border: 0px; vertical-align: bottom !important; vertical-align: text-bottom;margin-left:30px;" /><label for="InTime3">选择时间段</label>
					<span id="IsShowTime3" style="display:none">
					<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从&nbsp;<input  onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"  name="frmTime" readonly="readonly" style="width:80" title="点击打开日期控件" onclick="javascript:calendar.setHook(this)" value="<%=System.DateTime.Now.ToString("yyyy")%>-<%=int.Parse(System.DateTime.Now.Month.ToString())%>-<%=System.DateTime.Now.Day.ToString()%>" />&nbsp;到&nbsp;<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this);" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"  name="toTime" readonly="readonly" style="width:80" title="点击打开日期控件" onclick="javascript:calendar.setHook(this)" value="<%=System.DateTime.Now.ToString("yyyy")%>-<%=System.DateTime.Now.Month.ToString()%>-<%=System.DateTime.Now.Day.ToString()%>" />	
			</span>
					<br />
					<br />
					<input type="submit" value="按内容搜索" name="submit" class="button_off" style="margin-left:50px;"
						onmouseover="this.className='button_on'" onmouseout="this.className='button_off'" />
					<br />
					<br />
				</form>
			</dl>
		</div>
	</div>
</div>
<br />
<script language="javascript" type="text/javascript">
			//搜索切换
			var new1 = new NewsSpanBar();
new1.f=1;
new1.titleid = "tabgroup_bot";
new1.bodyid = "tabgroupbody";
new1.class_hiton = "tabgroup_on";
new1.class_hitno = "tabgroup";
new1.load();

</script>
<br />
<br />
<!--{endif}-->
<!--{if("1" == isPostBack && Get("GroupTopicList")==string.Empty)}-->
<br />
<table class="tablebox border" cellspacing="0" cellpadding="0" border="0" ID="Table7">
	<tr height="22">
		<th colspan="5">
			本次共找到约&nbsp;<font color="red"><b><%=_TplPager._total.ToString()%></b></font>&nbsp;条相关记录关键字。<%=bbslist%></th>
	</tr>
</table>
<table class="tablebox border" ID="Table2">
	<tr>
		<td>
			<!--{foreach (System.Data.DataRow dr in drs)}-->
			<div style="float:left; margin: 5px;">
				&nbsp;→&nbsp;<a href="topic.aspx?topicid=<%=dr["id"].ToString()%>" target="_blank" title="<%=dr["title"].ToString()%>">
					<font style="font-size:15px;">
						<%=dr["title"].ToString()%>
					</font></a>
				<br />
				&nbsp;&nbsp; <font color="green">作者：<a href="user_info.aspx?name=<%=dr["username"].ToString()%>" target="_blank"><font color="green"><%=dr["username"].ToString()%></font></a>&nbsp;&nbsp; 
					浏览：<%=dr["hits"].ToString()%>&nbsp;&nbsp; 回复：<%=dr["child"].ToString()%>&nbsp;&nbsp;→ 
					&nbsp;&nbsp;<a href="board.aspx?boardid=<%=dr["boardid"].ToString()%>" target="_blank"><font color="green"><%=dr["boardtype"].ToString()%></font></a>
				</font><font color="gray">
					<%=dr["addtime"].ToString()%>
					&nbsp;&nbsp;</font>
				<hr style="border-top:1px #B3B3B3 dashed;border-bottom:0px;height:0px;width:98%;" />
				<br />
			</div>
			<div style="clear:both"></div>
			<!--{endforeach}-->
		</td>
	</tr>
</table>
<br />
<table class="tablebox border" ID="Table5">
	<tr>
		<td><!--#include file="_temppager.htm"--></td>
	</tr>
</table>
<!--{endif}-->
<!--{if("1"==isPostBack && Get("GroupTopicList")=="GroupTopicList")}-->
<br />
<!--<%
		System.Data.DataTable dt = new Dvbbs.bbs.Entity.group.GroupTopic().GetGroupTopicList(conn,_TplPager,BoardID,KeyWordIn,SearchKeyWord,1);%>-->
<table class="tablebox border" cellspacing="0" cellpadding="0" border="0" ID="Table3">
	<tr height="22">
		<th colspan="5">
			本次共找到约&nbsp;<font color="#ff9966"><%=_TplPager._total.ToString()%></font>&nbsp;条相关记录关键字&nbsp;<font color="#ff9966"><%=_keyword%></font>&nbsp;的相关搜索</span>
		</th>
	</tr>
</table>
<br />
<table class="tablebox border" ID="Table4">
	<tr>
		<td>
			<!--<% 
		for(int k=0;k<dt.Rows.Count;k++)
		{%>-->
			<div style="float:left; margin: 5px;" class="padding">
				&nbsp;→&nbsp;<a href="my_group_topic.aspx?TopicID=<%=dt.Rows[k]["TopicID"]%>"><%=dt.Rows[k]["Title"]%>
				</a>
				<br />
				<font color="green">作者：<a href="user_info.aspx?name=<%=dt.Rows[k]["PostUserName"].ToString()%>" target="_blank"><font color="green"><%=dt.Rows[k]["PostUserName"].ToString()%></font></a>&nbsp;&nbsp; 
					浏览：<%=dt.Rows[k]["hits"].ToString()%>&nbsp;&nbsp; 回复：<%=dt.Rows[k]["Child"].ToString()%>&nbsp;&nbsp;→
				</font><font color="gray">
					<%=dt.Rows[k]["DateAndTime"].ToString()%>
					&nbsp;&nbsp;</font>
				<hr style="border-top:1px #B3B3B3 dashed;border-bottom:0px;height:0px;width:98%;" />
			</div>
			<!--<%
			}
			%>-->
		</td>
	</tr>
</table>
<br />
<table class="tablebox border" ID="Table6">
	<tr>
		<td><!--#include file="_temppager.htm"--></td>
	</tr>
</table>
<!--{endif}-->
<!--#include file="_footer.html" -->