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

📄 d07022d3ef46001c1160e657ddb92502

📁 是一个网上手机超市
💻
字号:
<%@   page  language="java"  import= "java.io.*,java.util.*" pageEncoding="GBK"%>
<%@   page  import= "hall.collect" %>
<%@   page   import= "hall.products"  %>

<jsp:useBean  id="serchProduct" class="hall.opProduct"  scope="page"></jsp:useBean>
<jsp:useBean id="collectBean" class = "hall.opCollect" scope="page"> </jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	width:200px;
	height:299px;
	z-index:1;
	top: 287px;
	left: 22px;
}
#Layer2 {
	position:absolute;
	left:241px;
	top:180px;
	width:622px;
	height:412px;
	z-index:2;
}
#Layer3 {
	position:absolute;
	left:244px;
	top:310px;
	width:485px;
	height:32px;
	z-index:3;
}
#Layer4 {
	position:absolute;
	left:244px;
	top:355px;
	width:488px;
	height:128px;
	z-index:4;
}
#Layer5 {
	position:absolute;
	left:245px;
	top:497px;
	width:488px;
	height:113px;
	z-index:5;
}
.STYLE8 {font-size: small}
.STYLE9 {font-size: medium}
-->
</style>
</head>
<BODY text=#000000 bgProperties=fixed leftMargin=0 background=images/background.jpg topMargin=0 onLoad="MM_preloadImages('IMAGES/skin8/dh-new.gif','IMAGES/skin8/dh-bbs.gif')">
<CENTER>
    <img src="images/title1.jpg" width="760" height="160">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="760" height=70">
		      <param name="movie" value="list.swf">
		      
         <embed src="list.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="70"></embed>
    </object>
 <h2>
 
 <td>
<%
 String productItem = request.getParameter("producItem");

  int item = Integer.parseInt(productItem);
    String name = "";
 			String id[] = session.getValueNames();
 			for(int i= 0;i<id.length;i++){
 				if(!id[i].equals("rand")&&!id[i].equals("basket")){
 				 name = (String)session.getValue(id[i]);
 				}
 			}
  if(name== null||name ==""){			
  
 %>
 <center>
 <p> <A HREF = "index.jsp"><STRONG>你还没有登陆,请现登陆,谢谢</STRONG></A> </p>
  
 <%
 } else{
   if(!collectBean.addCollect(name,item)){
 %>
 	<p> <A HREF = "afterlogin.jsp?userid=<%=name %>"><STRONG>添加到数据库失败,请返回重新收藏</STRONG></A> </p>
 <%
 } else{
  if(!collectBean.showCollect(name)){
  
 %>
 <p> <A HREF = "afterlogin.jsp?userid=<%=name %>"><STRONG>查询数据库失败,请返回</STRONG></A> </p>
 
 <%
 }else{
  String intipage =request.getParameter("page");
 int totalpage =collectBean.getPageCount();
       int curpage;
       if(intipage == null){
        curpage=totalpage;
       }else{
      	 curpage = Integer.parseInt(intipage);
      	 if(curpage<1)curpage = 1;
      	 else if(curpage>totalpage)curpage=totalpage;
       }
       collectBean.setPage(curpage);
    collectBean.showCollect(name);
       
    Vector collect = collectBean.getCollectList();
    %>
     <table width="100%" height="80%" border="10" cellspacing="1">
			  <tr><td align = "center">序列号</td><td align = "center">名称</td><td align = "center">类型</td><td align = "center">日期</td><td align = "center">详细</td><td align = "center">删除</td></tr>
			 <% 
			 	for(int j= 0;j<collect.size();j++){
			 	serchProduct.showProduct(((collect)collect.get(j)).getItem());
			 	Vector prod = serchProduct.getProducts();
			 %>
			 <tr><td align = "center"><%=((collect)collect.get(j)).getItem() %></td><td align = "center"><%=((products)prod.get(0)).getProductorName() %></td><td align = "center"><%=((products)prod.get(0)).getType() %></td><td align = "center"><%=((collect)collect.get(j)).getCollDate() %></td>
			 <td align = "center"><font color="#ff0080"><a href="showdetail.jsp?producItem=<%=((collect)collect.get(j)).getItem() %> ">&#35814;&#32454;</a></font></td><td align = "center"><font color="#ff0080"><a href="deleteCollect.jsp?username=<%=name %>&amp;producItem=<%=((collect)collect.get(j)).getItem() %> ">&#21024;&#38500;</a></font></td>
			 </tr>
			 <% 
			  }
			 %>
			 <tr>     
    
  <td   colspan=2   align=center>     
    
  第<%=curpage%>页   共<%=totalpage%>页     
    
  <%if(curpage<totalpage ){%>   
    
  <a   href="collect.jsp?page=<%=curpage+1%>&producItem=-2">下一页</a><%   
    
  }   
    
  %>     
    
  <%if(curpage>1){%>   
    
  <a   href="collect.jsp?page=<%=curpage-1%>&producItem=-2">上一页</a><%   
    
  }   
    
  %>     
    
  </td> 
  
 
     
 <th>
  <%
   for(int k = 0;k<totalpage;k++){
   if(k+1==curpage){
  %>
  <%=k+1%>
  <% 
  }else{
  %>
  <a   href="collect.jsp?page=<%=k+1%>&producItem=-2"><%=k+1%></a>
  <%
  } 
  }
  %>
   
  </th>
  <td align = "center"><a   href= "afterlogin.jsp?userid=<%= name %> ">返回主页</a> </td>
 </tr> 
  
 </table>
 <% 
 }
 }
 }
 %>
			
 </td>

