<%@ page language="C#" autoeventwireup="true" inherits="news, oyaya" %>
<%@ Register Src="include/search.ascx" TagName="search" TagPrefix="uc2" %>
<%@ Register Src="include/top.ascx" TagName="top" TagPrefix="uc1" %>
<%@ Register Src="include/bottom.ascx" TagName="bottom" TagPrefix="uc0" %>
<!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">
<link href="include/css.css" rel="Stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>简单入门新闻系统</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:top id="Top1" runat="server">
        </uc1:top>
<table border="0" cellpadding="0" cellspacing="0" width="900" style="margin-top:8px;">
    <tr>
         <td width="20" style="height: 19px"><img src="images/location-items.gif" /></td>
          <td colspan="2" class="tops">&nbsp;<a href="index.aspx">网站首页</a>  -&gt; <asp:Label ID="Label4" runat="server"></asp:Label></td>
     </tr>
</table>
      <table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="table_top">
  <tr>
       <td valign="top">
 <table border="0" cellpadding="0" cellspacing="0" class="kkk" width="642">
         <tr>
            <td colspan="3" class="new_tit"><div class="new_tit1"> 资讯列表</div></td>
         </tr>
         <tr>
            <td valign="top"　colspan="3" style="height: 550px">
                            <asp:DataList ID="DataList1" runat="server" RepeatLayout="Flow" EnableViewState="false">
                                <ItemTemplate>
                                    <table style="width: 98%; border-bottom: lightgrey 1px solid;" cellpadding="5">
                                        <tr>
                                            <td colspan="3" style="padding-left: 10px; font-weight: bold; font-size: 14px; height: 21px; text-align: left">
                                                &nbsp;<img src="images/ArticleCommon.gif" />&nbsp;<a href="NewsShow.aspx?id=<%# Eval("id") %>"><%# Eval("title") %></a></td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" style="font-size: 12px; color: dimgray; text-indent: 20px; text-align: left">
                                            <%#(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "contents").ToString(), "<[^>]*>", "").Length<140)?(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "contents").ToString(), "<[^>]*>", "")):(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "contents").ToString(), "<[^>]*>", "").Substring(0,140)) %>……<a href="NewsShow.aspx?id=<%# Eval("id") %>">[阅读全文]</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 20px; font-size: 12px; width: 150px; text-align: left">
                                            作者：<%# Eval("oAuthor") %> 
                                            </td>
                                            <td style="font-size: 12px; width: 150px; text-align: left">时间：<%# Eval("data") %>　
                                            </td>
                                            <td style="font-size: 12px; text-align: left">人气：<%# Eval("hklick")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                            <p>
                            <asp:HyperLink id="HyperLink1" runat="server">首页</asp:HyperLink>
    <asp:HyperLink id="Hyperlink2" runat="server">上一页</asp:HyperLink>
    <asp:HyperLink id="Hyperlink3" runat="server">下一页</asp:HyperLink>
    <asp:HyperLink id="Hyperlink4" runat="server">尾页</asp:HyperLink>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label><br /></p>
              </td>
            </tr>
          </table>      
</td> 
    <td width="6"></td>
    
<td valign="top">
<uc2:search ID="Search1" runat="server" />
<table border="0" cellpadding="0" cellspacing="0" class="gonggao" style="width:250px; margin-top: 10px;">
      <tr>
         <td class="gonggaoback1" style="height: 30px"> <img src="images/index1_r33_c16.gif" start="" /></td>
         <td class="gonggaoback2" style="height: 30px; width: 70%;"> 热门TOP10</td>
         <td class="gonggaoback3" style="height: 30px">  &gt;&gt;更多</td>
      </tr>
      <tr>
         <td colspan="3" rowspan="2" style="text-align: left">
          <asp:DataList ID="DataList2" runat="server">
				<HeaderTemplate><table border="0" width="100%"></HeaderTemplate>
  				<itemtemplate>
   				 <tr>
     				 <td align="left" width="210">&nbsp; <a href="NewsShow.aspx?id=<%#Eval("id") %>"><%#(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "title").ToString(), "<[^>]*>", "").Length<18)?(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "title").ToString(), "<[^>]*>", "")):(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "title").ToString(), "<[^>]*>", "").Substring(0,18)) %>…</a></td>
     				 <td><%# Eval("hklick") %></td>
    			 </tr>
  				</itemtemplate>
 				 <FooterTemplate></table></FooterTemplate>
		  </asp:DataList>	</td>
       </tr>
</table>
        <table border="0" cellpadding="0" cellspacing="0" class="gonggao" width="250" style="margin-top: 10px;">
                        <tr>
                            <td class="gonggaoback1" style="height: 30px">
                                <img src="images/index1_r33_c16.gif" start="" /></td>
                            <td class="gonggaoback2" style="height: 30px"> 图文资讯</td>
                            <td class="gonggaoback3" style="height: 30px">&gt;&gt;更多</td>
                        </tr>
                        <tr>
                            <td colspan="3" rowspan="2" style="text-align: left">
                                <asp:DataList ID="DataList4" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                                    <ItemTemplate>
<table>
  <tr>
    <td><div class="pina"><a href="NewsShow.aspx?id=<%# Eval("id") %>"><img src="<%# Eval("picurl") %>" height="85" width="113" border="0" /></a></div></td>
  </tr>
  <tr>
    <td><a href="e<%# Eval("id") %>.aspx"><%#((DataBinder.Eval(Container.DataItem, "title" ).ToString().Length<8)?DataBinder.Eval(Container.DataItem, "title" ).ToString():DataBinder.Eval(Container.DataItem, "title" ).ToString().Substring(0,8)+"...")%></a></td>
  </tr>
</table>
                                    </ItemTemplate>
                                </asp:DataList></td>
                        </tr>
                        <tr>
                        </tr>
                    </table>
	</td>
  </tr>
</table>
        <uc0:bottom id="bottom" runat="server">
        </uc0:bottom>
        </div>
    </form>
</body>
</html>
