<!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=gb2312" />
<title>后台管理</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
	font-size:12px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
a:link {
	color: #3b6375;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #3b6375;
}
a:hover {
	text-decoration: underline;
	color: #3b6375;
}
a:active {
	text-decoration: none;
	color: #295568;
}
-->
</style>
<script type="text/javascript">
<!--
function checkform() { //v4.0
var pwd = document.getElementById('Pwd').value;
var repwd = document.getElementById('RePwd').value;
var name = document.getElementById('Name').value;
var email = document.getElementById('Email').value;
if (name == ""){
	alert ("必须输入用户名！");
	}else if(pwd == ""){
	alert ("必须输入密码！");
	}else if(repwd == ""){
	alert ("必须再次输入密码！");
	}else if(email == ""){
	alert ("必须输入邮箱！");
		}
	else{
if(pwd==repwd){
	document.getElementById('form1').submit();
	}else{
	alert ("两次密码输入不一致！");
	}}
}
function checkall(form) {
	for(var i = 0;i < form.elements.length; i++) {
		var e = form.elements[i];
		if (e.name != 'chkall' && e.disabled != true) {
			e.checked = form.chkall.checked;
		}
	}
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 添加新管理员</span></td>
                </tr>
            </table></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><form action="add_admin2.php?type=ok" method="post" name="form1" target="_self" class="STYLE22" id="form1">
<table width="400">
      <tr>
        <td>用户名：</td>
        <td><label>
          <input name="Name" type="text" class="STYLE22" id="Name" value="" size="35" />
        </label></td>
      </tr>
      <tr>
        <td>密码：</td>
        <td><label>
          <input name="Pwd" type="password" class="STYLE22" id="Pwd" value="" size="39" />
        </label></td>
      </tr>
      <tr>
        <td>确认密码：</td>
        <td><label>
          <input name="RePwd" type="password" class="STYLE22" id="RePwd" size="39" />
        </label></td>
      </tr>
      <tr>
        <td>E-mail：</td>
        <td><label>
          <input name="Email" type="text" class="STYLE22" id="Email" size="35" />
        </label></td>
      </tr>
      <tr>
        <td>管理员权限</td>
        <td>
          <label><input name="chkall" type="checkbox" id="chkall" checked="checked" onclick="checkall(this.form)" />
          全选/全不选</label></td>
      </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看删除管理员
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm0" type="checkbox" id="perm0" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看删除广告
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm1" type="checkbox" id="perm1" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看删除分类
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm2" type="checkbox" id="perm2" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">数据备份与恢复
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm3" type="checkbox" id="perm3" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">生成HTML
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm4" type="checkbox" id="perm4" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看删除收录申请
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm5" type="checkbox" id="perm5" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">插件管理
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm6" type="checkbox" id="perm6" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看删除站点
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm7" type="checkbox" id="perm7" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看修改模板 
           </div>
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm8" type="checkbox" id="perm8" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">查看修改网站变量
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm9" type="checkbox" id="perm9" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">产看删除用户
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm10" type="checkbox" id="perm10" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">产看删除用户收藏站点
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm11" type="checkbox" id="perm11" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">修改管理员密码
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm12" type="checkbox" id="perm12" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">添加新管理员
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm13" type="checkbox" id="perm13" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">添加广告
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm14" type="checkbox" id="perm14" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">添加修改分类
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm15" type="checkbox" id="perm15" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">添加修改站点
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm16" type="checkbox" id="perm16" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
              <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">添加修改系统变量
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm17" type="checkbox" id="perm17" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
       <tr>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">添加修改用户
         </span></td>
         <td height="20" bgcolor="#FFFFFF" class="STYLE19"><span class="STYLE22">
           <label>
             <input name="perm18" type="checkbox" id="perm18" value="9" checked="checked" />
           </label>
         </span></td>
       </tr>
      <tr>
        <td><label>
          <input name="ID" type="hidden" id="ID" value="<!--Kw[$id]-->" />
        </label></td>
        <td><input style="width:50px; height:22px; border:1px solid #CCC; background:#FFF; padding-top:3px;" name="button" type="button" class="STYLE22" id="button" onclick="checkform();" value="提交" /></td>
      </tr>
    </table>
    </form></td>
  </tr>
</table>
</body>
</html>
