【JSP开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了JSP开源代码-goodSelectBig.jsp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<%@ page contentType="text/html; charset=gb2312"%>
<%@page import="java.
sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.domain.GoodsForm"%>
<jsp:useBean id="big" scope="page" class="com.dao.BigTypeDao"/>
<jsp:useBean id="small" scope="page" class="com.dao.SmallTypeDao"/>
<%
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;
}
%>
<script Language="JavaScript">
function deleteType(date) {
if(confirm("确定要删除吗?")){
window.location="bigTypeAction.do?action=3&id="+date;
}
}
</script>
<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>
</head>
<link href="css/css.css" rel="stylesheet" type="text/css">
<body>
<div id="Layer1" style="position:absolute; left:324px; top:164px; 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" height="100%" 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">
<div align="center">
<br>
<table width="99%" height="16" border="0" cellpadding="0" cellspacing="0">
<tr >
<td bgcolor="#E6E6E6" ><div align="center"><font color="#990000"><b>按大类别商品信息查询</b></font></div></td>
</tr>
</table><br><br>
<table width="90%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="14%" height="25"><div align="center">数据编号</div></td>
<td width="19%"><div align="center">商品名称</div></td>
<td width="14%"><div align="center">大类别</div></td>
<td width="14%"><div align="center">小类别</div></td>
<td width="14%"><div align="center">是否特价</div></td>
<td width="25%"><div align="center">操作</div></td>
</tr>
<%for(int i=start;i<over;i++){
GoodsForm form=(GoodsForm)list.get(i);
%>
<tr>
<td height="30"><div align="center"><%=form.getId()%></div></td>
<td><div align="center"><a href="<%=form.getPicture()%>" target="_blank"><%=form.getName()%></a></div></td>
<td><div align="center"><%=big.selectName(form.getBig())%></div></td>
<td><div align="center"><%=small.selectName(form.getSmall())%></div></td>
<td><div align="center"><%if(form.getMark().toString().equals("0")){%>否<%}else{%>是<%}%></div></td>
<td><div align="center"><a href="goodsAction.do?action=5&id=<%=form.getId()%>">详细信息</a>
</div></td>
<%}%> </tr>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="13%">共为<%=maxPage%>页</td>
<td width="16%">共有<%=pageNumber%>条记录</td>
<td width="14%">当前为第<%=number+1%>页</td>
<td width="19%"><%if((number+1)==1){%>
上一页
<%}else{%>
<a href="goodsAction.do?action=9&i=<%=number-1%>&big=<%=request.getParameter("big")%>">
上一页</a></td>
<%}%>
<td width="18%"><%if(maxPage<=(number+1)){%>
下一页
<%}else{%>
<a href="goodsAction.do?action=9&i=<%=number+1%>&big=<%=request.getParameter("big")%>">下一页</a>
<%}%>
</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>