<%@ page language="C#" validaterequest="false" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_UserInfoList, mallz" title="商城用户资料设置" enableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script type="text/javascript">
function ShowProvinceCity()
{
    document.getElementById("display_province_city").style.display=""; 
}

function checkInput()
{
    var flag="ctl00_ContentPlaceHolder1_"; 
    var checkArray=["TxtU_TrueName","TxtU_Address","ZipCode","TxtU_MobilePhone","TxtU_HomePhone"];
    for(var i=0;i<checkArray.length;i++)
    {
    var obj=document.getElementById(flag+checkArray[i]);
    if(obj.value=="")
    {
        alert('必填选项不能为空');
        obj.focus();
        return false;
    }
    } 
    return true;
}
</script>

 <div class="pageTitle">个人资料设置</div>

     <table class="ShopOrderStyle">
     <caption>用户信息</caption>
         <tr>
             <td class="OrderTitle">用户帐号：</td>
             <td><asp:Literal ID="UserName" runat="server" /></td>
         </tr>
         <tr>
             <td class="OrderTitle">真实姓名：</td>
             <td><asp:TextBox ID="TxtU_TrueName" runat="server" Width="132px"  MaxLength="50" /><asp:label ID="Identify_truename_tips" runat="server" Visible="false"/></td>
         </tr>
         <tr>
            <td class="OrderTitle">Email：</td>
            <td><asp:Literal runat="server" ID="labemail" /> [<a href="../Passport/confirm_email.aspx" target="_blank">修改</a>]</td>
         </tr>
         <tr>
             <td class="OrderTitle">所在地：</td>
             <td>
                 <MZ:ProvinceCity ID="L_Province_City" runat="server" />
              </td>
         </tr>
         <tr>
             <td class="OrderTitle">详细地址：</td>
             <td><asp:TextBox ID="TxtU_Address" runat="server" Width="300px" Height="16px"  MaxLength="50"/></td>
         </tr>
         <tr>
             <td class="OrderTitle">邮政编码：</td>
             <td><asp:TextBox ID="ZipCode" runat="server" Width="100px" Height="16px"  MaxLength="6"/>
                 <asp:RegularExpressionValidator ID="Rev1" runat="server"  ErrorMessage="邮编格式不正确" ValidationExpression="\d{6}"
                  ControlToValidate="ZipCode" Display="Dynamic"/>
             </td>
         </tr>
         <tr>
             <td class="OrderTitle">交易联系方式：</td>
             <td>
                  <asp:RadioButtonList ID="RadioU_ContactType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Selected="True" Value="0">固话</asp:ListItem>
                        <asp:ListItem Value="1">手机</asp:ListItem>                  
                    </asp:RadioButtonList>
             </td>
         </tr>
         <tr>
             <td class="OrderTitle">手机号码：</td>
             <td>
               <asp:TextBox ID="TxtU_MobilePhone" runat="server" Width="132px" Height="16px"  MaxLength="11"/>
              <asp:HyperLink ID="HyperLink2" runat="server" Visible="False">点击这里进行绑定</asp:HyperLink>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"  ErrorMessage="手机格式不正确" ValidationExpression="\d{11}"
                  ControlToValidate="TxtU_MobilePhone" Display="Dynamic"/>
             </td>
         </tr>
         <tr>
             <td class="OrderTitle">固定电话：</td>
             <td><asp:TextBox ID="TxtU_HomePhone" runat="server" Width="132px" Height="16px" MaxLength="50"/>
             (区号-电话-分机)</td>
         </tr>
          <tr>
             <td class="OrderTitle">证件类型：</td>
             <td>
                <asp:DropDownList ID="RadioU_IdentifyType" runat="server" Enabled="False">
                   <asp:ListItem Selected="True" Value="0">居民身份证</asp:ListItem>                    
               </asp:DropDownList>
              </td>
         </tr>
         <tr>
             <td class="OrderTitle">证件号码：</td>
             <td>
             <asp:TextBox ID="TxtU_IDCard" runat="server" Width="250px" Height="16px" MaxLength="18" />
             <asp:label ID="identify_IDcard_tips" runat="server" Visible="false"/>
             <asp:label runat="server" style="color:Gray;" ID="IDcard_msg" Text="(请认真填写，提交后不能修改)" /></td>
         </tr>
          <tr runat="server" id="ShowQQ">
             <td class="OrderTitle">QQ：</td>
             <td><asp:TextBox ID="OICQ" runat="server" Width="132px" Height="16px" MaxLength="50"/> 
             <span style="color:Gray;">填写后将会在商品页面显示QQ联系</span>
             <asp:RegularExpressionValidator ID="revQQ" runat="server"  ErrorMessage="格式不正确" ValidationExpression="\d+" ControlToValidate="OICQ" Display="Dynamic"/>
             </td>
         </tr>
         <tr runat="server" id="ShowWW">
             <td class="OrderTitle">淘宝旺旺：</td>
             <td><asp:TextBox ID="Taobaowangwang" runat="server" Width="132px" Height="16px"  MaxLength="50"/>
             <span style="color:Gray;">填写后将会在商品页面显示淘宝旺旺联系</span></td>
         </tr>
         <tr>
             <td class="OrderTitle">认证状态：</td>
             <td><asp:Image ID="IdentifyStatus" runat="server" />
           <asp:HyperLink ID="GoIdentify" runat="server"  Target="_blank"/></td>
         </tr>
         <tr>           
             <td  colspan="2" style="text-align:center;">
                <asp:Button ID="BtnSave" runat="server" OnClick="ModifyInfr" Text="保存修改" OnClientClick="return confirm('确定保存修改吗？')" />
                <input type="button" value="取消返回" onclick="history.back()" name="cl" />
             </td>
         </tr>
     </table>
   
</asp:Content>

