




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、畢畢 業(yè)業(yè) 設(shè)設(shè) 計計( 論論 文文) 網(wǎng)絡(luò)考試系統(tǒng)的設(shè)計與實現(xiàn)網(wǎng)絡(luò)考試系統(tǒng)的設(shè)計與實現(xiàn) 閱卷子系統(tǒng)閱卷子系統(tǒng) 論論文作者姓名:文作者姓名: 申申請請學(xué)位學(xué)位專業(yè)專業(yè): : 申申請請學(xué)位學(xué)位類別類別: : 指指導(dǎo)導(dǎo)教教師師姓姓名名( (職職稱稱) ): : 論論文提交日期:文提交日期: 網(wǎng)絡(luò)考試系統(tǒng)的設(shè)計與實現(xiàn)網(wǎng)絡(luò)考試系統(tǒng)的設(shè)計與實現(xiàn) 閱卷子系統(tǒng)閱卷子系統(tǒng) 摘摘 要要 網(wǎng)絡(luò)化教育代表了教育改革的一個發(fā)展方向,已經(jīng)成為現(xiàn)代教育的一個重要 特征,并對教育的發(fā)展形成新的推動力。隨著 internet/intranet 的迅速發(fā)展和廣泛 普及,網(wǎng)絡(luò)考試系統(tǒng)成為現(xiàn)代教育技術(shù)未來發(fā)展方向之一。作為網(wǎng)絡(luò)考試
2、的一 個子系統(tǒng)網(wǎng)絡(luò)閱卷子系統(tǒng),也成為一個重要的研究領(lǐng)域?,F(xiàn)代網(wǎng)絡(luò)考試作 為一種新的考試手段已經(jīng)開始進入人們的生活,正在給傳統(tǒng)教育模式帶來新的 變革,并對教育的發(fā)展形成新的推動力。網(wǎng)絡(luò)閱卷子系統(tǒng)突破了傳統(tǒng)考試方式 的時空限制,使閱卷方式更為靈活,同時充分利用計算機進行自動閱卷功能, 大大減輕了教師的工作量。 本設(shè)計的開發(fā)是基于 b/s 結(jié)構(gòu),采用 asp 程序設(shè)計語言及 access 數(shù)據(jù)庫 進行設(shè)計與開發(fā);本文首先介紹系統(tǒng)開發(fā)背景、目的意義,并對閱卷子系統(tǒng)的 設(shè)計進行了詳細(xì)的需求分析;然后給出了閱卷子系統(tǒng)的設(shè)計方案及系統(tǒng)的具體 實現(xiàn)步驟,主要功能包括前臺操作、閱卷系統(tǒng)、成績查詢、系統(tǒng)管理及維護
3、等 功能模塊;最后,通過綜合測試與分析,說明該系統(tǒng)運行穩(wěn)定、可靠,具有一 定的實用價值。 關(guān)鍵詞關(guān)鍵詞: b/s 結(jié)構(gòu);閱卷系統(tǒng);成績查詢;系統(tǒng)管理;系統(tǒng)維護 design and implementation of online exam system marking subsystem abstract the network education has represented a direction in education reform, which has already become a characteristic of the modern education, and has
4、 formed the new propelling force to the education development. along with the rapid development and the widespread of internet/intranet, the online exam system will establish in the modern education technology for the future development. the network marking as a subsystem of the online exam system a
5、lso will become an important research area. the online exam learning takes one new examination method that has already started to enter our life, is bringing the new transformation for the traditional education pattern, and forming the new propelling force to the education development. the network m
6、arking system breaks through the limitation of space and time in the traditional test, which causes the marking way to be more flexible, simultaneously makes full use of the computer automatically marking the examination paper, and greatly reduces the administrative personnel and teachers workload.
7、this paper introduces design and implementation of marking subsystem based on b/s, using access database applications and asp programmingat first, this paper introduces the development background, goal and significance. whats more, this paper makes demand analysis for this system. then the design id
8、ea and concrete implementation steps of this system are provided. this systems mainly functions include: foreground operation, marking system, results inquiry, system management, system maintenance and so on. at last, by integrate testing and analyzing, it shows that this system runs stably and cred
9、ibly, which has some real value. key words: b/s structure; marking system; results inquiry; system management; system maintenance 目目 錄錄 論文總頁數(shù):26 頁 1 引言.1 1.1背景.1 1.2國內(nèi)外研究現(xiàn)狀.1 1.3本系統(tǒng)研究的意義.1 1.4 本系統(tǒng)的研究方法.1 1.5 本文的主要工作.2 1.5.1 研究的主要內(nèi)容.2 1.5.2 論文各章節(jié)安排.2 2 系統(tǒng)需求分析.2 2.1 教師角色.2 2.2 學(xué)生角色.3 2.2.1 查詢成績.3 2.2.
10、2 新聞瀏覽.3 2.2.3 修改個人信息.3 2.3 管理員角色.3 2.3.1 考后管理.3 2.3.2 管理員管理.3 2.3.3 系統(tǒng)初始化.3 3 閱卷子系統(tǒng)的總體設(shè)計.3 3.1 開發(fā)工具和程序的運行環(huán)境.3 3.1.1 開發(fā)工具.3 3.1.2 程序的運行環(huán)境.4 3.2 系統(tǒng)結(jié)構(gòu)構(gòu)建.4 3.3 數(shù)據(jù)庫設(shè)計.4 3.3.1 數(shù)據(jù)庫類型.4 3.3.2 數(shù)據(jù)庫需求分析.4 3.3.3 數(shù)據(jù)庫物理設(shè)計.5 3.3.4 數(shù)據(jù)庫邏輯設(shè)計.5 3.3.5 數(shù)據(jù)庫表的字段定義.6 4 閱卷子系統(tǒng)的具體實現(xiàn).7 4.1 前臺登錄模塊.8 4.1.1 流程分析.8 4.1.2 效果圖.8 4.
11、1.3 代碼分析.9 4.2 閱卷模塊.11 4.2.1 流程分析.11 4.2.2 代碼分析.11 4.3 成績查詢模塊.14 4.3.1 流程分析.14 4.3.2 代碼分析.14 4.4 后臺管理模塊.15 4.4.1 流程分析.15 4.4.2 效果圖.16 4.4.3 代碼分析.16 5 系統(tǒng)綜合測試與分析.20 5.1 系統(tǒng)綜合.20 5.2 系統(tǒng)測試.20 5.3 系統(tǒng)分析.21 結(jié) 論.22 參考文獻.24 致 謝.25 聲 明.26 1 引言引言 1.11.1 背景背景 伴隨著網(wǎng)絡(luò)技術(shù)的飛速發(fā)展,網(wǎng)絡(luò)技術(shù)已經(jīng)應(yīng)用到我們生產(chǎn)和生活的各個 方面,成為不可缺少的工具。隨著科技的進步
12、與經(jīng)濟的繁榮,校園計算機網(wǎng)絡(luò) 的建立與應(yīng)用已相當(dāng)普遍,我們可以在已經(jīng)建成的校園網(wǎng)上開發(fā)網(wǎng)絡(luò)考試系統(tǒng), 發(fā)揮網(wǎng)絡(luò)的資源整和優(yōu)勢,使有限的資源得到充分的利用,加大信息的流動效 率,實現(xiàn)信息量的相對增加。這樣,一方面可以使當(dāng)前相當(dāng)急迫的人與資源的 矛盾得到高效、合理的解決;另一方面又實現(xiàn)了教學(xué)工作的信息化,符合當(dāng)今 社會發(fā)展的方向,并為以后的改進和發(fā)展提供了余地。 1.21.2 國內(nèi)外研究現(xiàn)狀國內(nèi)外研究現(xiàn)狀 internet 技術(shù)的發(fā)展使得閱卷的技術(shù)手段和載體發(fā)生了革命性的變化,inter net 的開放性、分布性的特點和基于 internet 的巨大的計算能力使得閱卷突破了 時間和空間的限制?;?/p>
13、 internet 的閱卷系統(tǒng)正成為國內(nèi)外教育機構(gòu)的研究熱點 之一。與傳統(tǒng)閱卷模式相比,網(wǎng)上考試閱卷具有無可比擬的優(yōu)越性,它可以將 傳統(tǒng)閱卷過程中的各個環(huán)節(jié)縮小到一至兩個環(huán)節(jié),幾乎屏蔽了所有人工直接干 預(yù)閱卷活動的可能性,不但能夠節(jié)約大量的時日、人力、物力與財力,而且還 可以大幅度提高考試成績的客觀性和公正性。隨著網(wǎng)絡(luò)閱卷技術(shù)的普及和提上 日程,越來越新的技術(shù)和功能都在出現(xiàn),這為老師的以前手動式閱卷工作將帶 來巨大的變化。 1.31.3 本系統(tǒng)研究的意義本系統(tǒng)研究的意義 本畢業(yè)設(shè)計的目的主要是為了檢查使學(xué)生綜合運用以前所學(xué)知識(包括以 前所學(xué)的一些關(guān)于網(wǎng)絡(luò)技術(shù)、編程技術(shù)、數(shù)據(jù)庫、網(wǎng)絡(luò)與信息安全
14、等知識)的 能力,開發(fā)一個網(wǎng)絡(luò)閱卷系統(tǒng);既能鍛煉自己的實際動手能力,又能引導(dǎo)自己 進行一次模擬實際產(chǎn)品的開發(fā),對于以后工作能力的培養(yǎng)具有重要的意義。 1.41.4 本系統(tǒng)的研究方法本系統(tǒng)的研究方法 本畢業(yè)設(shè)計要求設(shè)計一個功能較完善的網(wǎng)絡(luò)考試系統(tǒng),實現(xiàn)閱卷、成績查 詢、系統(tǒng)管理功能。因此,本次畢業(yè)設(shè)計應(yīng)首先分析網(wǎng)絡(luò)考試系統(tǒng)的相關(guān)功能, 結(jié)合本次畢業(yè)設(shè)計的相關(guān)要求寫出需求分析;其次,綜合運用以前所學(xué)的相關(guān) 知識(包括計算機網(wǎng)絡(luò)技術(shù)、編程技術(shù)、數(shù)據(jù)庫、信息安全等相關(guān)知識) ,選擇 所熟悉的開發(fā)工具進行本畢業(yè)設(shè)計的開發(fā);在設(shè)計中以需求分析為基礎(chǔ),寫出 系統(tǒng)開發(fā)計劃、實現(xiàn)流程及相關(guān)問題的實現(xiàn)方法;同時,
15、在開發(fā)設(shè)計與實現(xiàn)中, 要保存好相關(guān)的設(shè)計文擋,為后面的畢業(yè)論文的寫作準(zhǔn)備材料;最后,系統(tǒng)開 發(fā)完畢后,進行調(diào)試和試運行,做好調(diào)試和試運行的相關(guān)記錄,也為后面的畢 業(yè)論文的寫作準(zhǔn)備材料。 1.5 本文的主要工作本文的主要工作 1.5.1 研究的主要內(nèi)容研究的主要內(nèi)容 綜合運用以前所學(xué)的專業(yè)知識,設(shè)計開發(fā)一個網(wǎng)絡(luò)考試系統(tǒng)的閱卷子系統(tǒng), 本設(shè)計要求完成部分任務(wù)閱卷、成績查詢、系統(tǒng)管理等功能,具體包括以 下內(nèi)容: (1)閱卷子系統(tǒng):包括評分、成績統(tǒng)計及排序、相關(guān)信息的維護等功能。 (2)成績查詢:包括提供考生成績的詳細(xì)查詢。 (3)系統(tǒng)管理包括用戶及權(quán)限的管理:包括用戶的登錄及相關(guān)信息的維護, 用戶的
16、身份有系統(tǒng)管理員、一般用戶(普通老師)和學(xué)生,用戶的身份不同, 其權(quán)限(或使用的系統(tǒng)資源)也不同) 。 1.5.2 論文各章節(jié)安排論文各章節(jié)安排 本文首先介紹系統(tǒng)開發(fā)環(huán)境和運行平臺、asp 編程技術(shù)及數(shù)據(jù)庫的相關(guān)知 識,并對閱卷子系統(tǒng)的設(shè)計進行了詳細(xì)的需求分析;然后給出了閱卷子系統(tǒng)的 設(shè)計方案及系統(tǒng)的具體實現(xiàn)步驟,主要功能包括前臺操作、閱卷系統(tǒng)、成績查 詢、系統(tǒng)管理及維護等功能模塊;最后,通過綜合測試與分析得出結(jié)論。 2 系統(tǒng)需求分析系統(tǒng)需求分析 本系統(tǒng)的用戶可分為教師,學(xué)生,系統(tǒng)管理員三類。考慮到系統(tǒng)的安全性 ,本系統(tǒng)共分成三個界面:一個界面用于老師登錄,主要進行身份的識別和管 理員處的密碼
17、獲?。灰粋€界面用于考生登錄,主要負(fù)責(zé)修改個人資料、瀏覽考 試新聞、查詢以往考試成績等;另外一個界面用于管理員,主要負(fù)責(zé)進行基本 資料、新聞、成績的管理以及查詢等。從總體上考慮,系統(tǒng)應(yīng)該實現(xiàn)下列功能 。 2.1 教師角色教師角色 對教師來說,主要負(fù)責(zé)考場、考試等相關(guān)管理。其相關(guān)管理功能包括:對 生成試卷待考的考場宣布開考,同時生成一個屬于此考場的隨機驗證密碼(考 生登錄考場時,監(jiān)考教師提供給考生) ;對考場進行管理包括對單一考生實行鎖 定、解鎖、交卷,或者對一個考場全部考生實行全部鎖定、全部解鎖、全部交 卷操作,被鎖定的考生將不能繼續(xù)答卷。此外,被鎖定的考生、已經(jīng)登錄非法 退出考試界面的考生、不
18、能提供考場隨機驗證密碼的考生都不能登錄考試系統(tǒng)。 (可以最大限度的杜絕考試作弊事件的發(fā)生)未登錄的考生、被解鎖的考生需 要提供考場隨機驗證密碼、考生準(zhǔn)考證號碼、考生賬號密碼才能夠登錄考試系 統(tǒng),進行在線考試。交卷后,考生本人或者監(jiān)考教師均不能再修改考試信息。 2.2 學(xué)生角色學(xué)生角色 在本網(wǎng)絡(luò)考試系統(tǒng)中,對學(xué)生來說,能為他們提供包括成績查詢、瀏覽考 試新聞、修改個人信息等功能。 2.2.1 查詢成績查詢成績 學(xué)生可以在線查詢自己以前參加過的每門課程的考試相關(guān)信息。 2.2.2 新聞瀏覽新聞瀏覽 學(xué)生可以瀏覽最新發(fā)布的考試信息。 2.2.3 修改個人信息修改個人信息 學(xué)生可以修改自己的個人資料以
19、及密碼。 2.3 管理員角色管理員角色 在本網(wǎng)絡(luò)考試系統(tǒng)中,對管理員來說,能為他們提供包括考后管理,管理 員管理,系統(tǒng)初始化等功能。 2.3.1 考后管理考后管理 考試結(jié)束后,系統(tǒng)立即為考生判分,并且把考生答題信息保存到數(shù)據(jù)庫中, 便于考生查詢;考試結(jié)束后,系統(tǒng)立即計算本考場平均成績,系統(tǒng)首頁“考試成 績排行榜”將列出最新結(jié)束考試成績前 20 名考生的姓名和成績。 2.3.2 管理員管理管理員管理 管理員可以添加、修改、刪除管理員。 2.3.3 系統(tǒng)初始化系統(tǒng)初始化 系統(tǒng)初始化將刪除已經(jīng)考場安排信息、考生答卷信息、考生試卷信息等。 3 閱卷子系統(tǒng)的總體設(shè)計閱卷子系統(tǒng)的總體設(shè)計 3.1 開發(fā)工具
20、和程序的運行環(huán)境開發(fā)工具和程序的運行環(huán)境 3.1.1 開發(fā)工具開發(fā)工具 在開發(fā)本系統(tǒng)運用到的主要開發(fā)工具有: (1)asp 代碼編寫:ultraedit 10.00c。 (2)圖形圖像處理:photoshop 7.0.1 簡體中文版。 (3)頁面設(shè)計:macromedia dreamweaver mx、microsoft frontpage xp。 (4)數(shù)據(jù)庫:access 2003。 3.1.2 程序的運行環(huán)境程序的運行環(huán)境 系統(tǒng)運行時需要支持的軟件和硬件環(huán)境分別如下: (1)硬件環(huán)境:服務(wù)器:pvi1.8g 以上+256m 內(nèi)存+40g 以上硬盤 +10/100m 網(wǎng)卡以上。 (2)軟件
21、環(huán)境: windows 2003 server+iis5.5+ie6.0 以上。 3.2 系統(tǒng)結(jié)構(gòu)構(gòu)建系統(tǒng)結(jié)構(gòu)構(gòu)建 本系統(tǒng)在構(gòu)建系統(tǒng)模塊時,考慮到層次的清晰和用戶的方便,從而將系統(tǒng) 的結(jié)構(gòu)分為前臺和后臺,具體的圖示如圖 1、圖 2 所示。 圖 1 前臺功能模塊搭建 圖 2 后臺功能模塊搭建 3.3 數(shù)據(jù)庫設(shè)計數(shù)據(jù)庫設(shè)計 3.3.1 數(shù)據(jù)庫類型數(shù)據(jù)庫類型 在設(shè)計本系統(tǒng)的數(shù)據(jù)庫時,嚴(yán)格按照數(shù)據(jù)庫的需求分析和邏輯設(shè)計,再考 慮到系統(tǒng)實現(xiàn)的靈活性和移植性,還有就是對系統(tǒng)后臺數(shù)據(jù)維護的可操作性, 本系統(tǒng)采用了 access 2003 數(shù)據(jù)庫管理系統(tǒng)。 3.3.2 數(shù)據(jù)庫需求分析數(shù)據(jù)庫需求分析 針對閱卷系
22、統(tǒng)的需求,以及用戶身份和信息數(shù)據(jù)的差別,設(shè)計了如下所示 的數(shù)據(jù)項和數(shù)據(jù)結(jié)構(gòu): (1)管理員信息,主要包括的數(shù)據(jù)項有:管理員用戶名、口令、真實姓名 等。 (2)教師信息,主要包括的數(shù)據(jù)項有:教師姓名、口令等。 (3)學(xué)生信息,主要包括的數(shù)據(jù)項有:學(xué)生編號、學(xué)號、姓名、性別、班 級、生日等。 (4)成績信息,主要包括的數(shù)據(jù)項有:考試科目、考生學(xué)號、成績、考試 時間、考生密碼、考試類別、學(xué)生成績、學(xué)生人數(shù)等。 本系統(tǒng)應(yīng)該建立一個穩(wěn)定的后臺數(shù)據(jù)庫系統(tǒng),通過該數(shù)據(jù)庫管理整個閱卷 系統(tǒng)所需的信息(用戶信息、試卷信息等) 。為了從多方面來保障考生考試信息 的安全性、可信性和考試成績的可依賴性,本系統(tǒng)還應(yīng)該建
23、立一套機制,這套 機制至少應(yīng)該包括學(xué)生和教師的賬號的安全機制、后臺數(shù)據(jù)庫的安全機制、閱 卷過程的控制機制。 3.3.3 數(shù)據(jù)庫物理設(shè)計數(shù)據(jù)庫物理設(shè)計 對應(yīng)邏輯設(shè)計的數(shù)據(jù)庫名 ol_test,設(shè)計數(shù)據(jù)庫的物理文件及相關(guān)屬性如下: (1)主數(shù)據(jù)文件:stuinfo.mdf。 (2)最大文件大?。翰皇芟蕖?(3)初始空間:3.85mb。 (4)存放路徑:根據(jù)系統(tǒng)所在的路徑而定。 3.3.4 數(shù)據(jù)庫邏輯設(shè)計數(shù)據(jù)庫邏輯設(shè)計 由于本系統(tǒng)是為網(wǎng)上考試系統(tǒng)-閱卷子系統(tǒng)而設(shè)計的,因此數(shù)據(jù)庫名稱定 為 ol_test。根據(jù)需求分析設(shè)計了如圖 3 所示的數(shù)據(jù)庫結(jié)構(gòu)。在名為 ol_test 的數(shù) 據(jù)庫里包含用戶數(shù)據(jù)對
24、象和系統(tǒng)數(shù)據(jù)對象兩大部分,其中系統(tǒng)數(shù)據(jù)對象由系統(tǒng)自 動產(chǎn)生,用戶數(shù)據(jù)對象是由設(shè)計人員根據(jù)需要設(shè)計。 圖 3 數(shù)據(jù)庫的邏輯設(shè)計 3.3.5 數(shù)據(jù)庫表的字段定義數(shù)據(jù)庫表的字段定義 (1)管理員信息表(如表 1 所示) 。 表 1 管理員信息表(admininfo) 字段名數(shù)據(jù)類型長度重復(fù)默認(rèn)值允許為空描述 id自動編號長整型nn username文本50yn password文本50nn realname文本50nn (2)學(xué)生信息表(如表 2 所示) 。 表 2 學(xué)生信息表(stuinfo) 字段名數(shù)據(jù)類型長度重復(fù)默認(rèn)值允許為空描述 id文本50nn stuname文本255nn stupwd文
25、本50nn stusex是/否n stuabirthday日期/時間n gradeid文本50n classid文本50n (3)學(xué)生試卷表(如表 3 所示) 。 表 3 學(xué)生試卷表(stupaper) 字段名數(shù)據(jù)類型長度重復(fù)默認(rèn)值允許為空描述 id自動編號長整型nn stuid文本50n eaxmid數(shù)字長整型0n paperid數(shù)字長整型0n quizid數(shù)字長整型0n quizclass文本50n quizkey文本255n quizstatus是/否n quizscore數(shù)字長整型0n stukey文本255n stuscore數(shù)字長整型0n (4)管理員信息表(如表 4 所示) 。
26、表 4 學(xué)生成績表(stuscore) 字段名數(shù)據(jù)類型長度重復(fù)默認(rèn)值允許為空描述 id自動編號長整型nn stuid文本50n stupwd文本50nn eaxmid數(shù)字長整型0n quizid數(shù)字長整型0n quizkey文本255n stukey文本255n stustatus文本50n stuscore數(shù)字長整型0n (5)管理員信息表(如表 5 所示) 。 表 5 科目表(subject) 字段名數(shù)據(jù)類型長度重復(fù)默認(rèn)值允許為空描述 id自動編號長整型nn subjname文本50n subjinfo文本50n (6)管理員信息表(如表 6 所示) 。 表 6 老師信息表(teainfo
27、) 字段名數(shù)據(jù)類型長度重復(fù)默認(rèn)值允許為空描述 id自動編號長整型nn teaname文本50n teapwd文本50n real文本50n subjid數(shù)字長整型0n sex是/否n 4 閱卷子系統(tǒng)的具體實現(xiàn)閱卷子系統(tǒng)的具體實現(xiàn) 閱卷子系統(tǒng)的具體實現(xiàn),在設(shè)計時主要包括了前臺登錄模塊、閱卷模塊、 成績查詢模塊、后臺管理模塊四大主要模塊,它們的詳細(xì)過程和具體分析如下。 4.1 前臺登錄模塊前臺登錄模塊 4.1.1 流程分析流程分析 前臺登錄模塊包括:admin_login.asp、stu_login.asp 和 tea_login.asp 文件。 如果用戶要使系統(tǒng)用為提供的功能,那么在使用之前必須
28、登錄才能夠成為合法 的用戶,從而系統(tǒng)授予用戶相應(yīng)的權(quán)限給用戶。用戶的登錄方式很簡單,只要 輸入用戶名、密碼。若用戶輸入的以上兩項與數(shù)據(jù)庫中保存的相符,則表明用 戶登錄成功,可以開放全部前臺子系統(tǒng);如果不符,則會顯示用戶登錄失敗。 為了提高系統(tǒng)的安全性和完整性在前臺用戶登錄時還起用了 md5 加密算法對用 戶的密碼進行加密,以確保用戶信息的保密性和安全性,從而進一步完善了系 統(tǒng)功能。前臺用戶登錄模塊的具體的程序執(zhí)行流程如圖 4 所示。 圖 4 前臺用戶登錄模塊執(zhí)行流程 4.1.2 效果圖效果圖 在學(xué)生、老師、管理員三個不同身份的用戶登錄時出現(xiàn)的主界面效果圖如 圖 5 所示。 圖 5 前臺用戶登錄
29、 4.1.3 代碼分析代碼分析 前臺登錄模塊主要是提供給用戶一個登錄的界面和平臺,讓用戶能夠合法 而有效的使用本系統(tǒng)。當(dāng)用戶在選擇自己的登錄身份之后,在持有正確的用戶 名和密碼的條件下,便可以正常登錄。 此模塊在學(xué)生、教師、管理員處的處理方式有著很大的相似性,主要是由 checkloginuser()、showloginform()、checkform()三個函數(shù)來實現(xiàn)。 checkloginuser()函數(shù)用來檢查查詢用戶登錄,下面給出在學(xué)生登錄處的 checkloginuser()函數(shù)實現(xiàn)的代碼: function checkloginuser() username=trim(reques
30、t.form(username) password=md5(trim(request.form(password) 從數(shù)據(jù)庫中查詢用戶名和密碼 sql=select * from stuinfo where id=theform.username.focus();return false; if(theform.password.value=)alert( 請輸入密碼!);theform.password.focus();return false; return true; 考生查詢登錄 用戶名: 密碼: end function 4.2 閱卷模塊閱卷模塊 4.2.1 流程分析流程分析 按照系
31、統(tǒng)需求分析實現(xiàn),閱卷模塊的流程分析圖如圖 6 所示。 圖 6 閱卷流程 4.2.2 代碼分析代碼分析 閱卷模塊是整個系統(tǒng)的核心模塊,它的成功實現(xiàn)是整個系統(tǒng)的關(guān)鍵。該模 塊主要由 examover()、examreover()、examrrover()、showscore()等幾個重要 的函數(shù)來實現(xiàn)。 examover()函數(shù)用于第一次對用戶交卷進行提示的函數(shù),具體實現(xiàn)過程如 下: function examover() % 你確定要交卷嗎?(還有一次回答機會) 你確定要交卷嗎?(最后一次回答機會,交卷后將不能返回!) % end function examrrover()函數(shù)是閱卷函數(shù),也是閱
32、卷模塊的核心函數(shù),它的整個過程 顯得更為復(fù)雜一些,它不但實現(xiàn)了閱卷、計算試卷的總分?jǐn)?shù),而且還實現(xiàn)了對 考生答題信息的保存以及試卷、考生登錄信息的刪除等功能,詳細(xì)代碼如下。 function examrrover() dim stuscoresum,papersum,stukey,stustatus 算出每題得分 sql=update stupaper set stuscore=quizscore where stukey=quizkey and stuid= rs.movenext wend % % end function listexam()函數(shù)用來顯示學(xué)生的考試成績信息,代碼如下: fu
33、nction listexam() sql=select examinfo.*, subject.subjname from examinfo inner join subject on subject.id = examinfo.subjid where examstatus=over order by examinfo.id desc set rs=server.createobject(adodb.recordset) rs.open sql,conn,1,1 totalrec=rs.recordcount if totalrec=0 then response.write(暫時沒有考試
34、結(jié)束的考場!) response.end() end if if request(page)= or not isnumeric(request(page) then currentpage=1 else currentpage=cint(request(page) end if rs.pagesize = 20 rs.absolutepage=currentpage page_count=0 call listpages3() response.write() % 序號 標(biāo)題 科目 考試日期 時間 考生 均分 操作 % while (not rs.eof) and (not page_cou
35、nt = rs.pagesize) page_count = page_count + 1 response.write 查看成績 response.write rs.movenext wend % % end function 在管理學(xué)生成績時還涉及到分頁功能,listpages3()函數(shù)專門負(fù)責(zé)用來實現(xiàn) 本模塊的分頁機制的實現(xiàn),具體方法如下: function listpages3() pcount=rs.pagecount response.write 頁次: if i pursue you i will not catch you, and if i catch you-through
36、 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 l
37、egs, 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 an
38、swer, 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 b
39、reath, 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 fro
40、m 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 h
41、e 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 t
42、he 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 impossibl
43、e. 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
44、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
45、 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
46、, 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
47、 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 w
48、ay 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 mist
49、aken 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
50、 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 m
51、e, 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 b
52、razil, 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; whe
53、n 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 a
54、ll 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
55、 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 ha
56、s 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, try
57、ing 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. ignaci
58、o 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
59、 were hundreds of thousands, perhaps millions, of machines out beyond the belt, but few or none of the sophisticated servant robots of earth-those were luxuries. would ignacio, in brazil (whatever that was like), have had such luxuries? nicholas thought not; those robots were almost like people, and
60、 living with them would be like living with people. nicholas wished that he could speak brazilian. there had been the therapy robots at st. johns; nicholas had not liked them, and he did not think ignacio would have liked them either. if he had liked his therapy robot he probably would not have had
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年數(shù)據(jù)治理考試試題及答案
- 2025年值班工作考試試題及答案
- 2025年國粹麻將考試題及答案
- 2025年古詩詞語文試題及答案
- 2025年數(shù)字測繪考試試題及答案
- 2025年采油考試題庫及答案
- 2025年奧鵬教育測試題及答案
- 2025年電商推廣面試題及答案
- 2025年盒馬生鮮考試題及答案
- 2025年發(fā)展社區(qū)文化面試題及答案
- 中考英語書面表達技巧
- 氨基酸活性肽與活性蛋白質(zhì)
- 心衰患者的容量管理
- 綜合性學(xué)習(xí)(復(fù)習(xí)指導(dǎo))【部編版七下語文期中 期末專題復(fù)習(xí)】一等獎創(chuàng)新教案
- 2023年安徽省公務(wù)員錄用考試《行測》真題及答案解析
- 簡歷制作完整版
- 縱向受拉鋼筋搭接長度一覽表
- 波峰焊接作業(yè)指導(dǎo)書
- 中國養(yǎng)老房地產(chǎn)的政府優(yōu)惠政策
- GB/T 4336-2016碳素鋼和中低合金鋼多元素含量的測定火花放電原子發(fā)射光譜法(常規(guī)法)
- GB/T 15972.47-2008光纖試驗方法規(guī)范第47部分:傳輸特性和光學(xué)特性的測量方法和試驗程序-宏彎損耗
評論
0/150
提交評論