<%template _header%>
<!--header end-->
<script type="text/javascript" src="templates/{templatepath}/calendar.js"></script>
<!--TheCurrent start-->
<div id="foruminfo">
	<div class="userinfo">
		<h2><a href="{config.forumurl}" class="home">{config.forumtitle}</a> <span><a href="usercp.aspx">用户中心</a></span><strong>编辑个人档案</strong></h2>	</div>
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
</div>
<!--TheCurrent end-->

<!--主体-->
<div class="controlpannel">
   <%template _menu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _permenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if page_err==0%>
						<%if ispost%>
							<%template _msgbox%>
						<%else%>
						<form action="" method="post" ID="Form1">
						<label for="realname">真实姓名:</label>
							<input name="realname" type="text" id="realname" value="{user.realname}" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" size="10" />
						<br />
						<label for="idcard">身份证号码:</label>
							<input name="idcard" type="text" id="idcard" value="{user.idcard}" size="20" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" />
						<br />
						<label for="mobile">移动电话号码:</label>
							<input name="mobile" type="text" id="mobile" value="{user.mobile}" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" size="20" />
						<br />
						<label for="phone">固定电话号码:</label>
							<input name="phone" type="text" id="phone" value="{user.phone}" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" size="20" />
						<br />
						<div style="line-height:180%;">
						<label for="gender">性别:</label>
							<input type="radio" name="gender" value="1"  class="radioinput" 
							<%if {user.gender}==1%>
							 checked="checked"
							<%/if%>
							 ID="Radio1"/>
							男
							<input type="radio" name="gender" value="2"  class="radioinput" 
							<%if {user.gender}==2%>
							 checked="checked"
							<%/if%>
							 ID="Radio2"/>
							女
							<input name="gender" type="radio" value="0"   class="radioinput" 
							<%if {user.gender}==0%>
							 checked="checked"
							<%/if%>
							 ID="Radio3"/>
							保密 
						</div>
						<br style="height:1px;line-height:5px;"/>
						<label for="nickname">呢称:</label>
						<input name="nickname" type="text" id="nickname" value="{user.nickname}" size="30" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" /><br />
						<label for="EMail">EMail:</label>
							<input name="email" type="text" id="email" value="{user.email}" size="30" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" /> 
							<input name="showemail" type="checkbox" id="showemail" value="0" 
							<%if {user.showemail}==0%>
									checked="checked"
							<%/if%>/>
									Email保密
						<br />
						<label for="website">主页:</label>
						<input name="website" type="text" class="colorblue" id="website" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.website}" size="30" /> 
						<br />
						<label for="location">来自:</label>
						<input name="location" type="text" id="location" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.location}" size="20" />
						<br />
						<label for="bday">生日:</label>
						<input name="bday" type="text" id="bday" size="10" value="{user.bday}" style="cursor:default" class="colorblue" onClick="showcalendar(event, 'bday', 'cal_startdate', 'cal_enddate', '1980-01-01');" readonly="readonly" />
						<input type="hidden" name="cal_startdate" id="cal_startdate" size="10"  value="1900-01-01" />
						<input type="hidden" name="cal_enddate" id="cal_enddate" size="10"  value="{nowdatetime}" />
						<br />
						<label for="msn">MSN Messenger:</label>
						<input name="msn" type="text" class="colorblue" id="msn" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.msn}" size="30" />
						<br />
						<label for="qq">QQ:</label>
						<input name="qq" type="text" class="colorblue" id="qq" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.qq}" size="12" />
						<br />
						<label for="Skype">Skype:</label>
						<input name="skype" type="text" class="colorblue" id="skype" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.skype}" size="30" />
						<br />
						<label for="ICQ">ICQ:</label>
						<input name="icq" type="text" class="colorblue" id="icq" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.icq}" size="12" />
						<br />
						<label for="yahoo">Yahoo Messenger:</label>
						<input name="yahoo" type="text" class="colorblue" id="yahoo" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="{user.yahoo}" size="30" />
						<br />
						<label for="bio">自我介绍:</label>
						<textarea name="bio" cols="50" rows="6" id="bio" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" style="width:80%;">{user.bio}</textarea>
						<br />
						<label for="Submit">&nbsp;</label><input type="submit" name="Submit" value="确定" class="sbutton" onclick="if (document.getElementById('bio').value.length > 500) {alert('自我介绍长度最大为500字'); return false;}" ID="Submit1"/>
								</form>
						<%/if%>
						</div>
					<%else%>
					<%template _usercperrmsgbox%>
					<%/if%>
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
