电子商务课程设计.docx
- 文档编号:5016682
- 上传时间:2022-12-12
- 格式:DOCX
- 页数:17
- 大小:1.91MB
电子商务课程设计.docx
《电子商务课程设计.docx》由会员分享,可在线阅读,更多相关《电子商务课程设计.docx(17页珍藏版)》请在冰豆网上搜索。
电子商务课程设计
电子商务期末考查
项目名称:
电子商务网站设计成绩:
学生姓名:
谭樟林专业:
计算机科学与技术
班级学号:
201017010101学期:
2012下学期
1系统(项目)设计
1.1描述系统要实现的功能(文字描述不少于200字)
在Internet高速发展和普及的今天,网络的作用日益体现,很多活动、交流、购物能都转移到了互联网上。
互联网络以其丰富的资源和先进的技术、方便快捷的信息获取方式得到人们的青睐,通过互联网,人们能方便的找到想要的东西,能方便的和网友进行交流,同时也能方便的进行技术方面的交流、沟通。
很多公司、很多个人以及腾讯、人人等都开发了自己的个人交流网站,通过这些网站,人们能方便的进行交流、沟通并能分享自己感兴趣的资源。
我觉得,建立一个个人网站非常重要,让网站展示自己感兴趣并关注的领域,发布自己感兴趣的问题、帖子等。
我建立的个人网站,具有发布个人信息,分享自己收藏的好的文学作品、图片、软件、视频能功能,同时网友还可以在网站上进行留言,增加了网友和网站管理者间的交流。
浏览网页的浏览者,在本网站中能进行资源的搜索,方便的查找需要的资源,真正提供给浏览者以方便。
详细设计主要包含班级首页(含登陆模块)、班级相册(包含四个子页面)、通讯录(包含姓名、手机号、籍贯和QQ号)、留言簿(能够浏览留言列表,留言内容,发表评论)及大笑江湖(包含典型笑话,增加生活情趣)。
1.2系统总框图、各模块简介、数据库的设计及模块流程图、特色算法等。
(文字描述不少于500字)
图1系统功能模块图
2系统实现
系统各模块的核心实现代码。
2.1班级首页主要代码如下:
用户:
密码:
--
varcaution=false
functionsetCookie(name,value,expires,path,domain,secure){
varcurCookie=name+"="+escape(value)+
((expires)?
";expires="+expires.toGMTString():
"")+
((path)?
";path="+path:
"")+
((domain)?
";domain="+domain:
"")+
((secure)?
";secure":
"")
if(!
caution||(name+"="+escape(value)).length<=4000)
document.cookie=curCookie
else
if(confirm("Cookieexceeds4KBandwillbecut!
"))
document.cookie=curCookie
}
functiongetCookie(name){
varprefix=name+"="
varcookieStartIndex=document.cookie.indexOf(prefix)
if(cookieStartIndex==-1)
returnnull
varcookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length)
if(cookieEndIndex==-1)
cookieEndIndex=document.cookie.length
returnunescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex))
}
functiondeleteCookie(name,path,domain){
if(getCookie(name)){
document.cookie=name+"="+
((path)?
";path="+path:
"")+
((domain)?
";domain="+domain:
"")+
";expires=Thu,01-Jan-7000:
00:
01GMT"
}
}
functionfixDate(date){
varbase=newDate(0)
varskew=base.getTime()
if(skew>0)
date.setTime(date.getTime()-skew)
}
varnow=newDate()
fixDate(now)
now.setTime(now.getTime()+365*24*60*60*1000)
varvisits=getCookie("counter")
if(!
visits)
visits=1
else
visits=parseInt(visits)+1
setCookie("counter",visits,now)
document.write("欢迎您第"+visits+"次来到本站点")
//-->
2.2班级相册设计代码如下:
2.3班级同学录设计代码如下:
--#includefile="../Connections/tongxunlu.asp"-->
<%
DimRecordset1
DimRecordset1_numRows
SetRecordset1=Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection=MM_tongxunlu_STRING
Recordset1.Source="SELECT*FROMtongxunlu"
Recordset1.CursorType=0
Recordset1.CursorLocation=2
Recordset1.LockType=1
Recordset1.Open()
Recordset1_numRows=0
%>
<%
DimRepeat1__numRows
DimRepeat1__index
Repeat1__numRows=-1
Repeat1__index=0
Recordset1_numRows=Recordset1_numRows+Repeat1__numRows
%>
--DWLayoutTable-->
--DWLayoutEmptyCell-->
<%
While((Repeat1__numRows<>0)AND(NOTRecordset1.EOF))
%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
--DWLayoutEmptyCell-->
--DWLayoutEmptyCell-->