<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Advertisement_AdsCategory_Operate, V5Shop.Shop.Advertisement" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>编辑广告类别信息</title>
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
      <div class="OperateTitle">
        <div>
            <asp:Label ID="lblTitleAdd" runat="server" Text="【 广告类别信息添加 】"></asp:Label> 
            <asp:Label ID="lblTitleEdit" runat="server" Text="【 广告类别信息编辑 】" Visible="false"></asp:Label> 
            <a href="Advertisement_AdsCategory_Manage.aspx" title="返回广告类别列表">返回列表</a>
        </div>
    </div>
    
    <div>
            <table id="OperateTable" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
        <asp:Label ID="lblName" runat="server" Text="广告类别名称："></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align=left>
        <asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="20"></asp:TextBox>  <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtName" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
        </td>
        </tr>
        
        <tr>
        <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
        <asp:Label ID="lblHeadID" runat="server" Text="上级类别ID："></asp:Label>  </td>
        <td bgcolor="#FFFFFF" align=left>
        <asp:TextBox ID="txtHeadID" runat="server" Text="0" Width="300px"></asp:TextBox> 
        <input type="button" value="请选择上级类别" class="button" onclick="OpenDialogAdsCategory('txtHeadID')" />
        <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtHeadID" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
        </td>
        </tr>
        <tr>
        <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
        <asp:Label ID="lblDescription" runat="server" Text="广告类别描述："></asp:Label> </td>
        <td bgcolor="#FFFFFF" align=left>
        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="300px"></asp:TextBox> 
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDescription"
                ErrorMessage="长度必须在250字以内" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator></td>
        </tr>
        
        <tr>
                <td width="20%" height="30" align="right" bgcolor="#FFFFFF"></td>
        <td bgcolor="#FFFFFF" align=left>
        <asp:Button ID="btnAdd" runat="server" Text="确定" CssClass="button" OnClick="btnAdd_Click" />
        <asp:Button ID="btnEdit" runat="server" Text="更新" CssClass="button" OnClick="btnEdit_Click" Visible="False" />
        <input id="iptReset" runat="server" type="reset" class="button" value="重置" />    
        <input id="Button1" runat="server" type="button" value="返回列表" onclick="window.location.href='Advertisement_AdsCategory_Manage.aspx'" class="button"/>
        </td>
        </tr>
        </table>
        <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
        </script>  
      
    </div>
        <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>
