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

📄 storebytaobao.jsp

📁 一个仿造淘宝的jsp网站。功能比较完善
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.jc.taobao.gjj.logic.*" %>
<%@ page import="com.jc.taobao.gjj.entity.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</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">
	-->
    <style type="text/css">
<!--
.style1 {
	font-size: 12px;
	color: #FFFFFF;
}
-->
    </style>
    
<link href="CSS/storebytaobao.css" rel="stylesheet" type="text/css">
  <style type="text/css">
<!--
.style3 {font-size: 12px}
.style4 {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
}
-->
  </style>
  </head>
  
  <body>
  <div id="buttomdivxx" style="margin-left:100px; ">
    <div id="top">
     <div id="toppic"><img src="image/logo.gif" width="240" height="31"></div>

    <UL style="list-style:none;float:right;width:310px; margin-top:0px;font-size:12px;">
	<LI style="float:left;margin-left:10px;"><A href="" target=_blank>免费注册</A> </LI>
	<LI style="float:left;margin-left:10px;"><A href="">登录</A> </LI>
	 <LI style="float:left;margin-left:10px;"><A href="" target=_top>收藏夹</A> </LI>
	 <LI style="float:left;margin-left:10px;"><A href="" target=_blank>支付宝</A> </LI>
	 <LI style="float:left;margin-left:10px;"><A href="" target=_top>关于我们</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>主页</A> </LI>
    </UL>
    <UL style="margin-left:270px;width:530px;top:0px;font-size:12px;">
	  <LI style="float:left;margin-left:10px;"><A href="" target=_blank>免费注册</A> </LI>
	  <LI style="float:left;margin-left:10px;"><A href="">登录</A> </LI>
	  <LI style="float:left;margin-left:10px;"><A href="" target=_blank>阿里旺旺</A> </LI>
	  <LI style="float:left;margin-left:10px;"><A href="">支付宝</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>我要买</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>我要卖</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>会员中心</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>诚信安全</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>购物指南</A> </LI>
      <LI style="float:left;margin-left:10px;"><A href="" target=_top>社区</A> </LI>
    </UL>
	
</div>
<div id="nagivation">
  <table width="797" height="81" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="33" height="22">&nbsp;</td>
      <td width="757"><table width="572" height="22" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="53" height="22">&nbsp;</td>
          <td width="81"><img src="image/tab_title_panel_bak.gif" width="80" height="25"></td>
          <td width="85"><img src="image/tab_title_panel_bak2.gif" width="84" height="19"></td>
          <td width="243">&nbsp;</td>
          <td width="27">&nbsp;</td>
          <td width="27">&nbsp;</td>
          <td width="27">&nbsp;</td>
          <td width="29">&nbsp;</td>
        </tr>
      </table></td>
      <td width="3">&nbsp;</td>
    </tr>
    <tr>
      <td rowspan="2"><img src="image/search_box_home_left.gif" width="33" height="58"></td>
      <td height="34" bgcolor="#FF9000"><table width="543">
      <form action="" method="post">
	  <tr>
	  <td width="84"><select style="width:100px; "></select></td>
	  <td width="262"><input style="width:300px; "></td>
	  <td width="52"><img src="image/go_search.gif" width="50" height="20"></td>
	  <td width="125"><span class="style1"><a href="" style="color:#FFFFFF ">高级搜索</a></span></td>
	  </tr>
	  </form>
      </table></td>
      <td rowspan="2"><img src="image/search_box_home_right.gif" width="5" height="58"></td>
    </tr>
    <tr>
      <td height="20"><img src="image/search_box_home_center.gif" width="757" height="24"></td>
    </tr>
  </table>
</div>
<div id="frontright1">
<%
ShopInfoBean shopbean=new ShopInfoBean();
 ArrayList alshop=shopbean.getquerybySuiJITwenty();
 for(int i=0;i<alshop.size();i++)
 {
 ShopInfo shop=(ShopInfo)alshop.get(i);
%>
 <div id="smallshop1">
   <table width="197" height="103" border="0" cellpadding="0" cellspacing="0">
     <tr>
       <td width="110" height="99" align="center" valign="middle" background="image/xt_bj.gif"><table width="78" height="80" border="0" cellpadding="0" cellspacing="0">
         <tr>
           <td><a href="Buyshop.jsp?buyshopid=<%=shop.getSid()%>"><img src="<%=shop.getShopphoto() %>" width="78" height="80" border="0" title="<%=shop.getShopname() %>"></a></td>
         </tr>
       </table></td>
	   <td width="83">
	   <ul class="style3" style="list-style:none; float:left; margin-left:0px;">
	     <li>名称:<%=shop.getShopname() %></li>
		 <li>原价:<s><%=shop.getPrice() %></s></li>
		 <li>现价:<%=shop.getPrice() %></li>
	   </ul></td>
     </tr>
   </table>
 </div>
 <%}%>
