<!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" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{#$title#}</title>
	<meta name="author" content="骑士CMS" />
	<meta name="copyright" content="74cms.com" />
	<link rel="shortcut icon" href="{#$QISHI.site_dir#}favicon.ico" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/user_common.css" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/user_company.css" />
	<script src="{#$QISHI.site_template#}js/png24fix.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.js"></script>
	<script type="text/javascript" src="{#$QISHI.site_template#}js/jquery.radioui.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.radiorelated.js"></script>
	<script src="{#$QISHI.site_template#}js/tc.all.js"></script>
	<script src="{#$QISHI.site_template#}js/Validform.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			// 性别选择
			$(':radio').RadioUI();
			sexSelection("#sex_check_box", "#sex");
			// 验证
			$("#Form_account").Validform({
				tiptype:2
			});
			// 修改密码
			$("#modify_password").click(function() {
				popWin("primary_account");
			});
		});
	</script>
</head>
<body>
	{#include file="member_company/header.htm"#}
	{#include file="member_company/company_info_category.htm"#}
	<!-- 企业添加账号 -->
	<div class="container">
		<div class="com_add_account_box">
			<div class="com_add_account">
				<div class="add_back clearfix link_blue">
					<a href="?act=account_manage" class="edit_back_link">返回账号管理</a>
				</div>
				<form action="?act=account_edit_save" method="post" name="Form_account" id="Form_account">
					<div class="add_account_form">
						<table cellspacing="0">
							<input type="hidden" name="uid" value="{#$userinfo.uid#}">
							<tbody>
								<tr>
									<td class="add_acc_left" width="57">账号</td>
									<td>
										<input type="text" name="username" class="text input-medium span170" value="{#$userinfo.username#}" datatype="*" sucmsg="&nbsp;" nullmsg="请填写账号" errormsg="请填写账号"/>
									</td>
									<td></td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">密码</td>
									<td>*******************&nbsp;&nbsp;<a id="modify_password" href="javascript:;" style="font-size:12px;color:#247faf">[修改]</a>
										<input type="hidden" name="password" class="text input-medium span170" value="{#$userinfo.password#}"/>
									</td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">姓名</td>
									<td><input type="text" name="fullname" class="text input-medium span170" value="{#$userinfo.fullname#}" datatype="*" sucmsg="&nbsp;" nullmsg="请填写姓名" errormsg="请填写姓名"/></td>
									<td></td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">性别</td>
									<td id="sex_check_box">
										<label class="sex"><input type="radio" name="sexchoose" data="1" {#if $userinfo.sex=="1"#}checked{#/if#} value="1"/>&nbsp;男</label><label class="sex"><input type="radio" name="sexchoose" data="2" {#if $userinfo.sex=="2"#}checked{#/if#} value="2" />&nbsp;女</label>
										<input name="sex" id="sex" type="hidden" value="{#if $userinfo.sex==""#}1{#else#}{#$userinfo.sex#}{#/if#}" />
									</td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">联系电话</td>
									<td><input type="text" class="text input-medium span170" name="mobile" value="{#$userinfo.mobile#}" datatype="m" sucmsg="&nbsp;" nullmsg="请填写联系电话" errormsg="请输入有效的电话号码"/></td>
									<td></td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">邮箱</td>
									<td><input type="text" class="text input-medium span170" name="email" value="{#$userinfo.email#}" datatype="e" sucmsg="&nbsp;" nullmsg="请填写邮箱" errormsg="请输入有效的邮箱"/></td>
									<td></td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">&nbsp;</td>
									<td><input type="submit" value="保存" class="but75lan" /></td>
								</tr>
							</tbody>
						</table>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- 主账号修改密码弹出框 -->
	<div class="aui_outer" style="display:none;" id="primary_account">
		<table class="aui_border">
			<tbody>
				<tr><td class="aui_nw"></td><td class="aui_n"></td><td class="aui_ne"></td></tr>
				<tr>
					<td class="aui_w"></td>
					<td class="aui_c">
						<div class="aui_inner">
							<table class="aui_dialog">
								<tbody>
									<tr><td class="aui_header" colspan="2"><div class="aui_titleBar"><div class="aui_title" style="cursor: move;">修改密码</div><a href="javascript:;" class="aui_close">×</a></div></td></tr>
									<tr>
										<td class="aui_main" style="width: auto; height: auto; visibility: visible;">
											<div class="aui_content" style="padding: 0px;">
												<div style="width:460px" class="LocalDataMultiC">
													<div style="height:auto;position:relavtive" class="data-row-list data-row-main">
														<style type="text/css">
															.security_change_box{padding-top:25px;padding-left:50px;}
															.security_change_form .security_change_item{height:30px;line-height: 30px;padding-bottom: 13px;}
															.security_change_form .security_change_item .security_change_type{float: left;width:82px;font-size: 12px;color:#333;text-align:right;}
															.security_change_form .security_change_item .security_change_con{float: left;}
															.security_change_form .security_change_item .security_change_con .ver_code{margin-left: 15px;}
														</style>
														<form action="?act=account_password_edit_save" method="post" name="Form_modify_pws" id="Form_modify_pws">
															<input type="hidden" name="uid" value="{#$userinfo.uid#}">
															<div class="security_change_box" >
																<div class="security_change_form">
																	{#if $userinfo.uid==$userinfo.parentuid#}
																	<div class="security_change_item clearfix">
																		<div class="security_change_type">当前密码：</div>
																		<div class="security_change_con">
																			<input name="opassword" type="password" class="text input-medium span215" datatype="*6-16" sucmsg="&nbsp;" nullmsg="请输入当前密码" errormsg="密码范围在6~16位之间" ajaxurl="{#$QISHI.site_dir#}plus/ajax_user.php?act=check_old_pass"/>
																		</div>
																		<div>
																			<div class="valid_info"><span class="Validform_checktip">请输入当前密码</span><span class="valid_dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
																		</div>
																	</div>
																	{#/if#}
																	<div class="security_change_item clearfix">
																		<div class="security_change_type">新密码：</div>
																		<div class="security_change_con">
																			<input name="npassword" type="password" class="text input-medium span215" datatype="*6-16" sucmsg="&nbsp;" nullmsg="请输入新密码" errormsg="密码范围在6~16位之间"/>
																		</div>
																		<div>
																			<div class="valid_info"><span class="Validform_checktip">请输入新密码</span><span class="valid_dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
																		</div>
																	</div>
																	<div class="security_change_item clearfix">
																		<div class="security_change_type">重复新密码：</div>
																		<div class="security_change_con">
																			<input name="napassword" type="password" class="text input-medium span215" datatype="*" sucmsg="&nbsp;" recheck="npassword" nullmsg="请再输入一次密码" errormsg="您两次输入的账号密码不一致"/>
																		</div>
																		<div>
																			<div class="valid_info"><span class="Validform_checktip">请再输入一次密码</span><span class="valid_dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
																		</div>
																	</div>
																	<div class="security_change_item clearfix" style="padding-bottom:25px;">
																		<div class="security_change_type">&nbsp;</div>
																		<div class="security_change_con">
																			<input type="submit" value="确定" class="but60lan" />
																		</div>
																	</div>
																</div>
															</div>
														</form>
														<script type="text/javascript">
															//验证
															$("#Form_modify_pws").Validform({
																tiptype:function(msg,o,cssctl){
																	if(!o.obj.is("form")){
																		var objtip=o.obj.parents("div.security_change_con").next().find(".Validform_checktip");
																		cssctl(objtip,o.type);
																		objtip.text(msg);
																		var infoObj=o.obj.parents("div.security_change_con").next().find(".valid_info");
																		if(o.type==2){
																			infoObj.fadeOut(200);
																		}else{
																			if(infoObj.is(":visible")){return;}
																			var left=o.obj.offset().left,
																				top=o.obj.offset().top,
																				rleft=o.obj.parents("div.data-row-main").offset().left,
																				rtop=o.obj.parents("div.data-row-main").offset().top;
																			infoObj.css({
																				left:133,
																				top:top-rtop-25
																			}).show();
																		}
																	}	
																}
															});
														</script>
													</div>
												</div>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</td>
					<td class="aui_e"></td>
				</tr>
				<tr><td class="aui_sw"></td><td class="aui_s"></td><td class="aui_se" style="cursor: se-resize;"></td></tr>
			</tbody>
		</table>
	</div>
	{#include file="./footer.htm"#}
</body>
</html>