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

📄 qybook_main.jsp

📁 java开发购物车+网上书城
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<style>
<!--
.wr{font-size: 12pt; line-height: 22px}
.wr1 {	FONT-SIZE: 12px; LINE-HEIGHT: 200%}
.wr2 {	FONT-SIZE: 14px; LINE-HEIGHT: 150%}
.wr3 {	FONT-SIZE: 12px}
.wr4 {	FONT-SIZE: 12px; LINE-HEIGHT: 150%}
// -->
</style>
<script type="text/javascript">
	function search()
	{
		var bookName=document.getElementById("bookName");
		var author=document.getElementById("author");
		if(bookName.value=="" && author.value=="")
		{
			alert("请输入您要查找的书名或者是作者名称!");
			return false;
		}
		return true;
	}
	function login()
	{
		var member=document.getElementById("member");
		var pass=document.getElementById("pass");
		if(member.value.length==0)
		{
			alert("请输入会员名!");
			return false;
		}
		if(pass.value.length==0)
		{
			alert("请输入您的密码!");
			return false;
		}
		return true;
	}
	function linkTo()
	{
		window.location.href="enrol.jsp";
	}
	var av=0;
	var closein=0;
	var left=0;
	var  left2=0;
	function init()
	{
		av=document.getElementById("div").style.pixelTop;
		closein=document.getElementById("close").style.pixelTop;
		
	}
	function move()
	{
		document.getElementById("div").style.pixelTop=av+document.body.scrollTop;
		document.getElementById("close").style.pixelTop=closein+document.body.scrollTop;
		
	}
	function closeMe()
	{
		document.getElementById("close").style.display="none";
		document.getElementById("div").style.display="none";
	}
	window.onscroll=move;
</script>
<title>清韵网上书店 - 西北地区首家专业网上书店</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="init();">

<div id="close" onClick="closeMe();" style="position:absolute;top:205px;left:845px;width:13px;height:13px;z-index:2;">
<img src="images/guan.jpg" height="20px;" width="26px;" style="cursor: pointer;">
</div>
<div id="div" style="position:absolute;top:200px;left:835px;width:150px;height:250px;z-index:1;" >
	<img src="images/123.jpg" width="150" height="250">
</div>

<table width="770" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td rowspan="2" width="152"><a href="http://www.qybook.com"><img src="images/logo.gif" width="152" height="84" alt="清韵网上书店" border="0"></a></td>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="53" width="62"><img src="images/dd00-h.gif" width="62" height="53"></td>
          <td height="53"><img src="images/daodu34.gif" width="281" height="44" alt="广告区"></td>
          <td valign="bottom" height="53" width="50"> 
            <div align="center"> <img src="images/daodu03.gif" width="27" height="25" alt="购物车"><br>
              <span class="wr1"><a href="${pageContext.request.contextPath }/proscenium/ShopingCarinformation.jsp">购物车</a> </span></div>
          </td>
          <td valign="bottom" height="53" width="65"> 
            <div align="center"><img src="images/daodu02.gif" width="28" height="25" alt="订单查询"><br>
             
              <c:choose>
            <c:when test="${sessionScope.memberInfo==null }"><span class="wr1">订单查询</span></c:when>
            <c:otherwise>
				  <span class="wr1"><a href="${pageContext.request.contextPath }/tp.do?userId=${sessionScope.memberInfo.userId }"> 订单查询</a></span>            
            </c:otherwise>
              </c:choose>
              </div>
          </td>
          <td valign="bottom" height="53" width="65"> 
            <div align="center"><img src="images/daodu04.gif" width="26" height="25" alt="我的书架"><br>
            <c:choose>
            <c:when test="${sessionScope.memberInfo==null }"><span class="wr1">我的空间</span></c:when>
            <c:otherwise>
				  <span class="wr1"><a href="${pageContext.request.contextPath }/space.do?userId=${sessionScope.memberInfo.userId }"> 我的空间</a></span>            
            </c:otherwise>
              </c:choose>
              </div>
          </td>
          <td valign="bottom" height="53" width="65"> 
            <div align="center"><img src="images/dd-10.gif" width="27" height="25" alt="我的帐户"><br>
              <span class="wr1"><a href="${pageContext.request.contextPath }/userLogin.do">主页</a></span></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="bottom" nowrap><a href="http://www.qybook.com"><img src="images/daodu05.gif" width="116" height="31" alt="首页" border="0"></a><a href="changxiao.jsp"><img src="images/daodu06.gif" width="86" height="31" alt="畅销" border="0"></a><a href="wenxue.htm"><img src="images/daodu07.gif" width="63" height="31" alt="文学" border="0"></a><a href="qysx.htm"><img src="images/daodu08.gif" width="95" height="31" alt="清韵书系" border="0"></a><a href="wenhua.htm"><img src="images/daodu09.gif" width="81" height="31" alt="文化" border="0"></a><a href="jingguan.htm"><img src="images/daodu10.gif" width="77" height="31" alt="经管" border="0"></a><a href="child.htm"><img src="images/daodu11.gif" width="76" height="31" alt="少儿" border="0"></a></td>
  </tr>
