<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.newsall" Codebehind="newsall.aspx.cs"
  EnableViewState="false" %>

<%@ 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" />
    </div>
    <div style="width: 992px; margin: 0px auto;">
      <table width="100%" 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(),12,12)%>
                      </a>(浏览<font color="#FF0000"><%#Eval("LookCount")%></font>次)</td>
                  </tr>
                </ItemTemplate>
              </asp:Repeater>
            </table>
            <br />
          </td>
          <td width="39" valign="top">&nbsp;
            
          </td>
          <td width="702" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td valign="top">
                  <asp:DataList ID="NewsClass" runat="server" RepeatColumns="2" Width="110%" RepeatDirection="Horizontal"
                    OnItemDataBound="NewsClass_ItemDataBound">
                    <ItemTemplate>
                      <table width="254" height="31" border="0" cellpadding="0" cellspacing="0">
                        <tr valign="top">
                          <td background="images/title1.gif" style="padding-top: 6px;">
                            <strong style="margin-left: 2.5em;"><a href='newsallid.aspx?pid=<%#Eval("id") %>'>
                              <%#Eval("Article_Class_Name")%>
                            </a></strong>
                          </td>
                        </tr>
                      </table>
                      <asp:Repeater ID="NewsChild" runat="server">
                        <ItemTemplate>
                          <table cellspacing="0" cellpadding="2" width="100%" border="0">
                            <tr>
                              <td width="62%" height="13">
                                <a href="/LookNews/Article-<%#Eval("id")%>.html" style="color: <%#Eval("TitleColor")%>"
                                  title="<%#Eval("Title")%>" target="_blank">
                                  <%#FormatLeft(Eval("title").ToString(),17,15)%>
                                </a>
                              </td>
                              <td width="38%">
                                (浏览<font color="#FF0000"><%#Eval("LookCount")%></font>次)
                              </td>
                            </tr>
                          </table>
                        </ItemTemplate>
                      </asp:Repeater>
                    </ItemTemplate>
                </asp:DataList></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <br />
      <hr width="100%" />
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td>
            <ascx:PageFooter ID="PageFooter" runat="server" />
          </td>
        </tr>
      </table>
    </div>
  </form>
</body>
</html>
