📄 th_init_boss_manage.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>th_init_boss_sql.jsp</title>
<link href="<%=request.getContextPath()%>/css/style_2.css" rel="stylesheet">
</head>
<body>
<jsp:include flush="true" page="init_top.jsp"></jsp:include>
<form action="<%=request.getContextPath() %>/servlet/QuerybossServlet" name="form" method="post">
<table width="100%" border="1" cellspacing="0" cellpadding="0"
bordercolor="#FFFFFF" bordercolordark="#ffffff"
bordercolorlight="#EEF2F9">
<tr align="center" bgcolor="#Eff2fb">
<td width="6%" height="24" scope="col"></td>
<td width="21%" scope="col" align="left">
<img src="../images/Manual54.gif">
<a href="<%=request.getContextPath()%>/material/addBoss.jsp"
target="mainName">添加新供应商信息</a>
</td>
<td width="26%" scope="col" align="right">
</td>
<td width="12%" scope="col" align="right">
</td>
<td width="9%" scope="col" align="right">
</td>
<td width="11%" scope="col" align="right">
<input type="text" name="boss_query" size="15">
</td>
<td width="9%" scope="col" align="center">
<input type="submit" value=" 查 询 ">
</td>
<td width="6%" scope="col" align="right"></td>
</tr>
<tr>
<td width="6%" height="24" scope="col"></td>
<td width="21%" align="center" scope="col">
供应商名称
</td>
<td width="26%" scope="col" align="center">
供应商地址
</td>
<td width="12%" scope="col" align="center">
电话
</td>
<td width="9%" scope="col" align="center">
联系人
</td>
<td width="11%" scope="col" align="center">
联系人电话
</td>
<td width="33%" align="center" scope="col">
操作
</td>
<td width="6%" scope="col"></td>
</tr>
<c:choose>
<c:when test="${!empty queryIndex}">
<c:forEach items="${bosses}" var="queryboss" varStatus="status"
begin="${queryIndex}"
end="${queryIndex}">
<tr>
<td height="24" scope="col"></td>
<td width="21%" align="center" scope="col">
<a
href="<%=request.getContextPath()%>/material/th_init_boss_look.jsp?lookbossindex=${status.index}"
target="mainName">${queryboss.name}</a>
</td>
<td width="26%" align="center" scope="col">
${queryboss.address}
</td>
<td width="12%" align="center" scope="col">
${queryboss.tel}
</td>
<td width="9%" align="center" scope="col">
${queryboss.lkname}
</td>
<td width="11%" align="center" scope="col">
${queryboss.lktel}
</td>
<td width="33%" scope="col">
<img src="../images/Manual1.gif">
<a
href="<%=request.getContextPath()%>/material/updateBoss.jsp?editbossindex=${status.index}"
target="mainName">编辑</a>
<img src="../images/delete.gif">
<a
href="<%=request.getContextPath()%>/servlet/AddAndDeleteBossServlet?bossId=${queryboss.id}">删除</a>
</td>
<td width="10%" scope="col"></td>
</tr>
</c:forEach>
<c:remove var="queryIndex" scope="session"/>
</c:when>
<c:otherwise>
<c:if test="${! empty bosses}">
<c:forEach items="${bosses}" var="boss" varStatus="status"
begin="${(bosscurrentpage -1)*5}"
end="${(((bosscurrentpage*5-1)>boss_total_count)?boss_total_count:(bosscurrentpage*5-1))}">
<tr>
<td height="24" scope="col"></td>
<td width="21%" align="center" scope="col">
<a
href="<%=request.getContextPath()%>/material/th_init_boss_look.jsp?lookbossindex=${status.index}"
target="mainName">${boss.name}</a>
</td>
<td width="26%" align="center" scope="col">
${boss.address}
</td>
<td width="12%" align="center" scope="col">
${boss.tel}
</td>
<td width="9%" align="center" scope="col">
${boss.lkname}
</td>
<td width="11%" align="center" scope="col">
${boss.lktel}
</td>
<td width="33%" scope="col">
<img src="../images/Manual1.gif">
<a
href="<%=request.getContextPath()%>/material/updateBoss.jsp?editbossindex=${status.index}"
target="mainName">编辑</a>
<img src="../images/delete.gif">
<a
href="<%=request.getContextPath()%>/servlet/AddAndDeleteBossServlet?bossId=${boss.id}">删除</a>
</td>
<td width="10%" scope="col"></td>
</tr>
</c:forEach>
</c:if>
<tr align="center">
<td height="25" colspan="8" bgcolor="#ECECF2">
<c:choose>
<c:when
test="${(boss_total_count > 1) && (boss_total_count > 5)}">
<c:if test="${bosscurrentpage * 5 >= boss_total_count}">
<a
href="<%=request.getContextPath()%>/servlet/TypePaginationServlet?who=boss&page=${bosscurrentpage-1}"><img
src="../images/1-prev.gif" width="36" height="11"
border="0"> </a>
<a><img src="../images/1-next.gif" width="36" height="11"
border="0"> </a>
</c:if>
<c:if
test="${(bosscurrentpage * 5 < boss_total_count) && (bosscurrentpage > 1)}">
<a
href="<%=request.getContextPath()%>/servlet/TypePaginationServlet?who=boss&page=${bosscurrentpage-1}"><img
src="../images/1-prev.gif" width="36" height="11"
border="0"> </a>
<a
href="<%=request.getContextPath()%>/servlet/TypePaginationServlet?who=boss&page=${bosscurrentpage+1}"><img
src="../images/1-next.gif" width="36" height="11"
border="0"> </a>
</c:if>
<c:if test="${bosscurrentpage <= 1}">
<a><img src="../images/1-prev.gif" width="36" height="11"
border="0"> </a>
<a
href="<%=request.getContextPath()%>/servlet/TypePaginationServlet?who=boss&page=${bosscurrentpage+1}"><img
src="../images/1-next.gif" width="36" height="11"
border="0"> </a>
</c:if>
</c:when>
<c:otherwise>
<a><img src="../images/1-prev.gif" width="36" height="11"
border="0"> </a>
<a><img src="../images/1-next.gif" width="36" height="11"
border="0"> </a>
</c:otherwise>
</c:choose>
共${boss_total_count}
条 记录每页5条记录
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -