基本信息
源码名称:Java 购物商城系统MyB2cc源码下载
源码大小:10.71M
文件格式:.zip
开发语言:Java
更新时间:2015-08-22
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<%@ page language="java" import="java.util.*,entity.*,bizImpl.*,ImplDao.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() path "/"; List<productcategroy> pcList = null; if(request.getAttribute("pcList")!=null){ pcList = (List<productcategroy>)request.getAttribute("pcList"); } List<produc2> proList = null; if(request.getAttribute("proList")!=null){ proList = (List<produc2>)request.getAttribute("proList"); } String pageURL ="./basePages/middle.jsp"; if(request.getAttribute("pageURL")!=null){ pageURL=request.getAttribute("pageURL").toString(); } int row =-1; if(request.getAttribute("row")!=null){ row = Integer.parseInt(request.getAttribute("row").toString()); } customer ct = null; if(session.getAttribute("customer")!=null){ ct = (customer)session.getAttribute("customer"); } %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSP 'main.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"> --> <script type="text/javascript" src="../js/jquery-1.8.0.js"></script> <script type="text/javascript"> function temp(){ var doc = window.frames['middleFrame'].document; var divLeft = doc.getElementById("divLeft"); <% for(productcategroy pc:pcList){ %> var outDiv = doc.createElement("div"); outDiv.style.width="198px"; outDiv.style.height="146px"; var topDiv = doc.createElement("div"); topDiv.style.width="198px"; topDiv.style.height="26px"; topDiv.style.fontFamily="Microsoft Yahei"; topDiv.style.textAlign="center"; topDiv.style.paddingTop="42px"; var a = doc.createElement("a"); a.innerHTML="<%=pc.getName() %>"; a.href="javascript:;"; a.onclick=function(){ var parentDoc = parent.document; var middleFrame = parentDoc.getElementById("middleFrame"); middleFrame.src="./basePages/list.jsp?id=<%=pc.getId() %>"; }; topDiv.appendChild(a); var btmDiv = doc.createElement("div"); btmDiv.style.width="198px"; btmDiv.style.height="140px"; var ul=doc.createElement("ul"); <% List<productcategroy> ponList = new productcategroybizImpl().getproductcategroyListBypId(pc.getId()); for(productcategroy ponson:ponList){ %> var li = doc.createElement("li"); var sonA =doc.createElement("a"); sonA.innerHTML="<%=ponson.getName() %>"; sonA.href="javascript:;"; sonA.onclick=function(){ //获取父页面的document var parentDoc = parent.document; //获取父页面的iframe var middleFrame = parentDoc.getElementById("middleFrame"); middleFrame.src="./basePages/list.jsp?id=<%=ponson.getId()%>&level=<%=2%>"; }; li.style.textDecoration="none"; li.style.listStyle = "none"; li.style.cssFloat = "left"; li.style.marginRight = "5px"; li.style.marginBottom = "10px"; li.style.paddingTop = "5px"; li.style.width = "55px"; li.style.height="15px"; li.appendChild(sonA); ul.appendChild(li); <% } %> btmDiv.appendChild(ul); outDiv.appendChild(topDiv); outDiv.appendChild(btmDiv); divLeft.appendChild(outDiv); <% } %> var ul = doc.getElementById("proList_ul"); <% int j=0; for(produc2 p:proList){ //根据图片的ID查询图片的名字 String imgName = new produc2bizImpl().getImgnameByUploadFileId(p.getUploadFile()); if(j<9){ %> var name ="<%=imgName %>"; var listImg = name "_List.jpg"; var li = doc.createElement("li"); li.style.marginRight="30px"; li.style.listStyle="none"; li.style.cssFloat="left"; var img = doc.createElement("img"); img.src="./proimg/" listImg; img.onclick=function(){ var midFrame =document.getElementById("middleFrame"); midFrame.src="servlet/DeatilServlet?id=<%=p.getId()%>"; }; img.style.width="120px"; img.style.height="120px"; li.appendChild(img); ul.appendChild(li); <% j ; } } %> var row ="<%=row %>"; if(row == 0){ var middleFrame=document.getElementById("middleFrame"); middleFrame.src="basePages/land.jsp"; } var topDoc = window.frames['topFrame'].document; var user = topDoc.getElementById("user"); user.innerHTML="<%=ct!=null?ct.getUsername():""%>"; } </script> </head> <body onload="temp();"> <form action="servlet/LandServlet" id="LandForm" method="post"> <input type="hidden" name="username" id="username" /> <input type="hidden" name="password" id="password" /> </form> <div align="center"> <iframe src="./basePages/top.html" id="topFrame" name="topFrame" width="1000px" frameborder="0" scrolling="no"></iframe><br> <iframe src="./basePages/middle.jsp" id="middleFrame" name="middleFrame" width="1000px" frameborder="0" scrolling="no" height="660px"></iframe><br> <iframe src="./basePages/bottom.html" id="bottomFrame" name="bottomFrame" width="1000px" frameborder="0" scrolling="no"></iframe><br> </div> </body> </html>