<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_UserDetail, WebApp_deploy" title="会员信息" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
  
<script src="Js/tabpane.js"  type="text/javascript"></script> 
<script type="text/javascript" src="Js/getdate.js"></script>
<script type="text/javascript">
function ChangeNumToText(Num)
{
    switch (Num)
    {
       case 0:
         document.write("未验证会员");
         break;
       case 1:
         document.write("注册会员");
         break;
    }
}
function openpassport(UserID){
    //recdata=showModalDialog('Admin_AddPassport.aspx?Action=Show&UserID='+UserID,'passport','dialogWidth:500px; dialogHeight:500px; help: yes; scroll: yes; status: no');
    location.href='Admin_AddPassport.aspx?Action=Show&UserID='+UserID;
}
</script>  
<asp:ScriptManager ID="ScriptManager1" runat="server"/>

<table class="adminheading">
  <tr>
	<th class="user" nowrap="nowrap">
	 <a href="Admin_Passport.aspx" target="_self">用户资料管理</a></th>
	 <td align="right"><div style="width:50px"><a href="javascript:{history.back()}">返回</a></div></td>
  </tr>                        
</table>
   
<table class="nick" cellpadding="1" cellspacing="1">
        <tr><td class="tit" colspan="2">个人信息</td></tr>
        <tr><td class="ltd" style="text-align:center">定位导航</td>
		<td class="rtd"><a href="#m0">基本信息</a> | <a href="#m1">联系信息</a> | <a href="#m2">商城信息</a></td></tr>
</table>
  
<table class="nick" id="m0">
	<tr><td class="tit" colspan="4">基本信息</td></tr>
	<tr>
		<td class="ltd">编号</td>
		<td class="rtd" style="width:35%">
			<asp:Textbox ID="UserIDBox" ReadOnly="true" runat="server" />
		</td>
		<td class="ltd">用户名称</td>
		<td class="rtd" style="width:35%">
			<asp:Textbox ID="UserNameBox"  ReadOnly="true" runat="server" />
		</td>
	</tr>
	<tr>
	  <td class="ltd">真实姓名</td>
	  <td class="rtd" style="width:35%"><asp:Textbox ID="TrueName"  runat="server" /></td>
	  <td class="ltd">籍贯</td>
	  <td class="rtd" style="width:35%"><asp:Textbox ID="ComeFrom" runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">生日</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Birthday"  runat="server" /></td>
	  <td class="ltd">民族</td>
	  <td class="rtd" style="width:35%"><asp:Textbox ID="Nation"  runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">身份证号</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="IDCard"  runat="server" /></td>
	  <td class="ltd">婚姻情况</td>
	  <td class="rtd" style="width:35%">
		 <asp:DropDownList ID="Marriage" runat="server" >
			<asp:ListItem Text="未婚" Value="0" />
			<asp:ListItem Text="已婚" Value="1" />
			<asp:ListItem Text="离异" Value="2" />
		 </asp:DropDownList>
	 </td>
	</tr>
	<tr>
	  <td class="ltd">学历</td>
	  <td class="rtd" style="width:35%">
		  <asp:DropDownList ID="Eductation" runat="server">
			<asp:ListItem Text="未知" Value="" />
			<asp:ListItem Text="小学" Value="小学" />
			<asp:ListItem Text="初中" Value="初中" />
			<asp:ListItem Text="高中" Value="高中" /> 
			<asp:ListItem Text="中专" Value="中专" />
			<asp:ListItem Text="大专" Value="大专" />
			<asp:ListItem Text="本科" Value="本科" />   
			<asp:ListItem Text="硕士" Value="硕士" />
			<asp:ListItem Text="博士" Value="博士" />                                                
		 </asp:DropDownList>
	   </td>
	  <td class="ltd">毕业学校</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="GraduteSchool" runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">家庭情况</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Family" runat="server" /></td>
	  <td class="ltd">兴趣</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Interests" runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">创建日期</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="CreateTime"  runat="server" /></td>                      
	  <td class="ltd">更新日期</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="UpdateTime"  runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">个人介绍</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="intro"  runat="server" /></td>
	  <td class="ltd">收入</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="InCome" runat="server" /></td>
	</tr>
</table>

