<?php include 'header.tpl.php';?>
<script src="<?php echo WEB_URL;?>/images/js/ajax.js"></script>
<script>
function me_sel_change(msgval){
	obj_id=document.getElementById("id_company_info");
	obj_resume=document.getElementById("id_resume_info");
	if(msgval=="company"){
		obj_id.style.display="";
	}else{
		obj_id.style.display="none";
		if(msgval=="personal"){
			obj_resume.style.display="";
		}else{
			obj_resume.style.display="none";
		}
	}
}
</script>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<li class="sel"><a href="javascript:frmExecute('add');">添加</a></li>
<li class="info"><a href="javascript:inc_show_help(194);" style="color:#ff0000">帮助</a></li>
</div>
<div>
	<table class='pEditTable'>
	<tr class='pTabTitRow'><td class='pTabTitCol' colspan="2"></td></tr>
	<tr><td class="pTabColName">类　型：</td><td class="pTabColVal"><select name="user_type" onchange="me_sel_change(this.value)">
	<option value=""></option>
	<?php foreach($arr_type as $item=>$val){
		echo "<option value='".$val."'>".$item."</option>";
		}
		?>
	</select></td></tr>
	<tr><td class="pTabColName">用户名：</td><td class="pTabColVal"><input type="input" name="user_name" value="" size=50>　<span class="pBetainfo">(不能重复)</span></td></tr>
	<tr><td class="pTabColName">密　码：</td><td class="pTabColVal"><input type="password" name="user_pwd" value="" size=50>　<span class="pBetainfo">(*)</span></td></tr>
	<tr><td class="pTabColName">邮　箱：</td><td class="pTabColVal"><input type="input" name="user_email" value="" size=50>　<span class="pBetainfo">(请输入正确邮箱地址,当忘记密码时用来找回密码)</span></td></tr>
	</table>
	<table class='pEditTable' id="id_company_info" style="display:none">
	<tr class='pTabTitRow'><td class='pTabTitCol' colspan="2"></td></tr>
	<tr><td class="pTabColName">企业名称：</td><td class="pTabColVal"><input type="text" name="company_name" value=""></td></tr>
	<tr><td class="pTabColName">所在地区：</td><td class="pTabColVal"><?php echo $this_company_area;?></td></tr>
	<tr><td class="pTabColName">联 系 人：</td><td class="pTabColVal"><input type="text" name="company_linkname" value=""></td></tr>
	<tr><td class="pTabColName">联系电话：</td><td class="pTabColVal"><input type="text" name="company_tel" value=""></td></tr>
	<tr><td class="pTabColName">通讯地址：</td><td class="pTabColVal"><input type="text" name="company_address" value=""></td></tr>
	</table>
	<table class='pEditTable' id="id_resume_info" style="display:none">
	<tr class='pTabTitRow'><td class='pTabTitCol' colspan="2"></td></tr>
	<tr><td class="pTabColName">姓名：</td><td class="pTabColVal"><input type="text" name="resume_name" value=""></td></tr>
	<tr><td class="pTabColName">性别：</td><td class="pTabColVal"><input type="radio" name="resume_sex" value="女" checked>女&nbsp;<input type="radio" name="resume_sex" value="男">男</td></tr>
	<tr><td class="pTabColName">出生年月：</td><td class="pTabColVal"><input type="text" name="resume_birthday" value="" onfocus="setday(this);"></td></tr>
	</table>

	<table class='pEditTable'>
		<tr><td colspan=2 class="pTabSubmit">
		<?php if($obj_ctl_limit->chk_act("save")){?><input type="button" name="subok" value="保 存" class="pSubmit" onclick="frmExecute('save')"><?php }else{?>
		<font color="red">没有保存权限！</font>
		<?php }?>
		　<input type="button" name="subok" value="取　消" class="pCancel" onclick="frmExecute('')"></td></tr>
	</table>
</div>
<?php include 'footer.tpl.php';?>		
