<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#$webtitle#} - Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="../templates/www/{#$getconfig.default#}/css/main.css" />
<link rel="stylesheet" type="text/css" href="../templates/user/css/user.css" />
<script language="javascript" src="{#$base_weburl#}/js/jquery-1.7.2.js" ></script>
<script language="javascript" src="{#$base_weburl#}/js/common.js" ></script>
<script language="javascript">
	var webroot_url = '{#$base_weburl#}';
	function submitFun()
	{
	
		document.formSub.action='{#$base_weburl#}/user/index.php?load=user&act=updateuser';
		document.formSub.target="_self"
		document.formSub.submit(); 
		
	}


	function upLoadFile()
	{

		document.formSub.target="hidden_frame"
		document.formSub.action='{#$base_weburl#}/user/index.php?load=uploadfile&act=upload&upLoadName=upfile&getUrl=usd_image';
		document.formSub.submit(); 
		document.getElementById("lodingdiv").style.display="";
		document.getElementById("lodingdiv").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}
	
 
	
	function hiddenLoding()
	{
		document.getElementById("lodingdiv").style.display="none";
		document.getElementById("lodingdiv").innerHTML="";
		document.getElementById("link_logo").value="";
		document.getElementById("upfile").value="";
	}
	
</script>
</head>
<body>
{#include file="./cover/header_tpl.html"#}
{#include file="./cover/webaddress_tpl.html"#}
<div class="maincss">
{#include file="./cover/userleft_tpl.html"#}
<div id="usermain">
<div class="usermainright">
<form action="{#$actUrl#}"  method="post"  target="_blank"  enctype="multipart/form-data"  name="formSub" id="formSub" >
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">基本信息</th>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright">性别</td><td class="tdleft">男<input name="usd_sex" id="usd_sex" value="1"  type="radio"  {#if $UserDetail.usd_sex eq 1#} checked="checked" {#/if#} >&nbsp;女<input name="usd_sex" id="usd_sex" value="2"  type="radio" {#if $UserDetail.usd_sex eq 2#} checked="checked" {#/if#} ></td></tr>	

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright">昵称</td><td class="tdleft"><input name="usd_nick" id="usd_nick" value="{#$UserDetail.usd_nick#}" type="text"  style="width:250px;" ></td></tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright">头像</td><td class="tdleft"><input type="file" id="upfile" name="upfile" style="width:450" >&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(this)">
<iframe name='hidden_frame' id="hidden_frame" style="border:none; background-color:#00CCCC;" scrolling="no" width="0" height="0" ></iframe><br />
{#if $UserDetail.usd_image eq ''#}
<input type="hidden"  name="usd_image" id="usd_image" value="" /><div id="lodingdiv" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<input type="hidden"  name="usd_image" id="usd_image" value="{#$UserDetail.usd_image#}" /><div id="lodingdiv" style="width:380px;" >{#$UserDetail.usd_image#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding()"></div>{#/if#}

</td></tr>



<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright">真实姓名</td><td class="tdleft"><input name="usd_truename" id="usd_truename" value="{#$UserDetail.usd_truename#}" type="text"  style="width:250px;" ></td></tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>生日：</strong></td>
<td class="tdleft"><input name="usd_birthday" id="usd_birthday"  value="{#$UserDetail.usd_birthday#}" type="text"  style="width:250px;"  onClick='popUpCalendar(this, this, "yyyy-mm-dd")' ></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>兴趣：</strong></td>
<td class="tdleft"><input name="usd_salt" id="usd_salt" value="{#$UserDetail.usd_salt#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>MSN：</strong></td>
<td class="tdleft"><input name="usd_msn" id="usd_msn" value="{#$UserDetail.usd_msn#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>QQ：</strong></td>
<td class="tdleft"><input name="usd_qq" id="usd_qq" value="{#$UserDetail.usd_qq#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>办公电话：</strong></td>
<td class="tdleft"><input name="usd_officephone" id="usd_officephone" value="{#$UserDetail.usd_officephone#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>家庭电话：</strong></td>
<td class="tdleft"><input name="usd_homephone" id="usd_homephone" value="{#$UserDetail.usd_homephone#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>手机：</strong></td>
<td class="tdleft"><input name="usd_mobile" id="usd_mobile" value="{#$UserDetail.usd_mobile#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>所在区域：</strong></td>
<td class="tdleft"><div id="userd_addr"><span id="userd_province"><select name="idprovince" id="idprovince"><option value="">请选择</option></select></span><span id="userd_city"><select name="idcity" id="idcity"><option value="" >请选择</option></select></span><span id="userd_district"><select name="iddistrict" id="iddistrict"><option value="" >请选择</option></select></span></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>所在地址：</strong></td>
<td class="tdleft">

<script language="javascript">
	function getareadict( objval, nextobj , areatype , selval )
	{
		var areatype = areatype; 
		var idnextobj = document.getElementById( nextobj );
		if(objval!='')
		{
			$.get("{#$base_weburl#}/index.php?load=ajaxarea&act="+areatype+"&objval="+objval+"&selval="+selval, function(data)
			{
				idnextobj.innerHTML = data;
			})
		}else{
			$.get("{#$base_weburl#}/index.php?load=ajaxarea&act="+areatype+"", function(data)
			{
				idnextobj.innerHTML = data;
			})
		}
		
	}
	function provinceval(obj)
	{
		
		spprovince.innerHTML = obj.options[obj.selectedIndex].text;
		spcity.innerHTML	 = '';
		spdistrict.innerHTML = '';
		
		document.getElementById('hiprovince').value = obj.options[obj.selectedIndex].text;
		document.getElementById('hicity').value 	= '';
		document.getElementById('hidistrict').value = '';
		
	}
	function cityval(obj)
	{
		spcity.innerHTML	 = obj.options[obj.selectedIndex].text;
		spdistrict.innerHTML = '';
		
		document.getElementById('hicity').value 	  = obj.options[obj.selectedIndex].text;
		document.getElementById('hidistrict').value   = '';
	}
	
	function districtval(obj)
	{
		spdistrict.innerHTML = obj.options[obj.selectedIndex].text
		
		document.getElementById('hidistrict').value = obj.options[obj.selectedIndex].text;
	}
	
	getareadict( '0',  'userd_province','province' ,  '{#$UserDetail.usd_province#}');
	getareadict( '{#$UserDetail.usd_province#}',  'userd_city','city' ,  '{#$UserDetail.usd_city#}');
	getareadict( '{#$UserDetail.usd_city#}',  'userd_district','district' ,  '{#$UserDetail.usd_district#}');
	
</script><input type="hidden" value="" name="hiprovince" id="hiprovince" /><input type="hidden" value="" name="hicity" id="hicity" /><input type="hidden" value="" name="hidistrict" id="hidistrict" />
<input name="usd_address" id="usd_address" value="{#$UserDetail.usd_address#}" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><input name="editbutton" id="editbutton" type="button" value="修 改"  onclick="submitFun(this)" ></td>
</tr></table>
</form>
</div>
</div>
</div>
{#include file="./cover/onlinefooter_tpl.html"#}
</body>
</html>