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

📄 index.jsp

📁 有简单的网上书店需求及设计流程
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
	pageEncoding="GBK"%>
<%@page import ="org.wiely.model.OnlineCounter"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
		<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">
		<title>欢迎光临彩虹书店</title>
		<style type="text/css">
<!-- 
#text {
	text-align: left;
}

a:hover {
	color: #CCFFFF;
	text-decoration: underline :  none;
	font-size: 18px;
}

a {
	font-family: "宋体";
	font-size: 16px;
	color: #336633;
	text-decoration: none
}

-->
</style>
	</head>
	<body background="/bookshop/image/background.jpg">
		<center>
			<table width="100%" border="2" cellpadding="0" cellspacing="0">
				<tr>
					<td height="62" colspan="4">
						<a href="http://www.55.la/"><img
								src="/bookshop/image/rainbow.gif" width="100%" height="100" />
						</a>
					</td>
				</tr>
				<tr bgcolor="#E5E5E5">
					<td width="85" height="30" align="center" class="STYLE2">
						<a href="/bookshop/welcome.action" style="text-decoration: none">首页</a>
					</td>
					<td width="189" align="center">
						<span><a href="/bookshop/slogin.jsp"
							style="text-decoration: none">图书管理员登录</a> </span>
					</td>
					<td width="234" align="center">
						<span ><a href="/bookshop/visitor.action"
							style="text-decoration: none">客户留言</a> </span>
					</td>
					<td width="226" align="center">
						<span ><a href="/bookshop/aboutus.jsp"
							style="text-decoration: none">关于我们</a> </span>
					</td>				
				</tr>
				<tr>
					<td  align="left" height="25" colspan="4" bgcolor="#CCCCCC">
											
							<form action="/bookshop/user" method="post">								
									在线人数<font color="gray"><%=OnlineCounter.getCount() %></font>&nbsp;<font color="green">购书请登陆——》</font>	
									会员:
									<input type="text" name="username"  value="<s:property value="username"/>" />
									
									密码
									<input type="password" name="password" size="10" />
									
									<input type="submit" value="登录" />
									(忘记密码?)新<a
										href="/bookshop/register.jsp">注册</a>一个吧,否则不能购书哦!
										<span ><a href="/bookshop/users/download.jsp"
							                   style="text-decoration: underline"><font color="blue">下载资源</font></a></span>	<br/>
										<div style="color:red">										    
										    <s:fielderror></s:fielderror>	
										</div>											
						                
																				
							</form>						
					</td>
				</tr>
				<tr>
					<td>
						<center><h2><b><font color="green">今日新书</font></b></h2></center>
						<br />
						<span> <font size="2" color="red"> 由图书管理员更新图书 </font> </span>
					</td>					
					 
									
					<s:iterator value="#session['newbooks']" id="newbooks" status="indexs">
					  <s:if test="#indexs.getIndex()<3">
					 <td height="170" width="27%">
						<div id="text">
							<img src="/bookshop/image/book.jpg" alt="新书" />
						</div>											
						
						<div id="text">
							<font size="2" color="green"> <span> 名称:<s:property value="#newbooks.bookname"/> </span> <br />
								<span> 简介:<s:property value="#newbooks.introduction"/>  </span> <br /> <span> 作者:<s:property value="#newbooks.bookauthor"/></span> <br /> </font>
						</div>
					</td>	
					</s:if>
					<s:else>
					</s:else>							
					</s:iterator>
				  				
				</tr>

				<tr>

					<td height="185" colspan="1" align="center">			

						<font size="3" color="#FF9900"> <marquee direction="up">
								<center>公告栏</center><br/>
								<span style="color:black">
								  <s:property  value="#session['content']"/>
								</span>
							</marquee> <br /> </font>


					</td>

					<td colspan="3" align="left">
						<p class="STYLE19 STYLE20">
							请输入要查询的图书名
						</p>
						<center>
							<form action="/bookshop/showByName" method="post">
								<input type="text" name="bookname" />
								<input type="submit" value="搜索" />
							</form>
						</center>
					</td>
				</tr>
				<tr>
					<td align="center" height="10" colspan="4">
						<a
							href="http://www.bookuu.com/bk_index.shtml">博库书城</a> <a
							href="http://www.5566.net/bookshop.htm ">网上书店</a><a
							href="http://www.amazon.cn/ "> 卓越亚马逊</a> <a
							href="http://book.dangdang.com/ ">当当图书</a> 
					</td>
				</tr>
				<tr>
					<td height="10" colspan="4">
						<div align="center">
							版权:彩虹工作组。地址:彩虹之巅.邮件地址:weileihangwiely@163.com
						</div>
					</td>
				</tr>
			</table>
		</center>
	</body>
</html>

⌨️ 快捷键说明

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