</div>
<div id="frontleft1">
     <div id="frontleft2">
	 <div id="Mainleftone">
	   <table width="249" border="0" cellspacing="0" cellpadding="0" style="background-image:url(image/title_bg.gif) ">
         <tr>
           <td height="27">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style4">单品推荐</span></td>
         </tr>
         <tr>
           <td height="168" align="center" valign="top"><table width="251" height="170" border="0" cellpadding="0" cellspacing="0" style="border-left:1px solid #FB9300; border-right:1px solid #FB9300; ">
             <tr bgcolor="#FFFFFF">
               <td height="92" colspan="2">&nbsp;&nbsp;<img src="image/wsdahui4.gif" width="58" height="78">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image/joinus.gif" width="130" height="57"></td>
               </tr>
             <tr bgcolor="#FFFFFF">
               <td width="125" height="34"><img src="image/qq4.gif" width="114" height="24"></td>
               <td width="125" align="right" valign="middle"><img src="image/qq1.gif" width="114" height="24"></td>
             </tr>
             <tr bgcolor="#FFFFFF">
               <td height="30"><img src="image/qq3.gif" width="114" height="24"></td>
               <td align="right" valign="middle"><img src="image/qq2.gif" width="114" height="24"></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td height="27">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style4">热卖单品</span></td>
         </tr>
         <tr>
           <td height="222" valign="top"><table width="251" height="301" border="0" cellpadding="0" cellspacing="0" id="tableTT" style="border-left:1px solid #4B96F1; border-right:1px solid #4B96F1; border-bottom:1px solid #4B96F1; ">
             <tr align="left" valign="top" bgcolor="#FFFFFF">
               <td height="105">&nbsp;&nbsp;
                 <table width="248" height="116" border="0" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #cccccc; border-bottom-style:dashed; display:block; ">
                   <tr>
                     <td width="90" height="94">&nbsp;&nbsp;<img src="image/wsb_060511_58x78.gif" width="58" height="78"></td>
                     <td width="158"><p class="style3">更多淘宝大奖等你拿,机会多多不容错过,还等什么呢,快行动吧?</p>
                       <p class="style3">拿起电话:15850712636</p></td>
                   </tr>
                 </table></td>
               </tr>
             <tr bgcolor="#FFFFFF">
               <td height="44">
			   <br>
               <ul style="list-style: none;">
               <%
                ArrayList arrayshopx=shopbean.getquerybySuiJITwenty();
               for(int i=0;i<20;i++)
               {
                ShopInfo shopx=(ShopInfo)arrayshopx.get(i);
                %>
                <li style="margin-bottom: 6px; list-style-image:url(image/004.gif);">
                  &nbsp;<A href="Buyshop.jsp?buyshopid=<%=shopx.getSid()%>"><font style="font-size: 14px;"><I><B><%=shopx.getShopdesc() %></B></I></font></A>
                </li>
              <%} %>
              </ul>
               </td>
               </tr>
             <tr bgcolor="#FFFFFF">
               <td height="60" align="center">&nbsp;</td>
               </tr>
           </table></td>
         </tr>
       </table>
	 </div>
     </div>
	 <div id="rightxx1">
	   <div id="rightleft">
	     <table width="348" height="204" border="0" cellpadding="0" cellspacing="0">
           <tr>
             <td align="center" valign="middle"><img src="image/beautiful.gif" width="340" height="200"></td>
           </tr>
         </table>
	   </div>
	   <div id="rightrightxx">
	     <table width="171" height="204" border="0" cellpadding="0" cellspacing="0" background="image/newbieguide_bg.gif">
           <tr>
             <td align="center"><img src="image/freelogin.gif" width="114" height="40"></td>
           </tr>
           <tr>
             <td align="center"><img src="image/freeshop.gif" width="114" height="40"></td>
           </tr>
           <tr>
             <td align="center"><img src="image/trust.gif" width="114" height="40"></td>
           </tr>
           <tr>
             <td align="center"><img src="image/alipay1.gif" width="114" height="40"></td>
           </tr>
         </table>
