<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx13<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {color: #FF0000}
-->
</style></head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 管理人员 &gt;&gt; 添加管理员 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE1">* 为必添项目</span></td>
      </tr>
      
    </table></td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
  <form name="form1" method="post" action="admin_save.asp?action=add" onSubmit="return ck1()">
<script language="javascript">
function ck1()
{
if(form1.admin2.value=="")
{
alert("请输入名称")
form1.admin2.focus()
return false
}
if(form1.password2.value=="")
{
alert("请输入密码")
form1.password2.focus()
return false
}
}
</script> 
    <tr bgcolor="#cccccc">
      <td colspan="2" bgcolor="#cccccc"> &nbsp;&nbsp;管理员
        <input name="admin2" type="text" size="12" class="wenbenkuang">
      密码
      <input name="password2" type="text" size="12" class="wenbenkuang">
权限
            <input type="radio" name="flag2" value="1">
管理
<input name="flag2" type="radio" value="2" checked>
查看
<input type="submit" name="Submit2" value="添 加" class="go-wenbenkuang">      </td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td colspan="2"><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><input name="qx" type="checkbox" id="qx" value="1">
              商品管理
                <input name="qx2" type="checkbox" id="qx2" value="1">
              订单管理
              <input name="qx3" type="checkbox" id="qx3" value="1">
              类别管理
              <input name="qx4" type="checkbox" id="qx4" value="1">
              货运支付
              <input name="qx5" type="checkbox" id="qx5" value="1">
              会员管理
              <input name="qx6" type="checkbox" id="qx6" value="1">
              新闻管理
              <input name="qx7" type="checkbox" id="qx7" value="1">
              专题管理<br>
              <input name="qx8" type="checkbox" id="qx8" value="1">
              供求管理
              <input name="qx9" type="checkbox" id="qx9" value="1">
              日志管理
              <input name="qx10" type="checkbox" id="qx10" value="1">
              邮件管理
              <input name="qx11" type="checkbox" id="qx11" value="1">
              论坛管理
              <input name="qx12" type="checkbox" id="qx12" value="1">
              访问统计
              <input name="qx13" type="checkbox" id="qx13" value="1">
              管理人员
              <input name="qx14" type="checkbox" id="qx14" value="1">
              系统管理<br>
              <input name="qx15" type="hidden" id="qx15" value="1">
              <input name="qx16" type="hidden" id="qx16" value="1">
              <input name="qx17" type="hidden" id="qx17" value="1">
              <input name="qx18" type="hidden" id="qx18" value="1">
              <input name="qx19" type="hidden" id="qx19" value="1">
              <input name="qx20" type="hidden" id="qx20" value="1">
              <input type="checkbox" name="checkbox1" value="Check All" onClick="mm()">
              全部选中 </td>
          </tr>
      </table></td>
    </tr>
  </form>
</table>
<p>&nbsp;</p>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
</body>
</html>
<script language=javascript>
function mm()
{
   var a = document.getElementsByTagName("input");
   
   if(form1.checkbox1.checked==true){
   for (var i=0; i<a.length; i++)
      if (a[i].type == "checkbox") a[i].checked = true;
   }
   else
   {
   for (var i=0; i<a.length; i++)
      if (a[i].type == "checkbox") a[i].checked = false;
   }
}
</script>