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

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_link, 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.                 <table border="0" cellpadding="5" cellspacing="0" style="width: 100%">
  16.                     <tr>
  17.                         <td width="70" style="width: 70px; height: 26px;"> 站名:</td>
  18.                         <td width="182" style="width: 162px; height: 26px; text-align: left">
  19.                             <asp:TextBox ID="TextBox1" runat="server"  Width="199px" CssClass="TextBox" ValidationGroup="aa"></asp:TextBox>
  20.                       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="?" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
  21.                         <td width="441" style="text-align: left; height: 26px;">&nbsp;                      </td>
  22.                     </tr>
  23.                     <tr>
  24.                         <td style="width: 70px; height: 26px">网址:</td>
  25.                         <td style="height: 26px; text-align: left">
  26.                             <asp:TextBox ID="TextBox2" runat="server" CssClass="TextBox" ValidationGroup="aa" Width="199px"></asp:TextBox>
  27.                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="?" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
  28.                         <td style="vertical-align: bottom; height: 26px; text-align: left">
  29.                             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FileUpload1" ErrorMessage="↓请选择LOGO图片!" ValidationGroup="bb"></asp:RequiredFieldValidator></td>
  30.                     </tr>
  31.                     <tr>
  32.                         <td style="width: 70px"> LOGO:</td>
  33.                         <td style="width: 162px; text-align: left"> <asp:TextBox ID="TextBox3" runat="server" CssClass="TextBox" ValidationGroup="aa" Width="201px"></asp:TextBox></td>
  34.                         <td style="text-align: left">
  35.                             <asp:FileUpload ID="FileUpload1" runat="server" CssClass="TextBox" />
  36.                             <asp:Button ID="Button2" runat="server" CssClass="Button" Text="上传" ValidationGroup="bb" OnClick="Button2_Click" /></td>
  37.                     </tr>
  38.                     <tr>
  39.                         <td style="width: 70px">  备注:</td>
  40.                         <td colspan="2" style="text-align: left">
  41.                             <asp:TextBox ID="TextBox4" runat="server" CssClass="TextBox" Height="66px" TextMode="MultiLine"
  42.                                 ValidationGroup="aa" Width="508px"></asp:TextBox></td>
  43.                     </tr>
  44.               </table>
  45.             </td>
  46.         </tr>
  47.         <tr>
  48.             <td colspan="3" style="text-align: left; padding-left: 20px; height: 35px;">
  49.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 237px">
  50.                     <tr>
  51.                         <td style="width: 73px">
  52.                 <asp:Button ID="Button1" runat="server" Text="添加连接" CssClass="Button" OnClick="Button1_Click" ValidationGroup="aa"  /></td>
  53.                         <td style="width: 100px">
  54.                 <asp:Label ID="Label1" runat="server"></asp:Label></td>
  55.                     </tr>
  56.                 </table>
  57.             </td>
  58.         </tr>
  59.     </table>
  60.       <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  61.         <tr>
  62.             <td class="top_table_td1">  </td>
  63.             <td class="top_table_td2"> 链接管理</td>
  64.             <td class="top_table_td3" width="651">
  65.             </td>
  66.         </tr>
  67.         <tr>
  68.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  69.                 <asp:DataList ID="DataList1" runat="server" Width="730px" OnItemCommand="DataList1_ItemCommand" OnCancelCommand="DataList1_CancelCommand" OnEditCommand="DataList1_EditCommand" OnUpdateCommand="DataList1_UpdateCommand">
  70.                     <ItemTemplate>
  71.                         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  72.                             <tr>
  73.                                  <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; width: 30px;" >
  74.                                     ID:<asp:Label ID="Label5" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  75.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >
  76.                                     <asp:Label ID="Label2" runat="server" Text='<%# Eval("title") %>'></asp:Label></td>
  77.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 210px;" >
  78.                                     <asp:Label ID="Label3" runat="server" Text='<%# Eval("url") %>'></asp:Label></td>
  79.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 160px;" >
  80.                                     <asp:Image ID="imgLOGO" runat="server" ImageUrl='<%# Eval("logo") %>' Height="31px" Width="88px" /></td>
  81.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 100px;" >
  82.                                     &nbsp;<asp:Button ID="Button2" runat="server" Text="修改" CommandName="edit" CausesValidation="False" CssClass="Button" />&nbsp;
  83.                                     <asp:Button ID="Button3" runat="server" Text="删除" CausesValidation="False" CommandName="Delete" CssClass="Button" OnClientClick="return confirm('确认要删除此条信息吗?')" /></td>
  84.                             </tr>
  85.                         </table>
  86.                     </ItemTemplate>
  87.                     <EditItemTemplate>
  88.                         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  89.                             <tr>
  90.                                  <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; width: 30px;" >
  91.                                     ID:<asp:Label ID="Label5" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  92.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >
  93.                                     <asp:TextBox ID="TextBox6" runat="server" Text='<%# Eval("title") %>' CssClass="TextBox"></asp:TextBox></td>
  94.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 210px;" >
  95.                                     <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("url") %>' CssClass="TextBox"></asp:TextBox></td>
  96.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 160px;" >
  97.                                     <asp:TextBox ID="TextBox5" runat="server" Text='<%# Eval("logo") %>' CssClass="TextBox"></asp:TextBox></td>
  98.                                 <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 100px;" >
  99.                                     &nbsp;<asp:Button ID="Button4" runat="server" CommandName="update" Text="更新" CausesValidation="False" CssClass="Button" />&nbsp;
  100.                                     <asp:Button ID="Button5" runat="server" CommandName="cancel" Text="取消" CausesValidation="False" CssClass="Button" /></td>
  101.                             </tr>
  102.                         </table>
  103.                     </EditItemTemplate>
  104.                 </asp:DataList></td>
  105.         </tr>
  106.     </table> 
  107. </asp:Content>