JSP电子商城课程设计报告.doc_第1页
JSP电子商城课程设计报告.doc_第2页
JSP电子商城课程设计报告.doc_第3页
JSP电子商城课程设计报告.doc_第4页
JSP电子商城课程设计报告.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

电子商城设计报告目录1 系统概述21.1 系统说明21.2 系统运行环境及其应用软件22 系统功能设计22.1 前台购物系统22.2 后台管理系统23 系统架构设计24 数据表结构设计35 系统运行界面4 6代码6 1 系统概述1.1 系统说明项目名称:网上在线购买项目简介:Easy Buy Online在线购物系统能够实现广大用户足不出户就能在线购买自己心仪的商品。1.2 系统运行环境及其应用软件:开发技术:Jsp+JavaBean服务器:Tomcat6.0数据库:mysql开发工具:Myeclipce2 系统功能设计2.1 前台购物系统:(1)可实现在线注册;(2)注册成功后,可进行登录,购买自己想要买的商品;(3)可以增、删、改商品类型;(4)还可以在线查看自己以前发送的订单以及商品信息;2.2 后台管理系统:(1)管理员登录;(2)查看所有注册用户的信息并对其编辑,并提供高级查询;(3)查看/添加/删除商品信息,同时也提供了高级查询;(4)查看/编辑用户所发送成功的所有订单,并对其进行编辑同时也提供了高级查询;3 系统架构设计 数据库JSP/Java Bean前台购物后台管理HttpHttp数据业务逻辑用户界面 图4-1 Easy-Buy系统三层结构4数据表结构设计表序号1表名Customer含义存储用户的基本信息序号属性名称含义数据类型长度说明约束1c_name用户名varchar30not null主键2c_pass密码varchar30not null4c_phone电话号码varchar11not null5c_address地址Varchar30null表序号3表名Product含义存储商品信息序号属性名称含义数据类型长度说明约束1p_type商品类型varchar30not null2p_id商品编号varchar10not null主键3p_name商品名称varchar40 Not null4p_price商品价格float8not null5p_quantity商品数量int4Not null6p_image商品图片Varchar100 Not null7p_description描述信息Varchar2000 Not null表序号6表名OrderDetails含义商品详细表序号属性名称含义数据类型长度说明约束1order_id订单号char10not null主键2p_id商品编号char10not null3p_price价格Float8Not null4p_number数量Ine4not null表序号8表名Orders含义存储订单信息序号属性名称含义数据类型长度说明约束1order_id编号char10not null主键2order_adress地址varchar200Not null3order_user订购者char30Not null4order_time订购时间char30Not null5order_sum总价值float8Not null表序号9表名Admin含义存储管理员基本信息序号属性名称含义数据类型长度说明约束1a_name管理员账号Varchar30not null2a_pass管理员密码varchar30not null3a_phone联系电话Char11Null表序号5表名Main_type含义添加菜单序号属性名称含义数据类型长度说明约束1t_id编号char10not null2t_type菜单varchar30not null表序号3表名Product含义存储商品信息序号属性名称含义数据类型长度说明约束1p_type产品IDvarchar30not null2p_id商品编号varchar10not null3p_name产品名称varchar40 Not null4p_price商品价格float8not null5p_quantity购买数量int4Not null5系统运行界面 图一 首页图二 登录界面图三 登录成功界面图四 添加物品图五 删除物品图六 购物车6代码图一代码 %!privateList getTopCategories(List categories) ListtopCategories=new ArrayList();for(int i=0; icategories.size(); i+) Category c = categories.get(i);if(c.getGrade() = 1) topCategories.add(c);return topCategories;private List getChilds(Category parent, List categories) Listchilds=new ArrayList();for(int i=0; icategories.size(); i+) Category c = categories.get(i);if(c.getPid() = parent.getId() childs.add(c);return childs;private String getChildsStr(List childs) StringBuffer buf = new StringBuffer();for(int i=0; ichilds.size(); i+) Category c = childs.get(i);buf.append() .append(c.getName().append() .append(-);return buf.toString(); %List categories = CategoryService.getInstance().getCategories();List topCategories = getTopCategories(categories); %电子商城 - 网上精品会员店function js_callpage(htmlurl)Var newwin=window.open(htmlurl,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=2,width=360,height=470);return false;function js_callpage1(htmlurl)var newwin=window.open(htmlurl,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=2,width=100,height=100);return false;function MM_swapImgRestore() /v3.0var i,x,a=document.MM_sr; for(i=0;a&ia.length&(x=ai)&x.oSrc;i+) x.src=x.oSrc;function MM_preloadImages() /v3.0var d=document; if(d.images) if(!d.MM_p) d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&parent.frames.length) d=parent.framesn.substring(p+1).document; n=n.substring(0,p);if(!(x=dn)&d.all) x=d.alln; for (i=0;!x&id.forms.length;i+) x=d.formsin;for(i=0;!x&d.layers&id.layers.length;i+) x=MM_findObj(n,d.layersi.document);if(!x & d.getElementById) x=d.getElementById(n); return x;function MM_swapImage() /v3.0var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i(a.length-2);i+=3) if (x=MM_findObj(ai)!=null)document.MM_srj+=x; if(!x.oSrc) x.oSrc=x.src; x.src=ai+2;function on_trview(trname,enforce)%for(int i=0; idocument.all.pma_.style.display=none;if (enforce=in) eval(document.all.pma_+trname+.style.display=);function MM_reloadPage(init) /reloads the window if Nav4 resizedif (init=true) with (navigator) if (appName=Netscape)&(parseInt(appVersion)=4) document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; else if (innerWidth!=document.MM_pgW | innerHeight!=document.MM_pgH) location.reload();MM_reloadPage(true);function MM_showHideLayers() /v6.0var i,p,v,obj,args=MM_showHideLayers.arguments;for (i=0; i(args.length-2); i+=3) if (obj=MM_findObj(argsi)!=null) v=argsi+2;if (obj.style) obj=obj.style; v=(v=show)?visible:(v=hide)?hidden:v; obj.visibility=v; var imgUrl=new Array();var imgLink=new Array();var imgTitle=new Array();var imgPrice1=new Array();var imgPrice2=new Array();var adNum=0;imgUrl1=/pimages/br0465.gif;imgLink1=index_pi.php?productcode=BR0465;imgTitle1=贝尔金家用笔记本电脑便携袋(银色,膝上型);imgPrice11=价格:¥339.00;imgPrice21=会员价格:¥319.00;imgUrl2=/pimages/br0461.gif;imgLink2=index_pi.php?productcode=BR0461;imgTitle2=贝尔金家用笔记本电便携袋(橙色,手提型);imgPrice12=价格:¥339.00;imgPrice22=会员价格:¥319.00;imgUrl3=/pimages/gt1176.gif;imgLink3=index_pi.php?productcode=GT1176;imgTitle3=贝尔金家用笔记本便携内袋(银);imgPrice13=价格:¥369.00;imgPrice23=会员价格:¥359.00;imgUrl4=/pimages/gt0873.gif;imgLink4=index_pi.php?productcode=GT0873;imgTitle4=3M 14.1 电脑防窥片;imgPrice14=价格:¥459.00;imgPrice24=会员价格:¥449.00;var imgPre=new Array();var j=0;for (i=1;iimgUrl.length;i+) if( (imgUrli!=) & (imgLinki!=) ) j+; else break;图二 代码admin name:admin password: 图三代码 base href= 自服务系统 !- 欢迎您:lijianwei 恭喜你登录成功 请购买物品 图四 代码 电子商城添加商品body scrollbar-base-color: #F3F6FA; scrollbar-arrow-color: #4D76B3; font-size: 12px; background-color: #ffffff table font: 12px Verdana,Tahoma; color: #000000 input,select,textarea font: 11px Verdana,Tahoma; color: #000000; font-weight: normal; background-color: #F3F6FA select font: 11px Verdana,Tahoma; color: #000000; font-weight: normal; background-color: #F3F6FA .nav font: 12px Verdana,Tahoma; color: #000000; font-weight: bold .nav a color: #000000 .header font: 11px Verdana,Tahoma; color: #FFFFFF; font-weight: bold; background-image: url(images/green/bg01.gif) .header a color: #FFFFFF .category font: 11px Verdana,Tahoma; color: #000000; background-color: #EFEFEF .tableborder background: #4D76B3; border: 0px solid #4D76B3 .singleborder font-size: 0px; line-height: 0px; padding: 0px; background-color: #F3F6FA .smalltxt font: 11px Verdana,Tahoma .outertxt font: 12px Verdana,Tahoma; color: #000000 .outertxt a color: #000000 .bold font-weight: bold .altbg1 background: #F3F6FA .altbg2 background: #FFFFFF -.cPopText font-family: Tahoma, Verdana; background-color: #FFFFCC; border: 1px #000000 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)  电子商城 »   添加类别 - 必填内容类别名称: 类别描述:图五 代码删除用户恭喜您, 删除成功!3秒钟后跳转到上一页面, 或

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论