admin_link.aspx
资源名称:xwfbxt.rar [点击查看]
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:8k
源码类别:
.net编程
开发平台:
Visual C++
- <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_link, oyaya" title="Untitled Page" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
- 友情连接
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
- <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
- <tr>
- <td class="top_table_td1"> </td>
- <td class="top_table_td2"> 链接添加</td>
- <td class="top_table_td3" width="651">
- </td>
- </tr>
- <tr>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
- <table border="0" cellpadding="5" cellspacing="0" style="width: 100%">
- <tr>
- <td width="70" style="width: 70px; height: 26px;"> 站名:</td>
- <td width="182" style="width: 162px; height: 26px; text-align: left">
- <asp:TextBox ID="TextBox1" runat="server" Width="199px" CssClass="TextBox" ValidationGroup="aa"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="?" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
- <td width="441" style="text-align: left; height: 26px;"> </td>
- </tr>
- <tr>
- <td style="width: 70px; height: 26px">网址:</td>
- <td style="height: 26px; text-align: left">
- <asp:TextBox ID="TextBox2" runat="server" CssClass="TextBox" ValidationGroup="aa" Width="199px"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="?" ValidationGroup="aa"></asp:RequiredFieldValidator></td>
- <td style="vertical-align: bottom; height: 26px; text-align: left">
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FileUpload1" ErrorMessage="↓请选择LOGO图片!" ValidationGroup="bb"></asp:RequiredFieldValidator></td>
- </tr>
- <tr>
- <td style="width: 70px"> LOGO:</td>
- <td style="width: 162px; text-align: left"> <asp:TextBox ID="TextBox3" runat="server" CssClass="TextBox" ValidationGroup="aa" Width="201px"></asp:TextBox></td>
- <td style="text-align: left">
- <asp:FileUpload ID="FileUpload1" runat="server" CssClass="TextBox" />
- <asp:Button ID="Button2" runat="server" CssClass="Button" Text="上传" ValidationGroup="bb" OnClick="Button2_Click" /></td>
- </tr>
- <tr>
- <td style="width: 70px"> 备注:</td>
- <td colspan="2" style="text-align: left">
- <asp:TextBox ID="TextBox4" runat="server" CssClass="TextBox" Height="66px" TextMode="MultiLine"
- ValidationGroup="aa" Width="508px"></asp:TextBox></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="3" style="text-align: left; padding-left: 20px; height: 35px;">
- <table border="0" cellpadding="0" cellspacing="0" style="width: 237px">
- <tr>
- <td style="width: 73px">
- <asp:Button ID="Button1" runat="server" Text="添加连接" CssClass="Button" OnClick="Button1_Click" ValidationGroup="aa" /></td>
- <td style="width: 100px">
- <asp:Label ID="Label1" runat="server"></asp:Label></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
- <tr>
- <td class="top_table_td1"> </td>
- <td class="top_table_td2"> 链接管理</td>
- <td class="top_table_td3" width="651">
- </td>
- </tr>
- <tr>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
- <asp:DataList ID="DataList1" runat="server" Width="730px" OnItemCommand="DataList1_ItemCommand" OnCancelCommand="DataList1_CancelCommand" OnEditCommand="DataList1_EditCommand" OnUpdateCommand="DataList1_UpdateCommand">
- <ItemTemplate>
- <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
- <tr>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; width: 30px;" >
- ID:<asp:Label ID="Label5" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >
- <asp:Label ID="Label2" runat="server" Text='<%# Eval("title") %>'></asp:Label></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 210px;" >
- <asp:Label ID="Label3" runat="server" Text='<%# Eval("url") %>'></asp:Label></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 160px;" >
- <asp:Image ID="imgLOGO" runat="server" ImageUrl='<%# Eval("logo") %>' Height="31px" Width="88px" /></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 100px;" >
- <asp:Button ID="Button2" runat="server" Text="修改" CommandName="edit" CausesValidation="False" CssClass="Button" />
- <asp:Button ID="Button3" runat="server" Text="删除" CausesValidation="False" CommandName="Delete" CssClass="Button" OnClientClick="return confirm('确认要删除此条信息吗?')" /></td>
- </tr>
- </table>
- </ItemTemplate>
- <EditItemTemplate>
- <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
- <tr>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; width: 30px;" >
- ID:<asp:Label ID="Label5" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 180px;" >
- <asp:TextBox ID="TextBox6" runat="server" Text='<%# Eval("title") %>' CssClass="TextBox"></asp:TextBox></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 210px;" >
- <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("url") %>' CssClass="TextBox"></asp:TextBox></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 160px;" >
- <asp:TextBox ID="TextBox5" runat="server" Text='<%# Eval("logo") %>' CssClass="TextBox"></asp:TextBox></td>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 10px; width: 100px;" >
- <asp:Button ID="Button4" runat="server" CommandName="update" Text="更新" CausesValidation="False" CssClass="Button" />
- <asp:Button ID="Button5" runat="server" CommandName="cancel" Text="取消" CausesValidation="False" CssClass="Button" /></td>
- </tr>
- </table>
- </EditItemTemplate>
- </asp:DataList></td>
- </tr>
- </table>
- </asp:Content>