<!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/Validform.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			// 性别选择
			$(':radio').RadioUI();
			sexSelection("#sex_check_box", "#sex");
			// 验证
			$("#Form_account").Validform({
				tiptype:2,
				datatype:{
					"u_name":function (gets,obj,curform,regxp) {
						if(gets == '')
						{
							return false;
						}
						regxp = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
						if(regxp.test(gets)) {
							$("#u_name").attr("ajaxurl","{#$QISHI.site_dir#}plus/ajax_user.php?act=check_reg_email");
						}
					}
				}
			});
		});
	</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_add_save" method="post" name="Form_account" id="Form_account">
					<div class="add_account_form">
						<table cellspacing="0">
							<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="u_name" id="u_name" sucmsg="&nbsp;" nullmsg="请填写账号" errormsg="请填写账号" ajaxurl="{#$QISHI.site_dir#}plus/ajax_user.php?act=check_reg_usname"/>
									</td>
									<td></td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">密码</td>
									<td><input type="password" name="password" class="text input-medium span170" value="{#$userinfo.password#}" datatype="*6-16" sucmsg="&nbsp;" nullmsg="请设置密码" errormsg="密码范围在6~16位之间！"/></td>
									<td></td>
								</tr>
								<tr>
									<td class="add_acc_left" width="57">确认密码</td>
									<td><input type="password" name="password2" class="text input-medium span170" value="{#$userinfo.password#}" datatype="*6-16" sucmsg="&nbsp;" recheck="password" nullmsg="请再输入一次密码" errormsg="您两次输入的账号密码不一致"/></td>
									<td></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;" ajaxurl="{#$QISHI.site_dir#}plus/ajax_user.php?act=check_reg_email" 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>
	{#include file="./footer.htm"#}
</body>
</html>