📄 clientlist.jsp
字号:
<%@ page language="java" pageEncoding="gb2312" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="conditions" class="java.lang.String" scope="request"/>
<HTML>
<HEAD>
<title>用户显示页面</title>
<LINK href="../css/style.css" type="text/css" rel="stylesheet">
<script src="../js/string.js" language="JavaScript"></script>
<script language="JavaScript">
function Jumping(){
document.PageForm.submit();
return ;
}
function gotoPage(pagenum){
document.PageForm.jumpPage.value = pagenum;
document.PageForm.submit();
return ;0
}
</script>
</HEAD>
<% String contextPath=request.getContextPath(); %>
<body MS_POSITIONING="GridLayout">
<form action="../client/clientList" id="form1" method="post" name="form1" >
<table width="100%" border="0" align="center" >
<tr>
<td width="15%">
</td>
<td width="30%" > <div align="right">用户ID:
<input type="text" name="userid" maxlength="40" value="${SearchForm.userid }" >
</div></td>
<td width="30%" ><div align="left">用户姓名:
<input type="text" name="name" maxlength="40" value="${SearchForm.name }">
</td>
<td width="20%" >
<div align="right"></div>
<input type="submit" value="搜索" name="submit">
</td>
</tr>
</table>
<table height="42%" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
<tr>
<td valign="top" width="19" bgcolor="#f5f5f5"><img src="../images/main_01.gif"></td>
<td width="1" bgcolor="#e0e0e0"><img src="../images/space.gif"></td>
<td class="main02_bg" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main02_top"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom" width="40" height="35"><img src="../images/dot21.gif"></td>
<td valign="bottom">普通用户查询<font size="5">:</font></td>
<td valign="bottom" align="right"> <a class="a_main02" href="#"> </a>
</tr>
</table>
<table width="100%">
<tr class="main02_listbg">
<td>用户ID</td>
<td>用户姓名</td>
<td>删除</td>
</tr>
<c:forEach var="beans" items="${list}">
<tr class="main02_listbg2">
<td height="18">${beans.userid}</td>
<td>${beans.name}</td>
<td><a class="a_main02" href="../client/clientDelet?userid=${beans.userid}">删除</a></td>
</tr>
</c:forEach>
</table>
</form>
<c:if test="${maxPage!=1}">
<!-- %if(pageCtl.maxPage!=1){%-->
<form name="PageForm" action="../client/clientList" method="post">
<input type="hidden" name="conditions" value="${conditions}">
<input type="hidden" name="PageBusiness" value="ClientPage">
<input type="hidden" name="targetPage" value="ClientList">
<table style="HEIGHT: 8px" cellSpacing="0" cellPadding="0" width="100%" align="left" border="0"
class="main02_table">
<tr class="main02_listbg">
<td style="WIDTH: ; HEIGHT: 10px" align="center">
${rowsPerPage}个记录每页||总记录:${maxRowCount}||当前页:${curPage }||总页数:${maxPage }||
<c:if test="${curPage==1}">
<img height=19 align=absMiddle border=0 src="<%=contextPath%>/images/goFirst.gif">
<img height=19 border=0 align=absMiddle src="<%=contextPath%>/images/goPrev.gif">
</c:if>
<c:if test="${curPage!=1}">
<A HREF="javascript:gotoPage(1)"><img border=0 height=19 src="<%=contextPath%>/images/goFirst.gif" align=absMiddle class="img_btn"></A>
<A HREF="javascript:gotoPage(${curPage-1 })">
<img height=19 src="<%=contextPath%>/images/goPrev.gif" align=absMiddle border=0 class="img_btn">
</A>
</c:if>
<c:if test="${curPage==maxPage}">
<img border=0 align=absMiddle height=19 src="<%=contextPath%>/images/goNext.gif"> <img border=0 align=absMiddle height=19 src="<%=contextPath%>/images/goLast.gif">
</c:if >
<c:if test="${curPage!=maxPage}">
<A HREF="javascript:gotoPage(${curPage+1})"><img height=19 src="<%=contextPath%>/images/goNext.gif" border=0 class="img_btn" align=absMiddle ></A>
<A HREF="javascript:gotoPage(${maxPage })"><img height=19 src="<%=contextPath%>/images/goLast.gif" border=0 class="img_btn" align=absMiddle ></A>
</c:if>
跳到第
<SELECT name="jumpPage" onChange="Jumping()">
<c:forEach var="i" begin="1" end="${maxPage}">
<c:if test="${i==curPage}">
<OPTION selected value="${i}">${i}</OPTION>
</c:if>
<c:if test="${i!=curPage}">
<OPTION selected value="${i }">${i}</OPTION>
</c:if>
</c:forEach >
</SELECT>
</td>
</tr>
</table>
</form>
</c:if>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -