<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>用户管理</title>
<link href="<c:url value='/resource/themes-1.3.1/default/easyui.css'/>" rel="stylesheet" type="text/css"/>
<link href="<c:url value='/resource/themes-1.3.1/icon.css' />" rel="stylesheet" type="text/css"/>
<link href="<c:url value='/resource/themes-1.3.1/css/default.css'/>" rel="stylesheet" type="text/css" />
<script src="<c:url value='/resource/home/js/jquery-1.8.1.min.js' />"></script><!-- jQuery v@1.8.0  -->
<script src="<c:url value='/resource/home/js/jquery.easyui.min.js'/>"></script> <!-- jQuery EasyUI 1.3.1  -->
<script src="<c:url value='/resource/locale/easyui-lang-zh_CN.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resource/admin/user/js/user.js'/>"></script>
    
</head>
<body >
	<div class="easyui-panel"  id="queryDiv" title="用户查询" collapsed="false" collapsible="false">
		<form id="queryFromId" method="post" >
			<table  align="center" style="width:100%">
				<tr>
					<td width="10%" align="right">用户姓名：</td>
					<td width="25%">
						<input  name="userName" id="userNameId01" class="easyui-textbox" style="width:200px">
					</td>
					<td width="10%" align="right" >用户类型：</td>
					<td width="25%">
						<select name="userType" class="easyui-combobox" id="userTypeId01" data-options="editable:false,panelHeight:'auto'" >
							<option value="">-请选择-</option>
			 				<option value="back">后台用户</option>
							<option value="front">前台用户</option>
						</select>
					</td>
					<td align="left" width="15%"> 
						<a id="saveButtonId" href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="queryData()">查询</a>
						<a id="saveButtonId" href="#" class="easyui-linkbutton" iconCls="icon-undo" onclick="clearQueryForm()">清空</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
 	<!--datagrid列表  -->
	<table id="userListTable" toolbar="#toolbar" >
	</table>
    <!-- 	datagrid工具栏 -->
	<div id="toolbar">
		<security:url uri="/admin/user/addUser"><a href="#" class="easyui-linkbutton" iconCls="icon-edit_add" plain="true" onclick="openAddWin('add')"><span >新增</span></a></security:url>
		<security:url uri="/admin/user/editUser"><a href="#" class="easyui-linkbutton" iconCls="icon-pencil" plain="true" onclick="openAddWin('edit')"><span >修改</span></a></security:url> 
		<security:url uri="/admin/user/delUser"><a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deleUser()"><span >删除</span></a></security:url>
		<security:url uri="/admin/user/allotRole"><a href="#" class="easyui-linkbutton" iconCls="icon-roleImage" plain="true" onclick="openRoleWin()"><span >角色分配</span></a></security:url>
		<security:url uri="/admin/user/resetPass"><a href="#" class="easyui-linkbutton" iconCls="icon-undo" plain="true" onclick="resetPass()"><span >密码重置</span></a></security:url>
	</div>
    <div id="addUserWinID" class="easyui-window" >
    	<div id="main_area" style="margin:15px 0px 0px 0px"> 
    		<form id="saveUserForm" method="post">
			<table class="edittable" style="margin:15px 20px 0px 0px" >
				<tr> 
					<td width="10%" align="right"><span>登陆账号:</span></td>
					<td width="25%" align="left">
						<input id="loginNameId" name="loginName" class="easyui-validatebox" data-options="required:true" />
					</td>
				    <td width="10%" align="right"><span>用户姓名:</span></td>
					<td width="25%" align="left">
						<input id="usernameId" name='username' class="easyui-validatebox" data-options="required:true" />
					</td>
				</tr>
				<tr>
				    <td align="right"><span>年&emsp;&emsp;龄:</span></td>
					<td align="left"><input id="ageId"   name='age'  class="easyui-numberbox"  maxlength="2"/></td>
					<td align="right"><span>性&emsp;&emsp;别:</span></td>
					<td align="left">
						<select id="sexId" class="easyui-combobox" name="sex"  editable="false" panelHeight="auto" >  
						   	<option value="男">男</option>
			 				<option value="女">女</option>
						</select> 
					</td>
				</tr>
				<tr>
				    <td align="right"><span>公&emsp;&emsp;司:</span></td>
					<td align="left"><input id="companyId"   name="company" class="easyui-textbox"  maxlength="20"/></td>
					<td align="right"><span>联系电话:</span></td>
					<td align="left">
						<input id="telphoneId"  class="easyui-numberbox"  name="telphone"  editable="false"  />  
					</td>
				</tr>
				<tr>
					<td align="right"><span>邮&emsp;&emsp;箱:</span></td>
					<td align="left">
						<input id="emailId"  class="easyui-textbox"  name="email"    />  
					</td>
					<td align="right"><span>账号状态:</span></td>
					<td align="left">
						<select id="countStatusId" class="easyui-combobox" name="countStatus"  editable="false" panelHeight="auto" >  
						   	<option value="1">有效</option>
			 				<option value="0">无效</option>
						</select> 
					</td>
				</tr>
				<tr>
					<td align="right"><span>用户类型:</span></td>
					<td align="left">
						<select id="userTypeId" class="easyui-combobox" name="userType"  editable="false" panelHeight="auto" >  
						   	<option value="back">后台用户</option>
			 				<option value="front">前台用户</option>
						</select> 
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td></td>
				</tr>
				<tr align="center">
					 <td colspan="4">
					    <a id="buttonId01" href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveData()">保存</a>
						<a id="buttonId02" href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeUserWin();">取消</a>
					 </td>
	  			</tr>
				<tr> 
					<td></td>
					<td></td>
				</tr>
			</table>
		</form>
    	</div>
		<!-- 	新增form表单 -->
	</div>
	<div id="allotRoleWin" class="easyui-window" >
        <div id="cc" class="easyui-layout" fit="true">
            <div data-options="region:'west'" style="width:200px;">
                <div class="content">
                    <span align="center">全部角色</span>
                    <div class="mult-selections " id="role-select1">

                    </div>
                </div>
            </div>
            <div data-options="region:'east'" style="width:200px;">
                <div class="content">
                    <span>已有角色</span>
                    <div class="mult-selections" id="role-select2">

                    </div>
                </div>
            </div> 
            <div data-options="region:'center'">
                <div id="buttonId" align="center" >
                    <a id="toRight" class="easyui-linkbutton">&emsp;&emsp;>&emsp;&emsp;</a><br> 
                    <a id="allToRight" class="easyui-linkbutton">>></a><br>
                    <a id="toLeft" class="easyui-linkbutton"><</a><br>
                    <a id="allToLeft" class="easyui-linkbutton"><<</a><br>
                    <a id="saveRoles" href="#" class="easyui-linkbutton" iconCls="icon-save">保存</a> 
                </div>
            </div>
        </div> 
    </div>
</body>

</html>
