<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.database.SzPageInfo" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.system.SzLevelNumber" %>
<%@ page import="net.sz600.organize.SzModule" %>
<%@ page import="net.sz600.organize.SzModuleInfo" %>
<%@ page import="net.sz600.organize.*" %>
<%@ include file="/sessionInfo.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
</head>
<%
    //获取提交的参数
    String sPage = SzConvert.toZeroStr(request.getParameter("page"));
    String sSearch = SzConvert.strWriteData(request.getParameter("txtSearch"));

    String sCond = "1=1";
    int i = 0;
%>
<!-----上面的工具栏------>
<%@ include file="/share/title.jsp" %>

<!-----信息列表----->
<table width="100%" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="1" cellspacing="0">
  <form name="formList" method="post">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <tr class="trClassTitle">
    <td width="5"><input type="checkbox" name="chkCheckAll" OnClick="javascript:CheckAll(formList, chkCheckAll, 'chkId');"></td>
    <td width="80">权限名称</td>
    <td>已分配权限</td>
    <td width="40">操作</td>
  </tr>
<%
    SzPopedom szPopedom = new SzPopedom();
    SzPopedomInfo szPopedomInfo = null;
    Iterator iterPopedom = null;

    int iLen = SzProperties.POPEDOM_NAME_STR.length;
    int iPopedom = 0;
    for (i=0; i<iLen; i++) {
        iPopedom = Integer.parseInt(SzProperties.POPEDOM_NAME_STR[i][0]);
%>
  <tr  onMouseOver="javascript:this.className='trMouseOver'" onMouseOut="javascript:this.className='trMouseOut'">
    <td width="5"><input type="checkbox" name="chkId" id="chkId">&nbsp;</td>
    <td><%=SzProperties.POPEDOM_NAME_STR[i][1]%>&nbsp;</td>
    <td><%=szPopedom.getPopedomInfoByPopedom(iPopedom)%>&nbsp;</td>
    <td width="60">
    <% if (isSystemManager_SESSION) { %>
      <a href="javascript:FormSubmit(formPage,'control.jsp?OPERATOR=deleteByPopedom&KEY=<%=iPopedom%>');">删除权限</a>
      <% } %>
    </td>
  </tr>
<%
    }
    out.println(SzPageHelp.outIndexTableTr(i, SzProperties.I_PageSize, 4));
%>

  </form>
</table>

<!-----下面的工具栏------>
<table width="100%">
  <form name="formPage" method="post">
  <tr>
    <td align="right">&nbsp;
    </td>
  </tr>
  </form>
</table>

<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
</form>
<script language="javascript" src="../../share/js/commonTool.js"></script>
