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

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_news, oyaya" title="Untitled Page" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
  3.     文章管理
  4. </asp:Content>
  5. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  6.       <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  7.         <tr>
  8.             <td class="top_table_td1">  </td>
  9.             <td class="top_table_td2"> 文章管理</td>
  10.             <td class="top_table_td3" width="651">
  11.             </td>
  12.         </tr>
  13.         <tr>
  14.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  15.                 <asp:DataList ID="DataList1" runat="server" Width="730px" OnItemCommand="DataList1_ItemCommand" OnEditCommand="DataList1_EditCommand">
  16.                     <ItemTemplate>
  17.                         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  18.                             <tr>
  19.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 50px;" >
  20.                                     ID:<asp:Label ID="Label2" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  21.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 480px;" >
  22.                                     <a href="update_news.aspx?id=<%# Eval("id") %>"><%# Eval("title") %></a></td>
  23.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 150px;" >
  24.                                     <asp:Label ID="Label4" runat="server" Text='<%# Eval("data") %>'></asp:Label></td>
  25.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 100px;" >
  26.                                     <asp:Button ID="Button2" runat="server" Text="修改" CausesValidation="False" CssClass="Button" CommandName="edit" />&nbsp;
  27.                                     <asp:Button ID="Button3" runat="server" Text="删除" CausesValidation="False" CommandName="Delete" CssClass="Button" OnClientClick="return confirm('确认要删除此条信息吗?')" /></td>
  28.                             </tr>
  29.                         </table>
  30.                     </ItemTemplate>
  31.                 </asp:DataList>
  32.                 <table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;">
  33.                                 <tr>
  34.                                     <td style="height: 15px" colspan="2">
  35.                                         <asp:LinkButton ID="lnkbtnTop" runat="server" Font-Size="9pt" Font-Underline="False"
  36.                                             ForeColor="Black" OnClick="lnkbtnTop_Click">首页</asp:LinkButton>
  37.                                         &nbsp; &nbsp;&nbsp; &nbsp;<asp:LinkButton ID="lnkbtnPrve" runat="server" Font-Size="9pt" Font-Underline="False"
  38.                                             ForeColor="Black" OnClick="lnkbtnPrve_Click">上一页</asp:LinkButton>
  39.                                         &nbsp; &nbsp; &nbsp;<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Size="9pt" Font-Underline="False"
  40.                                             ForeColor="Black" OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>
  41.                                         &nbsp; &nbsp;&nbsp; &nbsp;<asp:LinkButton ID="lnkbtnLast" runat="server" Font-Overline="False" Font-Size="9pt"
  42.                                             Font-Underline="False" ForeColor="Black" OnClick="lnkbtnLast_Click">尾页</asp:LinkButton>
  43.                                         &nbsp; &nbsp; <span style="font-size: 9pt">共有</span><asp:Label ID="labCount" runat="server" Font-Size="9pt"
  44.                                             ForeColor="Red"></asp:Label><span style="font-size: 9pt; vertical-align: bottom;
  45.                                                 text-align: center">页</span><span style="font-size: 9pt"></span></td>
  46.                                     <td style="width: 130px; height: 15px; text-align: center">
  47.                                         <span style="font-size: 9pt">当前第</span><asp:Label ID="labNowPage" runat="server"
  48.                                             Font-Size="9pt" ForeColor="Red">1</asp:Label><span style="font-size: 9pt; vertical-align: bottom;
  49.                                                 text-align: center">页</span></td>
  50.                                 </tr>
  51.                             </table></td>
  52.         </tr>
  53.     </table> 
  54. </asp:Content>