</div>
	 </div>
	 <div id="manyshop">
	  <% 
	  TypeInfoBean typebean=new TypeInfoBean();
	  ArrayList altype=(ArrayList)typebean.getqueryALL();
	  ShopInfoBean shopbean1=new ShopInfoBean();
	  for(int i=0;i<altype.size();i++)
	  {
	     TypeInfo type1=(TypeInfo)altype.get(i);
	     ShopInfo shop1=new ShopInfo();
	     shop1.setTid(type1.getTid());
	     ArrayList ala=(ArrayList)shopbean1.getquerybytid(shop1);
	  %>
	   <div id="smallshop">
	   <br>
	   <H4 align="center"><A href=""><%=type1.getTypename() %></A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="">更多……</A></H4>
	   <UL style="font-size:13px; list-style:none; margin-left:10px;">
	   <%for(int j=0;j<8;j+=2)
	   { 
	     ShopInfo sss1=(ShopInfo)ala.get(j);
		 ShopInfo sss2=(ShopInfo)ala.get(j+1);
	   %>
         <LI><A href="Buyshop.jsp?buyshopid=<%=sss1.getSid()%>"><%=sss1.getShopname() %></A>&nbsp;<font style="font-size:12px; color:#CCCCCC ">|</font>&nbsp;<A href="Buyshop.jsp?buyshopid=<%=sss2.getSid()%>"><%=sss2.getShopname() %></A> </LI>
         <%} %>
       </UL>
	   </div>
	   <%}%>
	 </div>
</div>
  <div id="fengqu">
  <table width="796" height="84" border="0" cellpadding="0" cellspacing="0">
              <tr valign="middle" bgcolor="#F3F1EB">
                <td height="29" colspan="2">&nbsp;&nbsp;&nbsp;<span class="style1">新手上路:&nbsp;&nbsp;&nbsp;<a href="">免费注册</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">搜索商品</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">开通支付宝</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">如何买</a></span></td>
              </tr>
              <tr bgcolor="#F3F1EB">
                <td width="553" height="27" >&nbsp;&nbsp;&nbsp;<span class="style1">我是买家:&nbsp;&nbsp;&nbsp;<a href="">购物车</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">我的订单</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">我的积分</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">支付宝充值</a></span></td>
                <td width="407"><span class="style1">商家入驻咨询热线:15850712636</span></td>
              </tr>
              <tr bgcolor="#F3F1EB">
                <td >&nbsp;&nbsp;&nbsp;<span class="style1">商城服务:&nbsp;&nbsp;&nbsp;<a href="">7天无理由退款</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">积分使用规则</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">入驻商城</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">商城讨论区</a></span></td>
                <td><span class="style1">客服电话:0571-85662733</span></td>
              </tr>
    </table>
    </div>
  <div id="buttom">
    <UL>
					<LI>
						<A href="">关于淘宝</A>
					</LI>
					<LI>
						<A href="">合作伙伴</A>
					</LI>
					<LI>
						<A href="">帮助中心</A>
					</LI>
					<LI>
						<A href="">诚征英才</A>
					</LI>
					<LI>
						<A href="">联系我们</A>
					</LI>
					<LI>
						<A href="">网站地图</A>
					</LI>
					<LI>
						<A href="">热门商品</A>
					</LI>
					<LI>
						<A href="">热门品牌</A>
					</LI>
					<LI>
						<A href="">版权说明 </A>
					</LI>
					<LI>
						<A href="">淘客推广</A>
					</LI>
				</UL>
				<DIV id="buttomfont">
					全球阿里巴巴 - 阿里巴巴网络:
					<A href="">中国站</A>
					<A href="">国际站</A>
					<A href="">日文站</A> |
					<A href="">淘宝站</A> |
					<A href="">支付宝</A> |
					<A href="">中国雅虎</A> |
					<A href="">雅虎口碑网</A> |
					<A href="">阿里软件</A> |
					<A href="">阿里妈妈</A>
				</DIV>
				<DIV id="buttomfont2">
					Copyright 2003-2008, 版权所有 TAOBAO.COM
				</DIV>
  </div>
</div>
  </body>
</html>

⌨️ 快捷键说明

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