<TABLE class=grayline  cellPadding=0 width=800 align=center 
bgColor=#ffffff border=0>
  
 
  
     
  <div id="Layer1"></div>
  <body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" onload="showMenu()">
<p>
		  <!-- 网页头部开始 -->&nbsp;
	<style type="text/css"> 
&lt;!-- 
*{margin:0;padding:0;border:0;} 
body { 
 font-family: arial, &#23435;&#20307;, serif; 
 font-size:12px; 
} 
#nav { 
 width:180px; 
    line-height: 24px;  
 list-style-type: none; 
 text-align:left; 
    /*&#23450;&#20041;&#25972;&#20010;ul&#33756;&#21333;&#30340;&#34892;&#39640;&#21644;&#32972;&#26223;&#33394;*/ 
} 
/*==================&#19968;&#32423;&#30446;&#24405;===================*/ 
#nav a { 
 width: 160px;  
 display: block; 
 padding-left:20px; 
 /*Width(&#19968;&#23450;&#35201;)&#65292;&#21542;&#21017;&#19979;&#38754;&#30340;Li&#20250;&#21464;&#24418;*/ 
} 
#nav li { 
 background:#CCC; /*&#19968;&#32423;&#30446;&#24405;&#30340;&#32972;&#26223;&#33394;*/ 
 border-bottom:#FFF 1px solid; /*&#19979;&#38754;&#30340;&#19968;&#26465;&#30333;&#36793;*/ 
 float:left; 
 /*float&#65306;left,&#26412;&#19981;&#24212;&#35813;&#35774;&#32622;&#65292;&#20294;&#30001;&#20110;&#22312;Firefox&#19981;&#33021;&#27491;&#24120;&#26174;&#31034; 
 &#32487;&#25215;Nav&#30340;width,&#38480;&#21046;&#23485;&#24230;&#65292;li&#33258;&#21160;&#21521;&#19979;&#24310;&#20280;*/ 
} 
#nav li a:hover{ 
 background:#CC0000; /*&#19968;&#32423;&#30446;&#24405;onMouseOver&#26174;&#31034;&#30340;&#32972;&#26223;&#33394;*/ 
} 
#nav a:link  { 
 color:#666; text-decoration:none; 
} 
#nav a:visited  { 
 color:#666;text-decoration:none; 
} 
#nav a:hover  { 
 color:#FFF;text-decoration:none;font-weight:bold; 
} 
/*==================&#20108;&#32423;&#30446;&#24405;===================*/ 
#nav li ul { 
 list-style:none; 
 text-align:left; 
} 
#nav li ul li{  
 background: #EBEBEB; /*&#20108;&#32423;&#30446;&#24405;&#30340;&#32972;&#26223;&#33394;*/ 
} 
#nav li ul a{ 
         padding-left:20px; 
         width:160px; 
 /* padding-left&#20108;&#32423;&#30446;&#24405;&#20013;&#25991;&#23383;&#21521;&#21491;&#31227;&#21160;&#65292;&#20294;Width&#24517;&#39035;&#37325;&#26032;&#35774;&#32622;=(&#24635;&#23485;&#24230;-padding-left)*/ 
} 
/*&#19979;&#38754;&#26159;&#20108;&#32423;&#30446;&#24405;&#30340;&#38142;&#25509;&#26679;&#24335;*/ 
#nav li ul a:link  { 
 color:#666; text-decoration:none; 
} 
#nav li ul a:visited  { 
 color:#666;text-decoration:none; 
} 
#nav li ul a:hover { 
 color:#F3F3F3; 
 text-decoration:none; 
 font-weight:normal; 
 background:#CC0000; 
 /* &#20108;&#32423;onmouseover&#30340;&#23383;&#20307;&#39068;&#33394;&#12289;&#32972;&#26223;&#33394;*/ 
} 
/*==============================*/ 
#nav li:hover ul { 
 left: auto; 
} 
#nav li.sfhover ul { 
 left: auto; 
} 
#content { 
 clear: left;  
} 
#nav ul.collapsed { 
 display: none; 
} 
--&gt; 
#PARENT{ 
 width:300px; 
 padding-left:20px; 
}&nbsp;</style>

</body>
</TABLE>
</html>

⌨️ 快捷键说明

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