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

📄 offers.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");
%> 
<script>
    function delOffer(){      
        
        if(confirm("确定要删除么?") == false){
            return false;
        }else{
            return true;
        }
    }
    function checkform(){
         var page = document.getElementById("Page").value;
         var regString = /^[0-9]{0,9}$/;
         if(!page.match(regString)){
             alert("您输入的页码有错误!");
             return false;
         }
    }
</script>  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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>
					商品ID
				</th>
	<!-- 			<th>
					内容
				</th> -->
				<th>
					发贴时间
				</th>
				<th>
					结束时间
				</th>
				<th>
					邮箱
				</th>
				<th>
					数量
				</th>
				<th>
					运输方式
				</th>
				<th>
					付款方式
				</th>
				<th>
					价格
				</th>
				<th>
					点击率
				</th>
	<!-- 			<th>
					备注
				</th>
				<th>
					买卖标识
				</th>
				<th>
					标题
				</th> -->
				<th>
					帖子状态
				</th>
				<th>删除帖子</th>
			</tr>
			<logic:present name="offer" scope="request">
				<logic:iterate id="dept" name="offer" type="domain.Offers">
					<tr>
						<td>
							<a href="/webpk/htofferstate.do?id=<bean:write name="dept" property="offersid"/>&productid=<bean:write name="dept" property="productsid" />"><bean:write name="dept" property="offersid"/></a>
						</td>
						<td>
							<bean:write name="dept" property="productsid" />
						</td>
				<!-- 		<td>
							<bean:write name="dept" property="content" />
						</td> -->
						<td>
							<bean:write name="dept" property="post_time" />
						</td>
						<td>
							<bean:write name="dept" property="end_time" />
						</td>
						<td>
							<bean:write name="dept" property="email" />
						</td>
						<td>
							<bean:write name="dept" property="amount" />
						</td>
						<td>
							<bean:write name="dept" property="deliver" />
						</td>
						
						<td>
							<bean:write name="dept" property="payment" />
						</td>
						<td>
							<bean:write name="dept" property="price" />
						</td>
						<td>
							<bean:write name="dept" property="hits" />
						</td>
		<!-- 				<td>
							<bean:write name="dept" property="remark" />
						</td>
						<td>
							<bean:write name="dept" property="trade" />
						</td>
						<td>
							<bean:write name="dept" property="title" />
						</td> -->
						<td>
						    <bean:write name="dept" property="state"/>
						</td>
						<td align="center"><a href="htdeloffer.do?offer=<bean:write name="dept" property="offersid"/>" onclick="return delOffer();">删除</a></td>
					</tr>
				</logic:iterate>
			</logic:present>
		</table>
		 </DIV>
		 <br>
		<%
				if (pages != 1) {
				out.println("<a href=/webpk/htoffer.do?Page=1>首页</a>");
				out.println("<a href=/webpk/htoffer.do?Page="
				+ (pages - 1) + ">上一页</a>");
			}
			if (pages != totalPage) {
				out.println("<a href=/webpk/htoffer.do?Page="
				+ (pages + 1) + ">下一页</a>");
				out.println("<a href=/webpk/htoffer.do?Page=" + totalPage
				+ ">尾页</a>");
			}
		%>
		第<%=pages%>页/共<%=totalPage%>页
		<form action="/webpk/htoffer.do" method="post" onsubmit="return checkform();">
			输入页数:
			<input type="text" name="Page" id="Page"/>
			<input type="submit" value="GO" />
		</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 + -