<!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#}{#$web_config.poweredby#}</title>
<link rel="stylesheet" type="text/css" href="../templates/www/{#$web_config.temp -> dir#}/css/{#$web_config.temp -> style#}.css" />
<link rel="stylesheet" type="text/css" href="./css/user.css" />
<script language="javascript" src="./js/jquery.min.js" ></script>
<script language="javascript" src="./js/user_command.js" ></script>
<script language="javascript" src="/js/common.js" ></script>
<script src="/js/laydate/laydate.js"></script>
<script language="javascript">
	var webroot_url = '{#$base_weburl#}';
	function submitFun()
	{
	
		var idusd_nick 			= document.getElementById('usd_nick');
		var idusd_tel 		= document.getElementById('usd_tel');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idusd_nick.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：昵称不能为空！请输入！';
			idusd_nick.focus();
			return false;
		}

		if(idusd_tel.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：手机不能为空！请输入！';
			idusd_tel.focus();
			return false;
		}

		document.formSub.target="_self"
		document.formSub.submit(); 
		
	}


	function select_img( type_val , id_val )
	{
	   var someValue=window.showModalDialog("./index.php?load=user_file&act=info_list&type="+type_val+"&get_id="+id_val,"","dialogWidth=500px;dialogHeight=500px;status=no;help=no;scrollbars=no");
	   document.getElementById(id_val).value=some_value;
	}

	
 
	
	function hiddenLoding()
	{
		document.getElementById("lodingdiv").style.display="none";
		document.getElementById("lodingdiv").innerHTML="";
		document.getElementById("link_logo").value="";
		document.getElementById("upfile").value="";
	}
	
	laydate.skin('danlan'); 
</script>
</head>
<body>
{#include file="./cover/header.tpl"#}
{#include file="./cover/web_address.tpl"#}
<div class="maincss">
{#include file="./cover/user_left.tpl"#}
<div id="usermain">
<div class="usermainright">
<form action="{#$act_url#}"  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 >
<td class="tdright">性别</td><td class="tdleft">男<input name="usd_sex" id="usd_sex" value="1"  type="radio"  {#if $user_info.usd_sex eq 1#} checked="checked" {#/if#} >&nbsp;女<input name="usd_sex" id="usd_sex" value="2"  type="radio" {#if $user_info.usd_sex eq 2#} checked="checked" {#/if#} ></td></tr>	

<tr >
<td class="tdright">昵称</td><td class="tdleft"><input name="usd_nick" id="usd_nick" value="{#$user_info.usd_nick#}" type="text"  style="width:250px;" ></td></tr>


<tr >
<td class="tdright">头像</td><td class="tdleft"><input name="usd_image" id="usd_image" value="{#$user_info.usd_image#}"  />
<button type="button" class="btn btn-default"  onclick="select_img('user','usd_image')" >选择图片</button>
</td></tr>



<tr >
<td class="tdright">真实姓名</td><td class="tdleft"><input name="usd_truename" id="usd_truename" value="{#$user_info.usd_truename#}" type="text"  style="width:250px;" ></td></tr>


<tr >
<td class="tdright"><strong>生日：</strong></td>
<td class="tdleft" > <input name="usd_birthday" id="usd_birthday"  value="{#$user_info.usd_birthday|date_format:'%Y-%m-%d'#}"  type="text"  onclick="laydate()" class="laydate-icon" ></td>
</tr>


<tr >
<td class="tdright"><strong>兴趣：</strong></td>
<td class="tdleft"><input name="usd_salt" id="usd_salt" value="{#$user_info.usd_salt#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>MSN：</strong></td>
<td class="tdleft"><input name="usd_msn" id="usd_msn" value="{#$user_info.usd_msn#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>QQ：</strong></td>
<td class="tdleft"><input name="usd_qq" id="usd_qq" value="{#$user_info.usd_qq#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>办公电话：</strong></td>
<td class="tdleft"><input name="usd_officephone" id="usd_officephone" value="{#$user_info.usd_officephone#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>家庭电话：</strong></td>
<td class="tdleft"><input name="usd_homephone" id="usd_homephone" value="{#$user_info.usd_homephone#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>手机：</strong></td>
<td class="tdleft"><input name="usd_tel" id="usd_tel" value="{#$user_info.usd_tel#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>所在区域：</strong></td>
<td class="tdleft"><span id="province_span"><select class="form-control" name="province" id="province">
          <option value="">{#$lang.txt_select#}</option>
          </select></span> 

 <span id="city_span"><select class="form-control" name="city" id="city">
          <option value="" >{#$lang.txt_select#}</option>
          </select></span>
          <span id="district_span"><select class="form-control" name="district" id="district">
          <option value="" >{#$lang.txt_select#}</option>
          </select></span>
      <input name="pcd_all" id="pcd_all" value="{#$user_info.pcd_all#}" type="hidden"  >
          </td>
</tr>

<tr >
<td class="tdright"><strong>所在地址：</strong></td>
<td class="tdleft">
<script language="javascript">
	get_area( '0',  'province' ,  '{#$user_info.usd_province#}');
	get_area( '{#$user_info.usd_province#}', 'city' ,  '{#$user_info.usd_city#}');
	get_area( '{#$user_info.usd_city#}', 'district' ,  '{#$user_info.usd_district#}');
</script>
<input name="usd_address" id="usd_address" value="{#$user_info.usd_address#}" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>
<tr >
<td colspan="2"  class="tdcenter"><input name="editbutton" id="editbutton" type="button" value="{#$lang.edit#}"  onclick="submitFun(this)" ></td>
</tr></table>
</form>
</div>
</div>
</div>
{#include file="./cover/footer.tpl"#}
</body>
</html>