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

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_class, oyaya" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  3.     <div style="padding-left:15px;">
  4.      <asp:panel id="Panel1" Height="120px" Width="750px" Runat="server">
  5.       <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  6.         <tr>
  7.             <td class="top_table_td1">  </td>
  8.             <td class="top_table_td2"> 分类添加</td>
  9.             <td class="top_table_td3" width="651">
  10.             </td>
  11.         </tr>
  12.         <tr>
  13.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  14.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 708px">
  15.                     <tr>
  16.                         <td style="width: 230px;">
  17.                             大类名称:<asp:TextBox ID="TextBox1" runat="server"  Width="153px" CssClass="TextBox"></asp:TextBox></td>
  18.                             <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>
  19.                         <td style="text-align: left; width: 200px;">
  20.                             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage='最多6个字符!' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator>
  21.                            </td>
  22.                             
  23.                     </tr>
  24.                 </table>
  25.             </td>
  26.         </tr>
  27.         <tr>
  28.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  29.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 708px">
  30.                     <tr>
  31.                         <td style="width: 380px;">
  32.                             所属大类:<asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList> 小类名称:<asp:TextBox ID="TextBox3" runat="server"  Width="153px" CssClass="TextBox"></asp:TextBox></td>
  33.                             <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>
  34.                         <td style="text-align: left; width:206px;">
  35.                             &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox3" ErrorMessage='最多6个字符!' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator>
  36.                            </td>
  37.                     </tr>
  38.                 </table>
  39.             </td>
  40.         </tr>
  41.     </table>
  42.     </asp:panel>
  43.     <asp:panel id="Panel2" Height="80px" Width="750px" Runat="server">
  44.        <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  45.         <tr>
  46.             <td class="top_table_td1">  </td>
  47.             <td class="top_table_td2"> 修改分类</td>
  48.             <td class="top_table_td3" width="651">
  49.             </td>
  50.         </tr>
  51.         <tr>
  52.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  53.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 708px">
  54.                     <tr>
  55.                         <td style="width: 230px;">
  56.                             大类名称:<asp:TextBox ID="TextBox2" runat="server"  Width="153px" CssClass="TextBox"></asp:TextBox></td>
  57.                             <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>
  58.                         <td style="text-align: left; width: 200px;"><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage='不能为空!'></asp:RequiredFieldValidator>
  59.                             <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage='<div class="boxdiv2">最多6个字符!</div>' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator></td>
  60.                             
  61.                     </tr>
  62.                 </table>
  63.             </td>
  64.         </tr>
  65.     </table>   
  66.     </asp:panel>
  67.         <asp:panel id="Panel3" Height="80px" Width="750px" Runat="server">
  68.        <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
  69.         <tr>
  70.             <td class="top_table_td1">  </td>
  71.             <td class="top_table_td2"> 修改分类</td>
  72.             <td class="top_table_td3" width="651">
  73.             </td>
  74.         </tr>
  75.        <tr>
  76.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
  77.                 <table border="0" cellpadding="0" cellspacing="0" style="width: 708px">
  78.                     <tr>
  79.                         <td style="width: 380px;">
  80.                             所属大类:<asp:DropDownList ID="DropDownList2" runat="server"></asp:DropDownList> 小类名称:<asp:TextBox ID="TextBox4" runat="server"  Width="153px" CssClass="TextBox"></asp:TextBox></td>
  81.                             <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>
  82.                         <td style="text-align: left; width:206px;"><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox3"
  83.                     ErrorMessage='不能为空!'></asp:RequiredFieldValidator>
  84.                             <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBox3" ErrorMessage='<div class="boxdiv2">最多6个字符!</div>' ValidationExpression="^.{0,6}$"></asp:RegularExpressionValidator></td>
  85.                     </tr>
  86.                 </table>
  87.             </td>
  88.         </tr>
  89.     </table>   
  90.     </asp:panel>
  91.     </div>
  92.       <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">
  93.         <tr>
  94.             <td style="background-image: url(images/back-1.gif); border-bottom-width: 1px; border-bottom-color: #cadcea; width: 20px; height: 28px;"> </td>
  95.             <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>
  96.             <td style="background-image: url(/images/back-1.gif); border-bottom-width: 1px; border-bottom-color: #cadcea; height: 28px;" width="651">
  97.             </td>
  98.         </tr>
  99.         <tr>
  100.             <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 8px;" colspan="3">
  101.                <table border="0" cellpadding="0" cellspacing="0" style="width: 730px;">
  102.                             <tr>
  103.                                 <td class="class_tda0 jiacu"> ID:</td>
  104.                                 <td class="class_tda1 jiacu" >类名</td>
  105.                                 <td class="class_tda2 jiacu" >管理</td>
  106.                             </tr>
  107.                         </table>
  108.                 <asp:DataList ID="DataList1" runat="server" Width="730px" OnItemDataBound="DataList1_ItemDataBound" OnItemCommand="DataList1_ItemCommand">
  109.                     <ItemTemplate>
  110.                         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  111.                             <tr>
  112.                                 <td class="class_td"><asp:Label ID="Label2" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  113.                                 <td class="class_td1" ><asp:Label ID="Label3" runat="server" Text='<%# Eval("class_name") %>'></asp:Label></td>
  114.                                 <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>
  115.                             </tr>
  116.                         </table>
  117.                     <asp:DataList ID="DataList2" runat="server" Width="730px" OnItemCommand="DataList2_ItemCommand">
  118.                     <ItemTemplate>
  119.                         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  120.                             <tr>
  121.                                 <td class="class_td0" ><asp:Label ID="Label02" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
  122.                                 <td class="class_td01" >--<asp:Label ID="Label03" runat="server" Text='<%# Eval("board_name") %>'></asp:Label></td>
  123.                                 <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>
  124.                             </tr>
  125.                         </table>
  126.                     </ItemTemplate>
  127.                 </asp:DataList>
  128.                     </ItemTemplate>
  129.                 </asp:DataList></td>
  130.         </tr>
  131.     </table>  
  132. </asp:Content>
  133. <asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
  134.     添加分类</asp:Content>