<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ taglib tagdir="/WEB-INF/tags/" prefix="cms4jExd"%>

<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script src="js/sa.js"></script>

<script>
//页面初始化
function pageInit(){
	selectInit("page_list","${param.pn}");
	selectInit("fgid_select","${param.fgid}");
	//selectInit("bgid_select","${param.bgid}");
	selectInit("order_select","${param.order}");
	selectInit("NODE_ID","${param.cluster_node_id}");
	selectInit("search_type","<%=request.getParameter("search_type")%>");
}
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area_style.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="pageInit()">
<form action="user_list.jsp" method="post">
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="12"> 
    <td width="3%"><img src="../../images/admin/oper_table_up_left.gif" width="26" height="12"></td>
    <td width="92%" background="../../images/admin/oper_table_up_bg.gif" height="12"></td>
    <td width="5%"><img src="../../images/admin/oper_table_up_right.gif" width="26" height="12"></td>
  </tr>
  <tr> 
    <td colspan="3"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="5" background="../../images/admin/oper_table_left_bg.gif"><img src="../../images/admin/oper_table_left_bg.gif" width="5" height="2"></td>
          <td background="../../images/admin/oper_table_bg.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="38%" class="title_bar">用户管理
                    
                  <select name="fgid_select" class="form_select" id="fgid_select" onChange="front_user_filter()" style="display:none">
                    <option selected>所有前台组</option>
                    <cms4j:select tableName="SYS_GROUP" colsName="GROUP_ID,NAME" where="GROUP_TYPE=1">
                    <option value="@GROUP_ID" >@NAME</option>
                    </cms4j:select>
                  </select>
                  
                  <select name="NODE_ID" id="NODE_ID" onChange="dataFilter('cluster_node_id')">
                    <cms4j:cluster_node node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request)%>">
                      <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"><%=cluster_node_info.getNAME()%></option>
                      <cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
                        <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">　└<%=cluster_node_info.getNAME()%></option>
                        <cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
                          <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">　　└<%=cluster_node_info.getNAME()%></option>
						  	<cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
                          		<option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">　　　└<%=cluster_node_info.getNAME()%></option>
						  	</cms4j:cluster_node>
                        </cms4j:cluster_node>
                      </cms4j:cluster_node>
                    </cms4j:cluster_node>
                  </select>
				  
                  </td>
                <td width="20%" align="center" class="title_bar"><select name="order_select" id="order_select" onChange="user_order()">
                  <option selected value="">排列顺序</option>
                  <option value="uid_desc">ID 降序</option>
                  <option value="uid">ID 升序</option>
                  <option value="joindate_desc">注册时间 降序</option>
                  <option value="joindate">注册时间 升序</option>
                  <option value="state_desc">状态 降序</option>
                  <option value="state">状态 升序</option>
                  <option value="logins_desc">登陆数 降序</option>
                  <option value="logins">登陆数 升序</option>
                  <option value="point_desc">积分 降序</option>
                  <option value="point">积分 升序</option>
                </select>                </td>
                <td width="42%" align="right" class="title_bar">移动所选至
                  <select name="moveto" class="form_select" id="moveto">
                    <option selected value="">--变更前台组至--</option>
                    <cms4j:group type="1" mode="basic">
					<option value="front_<%=group_info.getGROUP_ID()%>" ><%=group_info.getNAME()%></option>
					</cms4j:group>
					<option value="">--变更后台组至--</option>
					<cms4j:group type="2" mode="basic">
					<option value="back_<%=group_info.getGROUP_ID()%>" ><%=group_info.getNAME()%></option>
					</cms4j:group>
                  </select>
                  <input name="Submit" type="button" class="form_button" value="移动" onClick="alert('试用版无此功能');">
                <input name="Submit" type="button" class="form_button" value="删除所选" onClick="alert('试用版无此功能')"></td>
              </tr>
              <tr height="4"> 
                <td height="4" colspan="3"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border_bg">
			  <tr class="table_title">
                <td width="4%"><input type="checkbox" name="selectAll" value="checkbox" onClick="checkAll(this.form)"></td> 
                <td width="13%">用户ID</td>
                <td width="12%"><!--所属组-->前台组</td>
                <td width="12%"> 后台组 </td>
                <td width="12%">信息审核权</td>
                <td width="5%">状态</td>
                <td width="9%">登录数</td>
                <td width="11%">最后登录IP</td>
                <td width="13%">最后登录时间</td>
                <td width="9%">操作</td>
              </tr>
			  
			  
			<cms4j:user state="all" front_gid="${param.fgid}" back_gid="${param.bgid}" order="${param.order}" audit_level="${param.level}" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
              <tr class="table_border_cell_bg">
                <td align="center"><input type="checkbox" name="selected" value="<%=user.getUID()%>" onClick="unselectall('selectAll')"></td> 
                <td><%=user.getUID()%></td>
                <td align="center"><%=user.getFrontGroupName()%></td>
                <td align="center"><%=user.getBackGroupName()%></td>
                <td align="center"><%=user.getAuditLevelName()%></td>
                <td align="center"><%=user.getFORMATED_OPER_STATE_NAME()%></td>
                <td align="center"><%=user.getLOGINS()%></td>
                <td align="center"><%=user.getLAST_LOGIN_IP()%></td>
                <td align="center"><%=user.getLAST_LOGIN_DATE_FORMATED("yy-MM-dd kk:mm")%></td>
                <td align="center" class="text_button"> <a href="../warn.html">改</a> <a href="../warn.html"><%=user.getSTATE_OPER_NAME()%></a> <a href="../warn.html">删</a></td>
              </tr>
		    </cms4j:user>
			</table>
            
            <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="title_bar">
              <tr>
                <td>用户查询:
                    <select name="search_type" class="form_select" id="search_type">
                      <option value="uid" selected>用户名</option>
                      <option value="name">真实姓名</option>
                      <option value="mail">E-Mail</option>
                      <option value="remark">备注</option>
                    </select>
                    <input name="search_key" type="text" class="form_input" id="search_key" value="${search_key}" size="20">
                    <input name="Submit" type="submit" class="form_button" value="查 询">
</td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_border_bg">
              <tr class="table_border_cell_bg">
                <td width="28%" align="center">&nbsp;</td>
                <td width="72%" align="right" class="table_oper_tr"><div align="right"> <cms4jExd:page_ctrl_admin/> </div></td>
              </tr>
            </table>
          </td>
          <td width="5" background="../../images/admin/oper_table_right_bg.gif"><img src="../../images/admin/oper_table_right_bg.gif" width="5" height="2"></td>
        </tr>
      </table></td>
  </tr>
  <tr height="13"> 
    <td><img src="../../images/admin/oper_table_down_left.gif" width="26" height="13"></td>
    <td width="100%" height="13" background="../../images/admin/oper_table_down_bg.gif"></td>
    <td align="right"><img src="../../images/admin/oper_table_down_right.gif" width="26" height="13"></td>
  </tr>
</table>
</form>

</body>
</html>