</table>
<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="28">
  <tr>
    <td background="images/daodu12.gif" class="wr1" width="147"> 
      <div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><img src="images/dd-mm.gif" width="137" height="16" alt="www.qybook.com"></font></div>
    </td>
    <td background="images/daodu12.gif" valign="bottom" class="wr1" width="415"> 
      <div align="right"><font color="#FFFFFF"><b>今日上架 | 专题特区 | 排行榜 | 书店平台 | 购书演示</b></font></div>
    </td>
    <td background="images/daodu12.gif" valign="bottom" width="58">&nbsp;</td>
    <td background="images/daodu12.gif" valign="bottom" width="150"><font color="#FFFFFF"><img src="images/daodu14.gif" width="96" height="21" alt="好书快讯"></font></td>
  </tr>
</table>
<table width="770" border="0" cellpadding="0" align="center" cellspacing="0">
  <tr valign="top"> 
    <td width="170"> 
      <p>
      <form action="${pageContext.request.contextPath }/findBook.do" method="post">
      <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" dwcopytype="CopyTableRow">
        <tr>
          <td class="wr4">&nbsp;</td>
        </tr>
        <tr> 
          <td class="wr4">书名: 
            <input type="text" name="bookName" size="10">
          </td>
        </tr>
        <tr> 
          <td class="wr4"> 作者: 
            <input type="text" name="author" size="10">
          </td>
        </tr>
        <tr> 
          <td height="30" valign="top" align="center">
          	<input type="submit" style="border-style: none;background-image: url('images/changxiao09.gif');width: 45px; height: 18px; cursor: pointer;" value=""/>
          </td>
        </tr>
      </table>
      </form>
      <c:choose>
      <c:when test="${empty sessionScope.memberInfo.userName}" >
      <form action="${pageContext.request.contextPath }/member.do" method="post" onsubmit="return login();">
      <table width="153" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td width="10"><img src="images/dd-m2.gif" width="10" height="22"></td>
          <td bgcolor="#3AA6BF"> 
            <div align="center"><font color="#FFF1C9" class="wr3"><b><font color="#FDF6DF">会员登录</font></b></font></div>
          </td>
          <td width="10" align="right"><img src="images/dd-m3.gif" width="10" height="22"></td>
        </tr>
      </table>
      <table width="153" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td background="images/dd-m6.gif" class="wr1"> 会员名 
            <input type="text" name="member" size="10">
          </td>
        </tr>
        <tr> 
          <td background="images/dd-m6.gif" class="wr1"> 密 码 
            <input type="password" name="pass" size="12">
          </td>
        </tr>
        <tr> 
          <td background="images/dd-m6.gif" class="wr1" valign="bottom"> 
            &nbsp;<input type="submit" style="border-style: none;background-image:  url('images/daodu18.gif');width: 55px;height: 21px;cursor: pointer; " value="" />
            &nbsp;<input type="button" style="border-style: none;background-image:  url('images/dd-m1.gif');width: 76px;height: 21px;cursor: pointer; " value="" onclick="linkTo();"/>
          </td>
        </tr>
        <tr> 
          <td valign="top" height="20"><img src="images/dd-m4.gif" width="153" height="10"></td>
        </tr>
      </table>
      </form>
      </c:when>
      <c:otherwise>
      	<p style="font-size: 15px;color: #cccccc">${sessionScope.memberInfo.userName }&nbsp;&nbsp;欢迎您光临本站</p>
      </c:otherwise>
      </c:choose>
      <table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
        <tr> 
          <td bgcolor="#3AA6BF" colspan="2"> 
            <div align="center"><img src="images/dd-m17.gif" width="82" height="23" alt="分类浏览"></div>
          </td>
        </tr>
        <tr> 
          <td bgcolor="#F5F2E3" class="wr1" colspan="2">
          <p>
          	<c:forEach items="${sessionScope.oneBookContent}" var="one">
          			<b>${one.shelfName }</b>:
          		<c:forEach items="${sessionScope.twoContent}" var="two">
          			<c:if test="${one.shelfId==two.parentShelfId }">
          				<a href="${pageContext.request.contextPath }/shelfId.do?twoId=${two.shelfId }"> ${two.shelfName }  |</a>
          			</c:if>
          		</c:forEach>
          			<br/>
          	</c:forEach>
          </p> 
            </td>
        </tr>
        <tr> 
          <td bgcolor="#3AA6BF" colspan="2"> 
            <div align="center"><img src="images/dd-m15.gif" width="81" height="21" alt="更多书店"></div>
          </td>
        </tr>
        <tr> 
          <td> 
            <div align="right">
              <input type="text" name="textfield4" value="书店检索" size="15">
            </div>
          </td>
          <td width="37"><img src="images/dd-m08.gif" width="37" height="21" alt="检索"></td>
        </tr>
      </table>
      <table width="150" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td>
            <div align="center" class="wr1"><font color="#68A3A1"><b>西安钟楼新华书店</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
        </tr>
		<tr>
          <td>
            <div align="center" class="wr1"><font color="#68A3A1"><b>西安外文书店</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
        </tr>
		<tr>
          <td>
            <div align="center" class="wr1"><font color="#68A3A1"><b>影音第一站</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
        </tr>
		<tr>
          <td>
            <div align="center" class="wr1"><font color="#68A3A1"><b>西安解放路图书大厦</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
        </tr>
		<tr>
          <td class="wr1">
            <div align="center"><font color="#68A3A1"><b>天德图书</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
        </tr>
		<tr>
          <td>
            <div align="center" class="wr1"><font color="#68A3A1"><b>音乐天地图书</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
        </tr>
		<tr>
          <td>
            <div align="center" class="wr1"><font color="#68A3A1"><b>西安晚报社书店</b></font></div>
          </td>
        </tr>
        <tr>
          <td height="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>

⌨️ 快捷键说明

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