【正文】
第 1 頁 共 23頁 1 引言 課題背景 隨著因特網(wǎng)的迅猛發(fā)展、 Web 信息的增加,用戶要在信息海洋里查找信息,就像大海撈針一樣, 搜索引擎技術(shù)恰好解決了這一難題。 搜索引擎的發(fā)展動向 搜索引擎已成為一個新的研究、開發(fā)領(lǐng)域。 (2)基于智能代理的信息過濾和個性化服務(wù)。搜索引擎的實現(xiàn)可以采用集中式體系結(jié)構(gòu)和分布式體系結(jié)構(gòu),兩種方法各有千秋。如果再加上機器翻譯,返回結(jié)果可以用母語顯示。鑒于上述需求我選擇 IIS + Microsoft Access+ ASP 作為我的開發(fā)環(huán)境。 IIS 簡介 IIS 是 Inter 信息服務(wù)( Inter Information Server)的縮寫,它是一種 Web服務(wù),主要包括 WWW 服務(wù)器、 FTP 服務(wù)器等,使得在 Intra(局域網(wǎng))或 Inter(因特網(wǎng))上發(fā)布信息成了一件很容易的事。 Microsoft Access 簡介 Access 是 Office 系列軟件中用來專門管理數(shù)據(jù)庫的應(yīng)用軟件。它可運行于各種Microsoft Windows 系統(tǒng)環(huán)境中,由于它繼承了 Windows 的特性,不僅易于使用,而且界面友好,如今在世界各地廣泛流行。 ASP 目前已成為目前應(yīng)用最廣泛的動態(tài)網(wǎng)頁開發(fā)工具,同時應(yīng)用 ASP 進行網(wǎng)絡(luò)化的信息管理系統(tǒng)也逐步得到推廣。用戶只需將 .asp 程序放在 Web 服務(wù)器的 虛擬目錄下(該目錄必須要有可執(zhí)行權(quán)限),就可以通過 WWW 的方式訪問 ASP 程序了。用戶登錄到首頁,首先進入的是網(wǎng)站搜索界面。但他又提供了網(wǎng)站審核、網(wǎng)站管理和分類目錄修改 3 個子模塊。數(shù)據(jù)庫取名為 ,其中包含了系統(tǒng)中所有的數(shù)據(jù)。 Sort 表的具體結(jié)構(gòu)如表 2 所示: 表 2 分類目錄數(shù)據(jù)表 字段名稱 數(shù)據(jù)類型 說明 主關(guān)鍵字 ID 自動編號 編號 * Sort 文本 子類名稱 SortID 數(shù)字 父類 ID Show 數(shù)字 是否在首頁顯示 第 5 頁 共 23頁 管理員數(shù)據(jù)表即:數(shù)據(jù)表 Admin, 記錄的是管理員的登錄名和密碼。在 首先讀取傳遞過來的數(shù)據(jù),然后判斷該數(shù)據(jù)是否為空。 if keyword= then 39。 請 輸 入 關(guān) 鍵 詞 !39。, ) 39。用空格替換關(guān)鍵詞中的字符 ] keyword = replace(keyword,, , ) 39。去掉關(guān)鍵詞左邊和右邊的空格。ubound 函數(shù)獲得數(shù)組最大下標值 keywordlist(i) = Trim(keywordlist(i)) 39。 keywordlist(i) amp。 like 39。 or sql=sql amp。 %39。 keywordlist(i) amp。sqlamp。 %39。從數(shù)據(jù)庫中查詢滿足條件的記錄,并保存在 rs 中 selectid,sort_path,sort_id,title,keyword,url,content,address,postcode,verify,click from web where amp。最后顯示查詢頁面的底部的管理入口及版本信息,并建立到管理員登錄的超連接。設(shè)置這 10 個分類也顯示在首頁上,即 show=1。sort 39。sort_id) if and then else sort=rs(sort) locality= a href=?sort_id=amp。/aamp。 Showpage()過程顯示頁數(shù)信息,包括當前頁、總頁數(shù)等,其中過程 showpage()的處理代碼如下: Function showpage(totalnumber,maxperpage,filename) 39。當前頁是第一頁 % 第一頁 上一頁 % Else 39??傢摂?shù)小于或等于當前頁 % 下一頁 最后一頁 % Else 39。接著再判斷用戶輸入的網(wǎng)站網(wǎng)址是否已經(jīng)保存在數(shù)據(jù)庫中,如果沒有保存在數(shù)據(jù)庫中,則在數(shù)據(jù)庫中插入一條新的記錄。子類名稱 rs(sort_path)=path_id 39。網(wǎng)站網(wǎng)址 rs(keyword)=(keyword) 39。聯(lián)系人 if oicq= then 39。郵政編碼 rs(verify)=1 39。更數(shù)數(shù)據(jù)庫 39。在管理員登錄頁面上,包含兩個表單。并單擊 “確定 ”按鈕后,所有的數(shù)據(jù)提交到 文件中,該文件將所有的數(shù)據(jù)保存在數(shù)據(jù)庫中。網(wǎng)站修改頁面也分兩部分:上面為網(wǎng)站搜索部分,下面為網(wǎng)站信息修改部分。聯(lián)系人不能空 39。聯(lián)系人電子郵 Script(39。/Script 如果二者都不為空,則從數(shù)據(jù)庫中查詢 列的值為輸入電子郵箱的記錄。 5 系統(tǒng)后臺模塊設(shè)計 前臺頁面可以看成是對數(shù)據(jù)庫中表的查詢,讀入,而后臺則是對數(shù)據(jù)庫中表中的信息進行修改,添加,刪除,從而改變前臺的顯示信息。當管理員單擊某個網(wǎng)站對應(yīng)的 “刪除 ”超連接,就可以將該網(wǎng)站及其所有信息從數(shù)據(jù)庫中刪除。_ (39。獲得要刪除記錄的 id,Replace 過程將獲得的 id 字符串中的 39。操作失敗,沒有選擇合適參數(shù),請單擊確定返回! 39。id 存在 39。刪除成功,給出提示 scriptalert(39。不同的地方在于,網(wǎng)站審核模塊顯示的所有網(wǎng)站均為未審核網(wǎng)站,已經(jīng)審核了的網(wǎng)站將不會在次頁面顯示。是否首頁顯示 sort_id=(sort_id) 39。(id),conn,1,3 rs(sort)=(sort) 39。判斷 sort_id 的值,并根據(jù) sort_id 第 17 頁 共 23頁 的值返回到不同的界面 Script(39。39。)。39。讀取要刪除記錄的 id sort_id=(sort_id) 39。 (39。 分類刪除成功39。sort_idamp。單擊該超連接,能夠添加當前分類的下一層分類。可以選擇是否要在首頁顯示,默認為否,上級 id 文本域為 sort_id。其頁面顯示如圖 9 所示: 第 18 頁 共 23頁 圖 9 分類添加界面圖 當輸入要添加的分類信息并單擊 “確定 ”按鈕后,表單中的數(shù)據(jù)被提交到 文件中處理。select 條件語句 case add 39。創(chuàng)建 RecordSet 對象 39。更新數(shù)據(jù)庫 39。)。/Script else Script(?分類添加成功 39。sort_idamp。在 文件中,如果讀取 action 的值為 delete,則執(zhí)行刪除操作,在代碼中,首先讀取 id 和 sort_id 的值,然后執(zhí)行 del()過程將所有相關(guān)分類刪除,最后根據(jù) sort_id 的值將頁面轉(zhuǎn)到 相關(guān)頁。 del()的具體代碼如下: Function Del(sort_id,id) Set drs = () Select * from sort where sort_id=amp。刪除該分類 Exit Function 39。下級分類的 id Del id,nid 39。id) 39。在進行系統(tǒng)測試過程中會出現(xiàn)如下幾種情況: 1.管理員能準確無誤的對數(shù)據(jù)庫進行修改。 5. 權(quán)限控制,通過 session 會話變量對管理員和用戶的權(quán)限進行控制。同時,在開發(fā)過程中要注意 質(zhì)量管理,否則開發(fā)工作一旦進行到后期,無論怎樣通過測試和補漏洞,都會無濟于事。 然后再 深入剖析該系統(tǒng)各功能模塊的詳細設(shè)計思路。普通用戶不需要登錄便可使用搜索功能。 因此下一步將對數(shù)據(jù)庫的優(yōu)化作進一步的研究。因此下一步還要對中文分詞的功能作進一步研究。文中除了特別加以標注地方外,不包含他人已經(jīng)發(fā)表或撰寫過的研究成果,也不包含為獲得成都信息工程學(xué)院或其他教學(xué)機構(gòu)的學(xué)位或證書 而使用過的材料。 ( 3)學(xué)??梢詫W(xué)術(shù)交流為目的復(fù)制、贈送和交換學(xué)位論文。 特此聲明! 作者簽名: 2020 年 07 月 25 日 第 24 頁 共 23頁 veother case beincurable. If any one convict in a court of law a stranger or aslave of a theft of public property, let the court determine whatpunishment he sha ll suffer, or what penalty he shall pay, bearing inmind that he is probably not incurable. But the citizen w ho has beenbrought up as our citizens w ill have been, if he be fou nd guilty ofrobbing his country by fraud sold anyadulterated goods, in addition to losing the goods themselves, shallbe beaten with stripesa stripe for a drachma, according to theprice of the goods。they seek to satisfy ourneeds and equalize our possessions. Let us then endeavour to seewhat has brought retail trade into il lodour, and wherein, lies thedishonour and unseemliness of it, in order that if not entirely, wemay yet partially, cure the evil by legislation. To effect this isno easy matter, and requires a great deal of virtue. Cleinias. What do you mean? Athenian Stranger. Dear Cleinias, the class of men is smalltheymust have been rarely gifted by nature, and trained。and let them inscribe their laws on a column in front of the courtof the wardens of the agora, that they may be clear instructors ofthose who have business in the agora. Enough has been said in what haspreceded about the wardens of the city, and if anything seems to bewanting, let them municate with the guardians of the law, and writedow n the omission, and place on a column in the court of the wardensof the city the primary and secondary regulations which are laiddown for them about their office. After the practices of adulteration naturally follow the practicesof retail trade. Concerning these, we will first of all give a word ofcounsel and reason, and the law shall e afterwards. Retail trade ina city is not by nature intended to do any harm, but quite thecontrary。 ( 5)學(xué)??梢怨紝W(xué)位論文的全部或部分內(nèi)容(保密學(xué)位論文在解密后遵守此規(guī)定)。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識產(chǎn)權(quán)的說明: 本人完全了解成都信息工程學(xué)院有關(guān)保管使用學(xué)位論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管并向有關(guān)部門遞交學(xué)位論文的原件與復(fù)印件。 [5] 周楓,劉曉燕,李秀敏,李丹 .軟件工程 [J].重慶:重