Default.aspx
资源名称:totsearch.rar [点击查看]
上传用户:guomengjz
上传日期:2022-06-06
资源大小:726k
文件大小:4k
源码类别:
搜索引擎
开发平台:
C/C++
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApp._Default" %>
- <%@ Register assembly="SearchControls" namespace="SearchControls" 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 id="Head1" runat="server">
- <title id="stitle" runat=server>淘特站内搜索引擎1.0</title>
- <link href="style/pages.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <%
- if (string.IsNullOrEmpty(_keyword)){
- %>
- <form method="get" action="?">
- <p align="center"> </p>
- <p align="center"><a href="/"><img src="images/logo.gif" alt="淘特搜索引擎" width="352" height="66" border="0" /></a></p>
- <p align="center">
- <input name="keyword" type="text" class="input_key" id="key" size="50" maxlength="50" />
- <input type="hidden" name="days" value="0" />
- <input type="hidden" name="sortby" value="1" />
- <input type="hidden" name="categoryid" value="0" />
- <input name="button" type="submit" class="btn_search" id="button" value="搜索一下" />
- </p>
- <p align="center"> </p>
- </form>
- <%
- }
- else{
- %>
- <form method="get" action="?">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="245" height="60"><a href="/"><img src="images/logo.gif" alt="淘特搜索引擎" height="45" border="0" /></a></td>
- <td align="left">日期范围:
- <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) %> />
- 相关度<br />
- <input name="keyword" type="text" class="input_key" id="keyword" value="<%=_keyword %>" size="50" maxlength="50" />
- <input type="hidden" name="categoryid" value="<%=categoryid %>" />
- <input name="button2" type="submit" class="btn_search" id="button2" value="搜索一下" /></td>
- </tr>
- </table>
- </form>
- <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>
- <div class="mainbox">
- <div class="contain">
- <div class="left">
- <asp:Repeater ID="ArticleList" runat="server">
- <ItemTemplate>
- <div class="search_title">
- <a href="<%# ((SearchLib.TotSearch.DataFieldInfo)Container.DataItem).LinkUrl%>" target="_blank"><%# ((SearchLib.TotSearch.DataFieldInfo)Container.DataItem).Title%></a>
- </div>
- <div class="search_desc">
- <%# ((SearchLib.TotSearch.DataFieldInfo)Container.DataItem).Summary%>
- </div>
- <span class="search_url"><%# ((SearchLib.TotSearch.DataFieldInfo)Container.DataItem).LinkUrl%></span>
- <span class="search_date"><%# ((SearchLib.TotSearch.DataFieldInfo)Container.DataItem).ModDate%></span>
- </ItemTemplate>
- </asp:Repeater>
- </div>
- <div class="right">
- <script type="text/javascript"><!--
- google_ad_client = "pub-6519981311832009";
- /* 250x250, 创建于 10-4-23 */
- google_ad_slot = "8598004635";
- google_ad_width = 250;
- google_ad_height = 250;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True"
- GenerateGoToSection="True" GenerateHiddenHyperlinks="False"
- QueryStringParameterName="CurrentPage" OnCommand="pager_Command"
- GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" />
- </form>
- <%}%>
- <p align="center">Powered By <a href="http://www.totcms.com" target="_blank">淘特站内搜索引擎</a></p>
- </body>
- </html>