?? listuser.jsp
字號:
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title> getusersuccess </title>
<script>
<!--
function validatec(form){
if(form.cLoginName.value.length == 0){
alert("請輸入賬務帳號!");
form.cLoginName.focus();
return false;
}
return true;
}
function validate(form){
if(form.cLoginName.value.length == 0){
alert("請輸入賬務帳號!");
form.cLoginName.focus();
return false;
}
if(form.firstpwd.value.length == 0 || form.lastpwd.value.length == 0){
alert("密碼不能為空!");
form.firstpwd.focus();
return false;
}
if(form.firstpwd.value != form.lastpwd.value){
alert("密碼不一致!");
form.firstpwd.focus();
return false;
}
return true;
}
-->
</script>
<style type="text/css">
<!--
@import url(/app/son.css);
@import url(/app/index.css);
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="/app/index.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ccddee" background="/app/image/background.jpg" link="#000066" vlink="#0066FF" alink="#99FF00">
<div align="center">
<form name="form1" method="post" action="${pageContext.request.contextPath}/userManage/findUser.do" onsubmit="return validatec(this)">
<table width="91%" border="0" align="center">
<tr bgcolor="#ccddee" class="pp">
<td width="14%" height="6"><span class="pp"><a href="${pageContext.request.contextPath}/userManage/toAddUser.do" class="text_link">sta 開通帳戶</a></span></td>
<td><span class="yellow"><a href="${pageContext.request.contextPath}/userManage/toListUser.do" class="text_link"> 用戶列表</a></span> </td>
<td bgcolor="#ccddee"> <div align="center"><span class="yellow"><font color="#000000">帳務帳號</font></span>
<input name="cLoginName" type="text" size="16">
<input name="Submit22" type="submit" class="button9p" value="查詢">
</div></td>
</tr>
</table>
</form>
<form action="listUser.htm" method="post" name="userform" onsubmit="return validate(this)">
<div align="center"> <br/>
<table width="91%" border=1 align="center" cellpadding="0" cellspacing="0" bordercolor="#ccccff" bgcolor="#ccddee" class="9P" >
<tr align="center">
<td width="55" height="31"> <div align="center"> 狀態</div></td>
<td width="67"> <div align="center"> 帳務帳號</div></td>
<td width="73"> <div align="center"> 姓名</div></td>
<td width="101"> <div align="center"> 電話</div></td>
<td width="138"> <div align="center"> 郵箱</div></td>
<td width="96">開戶日期</td>
<td width="96"> <div align="center">修改 </div></td>
</tr>
<c:if test="${sign == 1}" var="isOne">
<c:if test="${!empty userChecked}" var="hasEmpty">
<tr align="center">
<td height="10">
<c:choose>
<c:when test="${userChecked.status == 0}">正常</c:when>
<c:when test="${userChecked.status == 1}">暫停</c:when>
<c:otherwise>刪除</c:otherwise>
</c:choose>
</td>
<td>${userChecked.loginName}</td>
<td>${userChecked.name}</td>
<td>${userChecked.phone}</td>
<td>${userChecked.email}</td>
<td>${userChecked.enrollDate}</td>
<c:if test="${userChecked.status == 2}" var="isTwo">
<td> </td>
</c:if>
<c:if test="${!isTwo}">
<td><a href="${pageContext.request.contextPath}/userManage/toModifyPage.do?uid=${userChecked.id}">修改</a><br>
<a href="${pageContext.request.contextPath}/userManage/modifyUserStatus.do?userStatus=${userChecked.id}&target=${(userChecked.status == "0") ? "pause" : "comeback"}">${(user.status == "0") ? "暫停" : "恢復"}</a><br>
<a href="${pageContext.request.contextPath}/userManage/modifyUserStatus.do?userStatus=${userChecked.id}">刪除</a></td>
</c:if>
</tr>
</c:if>
<c:if test="${!hasEmpty}">
<tr align="center"><td colspan="7"><font color="red">您查找的賬務帳號不存在</font></td></tr>
</c:if>
</c:if>
<c:if test="${!isOne}">
<c:if test="${!empty users}" var="isEmpty">
<c:forEach var="user" items="${users}" varStatus="status">
<tr align="center">
<td height="10">
<c:choose>
<c:when test="${user.status == 0}">正常</c:when>
<c:when test="${user.status == 1}">暫停</c:when>
<c:otherwise>刪除</c:otherwise>
</c:choose>
</td>
<td>${user.loginName} </td>
<td>${user.name} </td>
<td>${user.phone} </td>
<td>${user.email} </td>
<td>${user.enrollDate} </td>
<c:if test="${user.status == 2}" var="isTwo">
<td> </td>
</c:if>
<c:if test="${!isTwo}">
<td><a href="${pageContext.request.contextPath}/userManage/toModifyPage.do?uid=${user.id}">修改</a><br>
<a href="${pageContext.request.contextPath}/userManage/modifyUserStatus.do?userStatus=${user.id}&target=${(user.status == "0") ? "pause" : "comeback"}">${(user.status == "0") ? "暫停" : "恢復"}</a><br>
<a href="${pageContext.request.contextPath}/userManage/modifyUserStatus.do?userStatus=${user.id}">刪除</a></td>
</c:if>
</tr>
</c:forEach>
</c:if>
<c:if test="${!isEmpty}">
<tr>
<td align="center" height="40" colspan="7">沒有用戶!</td>
</tr>
</c:if>
</c:if>
<!--
<tr align="center" >
<td height="10"> 正常</td>
<td> <div align="left"> aaa</div></td>
<td>aaa</td>
<td>12345678</td>
<td>aaa@tarena.com</td>
<td>2003-01-01</td>
<td><a href="usermes.htm">修改</a><br>
<a href="listUser2.htm">暫停</a><br>
<a href="listUser3.htm">刪除</a></td>
</tr>
-->
</table>
</div>
<p align="center"> <font color="#000001" size="2">[總用戶:${totalUsers}人,當前是:${currentPage}-${currentPage} 正常:${x},暫停:${y}
刪除:${z} 第${currentPage}頁/共${totalPage}頁 [
<c:if test="${pageMessage == 1}" var="isOne">
<a href="${pageContext.request.contextPath}/userManage/toListUser.do?sign=${currentPage}">下一頁</a>
</c:if>
<c:if test="${pageMessage == totalPage && pageMessage != 1}" var="isEnd">
<a href="${pageContext.request.contextPath}/userManage/toListUser.do?sign=${currentPage}">上一頁</a>
</c:if>
<c:if test="${!isOne && !isEnd}">
<a href="${pageContext.request.contextPath}/userManage/toListUser.do?sign=pageUp&pageNum=${currentPage}">上一頁</a> |
<a href="${pageContext.request.contextPath}/userManage/toListUser.do?sign=pageDown&pageNum=${currentPage}">下一頁</a>
</c:if>
] 轉到</font>
<select name="selectPage" onchange='javascript:userform.submit()'>
<c:forEach var="user" items="${users}" varStatus="status">
<option value="${status.count}" ${status.count == 1 ? "selected" : ""}>${status.count}頁</option>
</c:forEach>
</select>
</p>
</form>
</div>
<hr/>
<p class="text_link"><font size="2" face="宋體">
<center>
About Tarena - 公司簡介 - 聯系方法 - 相關法律 - 客戶服務
</center>
<br>
<center>
達內公司版權所有
</center>
</font></p>
<p class="text_link"><font size="-1">
<center>
Copyright <img src="/image/c-00.gif" width="9" height="9"> 2000.
Tarena Technologies Inc. All Rights Reserved
</center>
</font></p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -