<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加管理员 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript" src="{#$base_weburl#}/js/common.js"></script>
<script language="javascript">
	function submitFun()
	{
		var idadmin_name 		= document.getElementById('admin_name');
		
		var idadmin_truename 	= document.getElementById('admin_truename');
		
		var idadmin_email 		= document.getElementById('admin_email');
		var idadmin_pwd 		= document.getElementById('admin_pwd');
		var idreadmin_pwd 		= document.getElementById('readmin_pwd');
		
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');
		
		patn = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
		
		patnadmin = /([a-zA-Z0-9]{3,18})/;
	
		if(!notempty( idadmin_name , nameval = '帐号' ))
		{
			return false;
		}else if(!patnadmin.test(idadmin_name.value))
		{
			alert ("提示：\n\n帐号名称格式不正确，请输入正确的帐号名称！");
			idadmin_name.focus (); 
			return false; 
		}else if(!notempty( idadmin_email , nameval = 'E-mail' ))
		{
			return false;
		}else if(!checkemail( idadmin_email ))
		{
			return false; 
		}else if(!notempty( idadmin_pwd , nameval = '密码' ))
		{
			return false;
		}else if(!notempty( idreadmin_pwd , nameval = '确认密码' ))
		{
			return false;
		}else if(idreadmin_pwd.value!=idadmin_pwd.value)
		{
			idsuggestionInfo.innerHTML = ' 提 示：确认密码与密码不一致！请重新输入！';
			idreadmin_pwd.focus();
			return false;
		}

	}

</script>
</head>
<body>

<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">

<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php/adminsys/infolist"><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">管理员列表</a> | 添加管理员</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_admin-add.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>

<form action="{#$actUrl#}" method="post" onsubmit="return submitFun(this)" enctype="multipart/form-data" name="formSub">
<table cellpadding="0" cellspacing="1" border="0" style="width:90%" class="tableborder">
<tr>
<th colspan="3">添加管理员</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>帐&nbsp;&nbsp;&nbsp;&nbsp;号：</strong></td>
<td class="tdd"><input name="admin_name" id="admin_name" value="" type="text"  style="width:250px;" onkeyup="tosm( this )" ></td>
<td class="tdleft"><div id="admin_name_msg" class="redcls">3~18个字符，可使用字母、数字，需以字母开头,不区分大小写，自动转换小写！</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>真实姓名：</strong></td>
<td class="tdd"><input name="admin_truename" id="admin_truename" value="" type="text"  style="width:250px;"    ></td>
<td class="tdleft"><div id="admin_truename_msg" class="redcls">请输入常真实姓名</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>Email地址：</strong></td>
<td class="tdd"><input name="admin_email" id="admin_email" value="" type="text"  style="width:250px;"    ></td>
<td class="tdleft"><div id="admin_email_msg" class="redcls">请输入常用邮箱地址</div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>密&nbsp;&nbsp;&nbsp;&nbsp;码：</strong></td>
<td class="tdd"><input name="admin_pwd" id="admin_pwd" value="" type="password" style="width:250px;"></td>
<td class="tdleft"><div id="admin_pwd_msg" class="redcls">6~16个字符，区分大小写</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>确认密码：</strong></td>
<td class="tdd"><input name="readmin_pwd" id="readmin_pwd" value="" type="password" style="width:250px;"></td>
<td class="tdleft"><div id="readmin_pwd_msg" class="redcls">请再次填写密码</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>会员密码：</strong></td>
<td class="tdd"><input name="user_pwd" id="user_pwd" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="user_pwd_msg" class="redcls">系统会自动注册一前台用户，帐号与同上，此密码为前台会员密码（不填与后台密码相同。）</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdleft"><div id="suggestionInfo" class="redcls">&nbsp;</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"> <input name="submit" id="submit" type="submit" value="添 加" ></td>
</tr>
</table>
</form>

</td></tr>
<tr><td></td></tr>
</table>



	
</body>
</html>