<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Admin_manager_add" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="GENERATOR" content="Microsoft FrontPage 4.0" />
<meta name="ProgId" content="FrontPage.Editor.Document" />
<link href="inc/Admin_STYLE.CSS" rel="stylesheet" type="text/css" />
</head>
<body><table style="height:22; width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr class="topbg">
        <td style="height:22" align="center" class="topbg"><strong>网 站 系 统 配 置　</strong></td>
      </tr>
    </table><table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="height:27; width:30" align="center"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/gojump01.gif" width="16" height="16" /></td>
        <td><a href="Admin_site_config.aspx">网站信息配置</a> | <a href="channel_manage.aspx">文章频道管理</a> | <a href="Admin_Classlist.aspx">行业类别管理</a> | <a href="Ad_hdp_add.aspx">幻灯广告管理</a> | <a href="Admin_xunjialist.aspx">留言询价管理</a><a href="Ad_hdp_add.aspx"></a> | <a href="Links_manger.aspx">友情链接管理</a> | 

 
    <a href="Ad_info_tuijian.aspx">信息推荐管理 </a> </td>
      </tr>
    </table>
<table style="height:156; width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
  <form name="form1" method="post" action="Admin_manager_add.aspx?action=save">
    <tr> 
      <td colspan="2" class="Title">　<strong>添加管理员：</strong></td>
    </tr>
    <tr class="tdbg"> 
      <td style="width:18%" align="center"><strong>登 陆 名:</strong></td>
      <td style="width:82%"><input name="user" type="text" size="20" style="width:150" maxlength="30" /></td>
    </tr>
    <tr class="tdbg">
      <td align="center"><strong>名　　字:</strong></td>
      <td style="width:82%"><input name="M_Nmae" type="text" size="20" style="width:150" maxlength="30" /></td>
    </tr>
    <tr class="tdbg"> 
      <td style="width:18%" align="center"><strong>初始密码:</strong></td>
      <td style="width:82%"><input name="pass" type="password" size="20" style="width:150" maxlength="30" /></td>
    </tr>
    <tr class="tdbg">
      <td style="width:18%" align="center">&nbsp;</td>
      <td><table style="width:100%" border="0" cellspacing="1" cellpadding="2">
        <tr>
          <td style="width:100"><input name="Purview" type="radio" value="1" checked="checked" onclick="PurviewDetail.style.display='none'" />
超级管理员：</td>
          <td>拥有所有权限。某些权限（如管理员管理、网站信息配置、网站选项配置等管理权限）只有超级管理员才有</td>
        </tr>
        <tr>
          <td style="width:100"><input type="radio" name="Purview" value="0" onclick="PurviewDetail.style.display=''" />
普通管理员：</td>
          <td>需要详细指定每一项管理权限</td>
        </tr>
        <tr>
          <td colspan="2" id="PurviewDetail" style="display:none">
		  <fieldset>
            <legend>网站管理权限</legend>
            <table style="width:100%" border="0" cellspacing="1" cellpadding="2">
              <tr>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Member" />
                  网站会员管理</td>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Info" />
                  商机频道管理</td>
              </tr>
              <tr>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Products" />
                  产品频道管理</td>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Shopping" />
                  订购中心管理</td>
              </tr>
              <tr>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Company" />
企业频道管理&nbsp;</td>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Classad" />
分类信息管理</td>
              </tr>
              <tr>
                <td style="width:50%"><input name="M_Role" type="checkbox" id="M_Role" value="Jobs" />
人才招聘管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Editorstyle" />
编辑器模式管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Ghtml" />
网站生成管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Usertemp" />
会员模板管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Adv" />
广告服务管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Friend" />
友情链接管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="System" />
                  网站信息配置管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Channel" />
                  网站频道管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Systemtype" />
行业类别管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Jifeng" />
积分设置管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Case" />
成功案例管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Guestbook" />
意见建议管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Xunjia" />
留言询价管理</td>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Infotj" />
网站信息管理</td>
              </tr>
              <tr>
                <td><input name="M_Role" type="checkbox" id="M_Role" value="Chatmsg"/>
会员聊天消息管理</td>
                <td></td>
              </tr>
              <%Do While Not cRs.EOF%>
              <tr>
                <td><label><input name="M_Role" type="checkbox" id="M_Role" value="<%=cRs("C_dir").Value%>"><%=cRs("C_name").Value%></label></td>
                <td>&nbsp;</td>
              </tr>
			  <%cRs.MoveNext() : Loop%>
            </table>
            </fieldset></td>
          </tr>
      </table></td>
    </tr>
    <tr align="center" class="tdbg"> 
      <td colspan="2"><input type="submit" name="Submit" value="添 加 管 理 员" class="input1" /></td>
    </tr>
  </form>
</table>
<br>
<table style="height:0; width:100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
    <tr align="center" class="Title"> 
      <td><strong>用户名</strong></td>
      <td style="width:150"><strong>管理权限</strong></td>
      <td style="width:150"><strong>名字</strong></td>
      <td style="width:150"><strong>上次登录IP</strong></td>
      <td style="width:150"><strong>上次登录时间</strong></td>
      <td style="width:100"><div align="center"><strong>操 作</strong></div></td>
  </tr>
    <%Do While Not Rs.EOF %>
    <tr align="center" class="tdbg"> 
      <td><%=rs("M_userid").Value%></td>
      <td style="width:150"><a href="Admin_manager_edit.aspx?id=<%=Rs("id").Value%>"><%="普通,超级,普通".Split(",")(Rs("Purview").Value)%>管理员</a></td>
      <td style="width:150"><%=rs("M_Nmae").Value%></td>
      <td style="width:150"><%=rs("M_loginip").Value%></td>
      <td style="width:150"><%=rs("M_logintime").Value%></td>
      <td style="width:160"><div align="center"><a href="Admin_manager_add.aspx?action=pass&id=<%=rs("id").Value%>">恢复密码为123456</a>&nbsp;<a href="<%=Iif(GetCookie("AdminLogin", "A_userid")=Rs("M_userid").Value, "#", "Admin_manager_edit.aspx?id=" & Rs("id").Value)%>">修改</a>&nbsp;<a href="<%=Iif(GetCookie("AdminLogin", "A_userid")=Rs("M_userid").Value, "#", "Admin_manager_add.aspx?action=del&id=" & rs("id").Value)%>">删除</a></div></td>
   </tr>
   <%Rs.MoveNext() : Loop %>
</table>
</body>
<%Page_Loaded()%>
</html>
	