sys_user.html 4.0 KB
<div class="pageheader notab">
	<h1 class="pagetitle">系统管理-用户管理</h1>
	<span class="pagedesc">管理V商城中的用户</span>
</div>
<!--pageheader-->
<paging>
<div id="contentwrapper" class="contentwrapper">
	<div class="thumb">
		<a class="btn btn2 btn_link" href="#addSysUser/">
			<span>添加用户</span>
		</a>
	</div>
	<div id="basicform" class="subcontent">
		<div class="contenttitle2">
			<h3>用户管理</h3>
		</div>
		<div class="overviewhead">
			<div class="line">
				<label class="label" for="supplierName" style="color: #555555;">商家名称	:</label>
				<div class="input">
					<input type="text" id="supplierName" ng-model="userQuery.supplierName" name="supplierName"/>
				</div>
				<label class="label" for="userName" style="color: #555555;">用户名:</label>
				<div class="input">
					<input type="text" id="userName" ng-model="userQuery.userName" name="userName"/>
				</div>
				<label class="label" for="nickName" style="color: #555555;">用户昵称	:</label>
				<div class="input">
					<input type="text" id="nickName" ng-model="userQuery.nickName" name="nickName"/>
				</div>
				<label for="locked" class="label" style="color: #555555;">用户状态:</label>
				<div class="input">
					<select type="text" id="locked" ng-model="userQuery.locked" name="locked">
						<option value=''>全部状态</option>
						<option value='0'>允许登录</option>
						<option value='1'>禁止登录</option>
					</select>
				</div>
				<a class="btn btn2 btn_blue btn_search radius50" href="javascript:void(0)" ng-click="search()"><span>搜索</span></a>
			</div>
		</div>
		<br>
		<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="dyntable3">
			<thead>
				<tr align="center">
					<th class="head0">用户序号</th>
					<th class="head0">商家名称</th>
					<th class="head0">用户名</th>
					<th class="head0">用户昵称</th>
					<th class="head0">用户状态</th>
					<th class="head0">用户角色</th>
					<th class="head0">创建时间</th>
					<th style="width: 160px;" align="center">操作</th>
				</tr>
			</thead>
			<tbody>
				<tr class="gradeX" ng-repeat="user in users" align="center">
					<td>{{user.id}}</td>
					<td ng-if="user.supplierName !=null">{{user.supplierName}}</td>
					<td ng-if="user.supplierName ==null">平台</td>
					<td>{{user.userName}}</td>
					<td>{{user.nickName}}</td>
					<td ng-if="user.locked == 0"><span class="open_stl">允许登录</span></td><td ng-if="user.locked == 1"><span class="close_stl">禁止登录</span></td>
					<td>{{user.roleName}}</td>
					<td>{{user.createDt}}</td>
					<td>
						<a href="#addSysUser/{{user.id}}" class="btn_common btn_edit">编辑</a><span class="btn_bewtton">|</span>
						<span ng-if="user.locked == 0"><a href="javascript:void(0);" ng-click="lockedUser(user.id, user.userName, 1)" class="btn_common btn_oper">禁止登录</a><span class="btn_bewtton">|</span></span>
						<span ng-if="user.locked == 1"><a ng-if="user.locked == 1" href="javascript:void(0);" ng-click="lockedUser(user.id, user.userName, 0)" class="btn_common btn_oper">允许登录</a><span class="btn_bewtton">|</span></span>
						<a class="btn_common btn_delete" href="#resetUserPassword/{{user.id}}">重置密码</a>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<div class="angular_pager" style="margin-left: 20px;">
	<ul class="pagination" num-pages="numPages" current-page="currentPage" on-select-page="selectPage(page)">
	    <li ng-class="{disabled: noPrevious()}"> <a ng-click="selectPrevious()">&laquo;</a>
	    </li>
	    <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"> <a ng-click="selectPage(page)">{{page}}</a>
	    </li>
	    <li ng-class="{disabled: noNext()}"> <a ng-click="selectNext()">&raquo;</a>
	    </li>
	    <li><span style="position: relative;top: 5px;margin-left: 10px;font-size: 14px;">共:<b style="color: red;">{{numPages}}</b>页,当前第<b style="color: red;">{{currentPage}}</b>页;总记录数:<b style="color: red;">{{totalRecord}}</b></span></li>
	</ul>
</div>
</paging>