<%@ page language="C#" autoeventwireup="true" inherits="_Class, 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 runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题页</title>
    <link href="include/css.css" rel="Stylesheet" type="text/css" />
</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" width="642">
         <tr>
            <td valign="top"　colspan="3" style="height: 550px">
<asp:DataList ID="DataList1" EnableViewState="false" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
            <ItemTemplate>
                <div class="gonggao indexa1">
                 <div class="indexb">
                    <div class="indexc1"><%# Eval("board_name") %></div>
                    <div class="indexd"><a href="news.aspx?id=<%# Eval("id") %>">&gt;&gt;更多</a></div>
                </div>
                <ul class="newslist2">
                    <%#newsclass(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ID").ToString()))%>
                 </ul>
                </div>
            </ItemTemplate>
      </asp:DataList>
              </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>