<table class="nick" id="m1">
	<tr><td class="tit" colspan="4">联系信息</td></tr>
	<tr>
	  <td class="ltd">国家</td>
	  <td class="rtd" style="width:35%">
		<asp:DropDownList ID="CountryBox" runat="server" DataTextField="Country" DataValueField="Country"  AppendDataBoundItems="true">
		  <asp:ListItem Value="中华人民共和国" Text="中华人民共和国"></asp:ListItem>
		</asp:DropDownList>
	  </td>
	  <td class="ltd">省/市/自治区</td>
	  <td class="rtd" style="width:35%">
		  <div style="float: left">
			  <asp:DropDownList ID="Province" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataTextField="Province" OnSelectedIndexChanged="Province_OnChange" DataValueField="Province" />
		  </div>
	  </td>
	</tr>
	<tr>
	  <td class="ltd">邮编</td>
	  <td class="rtd" style="width:35%"><asp:Textbox ID="ZipCode" runat="server" /></td>
	  <td class="ltd">
		  城市</td>
	  <td class="rtd" style="width:35%">
		 <asp:UpdatePanel id="p" runat="server">
		  <ContentTemplate>
			<asp:DropDownList id="City" runat="server" AppendDataBoundItems="True" DataValueField="City" DataTextField="City"/>
		  </ContentTemplate>
		  <Triggers>
			<asp:AsyncPostBackTrigger ControlID="Province" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
		  </Triggers>
		  </asp:UpdatePanel>
	  </td>
	</tr>
	<tr>
	  <td class="ltd">家庭电话</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="HomePhone" runat="server" /></td>
	  <td class="ltd">详细地址</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Address"  runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">移动电话</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Mobile"  runat="server" /></td>
	  <td class="ltd">传真</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Fax" runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">OICQ</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="OICQ"  runat="server" /></td>
	  <td class="ltd">ICQ</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="ICQ" runat="server" /></td>
	</tr>
	<tr>
	  <td class="ltd">MSN</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="MSN"  runat="server" /></td>                      
	  <td class="ltd">个人主页</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="HomePage" runat="server" /></td>
	</tr>
	 <tr>
	  <td class="ltd">淘宝旺旺</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="Taobaowangwang" runat="server" /></td>                      
	  <td class="ltd">公司名称</td>
	  <td class="rtd" style="width:35%"><asp:TextBox ID="CompanyName" runat="server" /></td>     
	</tr>                                      
   </table>

<table class="nick" id="m2">
	<tr><td class="tit" colspan="4">商城信息</td></tr>
	<tr>
		 <td class="ltd">买家信用</td>
		 <td class="rtd" style="width:35%"><asp:TextBox ID="BuyCrediet" runat="server" /></td>                      
		 <td class="ltd">卖家信用</td>
		 <td class="rtd" style="width:35%"><asp:TextBox ID="SaleCrediet" runat="server" /></td>
	</tr>
	 <tr>
		 <td class="ltd">认证类型</td>
		 <td class="rtd" style="width:35%">
		 <asp:Label ID="renzheng" runat="server" ></asp:Label>
		 <asp:Label ID="renzheng1" runat="server" ></asp:Label>
		 <asp:Label ID="renzheng2" runat="server" ></asp:Label>
		 <asp:Label ID="renzheng3" runat="server" ></asp:Label>
		 <asp:Label ID="renzheng4" runat="server" ></asp:Label>
		 <asp:Label ID="renzheng5" runat="server" ></asp:Label>
		 </td>                      
		 <td class="ltd">店铺编号</td>
		 <td class="rtd" style="width:35%"><asp:TextBox ID="ShopID" runat="server" /></td>
	 </tr>
</table> 

<div class="div_btm">
	<asp:Button ID="UserDetailButton" Text="更新个人信息" CommandName="edit" OnCommand="UpDate_OnClick" CausesValidation="true" runat="server" />
	<asp:Button ID="AddUserDetailButton" Text="添加个人信息" CommandName="add" Visible="false" OnCommand="UpDate_OnClick" CausesValidation="true" runat="server" />
	<input type="button" onclick="return openpassport(<%=UserID %>)" name="op" value="查看通行证" />
	<input type="button" name="button" value="取消返回" onclick="history.back();" />
</div> 
</asp:Content>