<%@ page language="C#" autoeventwireup="true" inherits="news_show, 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">
<title>简单新闻发布系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="include/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
   <form id="form1" runat="server">
   <uc1:top ID="Top1" runat="server" />
   <div align="center">  
   <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="Label1" runat="server"></asp:Label>  -&gt; <asp:Label ID="Label2" runat="server"></asp:Label></td>
     </tr>
</table>
   <table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="table_top">
      <tr>
        <td width="645" valign="top">
                <div style="width: 645px; height: 30px">
            <div class="show1"></div>
            <div class="show2">内容页面</div>
            <div class="show3"></div>
        </div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="kkk">
          <tr>
            <td align="center" style="width: 643px"><br />
              <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                  <table width="642">
                    <tr>
                      <td class="title"><%#Eval("title") %></td>
                    </tr>
					<tr>
                      <td align="right" style="color:darkgray">文章来源：<%#Eval("oSource")%>  &nbsp;&nbsp;责任编辑：<%#Eval("oAuthor")%>  &nbsp;&nbsp;阅读次数：<%#Eval("hklick") %>  &nbsp;&nbsp;发布时间：<%#Eval("data") %>&nbsp;&nbsp;</td>
                    </tr>
                    <tr>
                      <td align="left" class="content" valign="top" width="640" ><%#Eval("contents") %> </td>
                    </tr>
                  </table>
                </ItemTemplate>
              </asp:Repeater>
        <div style="width: 639px; text-align: center;">
        <script language="javascript">
            var infoid = '<%=Request.QueryString["id"] %>';
            var classid = 'NewsShow';
        </script>
        <script language = "JavaScript" src ="include/mood.js"></script>
        </div>
               <div class="next">
        下一篇：<asp:HyperLink ID="HyperLink1" runat="server">[HyperLink1]</asp:HyperLink>
        </div>
        <div class="Pre">
            上一篇：<asp:HyperLink ID="HyperLink2" runat="server">[HyperLink2]</asp:HyperLink></div>
            
            		 <table style="margin-top: 20px; width: 638px;">
            <tr>
                <td style="width: 150px; height: 27px">
                    名称：<asp:TextBox ID="TextBox1" runat="server" Width="96px" CssClass="TextBox"></asp:TextBox></td>
                <td style="width: 130px;">
                    验证码：<asp:TextBox ID="TextBox2" runat="server" Width="53px" CssClass="TextBox"></asp:TextBox>&nbsp;
                </td>
                <td style="width: 49px">
                    <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" ImageUrl="~/include/checkcode.aspx"
                        OnClick="ImageButton1_Click" /></td>
                <td style="text-align: left; width: 291px;">
                    <asp:Button ID="Button1" runat="server" Text="发表评论" CssClass="Button" OnClick="Button1_Click" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"  ErrorMessage="名称？"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"  ErrorMessage="验证码？"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"  ErrorMessage="评论内容？"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Height="70px" CssClass="TextBox" Width="600px"></asp:TextBox></td>
            </tr>
        </table> 
        <div style="width: 639px;text-align: center;">
            <div class="pinglunlist">
            <div class="pinglunlist1">
                <asp:Label ID="Label11" runat="server" Text="网友评论" style="float: left" ForeColor="White"></asp:Label><asp:HyperLink ID="HyperLink3" runat="server" style="float: right; padding-right: 10px;" ForeColor="White">[HyperLink3]</asp:HyperLink>
            </div>
            <asp:DataList ID="DataList2" runat="server">
                <ItemTemplate>
                    <table border="0" cellpadding="5" cellspacing="0" class="pl">
                        <tr>
                            <td class="pl1">
                                <%=oyaya.web_name.ToString() %>网友：<asp:Label ID="Label8" runat="server" Text='<%# Eval("username") %>'></asp:Label>&nbsp;&nbsp;
                                于<asp:Label ID="Label10" runat="server" Text='<%# Eval("data") %>'></asp:Label>评论道：</td>
                        </tr>
                        <tr>
                            <td style="text-indent: 20px; text-align: left">
                                <asp:Label ID="Label9" runat="server" Text='<%# Eval("conent") %>'></asp:Label></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList></div></div><br/>
            </td>
          </tr>
        </table>
		</td>
        <td width="6" valign="top">&nbsp;</td>
        <td width="180" valign="top"> <uc2:search ID="Search1" runat="server" />
        <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>
                    <table border="0" cellpadding="0" cellspacing="0" class="gonggao" width="250">
      <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="DataList1" runat="server">
				<HeaderTemplate><table border="0" width="100%"></HeaderTemplate>
  				<itemtemplate>
   				 <tr>
   				      <td><img src="images/dot0.gif" /></td>
     				 <td align="left" width="210"><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>
        </td>
      </tr>
</table>
     <uc0:bottom id="bottom" runat="server">
     </uc0:bottom>
  </div>
       
  </form>
</body>
</html>