<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="TotCms.Web.search" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!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=utf-8" />
<title id="searchtitle" runat="server">站内搜索</title>
<meta name="description" content="站内搜索" />
<meta name="keywords" content="站内搜索" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/pages.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/commen.js"></script>
<style type="text/css">
.search_title{ line-height:30px;}
.search_title a{ font-size:14px; font-weight:bold; color:Blue; text-decoration:none;}
.search_desc{ margin:5px 0px; line-height:20px;}
.search_url{ line-height:22px; color:Green;}
.search_date{ color:Gray;}
</style>
</head>
<body>
  <div class="container">    
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f5f5f5">
    <tr>
      <td width="1" height="25"></td>
      <td width="491" align="right"><script language="JavaScript" type="text/javascript" src="/js/dates.js"></script></td>
      <td width="261" align="right"><div class="toplist">
        <ul>
          <li style="background:url(/images/t1.jpg) 0px 2px no-repeat"><a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(document.location);return false;">设为首页</a></li>
          <li style="background:url(/images/t2.jpg) 0px 2px no-repeat"><a href="#" class="l1" onclick="window.external.AddFavorite(location.href,document.title);">加入收藏</a ></li>
          <li style="background:url(/images/t3.jpg) 0px 2px no-repeat"><a href="/contact.asp">联系我们</a></li>
        </ul>
      </div></td>
      <td width="3" align="right">&nbsp;</td>
    </tr>
  </table>
	<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#ffffff">
	  <tr>
	    <td width="21%" height="80"><img src="/images/logo.jpg" width="198" height="66" alt="totnetcms" /></td>
	    <td width="79%" ><a href="http://www.totcms.com" target="_blank"><img src="/images/banner.gif" alt="地方信息港解决方案" border="0" align="right" class="brd" /></a></td>
    </tr>
  </table>
  <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
		<tbody>
        <tr>
          <td width="6"><img height="36" alt="" width="6" src="/images/nav_left.gif" /></td>
            <td width="10" background="/images/nav_bg.gif">&nbsp;</td>
          <td background="/images/nav_bg.gif">
            <div class="tab_area">
            <ul>
              <li class="on" id="nav_5_1" onmouseover="javascript:htab( 5 ,1,11);"><a href="/">首 页</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_2" onmouseover="javascript:htab( 5 ,2,11);"><a href="/category/2/index_1.htm">行业资讯</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_3" onmouseover="javascript:htab( 5 ,3,11);"><a href="/category/3/index_1.htm">网站运营</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_4" onmouseover="javascript:htab( 5 ,4,11);"><a href="/category/4/index.htm"> 网络编程</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_5" onmouseover="javascript:htab( 5 ,5,11);"><a href="/category/6/index_1.htm"> 数 据 库</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_6" onmouseover="javascript:htab( 5 ,6,11);"><a href="/category/5/index_1.htm">网页设计</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_7" onmouseover="javascript:htab( 5 ,7,11);"><a href="/category/7/index_1.htm">网络安全</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_8" onmouseover="javascript:htab( 5 ,8,11);"><a href="/category/8/index_1.htm">网站推广</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_9" onmouseover="javascript:htab( 5 ,9,11);"><a href="/category/9/index_1.htm">平面设计</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_10" onmouseover="javascript:htab( 5 ,10,11);"><a href="/category/10/index_1.htm">服 务 器</a> </li>
              <li class="blank"></li>
              <li class="off" id="nav_5_11" onmouseover="javascript:htab( 5 ,11,11);"><a href="/category/11/index_1.htm">电子商务</a> </li>
              <li class="end"></li>
            </ul>
            </div>
          </td>
            <td width="6"><img height="36" alt="" width="6" src="/images/nav_right.gif" /></td>
        </tr>
    </tbody>
	</table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="10" align="center"><img src="/images/subnav_l.gif" width="10" height="42" alt=" " /></td>
      <td align="center" background="/images/subnav_bg.gif">
      <div id="content_5_1" style="DISPLAY: none">            
      </div>
      <div id="content_5_2" style="DISPLAY: none">            
      </div>
      <div id="content_5_3" style="DISPLAY: none">            
      </div>
      <div id="content_5_4" style="DISPLAY: none">            
      </div>
      <div id="content_5_5" style="DISPLAY: none">            
      </div>
      <div id="content_5_6" style="DISPLAY: none">            
      </div>
      <div id="content_5_7" style="DISPLAY: none">            
      </div>
      <div id="content_5_8" style="DISPLAY: none">            
      </div>
      <div id="content_5_9" style="DISPLAY: none">            
      </div>
      <div id="content_5_10" style="DISPLAY: none">            
      </div>
      <div id="content_5_11" style="DISPLAY: none">            
      </div>
      <form method="get" action="?">
    关键字：
    <input name="keyword" type="text" class="input_key" id="key" maxlength="50" value="<%=_keyword %>"  />
    日期范围：
    <select name="days">
      <option value="0" <%=DaysCheck(0) %>>不限</option>
      <option value="7" <%=DaysCheck(7) %>>一周之内</option>
      <option value="30" <%=DaysCheck(30) %>>一月之内</option>
      <option value="365" <%=DaysCheck(365) %>>一年之内</option>
    </select>
    排序：
    <input type="radio" name="sortby" value="1" <%=SortByCheck(1) %> />日期
    <input type="radio" name="sortby" value="2" <%=SortByCheck(2) %> />相关度
    <input name="button" type="submit" class="btn_search" id="button" value=" " />
    </form>
      </td>
      <td width="7"><img src="/images/subnav_r.gif" width="7" height="42" alt=" " /></td>
    </tr>
  </table>    
    <form id="form1" runat="server">
    <div class="linebar">
    共找到相关数据：<asp:Label ID="GetTotalNum" runat="server" Text="Label"></asp:Label>条 用时
    <asp:Label ID="UseTime" runat="server" Text="Label"></asp:Label>秒
    </div>
    <asp:Repeater ID="ArticleList" runat="server">
        <ItemTemplate>
            <div class="search_title">
              <a href="<%# ((TotCms.FrameWork.Db.DataField)Container.DataItem).GetFieldValue("SavePath")%>" target="_blank"><%# ((TotCms.FrameWork.Db.DataField)Container.DataItem).GetFieldValue("Title")%></a>
            </div>
            <div class="search_desc">
            <%# ((TotCms.FrameWork.Db.DataField)Container.DataItem).GetFieldValue("Summary")%>
            </div>
            <span class="search_url"><%# ((TotCms.FrameWork.Db.DataField)Container.DataItem).GetFieldValue("SavePath")%></span>
            <span class="search_date"><%# ((TotCms.FrameWork.Db.DataField)Container.DataItem).GetFieldValue("ModiTime")%></span>
            
         </ItemTemplate>
         </asp:Repeater>
         <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
    </form>
    <%Response.WriteFile("template/root.htm"); %>
   </div>
</body>
</html>
