<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="UserAdd.aspx.cs" Inherits="SocoShop.Web.Admin.UserAdd" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Import Namespace="SocoShop.Business" %>
<%@ Import Namespace="SocoShop.Common" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script language="javascript" src="/Admin/Js/calendar.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="/Admin/js/UnlimitClass.js"></script>
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>用户<%=ShopCommon.GetAddUpdate()%></div>
<div class="add">	
	<ul>
		<li class="left">用户名：</li>
		<li class="right"><SkyCES:TextBox ID="UserName" CssClass="input" runat="server" Width="100px"  CanBeNull="必填"/></li>
		<li class="left">电子邮箱：</li>
		<li class="right"><SkyCES:TextBox ID="Email" CssClass="input" runat="server" Width="100px" CanBeNull="必填" RequiredFieldType="电子邮箱"/></li>
	</ul>
	<asp:PlaceHolder ID="Add" runat="server">
	<ul>
		<li class="left">密码：</li>
		<li class="right"><SkyCES:TextBox ID="UserPassword" CssClass="input" runat="server" Width="100px" CanBeNull="必填" RequiredFieldType="自定义验证表达式" ValidationExpression="^[\W\w]{6,16}$" CustomErr="密码长度大于6位少于16位" TextMode="Password"/></li>
		<li class="left">重复密码：</li>
		<li class="right"><SkyCES:TextBox CssClass="input" Width="100px" ID="UserPassword2" runat="server" CanBeNull="必填" RequiredFieldType="自定义验证表达式" ValidationExpression="^[\W\w]{6,16}$" CustomErr="密码长度大于6位少于16位" TextMode="Password"/>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次密码不一致" ControlToCompare="UserPassword" ControlToValidate="UserPassword2" Display="Dynamic"></asp:CompareValidator>
        </li>
	</ul>
	</asp:PlaceHolder>
	<ul>
		<li class="left">性别：</li>
		<li class="right"><asp:RadioButtonList ID="Sex" runat="server" RepeatDirection="Horizontal"><asp:ListItem Value="1">男</asp:ListItem><asp:ListItem Value="2">女</asp:ListItem><asp:ListItem Value="3" Selected="True">保密</asp:ListItem></asp:RadioButtonList></li>
	</ul>
	<ul>
		<li class="left">介绍：</li>
		<li class="right"><SkyCES:TextBox ID="Introduce" CssClass="input" runat="server" Width="400px"  TextMode="MultiLine" Height="100px"/></li>
	</ul>
	<ul>
		<li class="left">照片：</li>
		<li class="right"><SkyCES:TextBox ID="Photo" CssClass="input" runat="server" Width="400px" /></li>
	</ul>
	<ul>
		<li class="left">上传照片：</li>
		<li class="right"><iframe src="UploadAdd.aspx?Control=Photo&TableID=<%=UserBLL.TableID%>&FilePath=UserPhoto" width="400" height="30px" frameborder="0" allowTransparency="true" scrolling="no"></iframe></li>
	</ul> 
	<ul>
		<li class="left">MSN：</li>
		<li class="right"><SkyCES:TextBox ID="MSN" CssClass="input" runat="server" Width="100px" /></li>
		<li class="left">QQ：</li>
		<li class="right"><SkyCES:TextBox ID="QQ" CssClass="input" runat="server" Width="100px" /></li>
	</ul>
	<ul>
		<li class="left">固定电话：</li>
		<li class="right"><SkyCES:TextBox ID="Tel" CssClass="input" runat="server" Width="100px" /></li>
		<li class="left">移动电话：</li>
		<li class="right"><SkyCES:TextBox ID="Mobile" CssClass="input" runat="server" Width="100px" /></li>
	</ul>
	<ul>
		<li class="left">所在地区：</li>
		<li class="right"><SkyCES:SingleUnlimitControl ID="UserRegion" runat="server" /></li>
	</ul>
	<ul>
		<li class="left">详细地址：</li>
		<li class="right"><SkyCES:TextBox ID="Address" CssClass="input" runat="server" Width="400px" /></li>
	</ul>	
	<ul>
		<li class="left">生日：</li>
		<li class="right"><SkyCES:TextBox ID="Birthday" CssClass="input" runat="server" Width="140px" CanBeNull="必填" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/></li>
		<li class="left">状态：</li>
		<li class="right"><asp:RadioButtonList ID="Status" runat="server" RepeatDirection="Horizontal"><asp:ListItem Value="1">未验证</asp:ListItem><asp:ListItem Value="2" Selected="True">正常</asp:ListItem><asp:ListItem Value="3">冻结</asp:ListItem></asp:RadioButtonList></li>
	</ul>
</div>
<div class="action">
    <asp:Button CssClass="button" ID="SubmitButton" Text=" 确 定 " runat="server"  OnClick="SubmitButton_Click" />
</div>
</asp:Content>
