📄 customermanage.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
%>
<html>
<head>
<title>客户管理页面</title>
<link href="<%=path%>/css/style_2.css" rel="stylesheet">
</head>
<body background="../images/3.bmp">
<form action="<%=path%>/servlet/SelectClientServlet" method="post"
name="form1">
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60%" height="24">
<img src="../images/ico/icon_group.gif" width="15" height="15">
<c:if test="${!empty user_rights}">
<c:choose>
<c:when test="${!empty user_rights.id9 }">
<a href="<%=path%>/customermanage/Client_Add.jsp"
target="mainName">客户添加</a>
</c:when>
<c:otherwise>
客户添加
</c:otherwise>
</c:choose>
</c:if>
</td>
<td width="14%" align="center">
客户(公司)名称
</td>
<td width="26%">
<input name="clientname" type="text" class="wenbenkuang">
<input name="Submit" type="submit" class="btn_grey" value="查询">
</td>
</tr>
</table>
</form>
<hr color="#006699" size="1">
<table width="100%" border="1" cellspacing="0" cellpadding="0"
bordercolor="#FFFFFF" bordercolordark="#ffffff"
bordercolorlight="#EEF2F9">
<tr align="center" bgcolor="#EEF2F9">
<td width="15%" height="24">
客户(公司)名称
</td>
<td width="28%" bgcolor="#EEF2F9">
地址
</td>
<td width="14%">
电话
</td>
<td width="13%">
传真
</td>
<td width="16%">
网址
</td>
<td width="14%">
操作
</td>
</tr>
<c:if test="${!empty list}">
<c:forEach items="${list}" var="bean" varStatus="status">
<tr align="center">
<td width="15%" height="24">
<c:if test="${!empty user_rights}">
<c:choose>
<c:when test="${!empty user_rights.id11 }">
<a
href="<%=path%>/servlet/SelectClientbynameServlet?id=${bean.id } "
target="bottomFrame">${bean.clientName } </a>
</c:when>
<c:otherwise>
${bean.clientName}
</c:otherwise>
</c:choose>
</c:if>
</td>
<td width="28%" height="24">
${bean.address}
</td>
<td width="14%" height="24">
${bean.telephone}
</td>
<td width="13%" height="24">
${bean.fax}
</td>
<td width="16%" height="24">
${bean.net}
</td>
<td width="14%" height="24">
<c:if test="${!empty user_rights}">
<c:choose>
<c:when test="${!empty user_rights.id12 }"><img src="../images/Manual1.gif">
<a
href="<%=path%>/servlet/SelectClientbyIdServlet?id=${bean.id }"
target="mainName">编辑 </a>
</c:when>
<c:otherwise>
<img src="../images/Manual1.gif">编辑
</c:otherwise>
</c:choose>
</c:if>
/
<c:if test="${!empty user_rights}">
<c:choose>
<c:when test="${!empty user_rights.id10 }"><img src="../images/delete.gif">
<a href="<%=path%>/servlet/DeleteClientServlet?id=${bean.id }">删除 </a>
</c:when>
<c:otherwise>
<img src="../images/delete.gif">删除
</c:otherwise>
</c:choose>
</c:if>
</td>
</tr>
</c:forEach>
</c:if>
</table>
<table border=0 width='70%' cellspacing='0' cellpadding='0'
align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'>
<tr>
<td colspan=4 align=center>
<form action="<%=path%>/servlet/SelectClientServlet" name="form1"
methord="post">
<font style='font-size: 9pt'>【总计<font color='red'>${totalrow}</font>条记录】【共<font
color='red'>${totalpage }</font>页】【5条/页】 当前第<font color='red'>${num
}</font>页 <c:choose>
<c:when test="${num <= 1}">
<c:out value="首页 上一页" />
</c:when>
<c:otherwise>
<a href="<%=path%>/servlet/SelectClientServlet?num=1">首页</a>
<a href="<%=path%>/servlet/SelectClientServlet?num=${num-1}">上一页</a>
</c:otherwise>
</c:choose> <c:choose>
<c:when test="${num >= totalpage}">
<c:out value="下一页 尾页" />
</c:when>
<c:otherwise>
<a href="<%=path%>/servlet/SelectClientServlet?num=${num+1}">下一页</a>
<a
href="<%=path%>/servlet/SelectClientServlet?num=${totalpage}">尾页</a>
</c:otherwise>
</c:choose> </font>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -