⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 producttype.jsp

📁 交易撮合系统是一套买卖信息沟通的平台
💻 JSP
字号:
<%@ page language="java" import="java.util.*,domain.*"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<%
    int pages = 1;
    int totalPage = 0;
    pages = (Integer)request.getAttribute("whichpage");
    totalPage = (Integer)request.getAttribute("totalPage");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script>
    function checkform(){
         var page = document.getElementById("Page").value;
         var regString = /^[0-9]{0,9}$/;
         if(!page.match(regString)){
             alert("您输入的页码有错误!");
             return false;
         }
    }
</script>
<html>
	<head>
		<title>商品类别管理</title>
<style type="text/css">
<!--
.STYLE3 {
	font-family: "宋体";
	font-size: 14px;
}
.tasklist {
	BORDER-TOP: #aad1ef 1px solid; WIDTH: 900px; BORDER-BOTTOM: #aad1ef 1px solid
}
.listtable {
	MARGIN: 0px auto; WIDTH: 900px
}
.listtable TH {
	BORDER-RIGHT: #e4e4e4 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #e4e4e4 1px; PADDING-LEFT: 6px; FONT-WEIGHT: normal; BACKGROUND: #e4effa; PADDING-BOTTOM: 10px; BORDER-LEFT: #e4e4e4 1px solid; PADDING-TOP: 10px; BORDER-BOTTOM: #e4e4e4 1px solid
}
.listtable TD {
	BORDER-RIGHT: #e4e4e4 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #e4e4e4 1px solid; PADDING-LEFT: 3px; PADDING-BOTTOM: 6px; VERTICAL-ALIGN: middle; BORDER-LEFT: #e4e4e4 1px solid; COLOR: #333; LINE-HEIGHT: 18px; PADDING-TOP: 6px; BORDER-BOTTOM: #e4e4e4 1px
}

-->
</style>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<link href="style.css" rel="stylesheet" type="text/css">
	</head>

	<body>
		<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
			<TBODY>
				<TR>
					<TD height=25>
						&nbsp;您现在的位置:商品类别管理
					</TD>
				</TR>
				<TR>
					<TD bgColor=#2650a6>
						<IMG height=1 src="images\blank(1).gif" width=1>
					</TD>
				</TR>
				<TR>
					<TD>
						<IMG height=2 src="images\blank(1).gif" width=574>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<br>
		<div align="center">
			<DIV class=tasklist>		
			<table class=listtable cellpadding="0" cellspacing="0">
				<tr bgcolor="#e4effa" height="31">
					<th>
						商品类别ID
					</th>
					<th>
						类别
					</th>
					<th>
						父类
					</th>
					<th>
						备注
					</th>
				</tr>
				<logic:present name="leibie" scope="request">
					<logic:iterate id="dept" name="leibie" type="domain.ProductType">
						<tr>
							<td>
								<a href="/webpk/producttypecontent.do?id=<bean:write name="dept" property="typeid"/>"><bean:write name="dept" property="typeid"/></a>
							</td>
							<td>
								<bean:write name="dept" property="title" />
							</td>
							<td>
								<bean:write name="dept" property="parent" />
							</td>
							<td>
								<bean:write name="dept" property="remark"/>
							</td>
						</tr>
					</logic:iterate>
				</logic:present>
			</table>
        </DIV>
        <br>
			     <%
			       if(pages != 1){
					  out.println("<a href=/webpk/htproducttype.do?Page=1>首页</a>");
					  out.println("<a href=/webpk/htproducttype.do?Page="+(pages - 1)+">上一页</a>");
				   }
				   if(pages != totalPage){
					  out.println("<a href=/webpk/htproducttype.do?Page="+(pages + 1)+">下一页</a>");
					  out.println("<a href=/webpk/htproducttype.do?Page="+totalPage+">尾页</a>");
				   }
				 %>	                          
                   第<%=pages%>页/共<%=totalPage%>页
			<form action="/webpk/htproducttype.do" method="post" onsubmit="return checkform();">
				输入页数:
				<input type="text" name="Page" id="Page"/>
				<input type="submit" value="GO" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/webpk/admin/addproducttype.jsp">增加商品类型</a>
			</form>
			
<table width="100%" height="24" border="0" align="center"	cellpadding="0" cellspacing="0">
	<tr>								
	   <td align="center">
			技术支持 电话:010-51778949; E-Mail:yuxiangqian@hotmail.com;  MSN:yuxiangqian@hotmail.com; QQ:641593276
	   </td>													
	</tr>
	<tr>
	   <td align="center">
			Copyright 2004-2008 蜘蛛工作室:www.zhzhcn.cn  All Rights Reserved
	   </td>
	</tr>
</table>
		</div>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -