<?php include 'header.tpl.php';?>
<script src="<?php echo WEB_URL;?>/images/js/ajax.js"></script>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<?php if($obj_ctl_limit->chk_act("add")){?><li><a href="javascript:frmExecute('add');">添加</a></li><?php }?>
<li class="sel"><a href="javascript:frmExecute('edit');">编辑</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" disabled>
	<option value=""></option>
	<?php foreach($arr_type as $item=>$val){
		$str_sel="";
		if($arr_user["user_type"]==$val) $str_sel=" selected";
		echo "<option value='".$val."'".$str_sel.">".$item."</option>";
		}
		?>
	</select></td></tr>
	<tr><td class="pTabColName">用户名：</td><td class="pTabColVal"><input type="input" name="user_name" value="<?php echo $arr_user["user_name"];?>" 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="<?php echo $arr_user["user_email"];?>" size=50>　<span class="pBetainfo">(请输入正确邮箱地址,当忘记密码时用来找回密码)</span></td></tr>
	</table>
	<?php if($arr_user["user_type"]=="company"){?>
	<table class='pEditTable' id="id_company_info">
	<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="<?php echo $arr_company["company_name"];?>"></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="<?php echo $arr_company["company_linkname"];?>"></td></tr>
	<tr><td class="pTabColName">联系电话：</td><td class="pTabColVal"><input type="text" name="company_tel" value="<?php echo $arr_company["company_tel"];?>"></td></tr>
	<tr><td class="pTabColName">通讯地址：</td><td class="pTabColVal"><input type="text" name="company_address" value="<?php echo $arr_company["company_address"];?>"></td></tr>
	</table>
	<input type="hidden" name="company_id" value="<?php echo $arr_company["company_id"];?>">
	<?php }?>
	<?php if($arr_user["user_type"]=="personal"){?>
	<table class='pEditTable' id="id_resume_info">
	<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="<?php echo $arr_resume["resume_name"];?>"></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="男" <?php if($arr_resume["resume_sex"]=='男') echo "checked";?>>男</td></tr>
	<tr><td class="pTabColName">出生年月：</td><td class="pTabColVal"><input type="text" name="resume_birthday" value="<?php echo $arr_resume["resume_birthday"];?>" onfocus="setday(this);"></td></tr>
	</table>
	<input type="hidden" name="resume_id" value="<?php echo $arr_resume["resume_id"];?>">
	<?php }?>
	<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';?>		
