📄 smalltypeselect.jsp
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.domain.SmallTypeForm"%>
<jsp:useBean id="big" scope="page" class="com.dao.BigTypeDao"/>
<%
List list=(List)request.getAttribute("list");
int number=Integer.parseInt((String)request.getAttribute("number"));
int maxPage=Integer.parseInt((String)request.getAttribute("maxPage"));
int pageNumber=Integer.parseInt((String)request.getAttribute("pageNumber"));
int start=number*6;//开始条数
int over=(number+1)*6;//结束条数
int count=pageNumber-over;//还剩多少条记录
if(count<=0){
over=pageNumber;
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电子商城的后台</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<link href="css/css.css" rel="stylesheet" type="text/css">
<body>
<div id="Layer1" style="position:absolute; left:322px; top:122px; width:513px; height:23px; z-index:1" class="linkBlack">
<div align="right"><a href="goodsAction.do?action=0">商品查询</a> <a href="bigTypeAction.do?action=0">大类别查询</a> <a href="smallTypeAction.do?action=0">小类别查询</a> <a href="javascript:history.go(-1)">返回</a> </div>
</div>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td height="108" colspan="2" background="image/banner1.jpg"><div align="center">
<jsp:include page="../upTwo.jsp"/>
</div></td>
</tr>
<tr>
<td width="24%" height="318"><jsp:include page="../../leftManager.jsp"/> </td>
<td width="76%" bgcolor="#FFFFFF" class="linkBlack"><br>
<div align="center"><br>
<table width="99%" height="16" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#E6E6E6"><div align="center" class="dhz"><font color="#990000"><b>商品小类别查询</b></font></div></td>
</tr>
</table>
<br><br>
<table width="90%" border="1" cellspacing="0" cellpadding="0">
<tr class="zi">
<td width="10%" height="25"><div align="center">数据编号</div></td>
<td width="18%"><div align="center">小类别名称</div></td>
<td width="20%"><div align="center">属于大类别名称</div></td>
<td width="27%"><div align="center">创建时间</div></td>
<td width="25%"><div align="center">操作</div></td>
</tr>
<%for(int i=start;i<over;i++){
SmallTypeForm form=(SmallTypeForm)list.get(i);
%>
<tr class="zi">
<td height="30"><div align="center"><%=form.getId()%></div></td>
<td><div align="center"><%=form.getSmallName()%></div></td>
<td><div align="center">
<%if(request.getParameter("bigId")==null){%>
<a href="smallTypeAction.do?action=6&bigId=<%=form.getBigId()%>"><%=big.selectName(form.getBigId())%></a>
<%}else{%><%=big.selectName(form.getBigId())%><%}%>
</div></td>
<td><div align="center"><%=form.getCreaTime()%></div></td>
<td> <%if(request.getParameter("bigId")==null){%>
<div align="center"> <a href="smallTypeAction.do?action=4&id=<%=form.getId()%>" >修改</a>
<a href="smallTypeAction.do?action=3&id=<%=form.getId()%>">删除</a> </div>
<%}else{%>
<div align="center"> 无操作 </div>
<%}%></td>
<%}%> </tr>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" class="zi">
<td width="13%">共为<%=maxPage%>页</td>
<td width="16%">共有<%=pageNumber%>条记录</td>
<td width="14%">当前为第<%=number+1%>页</td>
<td width="19%"><%if((number+1)==1){%>
上一页
<%}else{%>
<%if(request.getParameter("bigId")==null){%>
<a href="smallTypeAction.do?action=0&i=<%=number-1%>">上一页</a>
<%}else{%>
<a href="smallTypeAction.do?action=6&i=<%=number-1%>&bigId=<%=request.getParameter("bigId")%>">上一页</a>
<%}}%>
</td>
<td width="18%"><%if(maxPage<=(number+1)){%>
下一页
<%}else{%>
<%if(request.getParameter("bigId")==null){%>
<a href="smallTypeAction.do?action=0&i=<%=number+1%>">下一页</a>
<%}else{%>
<a href="smallTypeAction.do?action=6&i=<%=number+1%>&bigId=<%=request.getParameter("bigId")%>">下一页</a>
<%}}%></td>
<%if(request.getParameter("bigId")==null){%>
<div align="right"> <td width="20%"><a href="smallTypeAction.do?action=1">添加小类别 </a></td></div>
<%}else{%><%}%>
</tr>
</table>
<p><br>
</p>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="60" colspan="2"><p align="center"><jsp:include page="../downNews.jsp"/>
</p> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -