【正文】
jrs=() strsql ,objcon1,1,1 dim member_question do while not if member_name1=(0).value then member_question=(10).value session(name)=member_question end if loop if session(name)=empty then member_name1=不存在 end if set objrs = nothing set objcon1 = nothing % % LANGUAGE=VBSCRIPT% %if member_name1=不存在 then% td colspan=2 align=center valign=middle background=image/ class=style18 STYLE38此用戶帳號(hào)不存在,請(qǐng)重新輸入 !/td % else % % dim objcon1 第 15 頁(yè) 共 28 頁(yè) set objcon1=() =_ driver={SQL Server}。database=ToyUniverse。pwd=1234。amp。39。主要代碼如下: % dim objcon1 set objcon1=() =_ driver={SQL Server}。database=ToyUniverse。pwd=1234。%amp。%39。2039。tdamp。/td next data tdform method=post target=bottom action=39。tname=amp。amp。objRS( 玩 具 價(jià) 格)amp。input type=39。 name=39。 size=39。/td tdinput type=submit value=39。/td/form/tr loop set objrs = nothing set objcon1 = nothing end if % 玩具交易 ( 1) 購(gòu)物車 ① 放入購(gòu)物車 判斷輸入商品數(shù)量是否為空,再判斷 用戶是否登錄,確定后才將商品放入購(gòu)物車,并且更新訂單細(xì)節(jié)表。server=(local)。uid=sa。 dim objrs set objrs=GetRecordset(,Register) do while not if member_name=empty then member_name=未登陸 end if loop set objrs=nothing dim strsql strsql=insert into OrderDetail (用戶帳號(hào) ,玩具名稱 ,玩具價(jià)格 ,數(shù)量 ,金額 ,時(shí)間 )_ values(39。 session(member_name)amp。,39。tnameamp。,39。priceamp。,39。quantityamp。,39。subTotalamp。,39。date()amp。) (strsql) Set objcon1 = Nothing % ② 查看購(gòu)物車 從數(shù)據(jù)庫(kù)中找到對(duì)應(yīng)的訂單細(xì)節(jié)顯示出來(lái),并且統(tǒng)計(jì)總金額。 amp。 39。../image/39。 PA HREF=39。返回商品表 /A/P/CENTER Else For I = 0 To 1 TD amp。 /TD Next TD /TD Total = 0 39。3039。EAEAFF39。 TD amp。 /TD Next Data TDA HREF=39。 objRS(訂單編號(hào) ) amp。刪除/A/TD/TR Total = Total + objRS(金額 ) 39。主要代碼如下: % No = Request(No) Set objConn = () =_ driver={SQL Server}。database=ToyUniverse。pwd=1234。 amp。 39。主要代碼如下: ! include file= % strSQL = select 玩具名稱 , 玩具價(jià)格 , 數(shù)量 , 金額 from OrderDetail where 用戶帳號(hào) =39。 Session(member_name) amp。 Set objRS = GetSQLRecordset(strSQL, , Orderdetail) For I = 0 To 1 TD amp。 /TD Next Do While Not Data = TR HEIGHT=39。 For I = 0 To 1 Data = Data amp。 (I).Value amp。 /TR Total = Total + objRS(金額 ) Loop Set objRS = Nothing Set objConn = Nothing % ② 提交訂單 記錄用戶購(gòu)買信息,更新數(shù)據(jù)庫(kù)中訂單表。server=(local)。uid=sa。 dim objrs,strSQL1 strSQL1 = select 訂 單 編 號(hào) from OrderDetail where 用 戶 帳 號(hào) =39。_ Session(member_name) amp。 Set objrs = GetSQLRecordset(strSQL1, , Orderdetail) do while not for i=0 to dim strsql strsql=insert into Orders (訂單編號(hào) ,用戶帳號(hào) ,發(fā)貨方式 ,付款方式 ,真實(shí)姓名 ,身份證號(hào) ,聯(lián)系電話 , 電 子 郵 件 , 郵 寄 地 址 , 郵 政 編碼 )values(39。(i).valueamp。,39。session(name)amp。,39。fhfsamp。,39。fkfsamp。,39。zsxmamp。,39。sfzhamp。,39。dhamp。,39。mailamp。,39。dzamp。,39。ybamp。) (strsql) next loop set objrs=nothing set objcon1=nothing % 第 21 頁(yè) 共 28 頁(yè) 6 系統(tǒng)測(cè)試與分析 功能測(cè)試 ( 1)用戶管理 ① 用戶注冊(cè) 進(jìn)入用戶注冊(cè)界面,先輸入用戶帳號(hào)(如圖 4 所示),若該用戶帳號(hào)沒(méi)有人使用過(guò),可以進(jìn)行注冊(cè),填寫個(gè)人資料,填寫必填項(xiàng),然后提交,如圖 5 所示。 圖 4 用戶注冊(cè) 圖 5 填寫用戶資料 第 22 頁(yè) 共 28 頁(yè) 圖 6 注冊(cè)成功 ②用戶登錄 用注冊(cè)過(guò)的用戶帳號(hào)進(jìn)行登錄,輸入密碼和驗(yàn)證碼,如圖 7 所示。 圖 7 用戶登錄 圖 8 登錄成功 ③取回密碼 忘記密碼時(shí) 按以下步驟可以取回密碼,輸入用戶帳號(hào),如圖 9 所示?;卮鹫_后將顯示注冊(cè)密碼,如圖 11 所示。 圖 12 搜索商品 ( 3)玩具交易 ①放入購(gòu)物車 在選購(gòu)的商品中輸入購(gòu)買數(shù)量,點(diǎn)擊“放入購(gòu)物車”即出現(xiàn)如圖 13 所示的界面,提示商品已放入購(gòu)物車中。 圖 14 查看購(gòu)物車 ③刪除購(gòu)物車中商品 從購(gòu)物車中刪除已放入的商品,將提示刪除成功,如圖 15 所示。 圖 15 刪除購(gòu)物車中商品 圖 16 購(gòu)物車為空 第 25 頁(yè) 共 28 頁(yè) ④訂單的打印 填寫訂單包括發(fā)貨方式、付款方式等交易細(xì)節(jié)情況,查看訂購(gòu)商品的名稱、價(jià)格、數(shù)量、金額和總金額,如圖 17 所示。 圖 17 填寫訂單 圖 18 提交訂單 功能分析 經(jīng)過(guò)系統(tǒng)功能的測(cè)試,可知 ASP 訪問(wèn)數(shù)據(jù)庫(kù)的正確性,可以進(jìn)行數(shù)據(jù)庫(kù)的查詢、讀取和修改。不足之處在于未能實(shí)現(xiàn)在線支付的功能,由于支付過(guò)程復(fù)雜,能力有限,這部分問(wèn)題尚未解決。 結(jié) 論 隨著互聯(lián)網(wǎng)的飛速發(fā)展和普及,網(wǎng)上購(gòu)物的日趨普遍,玩具銷售系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)已經(jīng)成為電子商務(wù)中普遍的存在形式。用戶管理包括用戶注冊(cè)、用戶登錄和取回密碼功能,玩具交易包括購(gòu)物車和訂單的打印等功能。 在這次編程的過(guò)程中,通過(guò)查閱了大量的書籍,使我的編程水平有了大幅度的提高。對(duì) Web 數(shù)據(jù)庫(kù)訪問(wèn)技術(shù)有了進(jìn)一步的了解,對(duì)數(shù)據(jù)庫(kù)的操作更加熟練。這次畢業(yè)設(shè)計(jì)是理論與實(shí)踐相結(jié)合的鍛煉,使所學(xué)知識(shí)得以鞏固進(jìn)而更加扎實(shí),并且自學(xué)能力更有了很大的提高。 [2] 方睿,刁仁宏,吳四九 . 網(wǎng)絡(luò)數(shù)據(jù)庫(kù)原理及應(yīng)用 [M]. 成都:四川大學(xué)出版社, 。 [4] 董玉德 . ASP 網(wǎng)絡(luò)編程技術(shù) —系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn) [M]. 合肥:中國(guó)科學(xué)技術(shù)大學(xué)出版社。 [6] 張莉,王強(qiáng) . 數(shù)據(jù)庫(kù)原理及應(yīng)用 [M]. 北京:清華大學(xué)出版社, 。 第 27 頁(yè) 共 28 頁(yè) 致 謝 本文是在張仕斌老師和陳念偉老師的熱情關(guān)心和指導(dǎo)下完成的,他們淵博的知識(shí)和嚴(yán)謹(jǐn)?shù)闹螌W(xué)作風(fēng)使我受益匪淺,對(duì)順利完成本課題起到了極大的作用。文中除了特別加以標(biāo)注地方外,不包含他人已經(jīng)發(fā)表或撰寫過(guò)的研究成果,也不包含為獲得成都信息工程學(xué)院或其他教學(xué)機(jī)構(gòu)的學(xué)位或證書而使用過(guò)的材料。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識(shí)產(chǎn)權(quán)的說(shuō)明: 本人完全了解成都信息工程學(xué)院有關(guān)保管使用學(xué)位論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管 并向有關(guān)部門遞交學(xué)位論文的原件與復(fù)印件。 ( 3)學(xué)??梢詫W(xué)術(shù)交流為目的復(fù)制、贈(zèng)送和交換學(xué)位論文。 ( 5)學(xué)??梢怨紝W(xué)位論文的全部或部分內(nèi)容(保密學(xué)位論文在解密后遵守此規(guī)定)。 特此聲明! 作者簽名: 2021 年 6 月 10 日 第 29 頁(yè) 共 28 頁(yè) Are you hungry now? No, I am tired and lazy now。 words, realizing that they were a signal, he turned and began to run, splashing through the shallow water. Ignacio ran after him, much helped by his longer legs, his hair flying behind his dark young face, his square teetheach white as a bone and as big as Nicholas39。t run, N icholas, Dr. Island said with the voice of a wave. It only makes him angry that you run. N icholas did not answer, but cut to his left, up the beach and among the trunks of the palms, sprinting all the way because he had no way of knowing Ignacio was not right behind him, about to grab him by the neck. When he stopped it was in the thick jungle, among the boles of the hardwoods, where he leaned,.。 . sound in an atmosphere silent and unwa ked as Earth39。 there was none. He drew a deep breath then and said, Well, that39。 there was only the green hush. The light was still bright and strong and nearly, shadowless, but some interior sense told him the da y, was nearly over, and he noticed that such faint shades as he could see stretched long, hor izontal distortions of their objects. He felt no hunger, but he had fasted be39。 he was not as strong as he had been only a day past, and by this time next day he would probably be unable to outrun Ignacio. He should, he now realized, have eaten the monkey he had ki l