<!--
<?php
print <<<EOT
-->
<style type="text/css">
<!--
.dragTable  .h{
	clear:both;
	padding:3px 0 0 10px;
	line-height:22px;
	background:#DDD;	
}
.dragTable  .middle dl{
	clear:both;	
}
.dragTable  .middle dl dt{
	width:100px;
	padding:3px 10px 0 0 ;
	line-height:20px;
	text-align:right;
	float:left;
}
.dragTable  .middle dl dd{
	float:left;
	padding-top:3px;
}
.dragTable  .middle .mt10{
	margin-top:10px;
}
.dragTable  .middle .submit{
	margin:10px;
	text-align:center;
}
-->
</style>


<table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable">
  <tr>
    <td class="head">个人资料</td>
  </tr>
  <tr>
    <td class="middle">
<!--
EOT;
if($job=='edit'){
print <<<EOT
-->
		<form name="form1" method="post" action="?job=edit&" enctype="multipart/form-data" onsubmit="return ckregdatapost();">
        <div class="h">以下为重要信息</div>
		<dl>
        	<dt>帐号:</dt>
            <dd>$lfjid</dd>
        </dl>
        <dl>
        	<dt>邮箱:</dt>
            <dd><input type="text" name="email" style="width:130px;" value="$lfjdb[email]" $ipunt_email> 忘记密码时,取回密码使用</dd>
        </dl>
        <dl>
        	<dt>新密码:</dt>
            <dd><input type="password" name="password" style="width:130px;"></dd>
        </dl>
        <dl>
        	<dt>重复输入密码:</dt>
            <dd><input type="password" name="old_password" style="width:130px;"> (如果修改密码或邮箱,必须输入旧密码)</dd>
        </dl>        
        <dl>
<SCRIPT LANGUAGE="JavaScript">
<!--
var filed_id='';
var filed_name='';
function ckregdata(a,b){
	filed_id=a;
	filed_name=b;
}
function ckregdatapost(){
	id_array=filed_id.split(',');
	name_array=filed_name.split(',');
	for(var i=0;i<id_array.length;i++){
		if(id_array[i]!=''&&document.getElementById(id_array[i]).value==''){
			alert("“"+name_array[i]+'”不能为空');
			document.getElementById(id_array[i]).focus();
			return false;
		}
	}
}
document.write('<script src="$webdb[www_url]/images/default/setday.js"><\/script>');
/*如要为页面布局考虑的话，你可以把template\default\regfield.htm里边的内容复制过来，然后把以下两行删除即可*/
document.write('<div id="showRegDiv"></div>');
AJAX.get("showRegDiv","$webdb[www_url]/do/regfield.php?job=reg");
//-->
</SCRIPT>
        </dl>
        <div class="h mt10">以下为选填信息</div>
        <dl>
        	<dt>个人头像:</dt>
            <dd>
            	<span id="icon_web"><input type="text" name="icon" style="width:250px;" value="$lfjdb[icon]"></span> 
                <span id="icon_file" style="display:none;"><input type="file" name="postfile"></span> 
                <input type="radio" name="icon_type" value="old" checked onclick="document.getElementById('icon_web').style.display='';document.getElementById('icon_file').style.display='none';"> 网络地址 
                <input type="radio" name="icon_type" value="new"  onclick="document.getElementById('icon_web').style.display='none';document.getElementById('icon_file').style.display='';"> 重新上传
            </dd>
        </dl>
        <dl>
        	<dt>生日:</dt>
            <dd><input type="text" name="bday" style="width:130px;" value="$lfjdb[bday]"> 格式为1981-08-13</dd>
        </dl>
        <dl>
        	<dt>所在城市:</dt>
            <dd>
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/select_menu.js"></SCRIPT> 
<SCRIPT LANGUAGE="JavaScript">
<!--
var input_value='$lfjdb[cityid]';
var input_name='cityid';
var select_type='2';
var file='../do/ajax_select.php';
var DIV_idb='DIV_idb'+Math.random();
var input_idb='input_idb'+Math.random();
document.write("<span id='"+DIV_idb+"'></span>");
document.write("<input type='hidden' id='"+input_idb+"' name='"+input_name+"'  size='5' value='"+input_value+"'>");
get_div_S(DIV_idb,DIV_idb,input_idb,select_type,'',input_value);
//-->
</SCRIPT>           
            </dd>
        </dl>
        <dl>
        	<dt>性别:</dt>
            <dd>
            	<input type="radio" name="sex" value="0" $sex_db[0]> 保密 
                <input type="radio" name="sex" value="1" $sex_db[1]> 男
                <input type="radio" name="sex" value="2" $sex_db[2]> 女
            </dd>
        </dl>
        <dl>
        	<dt>QQ:</dt>
            <dd><input type="text" name="oicq" style="width:130px;" value="$lfjdb[oicq]"></dd>
        </dl>
        <dl>
        	<dt>MSN:</dt>
            <dd><input type="text" name="msn" style="width:130px;" value="$lfjdb[msn]"></dd>
        </dl>
        <dl>
        	<dt>个人主页:</dt>
            <dd><input type="text" name="homepage" style="width:250px;" value="$lfjdb[homepage]"></dd>
        </dl>
        <dl>
        	<dt>自我介绍:</dt>
            <dd><textarea name="introduce" cols="50" rows="5">$lfjdb[introduce]</textarea></dd>
        </dl>
        <dl>
        	<dt>联系地址:</dt>
            <dd><input type="text" name="address" style="width:250px;" value="$lfjdb[address]"></dd>
        </dl>
        <dl>
        	<dt>邮政编码:</dt>
            <dd><input type="text" name="address" style="width:250px;" value="$lfjdb[address]"></dd>
        </dl>
        <dl>
        	<dt>联系电话:</dt>
            <dd><input type="text" name="telephone" style="width:130px;" value="$lfjdb[telephone]"></dd>
        </dl>
        <dl>
        	<dt>联系手机:</dt>
            <dd><input type="text" name="mobphone" style="width:130px;" value="$lfjdb[mobphone]" $ipunt_mob></dd>
        </dl>
        <dl>
        	<dt>身份证号码:</dt>
            <dd><input type="text" name="idcard" style="width:250px;" value="$lfjdb[idcard]" $ipunt_idcard></dd>
        </dl>
        <dl>
        	<dt>真实姓名:</dt>
            <dd><input type="text" name="truename" style="width:130px;" value="$lfjdb[truename]" $ipunt_idcard></dd>
        </dl>
        <dl class="submit">
        	<input type="submit" name="Submit3" value="提 交">
            <input type="hidden" name="step" value="2">
        </dl>
        </form>
<!--
EOT;
}
print <<<EOT
-->  
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
