
<!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></title>
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
<script src="skin/default/js/area_database.js" type="text/javascript"></script>
<script src="skin/default/js/area_config.js" type="text/javascript"></script>
<script type='text/javascript'>
function checkform(){
	qq=document.form.qq.value;
	if(isNaN(qq)){
		parent.Dialog.alert("{echo:lp{u_qq_err};/}");
		return false;
	}
	var mood_text=trim(document.form.name.value);
	if(mood_text==''){
		parent.Dialog.alert("{echo:lp{u_no_name};/}");
		return false;
	}
}
function select_area(type){
	document.getElementById(type+"_info").style.display="none";
	document.getElementById(type).style.display="block";
}
 function trim(str){  //删除左右两端的空格
     return str.replace(/(^\s*)|(\s*$)|(　*)/g , "");
 }
 parent.guide("user_info");
	</script>
</head>

<body>
  <div class="main_right_title">
     <span class="main_title_dot9"></span>
     <span class="main_title_txt">{echo:lp{u_conf};/}</span>
  </div>
		<div id="tabsB">
			<ul>
		    <li><a href="?app=user_info" title="{echo:lp{u_info};/}" class="nowbutl"><span class="nowbutr">{echo:lp{u_info};/}</span></a></li>
		    <li><a href="?app=user_ico" title="{echo:lp{u_icon};/}"><span>{echo:lp{u_icon};/}</span></a></li>
		    <li><a href="?app=user_integral" title="{echo:lp{u_integral};/}"><span>{echo:lp{u_integral};/}</span></a></li>
		    <li><a href="?app=user_pw_change" title="{echo:lp{u_pw};/}"><span>{echo:lp{u_pw};/}</span></a></li>
		    <li><a href="?app=user_dressup" title="{echo:lp{u_dressup};/}"><span>{echo:lp{u_dressup};/}</span></a></li>
		  </ul>
		</div>
		
		<div class="container">
			<div class="rs_head">{echo:lp{u_fill};/}</div>
		</div>
		
		<form name="form" method="post" action="do.php?act=user_info" onsubmit="return checkform()">
			
			<table class="main main_left" border="0">
	
				<tr>
					<th>{echo:lp{u_name};/}</th>
					<td><input type="text" id="name" name="name" value="{echo:$user_row['user_name'];/}" maxlength="10" autocomplete='off'/></td>
				</tr>
				
				<tr>
					<th>{echo:lp{u_sex};/}</th>
					<td>
						<label for="sexm">
							<input id="sexm" type="radio" value="1" name="sex" {echo:$man_c;/} />{echo:lp{u_man};/}
						</label>
						
						<label for="sexw">
							<input id="sexw" type="radio" value="0" name="sex" {echo:$woman_c;/} />{echo:lp{u_wen};/}
						</label>
					</td>
				</tr>
				
				<tr>
					<th>{echo:lp{u_marr};/}</th>
					<td>
						<select id="marry" name="marry">
							<option value="0" {echo:$sec_c;/}>{echo:lp{u_sec};/}</option>
							<option value="1" {echo:$mer_c;/}>{echo:lp{u_marr_n};/}</option>
							<option value="2" {echo:$n_mer_c;/}>{echo:lp{u_marr_y};/}</option>
						</select>
					</td>
				</tr>
	
				<tr>
					<th>{echo:lp{u_bird};/}</th>
					<td>
						{echo:get_birth_date($user_row['birth_year'],$user_row['birth_month'],$user_row['birth_day']);/}
					</td>
				</tr>
				<tr>
					<th>{echo:lp{u_bld};/}</th>
					<td>
						{echo:get_blood($user_row['user_blood']);/}
					</td>
				</tr>
				
				<tr>
					<th>{echo:lp{u_birc};/}</th>
					
					<td>
						<div id="birth_info">{echo:$user_row['birth_province'];/}&nbsp&nbsp{echo:$user_row['birth_city'];/}&nbsp&nbsp<input type='button'  class="top_button" onclick='select_area("birth");' value='选择' /></div>
						<div id="birth" style="display:none">
							
							<select name='s_birth_province' onchange="TwoSelectInit(area2,this.value);document.getElementById('birth_province').value=this.value;"></select>
							<input type='hidden' name='birth_province' id='birth_province' value='{echo:$user_row["birth_province"];/}' />
							
							<select name='s_birth_city' onchange='document.getElementById("birth_city").value=this.value'></select>
							<input type='hidden' name='birth_city' id='birth_city' value='{echo:$user_row["birth_city"];/}' />
							
							<script type="text/javascript">
								var area2 = new HwTwoSelect(document.form.s_birth_province,document.form.s_birth_city,selecttext,"－{echo:lp{u_province};/}－@","－{echo:lp{u_city};/}－@",0);
								TwoSelectInit(area2);
							</script>
							
						</div>
					</td>
				</tr>
				
				<tr>
					<th>{echo:lp{u_res};/}</th>
					<td>
						<div id="reside_info">{echo:$user_row['reside_province'];/}&nbsp&nbsp{echo:$user_row['reside_city'];/}&nbsp&nbsp<input type='button' class='top_button' onclick='select_area("reside");' value='选择' /></div>
					
						<div id="reside" style="display:none">
							<select name='s_reside_province' onchange="TwoSelectInit(area1,this.value);document.getElementById('reside_province').value=this.value;"></select>
							<input type='hidden' name='reside_province' id='reside_province' value='{echo:$user_row["reside_province"];/}' />
							
							<select name='s_reside_city' onchange='document.getElementById("reside_city").value=this.value'></select>
							<input type='hidden' name='reside_city' id='reside_city' value='{echo:$user_row["reside_city"];/}' />
							
							<script type="text/javascript">
								var area1 = new HwTwoSelect(document.form.s_reside_province,document.form.s_reside_city,selecttext,"－{echo:lp{u_province};/}－@","－{echo:lp{u_city};/}－@",0);
								TwoSelectInit(area1);
							</script>
						
						</div>
					</td>
				</tr>
				
				<tr>
					<th>QQ</th>
					<td><input type="text" class="t_input" name="qq" value="{echo:$user_row['user_qq'];/}" maxlength="16" autocomplete='off'/></td>
				</tr>
				
				<tr>
					<td></td>
					<td>
						<input type="submit" name="profilesubmit2" value="{echo:lp{u_b_con};/}" class="anniu" />
						<input type="button" name="Submit" onclick="location.href='?app=user_info'" class="anniu" value="{echo:lp{u_b_can};/}" />
					</td>
				</tr>
			</table>
			
	</form>
</body>
</html>
