📄 customerlist.jsp
字号:
<jsp:useBean id="queryCustomer" class="src.wuyang.Customer" scope="session"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>客户列表</title>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<%
String satisfy[]={"不满意","一般","较满意","很满意"};
int position,state,curPage,totalPage;
int numInOnePage = queryCustomer.getNumInOnePage();
queryCustomer.listPage(request);
position = queryCustomer.listPosition;
state = queryCustomer.state;
curPage = queryCustomer.curPage;
totalPage = queryCustomer.totalPage;
%>
<body bgcolor=#949b93><table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<blockquote><br>
<br>
<table width="88%" border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
<tr bgcolor="#949b93">
<td class="text">
<div align="center"><b>客户编码</b></div>
</td>
<td class="text">
<div align="center"><b>客户名称</b></div>
</td>
<td class="text">
<div align="center"><b>详细地址</b></div>
</td>
<td class="text">
<div align="center"><b>联系电话</b></div>
</td>
<td class="text">
<div align="center"><b>联系人</b></div>
</td>
<td class="text">
<div align="center"><b>满意度</b></div>
</td>
<tr>
<%
for(int listCount = 0; listCount < numInOnePage && (queryCustomer.next() > 0) ; listCount++) {
%>
<tr>
<td class="textb"><a href="CustomerDetail.jsp?customerId=<%=queryCustomer.getCustomerId()%>"><%=queryCustomer.getCustomerId()%></a></td>
<td class="textb"><%=queryCustomer.getCustomerName()%> </td>
<td class="textb"><%=queryCustomer.getAddress()%> </td>
<td class="textb"><%=queryCustomer.getTelephone()%> </td>
<td class="textb"><%=queryCustomer.getLinkman()%> </td>
<td class="textb"><%=satisfy[queryCustomer.getSatisfy()]%> </td>
</tr>
<%
}
%>
</table>
<p class="textb">
<% if (position==0&&state==0){ %>
页码 <%=curPage %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="CustomerList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="CustomerList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="CustomerList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="CustomerList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码
<%=curPage %> / <%=totalPage%>
<% } %>
</blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -