目录
1 概论 1
1.1电子商务交易发展 1
1.1.1电子商务交易 1
1.1.2发展前景: 1
2 系统可行性及需求分析 3
2.1 系统调研 3
2.2 系统可行性分析 3
2.2.1技术可行性分析 3
2.2.2 操作可行性分析 3
2.2.3 社会可行性分析 4
2.2.4可行性分析小结 4
2.3 系统需求分析 4
2.4 系统实施要求 5
3 主要功能设计及实现 6
3.1 主要功能设计与实现 6
3.1.1 用户操作 6
3.1.2购物车管理 13
3.1.3订单管理 18
3.1.4商品展示 21
3.2 数据库的设计与实现 25
3.2.1数据库设计概述 25
3.2.2 MySQL数据库自身特性及应用环境 25
3.2.3 系统的实体模型 27
3.2.4数据库表设计 28
4 系统测试与系统分析 29
4.1 系统各功能模块测试与分析 29
4.2 系统在不同操作系统的测试与分析 31
4.3 系统在不同内核浏览器的测试与分析 31
4.4 小结 31
5 结论 33
致谢 34
参考文献 35
附录:数据库设计详表 36
<%@page contentType="text/html" pageEncoding="UTF-8" import="java.util.*, edu.zzu.hellomall.entity.*, edu.zzu.hellomall.imp.*"%>
<%@page import="edu.zzu.hellomall.util.ChangeStr"%>
<% Member sessionMember = (Member)session.getAttribute("member");int cartSize = 0;CartDaoImp cdi = new CartDaoImp();List cartList = null; if(sessionMember == null){//用户未登录HashMap sessionCart = (HashMap)session.getAttribute("cart");if(sessionCart != null){cartList = cdi.getCartFromHashMap(sessionCart);} }else{//用户已登录cartList = cdi.findByMember(sessionMember);System.out.println(cartList);}if(cartList != null){cartSize = cartList.size();}
%>
Hello Mall
<%ProductDaoImp dao=new ProductDaoImp();GimageDaoImp gdi = new GimageDaoImp();List listTuiJian = null;listTuiJian = dao.getByBuyCount();Iterator it1 = listTuiJian.iterator();while(it1.hasNext()){Product product = (Product)(it1.next());String gurl = gdi.getGimageUrl(product.getProduct_id());String gname = product.getName();gname = ChangeStr.charNum(gname, 12);%>
<% }%>
%>
<%} %>
-->
最新上架
<%ProductDaoImp pdi_zxsj = new ProductDaoImp();GimageDaoImp gdi_zxsj = new GimageDaoImp();List list_zxsj=pdi_zxsj.GetLatesProduct();for(int i=0;i
Product pro=(Product)list_zxsj.get(i);String image = gdi_zxsj.getGimageUrl(pro.getProduct_id());%><%}%>人气排行
<% ProductDaoImp pdi_rqph = new ProductDaoImp();GimageDaoImp gdi_rqph = new GimageDaoImp();List li = null;li = pdi_rqph.getByViewCount();Iterator it_rqph = li.iterator();int j_rqph = 1;while(it_rqph.hasNext()){Product product = (Product)(it_rqph.next());String gurl = gdi_rqph.getGimageUrl(product.getProduct_id());String gname = product.getName();gname = ChangeStr.charNum(gname, 28);%>
<%j_rqph++;} %>