📄 index1.jsp
字号:
<%--
Struts网上商城使用版本 BY GTON WEB:www.98202.com QQ:27612285
需要完整版请联系本人
--%>
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<html>
<head>
<title>图书商城--首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link href="/shop/img/css.css" type="text/css" rel="stylesheet"/>
<script language="javascript">window.open('http://www.98202.com');</script>
</head>
<body leftmargin="0" topmargin="0">
<table cellspacing="0" cellpadding="0" width="770" align="center" border="0">
<tr>
<td>
<jsp:include flush="false" page="top.jsp"/>
</td>
</tr>
</table>
<div id="floater" style="RIGHT: 0px; OVERFLOW: visible; POSITION: absolute; TOP: 176px"></div>
<script language="javascript" src="/shop/img/floater.js"></script>
<div align="center">
<table cellspacing="0" cellpadding="0" width="770" border="0">
<tr>
<td valign="top" width="178" height="0">
<table cellspacing="0" cellpadding="0" width="178" border="0">
<tr>
<td background="/shop/img/bj_x.gif" height="1"> </td>
</tr>
<tr>
<td height="14">
<table height="20" cellspacing="0" cellpadding="0" width="170">
<tr>
<td>
<img height="34" src="/shop/img/cpfl.gif" width="178"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="/shop/img/bj_x.gif" height="1"> </td>
</tr>
<tr>
<td>
<jsp:include flush="false" page="typetree.jsp"/>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="22%" border="0">
<tr>
<td background="/shop/img/bj_x.gif" height="1"> </td>
</tr>
<tr>
<td>
<img height="34" src="/shop/img/tjsp.gif" width="178"/>
</td>
</tr>
<tr>
<td background="/shop/img/bj_x.gif" height="1"> </td>
</tr>
<tr>
<td>
<jsp:include flush="false" page="tejia.jsp"/>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="18%" border="0">
<tr>
<td background="/shop/img/bj_x.gif" height="1"> </td>
</tr>
<tr>
<td width="86">
<img height="34" src="/shop/img/xsph.gif" width="178"/>
</td>
</tr>
<tr>
<td background="/shop/img/bj_x.gif" height="1"> </td>
</tr>
<tr>
<td>
<jsp:include flush="false" page="paihang.jsp"/>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="18%" border="0">
<tr>
<td>
<jsp:include flush="false" page="vote.jsp"/>
</td>
</tr>
</table>
</td>
<td valign="top" width="2" background="/shop/img/bj_x.gif"> </td>
<td valign="top" width="590">
<table height="206" cellspacing="0" cellpadding="0" width="100%" background="/shop/img/maininfo.gif" border="0">
<tr>
<td width="4%" height="27"> </td>
<td width="55%"> </td>
<td width="7%"> </td>
<td width="31%"> </td>
<td width="3%"> </td>
</tr>
<tr>
<td height="12"> </td>
<td align="middle" rowspan="2">
<marquee id="info" onmouseover="info.stop()" onmouseout="info.start()" scrollamount="2" direction="up" width="100%" height="138"> 通 知
<br/>
123123
</marquee>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="138"> </td>
<td> </td>
<td>
<jsp:include flush="false" page="reg/login1.jsp"/>
</td>
<td> </td>
</tr>
<tr>
<td height="25"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="590" border="0">
<tr>
<td background="/shop/img/bj_x.gif" colspan="2" height="1"> </td>
</tr>
<tr>
<td width="55" height="34">
<img height="34" src="/shop/img/th_img2.gif" width="55"/>
</td>
<td width="535" background="/shop/img/th_bg.gif">
<b>
<font color="#ff9900">最新推荐特价商品</font>
</b>
</td>
</tr>
<tr>
<td background="/shop/img/bj_x.gif" colspan="2" height="1"> </td>
</tr>
<tr>
<td valign="top" align="middle" colspan="2">
<table cellspacing="0" cellpadding="3" width="590" border="0">
<tr>
<sql:query var="tuijian" dataSource="${requestScope.db}" sql="select top 10 *from information where BookStep=2 order by BookDate DESC"/>
<c:forEach begin="1" end="6" var="tj" items="${tuijian.rows}">
<td align="middle" width="590">
<a href="/shop/jsp/bookinf.jsp?bookID=${tj.bookId}">
<img height="75" alt="${tj.bookName}" src="${tj.bookImage}" width="75" border="0"/>
</a>
</td>
</c:forEach>
</tr>
</table>
</td>
</tr>
<tr>
<td background="/shop/img/bj_x.gif" colspan="2" height="1"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="590" align="center" border="0">
<tr>
<td width="55" height="34">
<img height="34" src="/shop/img/th_img.gif" width="55"/>
</td>
<td width="535" background="/shop/img/th_bg.gif">
<b>
<font color="#66cc00">最新上架商品</font>
<sql:query var="Type" dataSource="${requestScope.db}" sql="select * from Type"/>
</b>
</td>
</tr>
</table>
<c:forEach var="type" items="${Type.rows}">
<table cellspacing="0" cellpadding="0" width="590" align="center" border="0">
<tr>
<td align="middle" width="535" bgcolor="#ccffcc">
<b>
<font color="#66cc00">${type.Display} </font>
</b>
</td>
</tr>
</table>
<sql:query var="shangjia" dataSource="${requestScope.db}" sql="select top 3 *from information where BookType=${type.TypeId} order by BookDate DESC"/>
<table cellspacing="0" cellpadding="0" width="590" align="center" border="0">
<tr>
<c:forEach var="sj" items="${shangjia.rows}">
<td valign="top" align="middle" width="195">
<table class="main" cellspacing="0" cellpadding="0" width="195" border="0">
<tr>
<td>
<div align="center">
<a href="/shop/jsp/bookinf.jsp?bookID=${sj.bookId}">
<img height="75" alt="${sj.BookName}" src="${sj.bookImage}" width="75" border="0"/>
</a>
</div>
</td>
<td valign="top" width="59%">
<a class="a4" href="/shop/jsp/bookinf.jsp?bookID=${sj.bookId}">
<br/>
</a>
<a href="/shop/jsp/bookinf.jsp?bookID=${sj.bookId}">
<c:if test="${fn:length(sj.BookName) > 10}">${fn:substring(sj.BookName,0,10)} ...
</c:if>
<c:if test="${fn:length(sj.BookName) <= 10}">${sj.BookName} </c:if>
</a>
<br/>
会员价:
${sj.BookPrice} 元
<br/>
VIP 价:
<font color="#ff9999">更优惠!</font>
<br/>
<table cellspacing="0" cellpadding="0">
<tr>
<td width="116">
<a type="javascript" onclick="javascript:window.open('/shop/bookInfAction.do?bookId=${sj.BookId}','gouwu','width=450,height=350,toolbar=no, status=no, menubar=no, resizable=no, scrollbars=yes');" href="javascript:;">
<img height="18" src="/shop/img/goumai.gif" width="40" border="0" alt=""/>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</c:forEach>
</tr>
</table>
</c:forEach>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<br/>
<br/>
<%--底部 --%>
<table cellspacing="0" cellpadding="0" width="770" align="center" border="0">
<tr>
<td>
<jsp:include flush="false" page="Copyright.jsp"/>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -