?? search.aspx
字號:
<%@ Page language="c#" Codebehind="search.aspx.cs" AutoEventWireup="false" Inherits="AspNetNews.search" %>
<HTML>
<HEAD>
<!-- #include file="inc/html_head.inc" -->
<SCRIPT language="javascript" src="jscript/dateinput.js" type="text/javascript"></SCRIPT>
<META content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<BODY>
<TABLE class="twidth" cellspacing="0" cellpadding="0" width="760" align="center">
<TR>
<TD align="center">
<!-- #include file="inc/head.inc" -->
<TABLE id="navsub" cellspacing="0" cellpadding="0" align="center">
<TR>
<TD class="l"></TD>
<TD class="m">
<TABLE cellspacing="0" cellpadding="0" width="95%" align="center">
<TR>
<TD>
<A title="返回首頁" href="index.aspx">首頁</A> → 新聞搜索
</TD>
</TR>
</TABLE>
</TD>
<TD class="r"></TD>
</TR>
</TABLE>
<TABLE id="middle" cellspacing="0" cellpadding="0" width="100%" align="center">
<TR valign="top">
<TD width="200">
<TABLE class="lframe" cellspacing="0" cellpadding="0" width="95%">
<TR>
<TD class="tl"></TD>
<TD class="tm"><SPAN class="tt">熱門新聞</SPAN></TD>
<TD class="tr"></TD>
</TR>
</TABLE>
<TABLE class="lframe" cellspacing="0" cellpadding="0" width="95%">
<TR>
<TD class="ml"></TD>
<TD class="mm">
<!-- #include file="Controls/hitslist.ascx" -->
</TD>
<TD class="mr"></TD>
</TR>
</TABLE>
<TABLE class="lframe" cellspacing="0" cellpadding="0" width="95%">
<TR>
<TD class="bl"></TD>
<TD class="bm"> </TD>
<TD class="br"></TD>
</TR>
</TABLE>
<TABLE class="lframe" cellspacing="0" cellpadding="0" width="95%">
<TR>
<TD class="tl"></TD>
<TD class="tm"><SPAN class="tt">本周熱門新聞</SPAN></TD>
<TD class="tr"></TD>
</TR>
</TABLE>
<TABLE class="lframe" cellspacing="0" cellpadding="0" width="95%">
<TR>
<TD class="ml"></TD>
<TD class="mm">
<!-- #include file="Controls/weekhitslist.ascx" -->
</TD>
<TD class="mr"></TD>
</TR>
</TABLE>
<TABLE class="lframe" cellspacing="0" cellpadding="0" width="95%">
<TR>
<TD class="bl"></TD>
<TD class="bm"> </TD>
<TD class="br"></TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE class="mframe" cellspacing="0" cellpadding="0" width="100%">
<TR>
<TD class="tl"></TD>
<TD class="tm">
<TABLE cellspacing="0" cellpadding="0" width="100%">
<TR>
<TD width="85%"><SPAN class="tt"><%= ArticleSearch %></SPAN></TD>
</TR>
</TABLE>
</TD>
<TD class="tr"></TD>
</TR>
</TABLE>
<TABLE class="mframe" cellspacing="0" cellpadding="0" width="100%">
<TR>
<TD class="ml"></TD>
<TD class="mm">
<asp:DataList ID="NewsList" runat="server" HorizontalAlign="Center" Width="100%">
<itemtemplate>
<TABLE class="summary-title" cellpadding="0" cellspacing="0" height="50" width="96%" align="center">
<TR>
<TD>
<UL class="nl">
<LI>
<A title='<%# DataBinder.Eval(Container.DataItem,"Title") %>' href='shownews.aspx?newsid=<%# DataBinder.Eval(Container.DataItem,"Articleid") %>' target="_blank">
<STRONG>
<%# Format(DataBinder.Eval(Container.DataItem,"Title").ToString(),32,(DateTime)(DataBinder.Eval(Container.DataItem,"DateTime"))) %>
</STRONG></A>
</LI>
</UL>
</TD>
</TR>
</TABLE>
<TABLE cellpadding="0" cellspacing="0" height="50" width="96%" align="center">
<TR>
<TD><%# HeighLight(DataBinder.Eval(Container.DataItem,"Summary").ToString()) %></TD>
</TR>
<TR>
<TD align="right">
<FONT class="gray">(<%# String.Format("{0:yyyy年MM月dd日}",DataBinder.Eval(Container.DataItem,"DateTime")) %>,<FONT class="hit"><%# DataBinder.Eval(Container.DataItem,"Hits") %></FONT>)</FONT>[<A href='shownews.aspx?newsid=<%# DataBinder.Eval(Container.DataItem,"Articleid") %>' target="_blank">查看全文</A>]
</TD>
</TR>
</TABLE>
</itemtemplate>
</asp:DataList>
<TABLE cellspacing="0" cellpadding="0" width="96%" height="30" align="center">
<TR>
<TD><%= NextPrev %></TD>
<TD align="right"><%= Pagination %></TD>
</TR>
</TABLE>
<FORM id="SearchForm" method="get">
<TABLE style="WORD-BREAK: keep-all" width="100%">
<TR>
<TD align="center">
新聞搜索:
<SELECT size="1" name="where">
<OPTION value="title" selected>標題</OPTION>
<OPTION value="content">內容</OPTION>
<OPTION value="author">作者</OPTION>
</SELECT>
<SELECT size="1" name="cid">
<OPTION value="0" selected>選擇分類</OPTION>
<%= SelectClass %>
</SELECT>
<INPUT class="inputbg" type="text" maxlength="50" size="20" name="keyword">
<INPUT onMouseOver="this.src='images/search_over.gif'" onMouseOut="this.src='images/search.gif'" type="image" alt="搜索" src="images/search.gif" align="absMiddle">
</TD>
</TR>
</TABLE>
</FORM>
</TD>
<TD class="mr"></TD>
</TR>
</TABLE>
<TABLE class="mframe" cellspacing="0" cellpadding="0" width="100%">
<TR>
<TD class="bl"></TD>
<TD class="bm"> </TD>
<TD class="br"></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<!-- #include file="inc/foot.inc" -->
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -