<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news_Search.aspx.cs" Inherits="MyITJob.news_Search" %>

<%@ Register TagPrefix="ascx" TagName="PageTop" Src="~/ascx/PageTop.ascx" %>
<%@ Register TagPrefix="ascx" TagName="PageFooter" Src="~/ascx/PageFooter.ascx" %>
<!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>
    <title>搜索文章列表之 - <%=fzName %><%=Application["PageTitle"] %></title>
    <meta name="Keywords" content="<%=fz_key %> <%=Application["PageKeywords"] %>" />
    <meta name="Description" content="<%=fz_de %> <%=Application["Pagede"] %>" />
    <link href="<%=s_style %>" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" defaultbutton="SearchArticle_Button">
        <div>
        <ascx:PageTop ID="PageTop" runat="server" />
            <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        当前位置：<a href="">首页</a> &gt;&gt; <span style="font-weight:bold; color:Red;">搜索文章结果</span>
                        </td>
                </tr>
            </table>
            <table width="990" height="120" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="251" height="120" valign="top"><table width="98%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <th width="2%" height="26"> <img src="images/content_left.jpg" width="5" height="28" /></th>
                      <th width="46%" background="images/content_t.jpg" class="title02" style="padding-top: 10px;"> 新闻分类</th>
                      <th width="49%" background="images/content_bg.jpg" class="white">&nbsp;</th>
                      <th width="2%" class="white"> <img src="images/content_right.jpg" width="5" height="28" /></th>
                    </tr>
                    <tr>
                      <td colspan="4"><div class="content_left_div" style="padding-left: 5px;">
                        <asp:TreeView ID="TreeView1" runat="server" ImageSet="Arrows">
                          <NodeStyle NodeSpacing="4px" />
                        </asp:TreeView>
                      </div></td>
                    </tr>
                  </table>
                    <br />
                    <table width="98%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <th width="2%" height="26"> <img src="images/content_left.jpg" width="5" height="28" /></th>
                        <th width="46%" background="images/content_t.jpg" class="title02" style="padding-top: 10px;"> 文章搜索</th>
                        <th width="49%" background="images/content_bg.jpg" class="white">&nbsp;</th>
                        <th width="2%" class="white"> <img src="images/content_right.jpg" width="5" height="28" /></th>
                      </tr>
                      <tr>
                        <td colspan="4"></td>
                      </tr>
                    </table>
                    <table width="246" cellpadding="4" class="content_left_div">
                      <tr>
                        <td><div style="padding-left: 5px;">
                          <div style="margin-bottom:4px;">
                            <asp:DropDownList ID="DropDownList1" runat="server">
                              <asp:ListItem Value="title">搜索文章标题</asp:ListItem>
                              <asp:ListItem Value="content">搜索文章内容</asp:ListItem>
                            </asp:DropDownList>
                          </div>
                          <div style="margin-bottom:4px;">
                            <asp:TextBox ID="TextBox1" MaxLength="15" runat="server"></asp:TextBox>
                          </div>
                          <div style="margin-bottom:4px;">
                            <asp:Button ID="SearchArticle_Button" runat="server" OnClick="SearchArticle_Button_Click"
                      Text="开始搜索" />                    
                            &nbsp;</div>
                        </div></td>
                      </tr>
                    </table>
                    <br />
                    <table width="98%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <th width="2%" height="26"> <img src="images/content_left.jpg" width="5" height="28" /></th>
                        <th width="46%" valign="top" background="images/content_t.jpg" class="title02" style="padding-top: 10px;"> 最新文章</th>
                        <th width="49%" background="images/content_bg.jpg" class="white"></th>
                        <th width="2%" class="white"> <img src="images/content_right.jpg" width="5" height="28" /></th>
                      </tr>
                      <tr>
                        <td colspan="4"><table width="100%" cellpadding="4" class="content_left_div">
                          <asp:Repeater ID="lefttop" runat="server">
                            <ItemTemplate>
                              <tr>
                                <td><a href="/LookNews/Article-<%#Eval("id")%>.html" title="<%#Eval("Title")%>" target="_blank"> <%#FormatLeft2(Eval("title").ToString(),13,13)%> </a>(浏览<font color="#FF0000"><%#Eval("LookCount")%></font>次)</td>
                              </tr>
                            </ItemTemplate>
                          </asp:Repeater>
                        </table></td>
                      </tr>
                    </table>
                    <br />
                    <table width="98%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <th width="2%" height="26"> <img src="images/content_left.jpg" width="5" height="28" /></th>
                        <th width="46%" valign="top" background="images/content_t.jpg" class="title02" style="padding-top: 10px;"> 最新文章</th>
                        <th width="49%" background="images/content_bg.jpg" class="white"></th>
                        <th width="2%" class="white"> <img src="images/content_right.jpg" width="5" height="28" /></th>
                      </tr>
                      <tr>
                        <td colspan="4"></td>
                      </tr>
                    </table>
                    <table width="246" cellpadding="4" class="content_left_div">
                      <asp:Repeater ID="lefttop2" runat="server">
                        <ItemTemplate>
                          <tr>
                            <td><a href="/LookNews/Article-<%#Eval("id")%>.html" title="<%#Eval("Title")%>" target="_blank"> <%#FormatLeft2(Eval("title").ToString(),13,13)%></a>(浏览<font color="#FF0000"><%#Eval("LookCount")%></font>次)</td>
                          </tr>
                        </ItemTemplate>
                      </asp:Repeater>
                    </table>
                    <br /></td>
                    <td width="39">&nbsp;
                      
                    </td>
                    <td width="700" valign="top">
                        <asp:Repeater ID="SearchArticle" runat="server">
                            <ItemTemplate>
                                <div style="border-bottom: 1px solid #EEE; line-height: 26px;">
                                    <div style="width: 87%; float: left;">
                                        <a href="/LookNews/Article-<%#Eval("id")%>.html" target="_blank">
                                            <%#FormatLeft(Eval("title").ToString(), 45, 45)%>
                                        </a>
                                    </div>
                                    <div>
                                        (浏览<font color="#FF0000"><%#Eval("LookCount")%></font>次)</div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                        <table width="100%" height="18" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="669" height="18">
                                <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                                  <tbody>
                                    <tr>
                                      <td width="669" height="18">
                                        共<b>
                                          <asp:Label ID="LbRecord" runat="server" ForeColor="Red"></asp:Label>
                                        </b>条记录 页数:
                                        <asp:Label ID="CurrentPage" runat="server" ForeColor="Red"></asp:Label>
                                        /
                                        <asp:Label ID="TotalPage" runat="server" ForeColor="Red"></asp:Label>
                                        页 <b>
                                          <asp:Label ID="LbPageRecord" runat="server"></asp:Label>
                                        </b>篇文章/页
                                        <asp:HyperLink ID="Linkhead" runat="server">首页</asp:HyperLink>
                                        <asp:HyperLink ID="LinkPrev" runat="server">上一页</asp:HyperLink>
                                        <asp:HyperLink ID="LinkNext" runat="server">下一页</asp:HyperLink>
                                        <asp:HyperLink ID="LinkFoot" runat="server">尾页</asp:HyperLink></td>
                                    </tr>
                                  </tbody>
                                </table>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </td>
                </tr>
            </table>
          <br />
            <table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <div align="center">
                            <ascx:PageFooter ID="PageFooter" runat="server" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>