<%@ page language="C#" autoeventwireup="true" inherits="Admin_Brand_Operate, ShopNum1Deploy" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" 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>Untitled Page</title>
      <link type="text/css" rel="Stylesheet" href="css/index.css" />
    <script type="text/javascript">
   
    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxLogo").value = k.substring(lastIndex+1,strLen); 
         document.getElementById("ImageOriginalImge").src = k; 
        }
    } 
     </script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
     <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" Text="【 新增品牌 】"></asp:Label></div>
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
 
            <tr>
                <td align="right" style="width:20%;">
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width:20%;">
                    <asp:Label ID="LabelName" runat="server" Text="品牌名称："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorLogoName" 
                        runat="server" ControlToValidate="TextBoxName" Display="Dynamic" 
                        ErrorMessage="品牌名称最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" style="width:20%;">
                    <asp:Label ID="LabelWebSite" runat="server" Text="品牌网址："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxWebSite" runat="server"  CssClass="input2"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorLogoWebSite" 
                        runat="server" ControlToValidate="TextBoxWebSite" Display="Dynamic" 
                        ErrorMessage="品牌地址最多100个字符" ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelOrderID" runat="server" Text="品牌排序："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxOrderID" runat="server"  CssClass="input2"></asp:TextBox>
        <asp:Label ID="Label5" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" 
                            runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorLogoOrderID" 
                        runat="server" ControlToValidate="TextBoxOrderID" Display="Dynamic" 
                        ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right" style="width:20%;" >
    
                    <asp:Label ID="LabelLogo" runat="server" Text="品牌Logo："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxLogo" runat="server"  CssClass="input2"></asp:TextBox>
                   <input id="ButtonSelectSingleImage" 
                    type="button" value="选择图片" onclick= "openSingleChild()"  /><asp:RegularExpressionValidator ID="RegularExpressionValidatorLogo" 
                        runat="server" ControlToValidate="TextBoxLogo" Display="Dynamic" 
                        ErrorMessage="品牌Logo最多250个字符" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                    <img id="ImageOriginalImge" alt="" src="~/images/noImage.gif" runat="server" /></td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelKeywords" runat="server" Text="品牌关键字："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxKeywords" runat="server"  CssClass="input2"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorLogoKeywords" 
                        runat="server" ControlToValidate="TextBoxKeywords" Display="Dynamic" 
                        ErrorMessage="关键字最多200个字符" ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelIsShow" runat="server" Text="是否前台显示："></asp:Label>
                </td>
                <td align="left" >
        <asp:DropDownList ID="DropDownListIsShow" runat="server" 
            AutoPostBack="True"  CssClass="select2">
        </asp:DropDownList>
        <asp:Label ID="Label4" runat="server"  Text="*" ForeColor="red"></asp:Label>
                    <asp:CompareValidator ID="CompareValidatorIsShow" runat="server" 
                            ControlToValidate="DropDownListIsShow" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelRemark" runat="server" Text="品牌简介："></asp:Label>
                </td>
                <td align="left" style="width:60%; font-weight: 700;">
                    <asp:TextBox ID="TextBoxRemark" runat="server" TextMode="MultiLine" Width="440" Height="60"></asp:TextBox>
                        </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="Label1Description" runat="server" Text="品牌描述："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxDescription" runat="server" TextMode="MultiLine"  Width="440" Height="60" ></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorLogoDescription" 
                        runat="server" ControlToValidate="TextBoxDescription" Display="Dynamic" 
                        ErrorMessage="品牌描述最多150个字符" ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                        </td>
            </tr>
      
            <tr>
                <td align="right" style="width:20%;">
                    &nbsp;</td>
                <td align="left" >
                    &nbsp;</td>
            </tr>
            <tr >
             <td colspan="2" >
    
 
                     <div class="btconfig">
        <asp:Button ID="ButtonConfirm" runat="server"  Text="确定" 
            Width="59px" ToolTip="Submit" onclick="ButtonConfirm_Click" CssClass="bt2" />
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                         <a href="Brand_List.aspx"><img src="images/back.png" border="0" align="top" /></a>
                         
                         <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
    
                        
                </td>  
            </tr>
        </table>



                    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />


    </form>
</body>
</html>
