




已閱讀5頁,還剩31頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
畢畢 業(yè)業(yè) 設(shè)設(shè) 計計( 論論 文文) 某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計與實現(xiàn)某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計與實現(xiàn) 論論文作者姓名:文作者姓名: 申申請請學位學位專業(yè)專業(yè): : 申申請請學位學位類別類別: : 指指導導教教師師姓姓名名( (職職稱稱) ): : 論論文提交日期:文提交日期: 某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計與實現(xiàn)某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計與實現(xiàn) 摘摘 要要 以計算機與通信技術(shù)為基礎(chǔ)的信息系統(tǒng)正處于蓬勃發(fā)展的時期。人們?nèi)找?追求著高效、低成本、穩(wěn)定可靠的運營模式。隨著計算機科學技術(shù)的發(fā)展,它 已進入人類社會的各個領(lǐng)域并發(fā)揮著越來越重要的作用。本文論述了應(yīng)用計算 機網(wǎng)絡(luò)技術(shù)建立一個企業(yè)宿舍管理網(wǎng)站的實現(xiàn)與設(shè)計過程。在網(wǎng)站的設(shè)計與開 發(fā)過程中嚴格遵守軟件工程的規(guī)范,運用軟件設(shè)計模式,以減少系統(tǒng)模塊間的 耦合,力求使系統(tǒng)具有穩(wěn)定性,并具有一定程度的可重用性和可擴充性。 本軟件功能主要包括成員注冊、成員管理、成員信息交流基本功能。此外, 本網(wǎng)站也將實現(xiàn)網(wǎng)站的后臺管理,包括動態(tài)信息的添加的功能。 本軟件運用 asp 技術(shù)實現(xiàn),后臺數(shù)據(jù)庫采用 access 作為數(shù)據(jù)庫服務(wù)器,前 端開發(fā)工具使用 macromedia dreamweaver。 關(guān)鍵詞:關(guān)鍵詞:公寓管理;b/s;asp;access the development and implementation of the network dormitory management of an enterprise abstract the information system based on the computer and communication technology is in the process of vigorous development. people are pursuing on more effective, low cost and more reliable operation pattern. with its development, computer science has entered almost every domain in human society and is playing more and more important role in these domains. this article introduces the design and implementation process of an enterprise dormitory management web site by applying the computer network technique. in the process of design and implementation, we strictly obey the specifications of software engineering and use the software design patterns to reduce the coupling among modules and to make the system more stable and, more over, to make the code reusable and expandable. this software basic function mainly involves the member registration, the member management and the member communication module. besides, this website also realizes backstage management, including the adding functionality of the dynamic information. this software was implemented with the asp technology, used access as backstage database server and macromedia dream weaver as the front development tool. key words:dormitory management; b/s; asp ; access 目目 錄錄 論文總頁數(shù):24 頁 1.引言1 1.1 選題背景 1 1.2 課題意義 2 2.開發(fā)工具2 2.1 開發(fā)語言-html .2 2.2 開發(fā)軟件 dreamweaver功能的簡介 3 2.3 asp 語言的特性 3 2.4 access 數(shù)據(jù)庫簡介 .4 3.某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的總體設(shè)計4 3.1 某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計風格 4 3.2 系統(tǒng)功能分析 5 3.3 e-r 圖 5 3.4 結(jié)構(gòu)圖6 3.5 系統(tǒng)流程圖 6 4.網(wǎng)站的詳細設(shè)計7 4.1 數(shù)據(jù)庫設(shè)計 7 4.2 系統(tǒng)功能模塊分析 8 4.2.1 數(shù)據(jù)庫連接功能 8 4.2.2 主界面 8 4.2.3 用戶信息查詢模塊 9 4.2.4 用戶留言模塊 9 4.2.5 后臺管理窗口 9 4.2.6 宿舍管理窗口 .11 4.2.7 查詢信息窗口 .11 4.2.8 房間入住窗口 .12 4.2.9 退房管理窗口 .14 4.2.10 費用管理選擇操作窗口 15 4.2.11 登記水電指數(shù)操作窗口 15 4.2.12 交水電費管理窗口 17 4.2.13 留言簿管理登錄窗口 18 4.2.14 留言簿管理操作窗口 20 5.網(wǎng)站的分析與測試.21 結(jié) 論.21 參考文獻.22 致 謝.23 聲 明.24 1.1.引言引言 1.11.1 選題背景選題背景 隨著計算機產(chǎn)業(yè)的迅速發(fā)展,電子計算機已廣泛的應(yīng)用于信息管理、文字 處理、輔助設(shè)計、輔助教學及人們的日常生活中。特別是在計算機的操作系統(tǒng) 具有了圖形化的界面后,使用計算機已經(jīng)不再是某些專業(yè)人員的專利,各行各 業(yè)的人們不需要經(jīng)過專業(yè)化的訓練就能自如的在計算機上進行各種復雜的操作。 時下,為了能創(chuàng)造更大的經(jīng)濟效益和社會效益,更有利于參與國際競爭, 越來越多的企業(yè)、公司和學校迫切需要引入現(xiàn)代化的管理手段,而計算機的大 容量操作,精確的計算,使它成為企業(yè)管理不可缺少的手段之一,但隨著計算 機應(yīng)用的不斷深入,用戶對軟件的需求也不斷增加,越來越多的用戶希望擁有 適合自己需要的特殊軟件來滿足自己的特殊要求。 我的畢業(yè)設(shè)計題目的選定應(yīng)該說是順應(yīng)這一趨勢的。對于當今企業(yè)公寓來 說,其數(shù)據(jù)量大,各種信息管理內(nèi)容復雜,查詢和管理員工信息和企業(yè)內(nèi)的公 寓信息等工作由人工完成將是很累的,也許還很不切實際,不僅浪費了許多人 力物力資源,而且還很容易出現(xiàn)差錯,有一個符合要求的軟件對其進行智能化 的企業(yè)公寓管理是最好不過的,節(jié)省了人力物力資源,并且對各種信息的把握 和操作也更加方便了,對所有信息有了一個全局的掌握。 可行性分析: (1)經(jīng)濟的可行性: 主要從對項目的經(jīng)濟上進行分析評價,一方面是支出的費用,包括設(shè)備購 置費、管理和維護費用、人員工資和培訓費等,另一個是取得的收益。這是個 超小型的管理系統(tǒng),從投入的人力,財力與物力來講是非常之小的,只要一臺 電腦,一臺打印機,這個系統(tǒng)就可以搞起來,考慮到學校里有電腦,現(xiàn)只要購 置一臺打印機就可以了。從節(jié)省人力方面,可以讓管理人員從繁與復雜的工作 中解脫出來,做更多的工作,可以給宿舍里的管理提高一個層次。 (2)技術(shù)上的可行性: 技術(shù)上的可行性分析要考慮將來要采用的硬件和軟件技術(shù)能否滿足用戶 (這里是企業(yè))提出的要求(如計算機的容量、速度等) 。asp 語言的深入人心, 數(shù)據(jù)庫語言的普及,此外,還要考慮開發(fā)人員的水平,作為計算機信息管理專 業(yè)畢業(yè)的優(yōu)等生,數(shù)據(jù)庫設(shè)計方面對于我們應(yīng)該還過得去,在宿舍里生活了四 年,對這個管理模式應(yīng)該比較的熟。 (3)結(jié)論: 通過以上兩點的分析,編寫或開發(fā)這個宿舍管理系統(tǒng)是可行的,只要這個 系統(tǒng)能實現(xiàn)對員工數(shù)據(jù)的輸入、修改、刪除、打印、瀏覽與查詢就可以了。如 果技術(shù)方面可行,瀏覽與查詢方面的功能應(yīng)該編寫得強大一點,再好有條件組 合的查詢,可以實現(xiàn)按男女生分類查詢,也可以按名字、寢室號、是否空缺等 分類查詢,以便企業(yè)方面管理人員可以很方便的查詢想要的數(shù)據(jù),以便進行統(tǒng) 一管理,統(tǒng)一安排。 1.21.2 課題意義課題意義 對于一名專業(yè)的信息技術(shù)人員來說,如何最大限度地利用企業(yè)后勤部門多 年來在數(shù)據(jù)庫系統(tǒng)上的投資,把企業(yè)花了大力氣搜集來的數(shù)據(jù)變成對企業(yè)未來 發(fā)展有巨大價值的信息,這是每一個從事信息技術(shù)工作的專業(yè)人員都應(yīng)該考慮 的問題。 現(xiàn)在全國的很多企業(yè)公寓都采用了計算機統(tǒng)一管理,這樣就需要一種管理 軟件來為公寓的管理者服務(wù),協(xié)助他們來完成管理員工公寓這么一個龐大的工 作。 在這種情況下,用各種開發(fā)工具開發(fā)出來的企業(yè)公寓智能管理系統(tǒng)應(yīng)運而 生,并且蓬勃的發(fā)展起來。這為企業(yè)公寓管理帶來了很大的方便,更重要的是 節(jié)省了相當大的人力,物力,財力。 本系統(tǒng)的深刻意義可以通過一個例子來體現(xiàn)出來。假如想在企業(yè)范圍內(nèi)查 找一名員工所在的公寓,則不要像以前那樣去查公寓樓名單,只需通過查詢方 法,輸入該員工的姓名,即可很容易的找到他的所在公寓,同時也可以了解他 的一些基本信息,看所查找的對象是否是自己所要找的人,另外,還可以知道 他的交費情況,可以幫助及時的了解員工欠交住宿費用的情況。 2.2.開發(fā)工具開發(fā)工具 2.12.1 開發(fā)語言開發(fā)語言-html-html html(hyper text markup language,超文本標記語言),或稱為“多媒體文 件語言”,是用于創(chuàng)建 web 頁和 web 信息發(fā)布的第一個通用語言。html 以其簡 單精練的語法、極易掌握的通用性與易學性,使 web 網(wǎng)頁可以親近于每一個普 通人,網(wǎng)絡(luò)也才得以普及發(fā)展,以至今日的輝煌。 html 語言主要有以下幾個特性: (1)通用性:可實現(xiàn)不同平臺的文檔共享。 (2)可擴展性:html 的標簽集合可以根據(jù)新需求而不斷修正或加入有限的新 標簽符,為實現(xiàn)有限的新功能的擴展提供保障。 (3)創(chuàng)建的靈活性:html 文檔是純文本文檔,可以由網(wǎng)頁編輯器以及其他文 本編輯軟件創(chuàng)建。 html 是“hyper text markup language”的縮寫,它是一種超文本標記語言, 是網(wǎng)頁的描述語言,用于編制通過萬維網(wǎng)顯示的超文本文件。它是目前在網(wǎng)頁 設(shè)計中,所使用的最基本的標記語言?,F(xiàn)在很多 html 的編輯器,都是通過跟 文字處理器相似的接口來編輯網(wǎng)頁的。有了這些編輯工具,即使對 html 沒有 深入的認識,仍能編寫出個人網(wǎng)頁。這類網(wǎng)頁編輯工具包 dreamweaver 和 frontpage 使用這些工具時,有時候可能會奇怪,為什么會看不到 html 的存 在呢?事實上,網(wǎng)頁所使用的原始碼正是 html。雖然不需要成為一個 html 的 專家,但學會一點基本的 html,對編寫網(wǎng)頁,肯定是有好處的。 2.22.2 開發(fā)軟件開發(fā)軟件 dreamweaverdreamweaver 功能的簡介功能的簡介 對于一般的動態(tài)網(wǎng)頁的我們將用 macromedia 公司的 dream weaver 網(wǎng)頁開 發(fā)軟件。dream weaver mx 主要負責網(wǎng)頁的版式設(shè)計,網(wǎng)頁編輯制作。它是一 套“所見所得”的網(wǎng)頁制作編輯軟件。 它提供了文字的設(shè)置,圖像編輯,表格制作,布局定位,層與動畫,表單 對象,框架結(jié)構(gòu)等用途。 這里我用到層,表單,表格,和框架來讓我們的界面更加友好,和華麗及 讓我們的用戶一目了然我們要實現(xiàn)什么功能。比如系統(tǒng)中就用到框架這一功能, 它就讓我們的操作更加方便,讓我們對系統(tǒng)要實現(xiàn)的功能一目了然。用 dream weaver 來對我們寫的程序進行調(diào)試也是一個很好的選擇 文字的設(shè)置:在制作前臺網(wǎng)頁的時候就可以發(fā)揮它的特定的功能,讓設(shè)計 人員可以更好的發(fā)揮自己的設(shè)計靈感。不必要寫很多程序代碼。 表單:表單的設(shè)計就可以讓設(shè)計人員更直觀的操作界面。 表格:表格是整個網(wǎng)頁設(shè)計中的核心網(wǎng)頁中的位置概念是通過字節(jié)來定位, 文本等元素的位置為了可以以像素的方式控制,就只有通過表格和層次來實現(xiàn)。 2.32.3 aspasp 語言的特性語言的特性 web 源于靜態(tài)文本,現(xiàn)在很多站點幾乎還是采用這種方式。靜態(tài)文本的缺 點就是維護難(文件數(shù)目多)、查詢難、修改難。雖然可以采用 frontpage 對站 點進行管理,但這只是其中的一個辦法?,F(xiàn)在,很多的站點都會在后臺采用數(shù) 據(jù)庫,動態(tài)生成超文本。這樣,要改變式樣,只需修改幾個文件;要變更內(nèi)容, 只需對數(shù)據(jù)庫進行操作即可,而且易于保持致性;而對于全文檢索等查詢應(yīng)用, 這種方式的優(yōu)越性更為突出。(經(jīng)常說的“動態(tài)”也包括圖片的動態(tài)顯示,如動 態(tài) gif、java applet 等,本文所指為資料的動態(tài)性)通用網(wǎng)關(guān)界面 cgi(common gateway interface)和網(wǎng)絡(luò)服務(wù)器應(yīng)用程序界面 isapi(internet server application programming interface)與其他相關(guān)技術(shù)的出現(xiàn),使我們能夠方 便地與 web server 進行溝通,從而像一些計數(shù)器、留言版等 cgi 程式相繼出現(xiàn) 并蔚然成風。但這些 cgi 程序都有一個很大的缺點,就是 cgi(可用 vb、java、perl、c 或 delphi 等編寫)與 html 只能分開編寫、分開運行,要將 兩者融合在一起并不 容易,從而導致維護與編寫都相當困難。因此,一些廠商 后來都推出了自己的 script 語言,來增強網(wǎng)頁開發(fā)的功能。其中 netscape 推 出了 javascript(for client 端和 for server 端);微軟則推出了 vbscript 和 asp(asp 的語法與 vb 的語法類似)兩種,也用于服務(wù)器端和客戶端程序的編 寫。對于專業(yè)開發(fā)人員而言,客戶端程序的最重要的一點是通用性,而服務(wù)器 端的則強調(diào)功能和效率。對于 client 端程序的開發(fā),javascript 無疑是最佳 的,因為當今兩大主流瀏覽器 ie 和 netscape 都宣稱支持該標準;而 vbscript 則只有 ie 才能支持。但令我們苦惱的是對某些 javascript 的標記,ie 或 ie 的某些版本并不一定會支持,這必將導致我們不得不把一部分程序移到服務(wù)器 端去執(zhí)行,因為服務(wù)器端的程序會先解釋生成 html(或含 activex)文本,再送 到客戶端,故不存在兼容問題。 2.42.4 accessaccess 數(shù)據(jù)庫簡介數(shù)據(jù)庫簡介 在辦公軟件 office 套件中,最為廣大用戶熟悉的是 word 和 excel,因為 它們功能強大且方便易用,更因為它們不僅可用于辦公,還可用于個人寫作和 家庭理財?shù)取M瑸?office 套件中一部分的 access,雖然有著同樣強大的功 能,但使用的人卻相對少些,不像 word 和 excel 那樣廣泛。事實上,真正用過 access 的用戶,對其強大功能和靈活應(yīng)用均稱贊“不錯,很好的。 ” access 數(shù)據(jù)庫管理系統(tǒng)是 microsoft office 套件的重要組成部分,是 access 的最新版本,可在 windows 95 環(huán)境下運行。access 適用于小型商務(wù)活 動,用以存貯和管理商務(wù)活動所需要的數(shù)據(jù)。access 不僅是一個數(shù)據(jù)庫,而且 它具有強大的數(shù)據(jù)管理功能,它可以方便地利用各種數(shù)據(jù)源,生成窗體(表單) , 查詢,報表和應(yīng)用程序等。 數(shù)據(jù)庫是有結(jié)構(gòu)的數(shù)據(jù)集合,它與一般的數(shù)據(jù)文件不同,(其中的數(shù)據(jù)是無 結(jié)構(gòu)的)是一串文字或數(shù)字流。數(shù)據(jù)庫中的數(shù)據(jù)可以是文字、圖像、聲音等。 microsoft access 是一種關(guān)系式數(shù)據(jù)庫,關(guān)系式數(shù)據(jù)庫由一系列表組成, 表又由一系列行和列組成,每一行是一個記錄,每一列是一個字段,每個字段 有一個字段名,字段名在一個表中不能重復。圖 1 是一個“產(chǎn)品”表的例子。 “產(chǎn)品”表由 10 個記錄組成,一個記錄只占一行,每一個記錄由產(chǎn)品 id、產(chǎn) 品名稱、庫存量、訂貨量、單價和折扣率 6 個字段組成。 “產(chǎn)品 id”是字段名, 其下面的 1,2 等是字段的值。 表與表之間可以建立關(guān)系(或稱關(guān)聯(lián),連接) ,以便查詢相關(guān)聯(lián)的信息。 access 數(shù)據(jù)庫以文件形式保存,文件的擴展名是.mdb。 3.3.某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的總體設(shè)計某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的總體設(shè)計 3.13.1 某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計風格某企業(yè)網(wǎng)絡(luò)公寓管理系統(tǒng)的設(shè)計風格 以溫馨的界面為主,突顯出企業(yè)的人性化的一面。讓內(nèi)部員工有家的感覺, 也有利用視覺美觀,也讓管理者不易疲勞,樂于管理網(wǎng)站的數(shù)據(jù)流通。設(shè)計時 使用的數(shù)據(jù)庫為 access,數(shù)據(jù)庫的鏈接比較簡單,不需要復雜性的過程,只 需要將數(shù)據(jù)庫和設(shè)計代碼放入同一目錄即可。不同級別人員的宿舍等級不同; 公寓的衛(wèi)生情況管理、入住人員多種情況的統(tǒng)計、入住人員住宿、補貼等等。 3.23.2 系統(tǒng)功能分析系統(tǒng)功能分析 在系統(tǒng)中,充分利用了 access 數(shù)據(jù)庫和 asp 的強大功能,通過實踐,也使 自己對這些方面有了較深入的了解。在設(shè)計過程中力求完善系統(tǒng)功能,使界面 友好,具有一定的容錯能力,在使用過程中不會出現(xiàn)難以糾正的錯誤和毛病。 本網(wǎng)站是一個利用網(wǎng)絡(luò)對企業(yè)宿舍信息進行管理的系統(tǒng),可以進行員工信息的 管理,房間信息的管理,以及員工間的信息交流的功能。分為普通用戶的管理 用戶,普通用戶只能進行一般的瀏覽,管理員可以對網(wǎng)站的數(shù)據(jù)進行更新,刪 除,修改的功能。 3.33.3 e-re-r 圖圖 e-r 圖是最常用的概念模型表示方法,是由實體、實體的屬性以及實體之 間的關(guān)系三部分組成,是數(shù)據(jù)庫的核心和基礎(chǔ),它是按用戶的觀點來對數(shù)據(jù)和 信息建模,依據(jù)概念模型設(shè)計應(yīng)具的特點:真實性、易理解性、易修改性、易 轉(zhuǎn)換性,網(wǎng)絡(luò)公寓管理系統(tǒng)的 e-r 圖如下所示: 用戶 幢號 留言薄 宿舍 宿舍號 姓名 留言 留言人 主題 內(nèi)容 時間 幢號 宿舍號水費電費 管理 圖 1 系統(tǒng) e-r 圖 3.43.4 結(jié)構(gòu)圖結(jié)構(gòu)圖 圖 2 系統(tǒng)結(jié)構(gòu)圖 3.53.5 系統(tǒng)流程圖系統(tǒng)流程圖 水電費管理 交費 宿舍信息查 詢 主頁 用戶留言 添加留言 回復信息 刪除留言 關(guān)于我們 查詢宿舍退房管理 信息管理 入住 登記水電數(shù) 數(shù) 后臺管理登錄 登錄 n 后臺管理 查詢宿舍信息費用管理退房管理房間入住留言簿管理 y 用戶 查看宿舍信息 查看最新公告 發(fā)布留言 修改/增加/刪除 n 操作成功 y 退出管理 y 圖 3 系統(tǒng)流程圖 4.4.網(wǎng)站的詳細設(shè)計網(wǎng)站的詳細設(shè)計 4.14.1 數(shù)據(jù)庫設(shè)計數(shù)據(jù)庫設(shè)計 通過需求分析和流程設(shè)計以后,需要將數(shù)據(jù)庫概念結(jié)構(gòu)轉(zhuǎn)化為關(guān)系數(shù)據(jù)模 型,也就是數(shù)據(jù)庫的邏輯結(jié)構(gòu)。在實體以及實體之間關(guān)系的基礎(chǔ)上,形成數(shù)據(jù) 庫中的表格以及各個表格之間的關(guān)系。先用 access 在 tao 數(shù)據(jù)庫中建立了 student(員工信息表) ,gly(管理員表) ,lyb(留言簿表)表,we(水電費表) 表分別如下: 表 1 員工信息表 student 字段名類型大小是否為空 幢號 text50null 宿舍號 text50null 姓名 text50null 部門 text50null 房間費用數(shù)字自動 null 是否空缺是/否 2null 管理員 text50null 家庭住址 text50null 寢室電話數(shù)字自動 null 表 2 管理員表 yanz 字段名類型大小是否為空備注 nametext50null 用戶名 pwdtext50null 密碼 表 3 留言簿表 lyb 字段名類型大小是否為空備注 lyid 自動編號長整型 null 留言號 lynametext50null 留言姓名 lyxbtext50null 留言性別 lyqqtext50null 留言 qq lyiptext50null 留言 ip lytimetime50null 留言時間 lynr 備注無 null 留言內(nèi)容 lytxtext50null 留言頭像 lyxptext50null 留言心情 lywebtext50null 留言主面 glynrtext50null 管理員回復 lyzttext50null 留言主題 hfnr 備注無 null 備注 表 4 水電費表 we 字段名類型大小是否為空 幢號 text50null 宿舍號 text50null 姓名 text50null 本月用電數(shù)字自動 null 本用用水數(shù)字自動 null 水電費用數(shù)字自動 null 交費否是/否 2null 4.24.2 系統(tǒng)功能模塊分析系統(tǒng)功能模塊分析 4.2.14.2.1 數(shù)據(jù)庫連接功能數(shù)據(jù)庫連接功能 計算機化的管理信息系統(tǒng)設(shè)計是一個以大量數(shù)據(jù)資源為基礎(chǔ)并以此為中心 而建立起來的應(yīng)用系統(tǒng),其目的是為一個組織中各個部門和各個管理層次提供 必要的管理信息和決策數(shù)據(jù),由于它涉及到應(yīng)用領(lǐng)域中一定的深度和廣度,因 而必然要接觸大量的不同類型的數(shù)據(jù),對這些數(shù)據(jù)的合理組織、有效的存儲和 正確的連接是管理信息系統(tǒng)開發(fā)中一項重要的工作。 為使設(shè)計出的管理信息系統(tǒng)更具有實用價值,就不得不調(diào)用表中的各個數(shù) 據(jù)項,因此本系統(tǒng)也專門獨立出一個頁面作為數(shù)據(jù)庫的連接,其目的是方便以后 其它頁面的功能實現(xiàn)時能直接調(diào)用此頁面,將數(shù)據(jù)庫中的數(shù)據(jù)讀取出來,而不 需反復寫入代碼,對數(shù)據(jù)庫連接的時候建立文件對象,是為了后臺控制數(shù)據(jù)庫 連接的關(guān)閉和打開更加方便,提高工作效率。如果沒有這部份的連接,則無法 將數(shù)據(jù)庫中的數(shù)據(jù)顯示出來,無法達到動態(tài)網(wǎng)頁的效果 數(shù)據(jù)庫連接代碼: dim objconn set objconn=server.createobject(“adodb.connection“) objconn.connection.string=“provider=microsoft.jet.oledb.4.0;“history. go(-1)“) end if if a=“ then response. write “alert(請?zhí)顚戲炞C碼); “ response.write“this.location.href=vbscript: history. back ();“ response. end end if glymima=md5(request. form(“glymima“) sql=“select * from gly where glyname=“ response. write “javascript: history. go (-1);“ response. write “ else response. cookies (“glyname“) =rs (“glyname“) response. cookies(“glysf“)=rs(“glysf“) session(“glyname“)=glyname session(“glymima“)=glymima response. redirect“gly.asp“ end if end if % 4.2.144.2.14 留言簿管理操作窗口留言簿管理操作窗口 留言簿管理操作窗口 glyindex.asp: 圖 16 留言簿管理操作窗口界面 當管理員成功登錄到該界面后,即可對留言簿進行管理操作??梢詫τ脩?的留言進行回復,刪除一些不必要的留言,或是更新數(shù)據(jù)庫,將數(shù)據(jù)庫的內(nèi)容 按最新情況進行更新。以下主要是管理員進行留言回復的代碼,以及判斷用戶 是否登錄超時。 其代碼如下: alert(登陸超時請重新 登陸);“ response.write“this.location.href=gly.asp;“ end if % alert(回復留言成功,,請 點擊更新數(shù)據(jù)庫);“ response.write“this.location.href=javascript: history.go (-1);“ end if % 5.5.網(wǎng)站的分析與測試網(wǎng)站的分析與測試 本網(wǎng)站是一個比較簡單的網(wǎng)絡(luò),能夠?qū)崿F(xiàn)一些基本功能,可以實現(xiàn)公寓信 息的管理,如新用戶的入住,用戶退房管理,用戶信息的查詢。也可以實現(xiàn)用 戶間信息的交流,這里主要是使用留言簿,讓各住戶之間的信息交流方便,快 捷。也有利于管理者對整個公寓信息的管理。 結(jié)結(jié) 論論 系統(tǒng)從軟件工程的角度出發(fā),分析系統(tǒng)需求;然后論述了 asp 技術(shù)在動態(tài) 網(wǎng)頁中的應(yīng)用,從 asp 的技術(shù)特點和工作原理開始介紹,由淡入深,逐步展開, 再詳細說明用 asp 開發(fā)的具體實施過程。最后總結(jié)了在應(yīng)用 asp 開發(fā)時應(yīng)注意 的問題。 在作畢業(yè)設(shè)計過程中。我深切體會到合理建庫的必要性和重要性每一個表 必須有序號且最好為關(guān)鍵字由系統(tǒng)自動生成。表的字段邏輯結(jié)構(gòu)要合理盡量建 成主從關(guān)系的表,才更有利編程。在編碼過程中常遇到代碼重用率高的現(xiàn)象,所 以應(yīng)編寫公有過程,以降低代碼重用率。在設(shè)計中還遇到創(chuàng)建窗體太多,內(nèi)存 不足的現(xiàn)象所以對窗體進行動態(tài)創(chuàng)建以提高運行速度。 雖然系統(tǒng)已經(jīng)通過相關(guān)的控制語句對登陸用戶身份進行驗證,但是在當今 網(wǎng)絡(luò)信息安全中,僅僅對用戶身份驗證是不夠的,還需要對傳送數(shù)據(jù)進行加密, 防止數(shù)據(jù)傳輸過程中被篡改等攻擊進行防御。 因此在今后的工作里,這些功能的實現(xiàn)還需要更高的技術(shù)支持,也只有這樣 才能做出更完善的系統(tǒng),讓所有的用戶能在一個互相信任且安全的環(huán)境中享受 網(wǎng)絡(luò)的樂趣。由于篇幅有限,未能將設(shè)計過程一一列出,只挑選了重要的部分 加以說明,由于這次設(shè)計涉及到數(shù)據(jù)庫,也學到了不少編程庫工具和數(shù)據(jù)庫連 接的知識,對數(shù)據(jù)庫的操作有了進一步的了解,總之,這次的畢業(yè)設(shè)計使我的 軟件設(shè)計水平有了巨大的提高和質(zhì)的飛躍。 參考文獻參考文獻 1陳俊榮.asp 與網(wǎng)絡(luò)數(shù)據(jù)庫技術(shù)m.北京:中國鐵道出版社,2005。 2立雅科技.dreamweaver if i pursue you i will not catch you, and if i catch you-through your own slowness and clumsiness-i will not kill you, and if i kill you i will not eat you.“ nicholas had begun to back away, and at the last; 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 teeth-each white as a bone and as big as nicholass thumbnail-showing like spectators who lined the railings of his lips. “dont run, nicholas,“ dr. island said with the voice of a wave. “it only makes him angry that you run.“ nicholas 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,.; out of breath, the thumping of his own heart the only . sound in an atmosphere silent and unwaked as earths long, prehuman day. for a time he listened for any sound ignacio might make searching for him; there was none. he drew a deep breath then and said, “well, thats over,“ expecting dr. island to answer from somewhere; there was only the green hush. the light was still bright and strong and nearly, shadowless, but some interior sense told him the day, was nearly over, and he noticed that such faint shades as he could see stretched long, horizontal distortions of their objects. he felt no hunger, but he had fasted be- fore and knew on which side of hunger he stood; 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 killed; but his stomach revolted at the thought of the raw flesh, and he did not know how he might build a fire, although ignacio seemed to have done so the night before. raw fish, even if he were able to catch a fish, would be as bad, or worse, than raw monkey; he remembered his effort to open a coconut-he had failed, but it was surely not impossible. his mind was hazy as to what a coconut might contain, but there had to be an edible core, because they were eaten in books. he decided to make a wide sweep through the jungle that would bring him back to the beach well away from ignacio; he had several times seen coconuts lying in the sand under the trees. he moved quietly, still a little afraid, trying to think of ways to open the coconut when he found it. he imagined himself standing before a large and raggedly faceted stone, holding the coconut in both hands. he raised it and smashed it down, but when it struck it was no longer a coconut but mayas head; he heard her nose cartilage break with a distinct, rubbery snap. her eyes, as blue as the sky above madhya pradesh, the sparkling blue sky of the egg, looked up at him, but he could no longer look into them, they retreated from his own, and it came to him quite suddenly that lucifer, in falling, must have fallen up, into the fires and the coldness of space, never again to see the warm blues and browns and greens of earth: 1 was watching satan fall as lightning from heaven. he had heard that on tape somewhere, but he could not remember where. he had read that on earth lightning did not come down from the clouds, but leaped up from the planetary surface toward them, never to return. “nicholas.“ he listened, but did not hear his name again. faintly water was babbling; had dr. island used that sound to speak to him? he walked toward it and found a little rill that threaded a way among the trees, and followed it. in a hundred steps it grew broader, slowed, and ended in a long blind pool under a dome of leaves. . diane was sitting on moss on the side opposite him; she looked up as she saw him, and smiled. “hello,“ he said. “hello, nicholas. i thought i heard you. i wasnt mistaken after all, was i?“ “i didnt think i said anything.“ he tested the dark water with his foot and found that it was very cold. “you gave a little gasp, i fancy. i heard it, and i said to myself, thats nicholas, and i called you. then i thought i might be wrong, or that it might be ignacio.“ “ignacio was chasing me. maybe he still is, but h think hes probably given up by now.“ the girl nodded, looking into the dark waters of they pool, but did not seem to have heard him. he began to work his way around to her, climbing across the snakelike roots of the crowding trees. “why does ignacio want to kill me, diane?“ “sometimes he wants to kill me, too,“ the girl said. “but why?“ “i think hes a bit frightened of us. have you ever talked to him, nicholas?“ “today i did a little. he told me a story about a pet fish he used to have.“ “ignacio grew up all alone; did he tell you that? on= earth. on a plantation in brazil, way up the amazon -dr. island told me.“ “i thought it was crowded on earth.“ “the cities are crowded, and the countryside closes to the cities. but there are places where its emptie than it used to be. where ignacio was, there would have been red indian hunters two or three hundred years ago; when he was there, there wasnt anyone, just the machines. now he doesnt want to be looked at, doesnt want anyone around him.“ nicholas said slowly, “dr. island said lots of people wouldnt be sick if only there werent other people around all the time. remember that?“ a “only there. are other people around all the time; thats how the world is.“ “not in brazil, maybe,“ nicholas said. he was trying to remember something about brazil, but the only thing he could think of was a parrot singing in a straw hat from the comview cartoons; and then a turtle and a hedgehog that turned into armadillos for the love of god, montressor. he said, “why didnt he stay there?“ “did i tell you about the bird, nicholas?“ she had been not listening again. “what bird?“ “i have a bird. inside.“ she patted the flat stomach below her small breasts, and for a moment, nicholas thought she had really found food. “she sits in here. she has tangled a nest in my entrails, where she sits and tears at my breath with her beak. i look healthy to you, dont i? but inside im hollow and rotten and turning brown, dirt and old feathers, oozing away. her beak will break through soon.“ “okay.“ nicholas turned to go. “ive been drinking water here, trying to drown her. i think ive swallowed so much i couldnt stand up now if i tried, but she isnt even wet, and do you know something, nicholas? ive found out im not really me, im her.“ turning back nicholas asked, “when was the last time you had anything to eat?“ “i dont know. two, three days ago. ignacio gave me something.“ “im going to try to open a coconut. if i can ill bring you back some.“ when he reached the beach, nicholas turned and walked slowly back in the direction of the dead fire, this time along the rim of dampened sand between the sea and the palms. he was thinking about machines. there were hundreds of thousands, perhaps millions, of machines out beyond the belt, but few
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025標準合同范本的下載
- 2025商鋪轉(zhuǎn)讓合同簽訂有哪些注意事項
- 2025產(chǎn)品銷售合同范本
- 2025深圳市試用期勞動合同
- 2025年云南省曲靖市麒麟?yún)^(qū)中考一模歷史試題(含答案)
- 環(huán)氧樹脂地坪漆合同協(xié)議
- 電話出租出售合同協(xié)議
- 電信勞務(wù)續(xù)約合同協(xié)議
- 瓜果蔬菜售賣合同協(xié)議
- 電梯防水工程合同協(xié)議
- 形式發(fā)票模板
- 高一語文《赤壁賦》 完整版課件PPT
- DB32∕T 2880-2016 光纖傳感式橋隧結(jié)構(gòu)健康監(jiān)測系統(tǒng)設(shè)計、施工及維護規(guī)范
- 紙包裝生產(chǎn)企業(yè)設(shè)備管理課件
- 北師大版小學數(shù)學二年級下冊第三單元《練習二》教學設(shè)計建議及課本習題解析
- 貨物交接單范文
- 渤海財險非車險業(yè)務(wù)培訓
- 水工隧洞施工ppt課件
- 曝氣管安裝【曝氣設(shè)備】質(zhì)量檢驗模板
- 相似三角形培優(yōu)難題集錦含答案
- 碳纖維、鋼板加固板計算表(根據(jù)2013版加固規(guī)范 編寫)
評論
0/150
提交評論