<%@ page language="C#" masterpagefile="~/member/MemberMasterPage.master" autoeventwireup="true" inherits="V5Shop.NewMember.User_Informaion_Manage, V5Shop.Member" title="编辑个人资料" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div style="float:left; width:760px">
    <div><img src="images/list/top-1.gif" alt=""/></div>
	<div style="border-right:1px #C5DCE7 solid; width:755px; padding:2px">
	  <div style="background:url(images/list/a-1.gif); width:738px; height:30px; line-height:30px">
	    <div style="float:left; font-weight:bold; color:#014D7F; font-size:14px; padding-left:10px">编辑个人资料</div>
		<div style="float:right; padding-right:10px"><font color="#ff0000">*</font>表示该项必填</div>
	  </div>
	  <div class="account">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  
	  
<tr>
    <th width="19%">会员名：</th>
    <td width="81%">
     <asp:Label ID="lblName" runat="server"></asp:Label>
   </td>
  </tr>
  
  
  <tr>
    <th width="19%"> 性别：</th>
      <td width="81%">  <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="0">保密</asp:ListItem>
                            <asp:ListItem Value="1">男</asp:ListItem>
                            <asp:ListItem Value="2">女</asp:ListItem>
                        </asp:RadioButtonList>
       </td>
  </tr>
  
  
  <tr>
    <th width="19%">出生日期：</th>
    <td width="81%">
     
        <asp:TextBox ID="txtBirthDay" runat="server" Width="100px" CssClass="input2"></asp:TextBox>
        <img id="ImgBirthDay" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
        <asp:RegularExpressionValidator ID="revBirthDay" runat="server" ControlToValidate="txtBirthDay" ErrorMessage="必须输入日期。" Display="Dynamic" ForeColor ="red"
            ValidationExpression="^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$( (20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d$)*" />
    
    </td>
  </tr>
  <tr>
    <th>身份证号：</th>
    <td>   <asp:TextBox ID="txtIdentityCard" runat="server" Width="200px" CssClass="input2" MaxLength="50"></asp:TextBox></td>
  </tr>
  <tr>
    <th>电子邮箱：</th>
    <td>
     <asp:TextBox ID="txtEmail" runat="server" CssClass="input2" Width="200px" MaxLength="50"></asp:TextBox>
            <span style="color: Red">* </span>
            <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="red"></asp:RequiredFieldValidator>
    </td>
  </tr>
  <tr>
    <th>真实姓名：</th>
    <td>
     
                        <asp:TextBox ID="txtTrueName" runat="server" CssClass="input2" Width="200px" MaxLength="50"></asp:TextBox>
                        <span style="color: Red">*
                            <asp:RequiredFieldValidator ID="rfvTrueName" runat="server" ControlToValidate="txtTrueName" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="red"></asp:RequiredFieldValidator>
                        </span>
    </td>
  </tr>
  <tr>
    <th>联系地址：</th>
    <td>
      
                        <cc1:AreaBox ID="ddlAreaID" runat="server" />
                        <asp:TextBox ID="txtAddress" runat="server" Width="200px" CssClass="input2" MaxLength="150"></asp:TextBox>
                        <span style="color: Red">*
                            <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ControlToValidate="txtAddress" Display="Dynamic" ErrorMessage="必须输入！" ForeColor="red"></asp:RequiredFieldValidator>
                        </span>
    
    
      </td>
  </tr>
  <tr>
    <th>邮编 ：</th>
    <td> 
        <asp:TextBox ID="txtPostCode" runat="server" Width="200px"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPostCode"
                                    Display="Dynamic" ErrorMessage="只能为数字,长度不能超过9位" ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$"></asp:RegularExpressionValidator> </td>
  </tr>
  <tr>
    <th>联系电话：</th>
    <td><asp:TextBox ID="txtTelephone" runat="server" Width="200px" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" MaxLength="12" /> 
    <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3" ControlToValidate="txtTelephone" Display="dynamic" ErrorMessage="格式无效，请输入电话号码！" ForeColor="Red" ValidationExpression="^\d{3,4}-\d{7,8}(-\d{3,4})?$" /></td>
  </tr>
  <tr>
    <th>手机号码：</th>
    <td>  
        <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox>
        <asp:RegularExpressionValidator runat="server" ID="txtPhone1" ControlToValidate="txtPhone" Display="dynamic" ErrorMessage="格式无效，请输入正确手机号！" ForeColor="Red" ValidationExpression="^[\d]{11}$" />
    </td>
  </tr>
  
    <tr>
    <th>QQ：</th>
    <td> <asp:TextBox ID="txtQQ" runat="server" Width="200px"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtQQ"
                                    Display="Dynamic" ErrorMessage="只能为数字,长度不能超过9位" ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$"></asp:RegularExpressionValidator>
    </td>
  </tr>
  <asp:Repeater ID="rptUserFields" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td align="right" style="width: 20%; height: 30px;">
                                        <%#Eval("Name") %>：
                                        <input type="hidden" name="userFields" value='<%#Eval("keyword") %>' />
                                        <input type="hidden" name="userFieldsName" value='<%#Eval("Name") %>' />
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="width: 80%; height: 30px;">
                                    
                                        <%#Eval("Value") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
    <tr>
    <th>注册时间：</th>
    <td><asp:Label ID="lblRegDate" runat="server"></asp:Label>
    </td>
  </tr>
  
     <tr>
    <th>最后登录时间：</th>
    <td><asp:Label ID="lblLoginDate" runat="server"></asp:Label>
    </td>
  </tr>
  
     <tr>
    <th>登录次数：</th>
    <td><asp:Label ID="lblLoginTimes" runat="server"></asp:Label>
    </td>
  </tr>
      <tr>
    <th>最后登录IP：</th>
    <td><asp:Label ID="lblLoginIP" runat="server"></asp:Label>
    </td>
  </tr>
  <tr>
    <td></td>
    <td>
    
    <asp:Button ID="btnEdit" runat="server" OnClick="btnEdit_Click" Text="提交"  CssClass="input_bg" />
    <input type="reset" class="input_bg" value="取消" />
    </td>
  </tr>
</table>

	  </div>
	</div>
	<div><img src="images/list/bottom-1.gif"  alt=""/></div>
  </div>
  <script language="javascript" type="text/javascript">
        Calendar.setup({
            inputField     :    "<%=txtBirthDay.ClientID%>",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgBirthDay",
            align          :    "Br",
            singleClick    :    true
        });
    </script>
       <div class="clear"></div>
   <div class="banner_2"><img src="images/guangao/img-2.jpg" /></div>
</asp:Content>
