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

📄 productmanager.jsp

📁 自己制作的联通CRM,支持客户分类,管理,升级,积分管理等等..
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="${pageContext.request.contextPath }/image/main.css"
		rel="stylesheet" type="text/css">
	<link href="${pageContext.request.contextPath }/image/shh.css"
		rel="stylesheet" type="text/css">
	<style type="text/css">
		input {
			font-size:12px;
		}
    </style>
</head>

<body style="z-index: 1;text-align: center;">
	<div id="title">物品管理</div>
	<br/>
	<table border="1" bordercolor="#D71920" width="760px" align="center" cellpadding="0" cellspacing="0">
		<tr><td>
			<br/>
			<form action="${pageContext.request.contextPath }/product.do?task=managerProduct" method="post" name="searchForm">
			<table  border="0" cellpadding="0" cellspacing="0" width="740" align="center" id="ttc">
				<tr>
					<td width="140" height="50" colspan="1" align="right"><font style="font-weight: bold;">查询条件</font></td>
					<td width="80" colspan="1" align="right">物品分类:</td>
					<td width="150" colspan="1" align="left">
						<select name="typeid" id="typeid">
							<option value="">--选择物品类别--</option>
							<c:forEach var="type" items="${typeList}">
								<option value="${type.typeid }"/>${type.sortname }
							</c:forEach>
						</select>
				  </td>
					<td width="80" colspan="1" align="right">关键字;</td>
					<td width="150" colspan="1" align="left"><input type="text" name="keyword" id="keyword"/></td>
					<td width="140" colspan="2" align="left"><input type="submit" value=" 查 询 "/></td>
				</tr>
			</table>
			</form>
			<div style="height: 300px;">
			<table  border="0" cellpadding="0" cellspacing="0" width="740" align="center">
				<tr class="ttop">
					<td width="80" height="27" align="center">物品ID</td>
					<td width="180" align="center">物品名称</td>
					<td width="60" align="center">所需积分</td>
					<td width="100" align="center">类型</td>
					<td width="100" align="center">商家</td>
					<td width="80" align="center">库存</td>
					<td width="140" align="center">操作&nbsp;<span onclick="saveProduct(0);" id="link">[添加物品]</span></td>
				</tr>
				<c:forEach var="product" items="${productList}">
					<tr>
						<td height="27" align="center" id="ttc">${product.productid}</td>
						<td align="center" id="ttc">${product.productname}</td>
						<td align="center" id="ttc">${product.point}</td>
						<td align="center" id="ttc">${product.typeid}</td>
						<td align="center" id="ttc">${product.productor}</td>
						<td align="center" id="ttc">
							<c:if test="${product.productstorage==-1}">
								无限量
							</c:if>
							<c:if test="${product.productstorage!=-1}">
								${product.productstorage}
							</c:if>
							</td>
						<td align="center" id="ttc">
							<script type="text/javascript">
								function saveProduct(productid){
									if(productid==0){
										window.showModalDialog("<c:url value='/product.do?task=addProduct'/>","_blank","dialogWidth:580px;dialogHeight:270px;status:1");
										window.location.href = window.location.href;
									}else{
										window.showModalDialog("<c:url value='/product.do?task=editProduct&productid="+productid+"'/>","_blank","dialogWidth:580px;dialogHeight:270px;status:1");
										window.location.href = window.location.href;
									}
								}
								function deleteProduct(productid){
									window.location.href = "${pageContext.request.contextPath}/product.do?task=deleteProduct&productid="+productid;
								}
							</script>
							<span onclick="saveProduct(${product.productid});" id="link">[修改]</span>&nbsp;&nbsp;
							<span onclick="deleteProduct(${product.productid});" id="link">[删除]</span>
						</td>
					</tr>
				</c:forEach>
			</table>
			</div>
			<br/>
			<table align="center" width="740px">
				<tr><td>${pagetool }</td></tr>
			</table>
			<br/>
		</td></tr>
	</table>
</body>
</html:html>

⌨️ 快捷键说明

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