<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Member_Add.aspx.cs"  Inherits="Member_Add" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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 id="Head1" runat="server">
    <title>会员添加</title>
    <link rel="stylesheet" type="text/css" href="../css/list.css" />
    <link href="../style/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery-1.5.2.min.js" type="text/javascript"></script>
    <script src="../js/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        function setinitvalue(obj) {
            if ($(obj).val() == "") { $(obj).val("1"); }
        }
        
        function check() {
            //            alert($("#rbtPic").Selected.ToString());
            if ($("#rbtLanguage").attr("checked")==!true) {
                document.getElementById("pic").style.display = "none";
            } 
        }
    </script>
    <style type="text/css">
         .hideclass 
         { 
         display:none; 
         } 
    </style>
    <script type="text/javascript" language="javascript">
        $(function () {
            $("#rbtPic").change(function () {
                $("#tr1").removeClass("hideclass");
                $("#tr2").addClass("hideclass");
            })
 
            $("#rbtLanguage").change(function () {
                $("#tr1").addClass("hideclass");
                $("#tr2").removeClass("hideclass");
            })
 
        });
     </script>
</head>
<body onload ="controlInputNumber();" class="_body" style="margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px">
    <form id="form1" runat="server">
        <div class="list1">
		<div class="list2">
			<span>会员添加</span>
		</div>
		<div style="border:1px solid #FFFFFF">
		<table class="list3" width="100%" height="100%" cellpadding="0" cellspacing="0">
			<tr>
                 <td class="list3_1" style="width:215px" nowrap="nowrap">
                    <span style=" color:Black">会员名称：</span>
                </td>
                 <td class="list3_2" nowrap="nowrap">
                    <asp:TextBox ID="txtMemberName" runat="server" Text=""></asp:TextBox><font color="red">*</font>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtMemberName" ErrorMessage="请输入会员名称！" ToolTip="请输入会员名称！" Display="Dynamic"></asp:RequiredFieldValidator>                       
                 </td>
            </tr>
			<tr>
				<td class="list3_1" nowrap="nowrap">
					<span style=" color:Black">会员等级：</span>
				</td>
				<td class="list3_2" nowrap="nowrap">
					<asp:DropDownList ID="ddlMemberRank" runat="server" style="margin-left:10px" >									  
					</asp:DropDownList><font color="red">*</font>
					<asp:RequiredFieldValidator ID="RequiredFieldValidator1" InitialValue="0" runat="server" ControlToValidate="ddlMemberRank" ErrorMessage="请选择产品类型！" ToolTip="请选择产品类型！" Display="Dynamic"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
                    <td class="list3_1" style="width: 215px" nowrap="nowrap">
                        <span style="color:Black">密码：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:TextBox ID="txtPassword" runat="server" Text="" TextMode="Password" class="text_ipt"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtPassword"
                            ErrorMessage="密码格式不正确，请输入以字母开头，长度在6-18之间，可以包含字符、数字和下划线！" ValidationExpression="^[\dA-Za-z(!@#$%&)]{1,18}$"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                    <td class="list3_1" style="width: 215px" nowrap="nowrap">
                        <span style="color:Black">E-mail：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:TextBox ID="txtEmail" runat="server" Text=""></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="E-mail格式不正确，请核对后再输！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                    <td class="list3_1" style="width: 215px" nowrap="nowrap">
                        <span style="color:Black">电话：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:TextBox ID="txtPhone" runat="server" Text=""></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone"
                            ErrorMessage="电话格式不正确，请核对后再输！" ValidationExpression="(^(\d{3,4}-)?\d{7,8})$|(13[0-9]{9})"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                    <td class="list3_1" style="width: 215px" nowrap="nowrap">
                        <span style="color:Black">QQ：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:TextBox ID="txtQQ" runat="server" Text=""></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtQQ"
                            ErrorMessage="QQ格式不正确，请核对后再输！" ValidationExpression="[0-9]{5,9}"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                 <td class="list3_1" style="width:215px" nowrap="nowrap">
                    <span style=" color:Black">通讯地址：</span>
                </td>
                 <td class="list3_2" nowrap="nowrap">
                    <asp:TextBox ID="txtAddress" runat="server" Text=""></asp:TextBox><font color="red">*</font>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtAddress" ErrorMessage="请填写通讯地址！" ToolTip="请填写通讯地址！" Display="Dynamic"></asp:RequiredFieldValidator>                       
                 </td>
            </tr>
			<tr>
			    <td  colspan="2" style=" height:30px;">
			    <asp:ImageButton ID="tijiao" runat="server" Text="" OnClick="tijiao_Click"  Style="cursor: pointer; margin-left:225px;"  ImageUrl="../images/blue/submit.jpg"  />
			    <asp:ImageButton ID="btn_Return" runat="server" OnClick="btnReturn_Click" ImageUrl="../images/blue/cancel.jpg" Style="cursor: pointer; margin-left:10px"/>
			    </td>
			</tr>
		</table>
		</div>
	</div>
    </form>
</body>
</html>