【正文】
在此,我向您們表示衷心的感謝! 感謝我大學(xué)時(shí)代的所有同學(xué),難忘一起走過(guò)、相互關(guān)心、鼓勵(lì)、支持和幫助的日子。因此,配置這些網(wǎng)站時(shí)需要滿足以下系統(tǒng)配置要求。修改后臺(tái)用戶資料 if NOT IsEmpty (request(Modify)) then 39。其運(yùn)行界面如圖 310 圖 310 管理員管理頁(yè)面 其代碼如下: !include file=inc/ !include file=inc/ !include file=inc/ % 39。判斷管理員級(jí)別 if session(rank)1 then call Msgbox(你的權(quán)限不夠! ,Back,None) end if % % 判斷管理員是否單擊了刪除用戶按鈕 if NOT isempty(request(DelQuserSubmit)) then dim userid 39。 年amp。 manage/:圖書(shū)的添加程序。如果購(gòu)物車(chē)?yán)餂](méi)有該圖書(shū) else select id,username,state,paid from orders,conn,1,3 rs(id)=id rs(username)=username rs(state)=6 rs(paid)=0 set rs=nothing call MsgBox(商品成功添加到你的購(gòu)物籃! ,Close,None) end if end select select ,product. price1,product. rice2, from product inner join orders on = where =39。request. QueryStringctionid) 39。amp。查詢數(shù)據(jù)庫(kù) , 根據(jù)用戶級(jí)別查詢相應(yīng)價(jià)格 select count(*) as co,sum() as vipsum,sum(product. price2) as psum from product inner join orders on = where orders. username =39。amp。尾頁(yè)判斷 if (currentpage1)*MaxPerPagetotalput then if (totalPut mod MaxPerPage)=0 then currentpage= totalPut \ MaxPerPage else currentpage= totalPut \ MaxPerPage + 1 end if end if 39。 order by amp。and price2 = amp。 end if if code then sql=sqlamp。%amp。把從 name=trim((name)) author=trim((author)) manufacturer=trim((manufacturer)) enabledate=trim((enabledate)) expiredate=trim((expiredate)) smallprice=trim((smallprice)) largeprice=trim((largeprice)) OrderField=trim((OrderField)) Order=trim((Order)) code=trim((code)) if OrderField= then OrderField=adddate if Order= then Order=DESC sql=select pagenum,name,mark,vipprice,id,author,productdate,price2,price1,discount,pic from product where 1=1 39。id,conn,1,3 39。 :查看詳細(xì)圖書(shū)信息。用 MD5加密密碼后和原密碼對(duì)比驗(yàn)證 if md5(trim(request(password)))trim(rs(password)) then call MsgBox(對(duì)不起,您輸入的原密碼錯(cuò)誤! ,Back,None) else rs(password)=md5(trim(request(password1))) set rs=nothing call MsgBox(密碼更改成功! ,none,none) end if end if % 3. 2 圖書(shū)信息模塊的實(shí)現(xiàn) 主要是查看圖書(shū)列表、搜索圖書(shū)、顯示圖書(shū)信息、把圖書(shū)放入購(gòu)物車(chē)等功能。判斷用戶是否單擊了確認(rèn)修改密碼的按鈕 if NOT isempty(request(ChangePwsSubmit)) then dim username 39。(cookieName)(username)amp。usernameamp。)。amp。,) password=md5(replace(trim(request(password)),39。設(shè)置 cookie,把用戶名寫(xiě)入 cookie (cookieName)(username)=trim(request(username)) 39。提示問(wèn)題答案 rs(answer)=md5(trim(request(answer))) 39。39。初始化 ADODB recordset對(duì)象 set rs=() 39。 :客戶密碼修改程序。dbamp。 圖 217 user表結(jié)構(gòu)圖 2. 2 數(shù)據(jù)庫(kù)的連接 本系統(tǒng)通過(guò) 。 以下是各表包含的主要字段 : admin表 : admin( 用戶名 ) 、 password( 密碼 ) 、 rank( 權(quán)限 ) ?,F(xiàn)將主要的技術(shù)要點(diǎn)及其解決思路介紹如下: ①鏈接數(shù)據(jù)庫(kù)?,F(xiàn)在我們利用 IIS+ASP,將客戶機(jī) /服務(wù)器結(jié)構(gòu)與 Web密切結(jié)合,完成前后端兩者的集成輸出功能,使得 Web站點(diǎn)的開(kāi)發(fā)更方便,實(shí)現(xiàn)的功能更強(qiáng)大。 5 程序開(kāi)發(fā)時(shí)間較長(zhǎng)。 5 存取數(shù)據(jù)庫(kù)輕松容易(使用 ADO組件)。它伴隨著 Web應(yīng)用程序的開(kāi)始運(yùn)行而產(chǎn)生,隨著 Web應(yīng)用程序的運(yùn)行結(jié)束而終止。在沒(méi)有指定表單集合的情況下,程序?qū)⒁?QueryString、 Form、 Cookie、 ServerVariable的順序搜索所有集合,尋找指定變 量。 圖 12 成功購(gòu)物過(guò)程圖 1. 2 ASP 技術(shù)綜述 近年來(lái)隨著 Inter技術(shù)的飛速發(fā)展及用戶需求的不斷升級(jí), Web頁(yè)面技術(shù)也不斷的推陳出新,使得 Web站點(diǎn)的功能越來(lái) 越強(qiáng)大,能夠提供的服務(wù)種類(lèi)越來(lái)越繁多。書(shū)店客戶可通過(guò)頁(yè)面進(jìn)行注冊(cè)申請(qǐng)及查看、更新注冊(cè)信息。本文中數(shù)據(jù)庫(kù)服務(wù)器端采用了 Microsoft Access數(shù)據(jù)庫(kù)作為 ODBC(Open DataBase Connectivity )數(shù)據(jù)源,并以先進(jìn)的 ADO( ActiveX Data Objects)技術(shù)進(jìn)行數(shù)據(jù)庫(kù)存取等操作,使 Web與數(shù)據(jù)庫(kù)緊密聯(lián)系起來(lái) 。電子商務(wù)給消費(fèi)者提供了更多的選擇,提供了更好的便利性。s administrative system of the editor of the emerce website ,etc. in the project. Especially in the construction of the emerce website, ASP is acting the dynamic webpage founder39。 ASP是一種優(yōu)秀的電子商務(wù)開(kāi)發(fā)程序語(yǔ)言,因?yàn)槠渚庉嫼?jiǎn)便、功能全面的特點(diǎn),被廣泛應(yīng)用于電子商務(wù)網(wǎng)站的編輯制作、企業(yè)管理系統(tǒng)的開(kāi)發(fā)等項(xiàng)目中。尤其是在電子商務(wù)網(wǎng)站的建設(shè)中, ASP扮演著動(dòng)態(tài)網(wǎng)頁(yè)締造者的重要角色。s important role. Dreamweaver_MX incorporate developing the function in many kinds of webpages into an anic whole, can finish nearly all webpage editor of technology lightly and systematically. It has beautiful operation boundary plane and strong editing function, editor ASP in Dreamweaver_MX, can use various kinds of auxiliary projects very conveniently, test the dynamic webpage that the editor finished in real time, design the dynamic webpage with perfect function. Microsoft Access is a kind of relational expression database, the relational expression database is tabulated and made up by one, form petent is it make up to arranging by a series of, every and the entourage one record, every one word section, each word section have one word sections of name, word a name can repeat of first form. It is that one kind is easy to use, dispose the simple database. Online bookshop system in the article, bine ASP、 Access and Dreamweaver_MX is it, have user use simple, interface getting ocular advantage to develop together originally, design and realize user management, books management, order manage, do shopping function of checking out etc. Key words: Database Connect Validate Asp Online Bookshop 目 錄 前 言 .......................................................... 4 第一章 系統(tǒng)概述 ................................................. 5 1. 1 網(wǎng)上書(shū)店設(shè)計(jì)概要 ........................................ 5 1. 2 ASP 技術(shù)綜述 ............................................ 6 1. 2. 1 ASP 的 6 大內(nèi)建對(duì)象 ................................ 7 1. 2. 2 ASP 與 CGI的比較 ................................. 7 1. 2. 3 ASP 與 IIS ......................................... 8 1. 2. 4 ADO 簡(jiǎn)介 .......................................... 9 1. 3 技術(shù)要點(diǎn) ............................................... 10 第二章 數(shù)據(jù)庫(kù)的設(shè)計(jì)與實(shí)現(xiàn) ...................................... 11 2. 1 創(chuàng)建數(shù)據(jù)庫(kù) ............................................. 11 2. 2 數(shù)據(jù)庫(kù)的連接 ........................................... 17 第三章 網(wǎng)上書(shū)店系統(tǒng)設(shè)計(jì) ........................................ 18 3. 1 用戶信息模塊的實(shí)現(xiàn) ..................................... 19 3. 1. 1 客戶的注冊(cè)、登錄及退出 ........................... 19 3. 1. 2 客戶資料的查看、更新及密碼的修改 ................. 24 3. 2 圖書(shū)信息模塊的實(shí)現(xiàn) ..................................... 26 3. 2. 1 分類(lèi)的顯示和詳細(xì)信