<!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>无标题文档</title>
<link type="text/css" rel="stylesheet" href="../Css/style.css" />
<script language="javascript" type="text/javascript" src="../jQuery/lib/jquery.js"></script>
<script language="javascript" type="text/javascript" src="../js/WebSite.js"></script>
<script language="javascript" type="text/javascript" src="../js/ChkForm.js"></script>
</head>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Function.asp"-->
<!--#include file="../../inc/Config.asp"-->
<body>
<%
Call ChkLogin(session("WebAdminsUserName"))
Call ConnectionDataBase(2)
userclassid=Request("userclassid")
%>



<form action="Submit.asp" method="post" name="frm" onsubmit="return Confirm('确定要执行此操作吗?')">
<input type="hidden" name="Action" value="SetRights">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
	<select name="role" id="role" onchange="window.location.href='?userclassid='+this.options[this.selectedIndex].value">
    <%
	For i=0 To UBOUND(UserClass)
	IF i=0 and userclassid="" Then userclassid=UserClass(0,0)
	%>
	<option value="<%=UserClass(i,0)%>" <%IF cstr(userclassid)=cstr(UserClass(i,0)) Then Response.Write("selected")%>><%=UserClass(i,1)%></option>
	<%
	Next
	%>
	</select>
    </td>  
  </tr>
</table>
<%
sql="select rights from t_rights where userclassid=" & userclassid
SetRs Rs,sql,conn,1,1
IF Not Rs.eof Then rights=Rs("rights")
DisRs Rs
Call CloseDatabase
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th width="5%">序号</th>
    <th width="35%">模块</th>
    <th width="20%">权限</th>
  </tr>
  <tr>
    <td align="center">1</td>
    <td>招标管理</td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="1" <%IF instr(rights,"1,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">2</td>
    <td>新闻动态 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="2" <%IF instr(rights,"2,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">3</td>
    <td>促销信息 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="3" <%IF instr(rights,"3,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">4</td>
    <td>产品中心</td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="4" <%IF instr(rights,"4,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">5</td>
    <td>经典案例 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="5" <%IF instr(rights,"5,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">6</td>
    <td>设计团队 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="6" <%IF instr(rights,"6,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">7</td>
    <td>人才招聘 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="7" <%IF instr(rights,"7,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">8</td>
    <td>在线留言 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="8" <%IF instr(rights,"8,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">9</td>
    <td>系统公告 </td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="9" <%IF instr(rights,"9,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">10</td>
    <td>友情链接</td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="10" <%IF instr(rights,"10,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
    <td align="center">11</td>
    <td>有问有答</td>
    <td align="center">
    <input name="ChkBox" type="checkbox" value="11" <%IF instr(rights,"11,")>0 Then Response.Write("checked")%> />
    </td>
  </tr>
  <tr>
	<th colspan="3" align="right"><input type="submit" name="btnSubmit" value="提交" class="btn">
	  <input name="" type="checkbox" value="" style="margin-left:10px" onclick="CheckAll(this.checked);"/>全选/反选
    </th>
  </tr>
</table>
</form>
</body>
</html>
