Comment.aspx
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:8k
源码类别:

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" autoeventwireup="true" inherits="Comment, oyaya" %>
  2. <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
  3. <%@ Register Src="include/search.ascx" TagName="search" TagPrefix="uc2" %>
  4. <%@ Register Src="include/top.ascx" TagName="top" TagPrefix="uc1" %>
  5. <%@ Register Src="include/bottom.ascx" TagName="bottom" TagPrefix="uc0" %>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml" >
  8. <head id="Head1" runat="server">
  9. <title>简单新闻发布系统</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <link href="include/css.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14.    <form id="form1" runat="server">
  15.    <uc1:top ID="Top1" runat="server" />
  16.    <div align="center">  
  17.    <table border="0" cellpadding="0" cellspacing="0" width="900" style="margin-top:8px;">
  18.     <tr>
  19.          <td width="20" style="height: 19px"><img src="images/location-items.gif" /></td>
  20.           <td colspan="2" style="text-align: left; height: 20px; line-height:20px;">&nbsp;<a href="index.aspx">网站首页</a>  -&gt; <asp:Label ID="Label2" runat="server">全部评论</asp:Label></td>
  21.      </tr>
  22. </table>
  23. <div style="width:900px;">
  24. <div style="border-right: #a2d0e5 1px solid; border-top: #a2d0e5 1px solid; float: left;
  25.         border-left: #a2d0e5 1px solid; width: 639px; border-bottom: #a2d0e5 1px solid;">
  26.                     <div style="width: 100%; height: 50px; font-weight: bold; font-size: 15px; line-height: 50px; text-align: center;">
  27.                         <asp:HyperLink ID="HyperLink1" runat="server">标题</asp:HyperLink></div>
  28.         <div style="width: 100%; height: 30px; font-size: 12px; color: darkgray; line-height: 30px; border-bottom: gainsboro 1px solid; text-align: center;">
  29.             <asp:Label ID="Label3" runat="server" Text="时间" CssClass="zuoyou"></asp:Label>
  30.             <asp:Label ID="Label4" runat="server" Text="来源" CssClass="zuoyou"></asp:Label>
  31.             <asp:Label ID="Label5" runat="server" Text="作者" CssClass="zuoyou"></asp:Label>
  32.             <asp:Label ID="Label6" runat="server" Text="人气" CssClass="zuoyou"></asp:Label>
  33.             <asp:Label ID="Label12" runat="server" Text="共有评论"></asp:Label></div>
  34.             <asp:DataList ID="DataList2" runat="server">
  35.                 <ItemTemplate>
  36.                     <table border="0" cellpadding="5" cellspacing="0" style="border-bottom: gainsboro 1px solid; width: 638px;">
  37.                         <tr>
  38.                             <td style="text-indent: 20px; text-align: left; color: #0066cc;">
  39.                                 <%=oyaya.web_name.ToString() %>网友:<asp:Label ID="Label8" runat="server" Text='<%# Eval("username") %>'></asp:Label>&nbsp;&nbsp;
  40.                                 于<asp:Label ID="Label10" runat="server" Text='<%# Eval("data") %>'></asp:Label>评论道:</td>
  41.                         </tr>
  42.                         <tr>
  43.                             <td style="text-indent: 20px; text-align: left; padding-right: 5px; padding-left: 5px; padding-bottom: 5px; padding-top: 5px;">
  44.                                 <asp:Label ID="Label9" runat="server" Text='<%# Eval("conent") %>'></asp:Label></td>
  45.                         </tr>
  46.                     </table>
  47.                 </ItemTemplate>
  48.             </asp:DataList>
  49.             <p><webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="Center" onpagechanged="AspNetPager1_PageChanged"
  50.         width="98%" CssClass="anpager" CurrentPageButtonClass="cpb" UrlPaging="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CustomInfoStyle="" AlwaysShow="True" EnableUrlRewriting="True" ReverseUrlPageIndex="True"></webdiyer:aspnetpager></p>
  51.                 <table style="margin-top: 20px; width: 639px; margin-bottom: 20px;" border="0" cellspacing="0">
  52.                     <tr>
  53.                         <td colspan="4" style="background-image: url(images/indexback.gif); height: 25px; font-weight: bold; text-indent: 20px; text-align: left;">
  54.                             发表评论</td>
  55.                     </tr>
  56.             <tr>
  57.                 <td style="width: 159px; height: 40px">
  58.                     名称:<asp:TextBox ID="TextBox1" runat="server" Width="96px" CssClass="TextBox"></asp:TextBox></td>
  59.                 <td style="width: 161px;">
  60.                     验证码:<asp:TextBox ID="TextBox2" runat="server" Width="53px" CssClass="TextBox"></asp:TextBox>&nbsp;
  61.                 </td>
  62.                 <td style="width: 104px">
  63.                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" ImageUrl="~/include/checkcode.aspx"
  64.                         OnClick="ImageButton1_Click" /></td>
  65.                 <td style="text-align: left; width: 301px;">
  66.                     <asp:Button ID="Button1" runat="server" Text="发表评论" CssClass="Button" OnClick="Button1_Click" />
  67.                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
  68.                         ErrorMessage="名称?"></asp:RequiredFieldValidator>
  69.                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
  70.                         ErrorMessage="验证码?"></asp:RequiredFieldValidator>
  71.                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
  72.                         ErrorMessage="评论内容?"></asp:RequiredFieldValidator>
  73.                     </td>
  74.             </tr>
  75.             <tr>
  76.                 <td colspan="4">
  77.                     <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Height="70px" CssClass="TextBox" Width="600px"></asp:TextBox></td>
  78.             </tr>
  79.         </table>
  80.     </div>
  81.     <div style="float: right; width: 259px; ">
  82.             <table border="0" cellpadding="0" cellspacing="0" class="gonggao" width="250" style="margin-top: 10px; float: right;">
  83.                         <tr>
  84.                             <td class="gonggaoback1" style="height: 30px">
  85.                                 <img src="images/index1_r33_c16.gif" /></td>
  86.                             <td class="gonggaoback2" style="height: 30px">
  87.                                 评论TOP20</td>
  88.                             <td class="gonggaoback3" style="height: 30px">
  89.                                 </td>
  90.                         </tr>
  91.                         <tr>
  92.                             <td colspan="3" rowspan="2" style="text-align: left">
  93.                                 <asp:DataList ID="DataList1" runat="server">
  94.                                     <ItemTemplate>
  95.                                         <table>
  96.                                             <tr>
  97.                                                 <td><img src="images/dot0.gif" /></td>
  98.                                                 <td style="width: 240px; text-align: left">
  99.                                                     <a href="p<%# Eval("id") %>.aspx"  class="mainlink"><%#((DataBinder.Eval(Container.DataItem, "title" ).ToString().Length<16)?DataBinder.Eval(Container.DataItem, "title" ).ToString():DataBinder.Eval(Container.DataItem, "title" ).ToString().Substring(0,16)+"...")%></a></td>
  100.                                             </tr>
  101.                                         </table>
  102.                                     </ItemTemplate>
  103.                                 </asp:DataList></td>
  104.                         </tr>
  105.                         <tr>
  106.                         </tr>
  107.                     </table>
  108.     </div>
  109. </div>
  110.      <uc0:bottom id="bottom" runat="server">
  111.      </uc0:bottom>
  112.   </div>
  113.        
  114.   </form>
  115. </body>
  116. </html>