admin_class.aspx
资源名称:xwfbxt.rar [点击查看]
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:10k
源码类别:
.net编程
开发平台:
Visual C++
- <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_class, oyaya" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
- <div style="padding-left:15px;">
- <asp:panel id="Panel1" Height="120px" Width="750px" 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="0" cellspacing="0" style="width: 708px">
- <tr>
- <td style="width: 230px;">
- 大类名称:<asp:TextBox ID="TextBox1" runat="server" Width="153px" CssClass="TextBox"></asp:TextBox></td>
- <td style="text-align: left; width: 200px;"><asp:Button ID="Button1" runat="server" Text="添加大类" OnClick="Button1_Click" /><asp:Label ID="Label1" runat="server"></asp:Label></td>
- <td style="text-align: left; width: 200px;">
- <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage='最多6个字符!' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
- <table border="0" cellpadding="0" cellspacing="0" style="width: 708px">
- <tr>
- <td style="width: 380px;">
- 所属大类:<asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList> 小类名称:<asp:TextBox ID="TextBox3" runat="server" Width="153px" CssClass="TextBox"></asp:TextBox></td>
- <td style="text-align: left; width: 100px;"><asp:Button ID="Button6" runat="server" Text="添加小类" CssClass="Button" OnClick="Button6_Click" /><asp:Label ID="Label6" runat="server"></asp:Label></td>
- <td style="text-align: left; width:206px;">
- <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox3" ErrorMessage='最多6个字符!' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </asp:panel>
- <asp:panel id="Panel2" Height="80px" Width="750px" 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="0" cellspacing="0" style="width: 708px">
- <tr>
- <td style="width: 230px;">
- 大类名称:<asp:TextBox ID="TextBox2" runat="server" Width="153px" CssClass="TextBox"></asp:TextBox></td>
- <td style="text-align: left; width: 200px;"><asp:Button ID="Button2" runat="server" Text="修改大类" CssClass="Button" OnClick="Button01_Click" /><asp:Label ID="Label4" runat="server"></asp:Label></td>
- <td style="text-align: left; width: 200px;"><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage='不能为空!'></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage='<div class="boxdiv2">最多6个字符!</div>' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </asp:panel>
- <asp:panel id="Panel3" Height="80px" Width="750px" 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="0" cellspacing="0" style="width: 708px">
- <tr>
- <td style="width: 380px;">
- 所属大类:<asp:DropDownList ID="DropDownList2" runat="server"></asp:DropDownList> 小类名称:<asp:TextBox ID="TextBox4" runat="server" Width="153px" CssClass="TextBox"></asp:TextBox></td>
- <td style="text-align: left; width: 100px;"><asp:Button ID="Button3" runat="server" Text="修改小类" CssClass="Button" OnClick="Button06_Click" /><asp:Label ID="Label5" runat="server"></asp:Label></td>
- <td style="text-align: left; width:206px;"><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox3"
- ErrorMessage='不能为空!'></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBox3" ErrorMessage='<div class="boxdiv2">最多6个字符!</div>' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </asp:panel>
- </div>
- <table border="0" cellpadding="0" cellspacing="0" style="border-right: #a2d0e5 1px solid; border-top: #a2d0e5 1px solid; margin-top: 15px; border-left: #a2d0e5 1px solid; border-bottom: #a2d0e5 1px solid;float: right; background-color: #f6fbff;" width="750">
- <tr>
- <td style="background-image: url(images/back-1.gif); border-bottom-width: 1px; border-bottom-color: #cadcea; width: 20px; height: 28px;"> </td>
- <td style="font-weight: bold; background-image: url(images/back-12.gif); border-bottom-width: 1px; border-bottom-color: #cadcea; width: 79px; height: 28px;"> 分类管理</td>
- <td style="background-image: url(/images/back-1.gif); border-bottom-width: 1px; border-bottom-color: #cadcea; height: 28px;" width="651">
- </td>
- </tr>
- <tr>
- <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 8px;" colspan="3">
- <table border="0" cellpadding="0" cellspacing="0" style="width: 730px;">
- <tr>
- <td class="class_tda0 jiacu"> ID:</td>
- <td class="class_tda1 jiacu" >类名</td>
- <td class="class_tda2 jiacu" >管理</td>
- </tr>
- </table>
- <asp:DataList ID="DataList1" runat="server" Width="730px" OnItemDataBound="DataList1_ItemDataBound" OnItemCommand="DataList1_ItemCommand">
- <ItemTemplate>
- <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
- <tr>
- <td class="class_td"><asp:Label ID="Label2" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
- <td class="class_td1" ><asp:Label ID="Label3" runat="server" Text='<%# Eval("class_name") %>'></asp:Label></td>
- <td class="class_td2" ><a href="admin_class.aspx?action=1&id=<%# Eval("id") %>">修改</a> <asp:Button ID="Button3" runat="server" Text="删除" CausesValidation="False" CommandName="delclass" CssClass="Button" OnClientClick="return confirm('确认要删除此条信息吗?')" /></td>
- </tr>
- </table>
- <asp:DataList ID="DataList2" runat="server" Width="730px" OnItemCommand="DataList2_ItemCommand">
- <ItemTemplate>
- <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
- <tr>
- <td class="class_td0" ><asp:Label ID="Label02" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
- <td class="class_td01" >--<asp:Label ID="Label03" runat="server" Text='<%# Eval("board_name") %>'></asp:Label></td>
- <td class="class_td02" ><a href="admin_class.aspx?action=2&id=<%# Eval("id") %>&classid=<%# Eval("classid") %>">修改</a> <asp:Button ID="Button3" runat="server" Text="删除" CausesValidation="False" CommandName="delboard" CssClass="Button" OnClientClick="return confirm('确认要删除此条信息吗?')" /></td>
- </tr>
- </table>
- </ItemTemplate>
- </asp:DataList>
- </ItemTemplate>
- </asp:DataList></td>
- </tr>
- </table>
- </asp:Content>
- <asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
- 添加分类</asp:Content>