在線(xiàn)教育系統(tǒng)1畢業(yè)設(shè)計(jì)論文.doc_第1頁(yè)
在線(xiàn)教育系統(tǒng)1畢業(yè)設(shè)計(jì)論文.doc_第2頁(yè)
在線(xiàn)教育系統(tǒng)1畢業(yè)設(shè)計(jì)論文.doc_第3頁(yè)
在線(xiàn)教育系統(tǒng)1畢業(yè)設(shè)計(jì)論文.doc_第4頁(yè)
在線(xiàn)教育系統(tǒng)1畢業(yè)設(shè)計(jì)論文.doc_第5頁(yè)
已閱讀5頁(yè),還剩67頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

在線(xiàn)教育系統(tǒng)在線(xiàn)教育系統(tǒng) 目目 錄錄 前言前言3 3 第一章第一章 編程環(huán)境基礎(chǔ)知識(shí)編程環(huán)境基礎(chǔ)知識(shí)4 4 1.1 asp 技術(shù)簡(jiǎn)介.4 1.2 access2003 技術(shù)簡(jiǎn)介 .4 第二章第二章 需求分析需求分析1 1 2.1 目標(biāo)設(shè)計(jì).1 2.2 系統(tǒng)功能分析與設(shè)計(jì).2 2.3 性能需求.2 第三章第三章 系統(tǒng)設(shè)計(jì)系統(tǒng)設(shè)計(jì)4 4 3.1 資料顯示模塊 .4 3.1.1 資料信息顯示頁(yè) 5 3.1.2 資料詳細(xì)信息頁(yè) 9 3.1.3 資料信息下載頁(yè) .11 3.1.4 提交回復(fù)作業(yè)頁(yè) .12 3.1.5 提交回復(fù)作業(yè)成功頁(yè) .13 3.1.6 教師基本信息頁(yè) .16 3.1.7 資料信息搜索頁(yè) .20 3.1.8 資料信息搜索結(jié)果頁(yè) .21 3.2 資料管理模塊 22 3.2.1 管理員登陸頁(yè) .24 3.2.2 驗(yàn)證管理員帳號(hào)頁(yè) .24 3.2.3 管理員登陸成功頁(yè) .26 3.2.4 增加資料欄目頁(yè) .27 3.2.5 增加欄目成功頁(yè) .28 3.2.6 修改欄目信息頁(yè) .30 3.2.7 保存修改的欄目信息頁(yè) .32 3.2.8 刪除欄目信息頁(yè) .34 3.2.9 刪除欄目信息成功頁(yè) .34 3.2.10 發(fā)布資料信息頁(yè) 36 3.2.11 資料信息發(fā)布成功頁(yè) 38 3.2.12 資料信息列表頁(yè) 39 3.2.13 資料信息修改頁(yè) 39 3.2.14 保存修改的資料信息頁(yè) 42 3.2.15 刪除資料信息頁(yè) 46 3.2.16 刪除資料信息成功頁(yè) 47 3.3 教師管理 50 3.3.1 搜索教師頁(yè) .51 3.3.2 教師搜索結(jié)果頁(yè) .52 3.3.3 添加教師信息頁(yè) .53 3.3.4 添加教師成功頁(yè) .54 3.3.5 修改教師信息頁(yè) .55 3.3.6 修改教師信息成功頁(yè) .57 3.3.7 刪除教師信息頁(yè) .58 3.3.8 刪除教師信息成功頁(yè) .58 第四章第四章 數(shù)據(jù)庫(kù)結(jié)構(gòu)設(shè)計(jì)數(shù)據(jù)庫(kù)結(jié)構(gòu)設(shè)計(jì)6060 4.1 數(shù)據(jù)庫(kù)需求分析 .60 4.2 數(shù)據(jù)庫(kù)邏輯設(shè)計(jì) .60 4.3 數(shù)據(jù)庫(kù)連接說(shuō)明 .61 第五章第五章 測(cè)試和維護(hù)測(cè)試和維護(hù)6262 5.1 網(wǎng)站維護(hù) .62 5.2 網(wǎng)站測(cè)試 .62 參考文獻(xiàn)參考文獻(xiàn)6363 致謝致謝6464 前言 與傳統(tǒng)教育相比,遠(yuǎn)程教育是一種全新的教育模式,它可以突破時(shí)間和空間 的限制,幫助人們隨時(shí)隨地地學(xué)習(xí),讓更多的學(xué)習(xí)者共享優(yōu)秀教育資源。遠(yuǎn)程教 育既具有開(kāi)放性、交互性、協(xié)作性和自主性等特點(diǎn),又具有異步性、實(shí)時(shí)性、 生動(dòng)性、集成性和大容量等優(yōu)勢(shì)。因此,在遠(yuǎn)程教育系統(tǒng)的建設(shè)中,單純地構(gòu) 建各種功能單一的系統(tǒng)并不能完全滿(mǎn)足遠(yuǎn)程教育建設(shè)的需求,只有那些對(duì)數(shù)據(jù) 和信息進(jìn)行了有效組織、整合了多種業(yè)務(wù)、為用戶(hù)提供個(gè)性化服務(wù)的系統(tǒng)才能 充分發(fā)揮遠(yuǎn)程教育的作用。 使用在線(xiàn)教育系統(tǒng)可以為用戶(hù)提供在線(xiàn)教案學(xué)習(xí)、在線(xiàn)提交作業(yè)和查詢(xún)教 師等服務(wù)。 第一章 編程環(huán)境基礎(chǔ)知識(shí) 1.1 asp 技術(shù)簡(jiǎn)介 microsoft active server pages 即我們所稱(chēng)的 asp,其實(shí)是一套微軟開(kāi)發(fā) 的服務(wù)器端腳本環(huán)境.active server page 是創(chuàng)建動(dòng)態(tài)網(wǎng)頁(yè)的一個(gè)很好的工具, 它起一種編程語(yǔ)言的作用,可以利用它編寫(xiě)動(dòng)態(tài)產(chǎn)生 html 的程序代碼.因此,只 要用戶(hù)瀏覽 web 站點(diǎn)并請(qǐng)求一個(gè) asp 頁(yè),web 服務(wù)器就可以處理相應(yīng)的 asp 代碼,生 成 html 代碼,然后將它傳遞到用戶(hù)瀏覽器并顯示出網(wǎng)頁(yè). asp 程序的優(yōu)點(diǎn): 1,asp 使用 vbscript 腳本語(yǔ)言直接源于 vb 語(yǔ)言,秉承了 vb 簡(jiǎn)單易學(xué)的特 點(diǎn),掌管起來(lái)非常容易. 2,無(wú)須編譯,容易編寫(xiě),可在服務(wù)器端直接執(zhí)行. 3,利用 ado 組件輕松存取數(shù)據(jù)庫(kù). 4,與瀏覽器無(wú)關(guān),客戶(hù)端只要使用可執(zhí)行 html 碼的瀏覽器,即可瀏覽 asp 所 設(shè)計(jì)的網(wǎng)頁(yè)內(nèi)容. 5,asp 能與任何 activex scripting 語(yǔ)言相容.除了可使用 vbscript 或 javascript 語(yǔ)言來(lái)設(shè)計(jì)外,還通過(guò) plug-in 的方式,使用由第三方所提供的其他 腳本語(yǔ)言. 6,asp 技術(shù)的處理速度相當(dāng)快,并且其安全性也很高,asp 的源程序,不會(huì)被 傳到客戶(hù)瀏覽器,因而可以避免所寫(xiě)的源程序被他人剽竊,也提高了程序的安全 性. 7,asp 的對(duì)象和組件:asp 有 7 個(gè)固有對(duì)象這 7 個(gè)固有對(duì)象分別是 request,response,server,application,session,asperror 和 objectcontext. 1.2 access2003 技術(shù)簡(jiǎn)介 access2003 就是關(guān)系數(shù)據(jù)庫(kù)開(kāi)發(fā)工具,數(shù)據(jù)庫(kù)能匯集各種信息以供查詢(xún),存 儲(chǔ)和檢索.那么什么叫數(shù)據(jù)庫(kù)呢 數(shù)據(jù)庫(kù)(database)是由一些有意義和有關(guān)系的 數(shù)據(jù)(data)所組合而成.一個(gè)數(shù)據(jù)庫(kù)中,包含了許多條記錄(record),而每條記錄 是由多個(gè)字段(field)所組成,不同的字段存放這不同的數(shù)據(jù).所以數(shù)據(jù)庫(kù)的嚴(yán)格 定義是一組相關(guān)記錄的集合,而字段則是最基本的數(shù)據(jù)項(xiàng),也是數(shù)據(jù)庫(kù)中最小的 單位.在計(jì)算機(jī)中用來(lái)幫我們管理數(shù)據(jù)庫(kù)的系統(tǒng),我們稱(chēng)之為數(shù)據(jù)庫(kù)管理管理系 統(tǒng)(database management system dbms).數(shù)據(jù)庫(kù)管理系統(tǒng)是架構(gòu)在一個(gè)或多個(gè) 數(shù)據(jù)庫(kù)之上,并針對(duì)數(shù)據(jù)庫(kù)中的數(shù)據(jù)進(jìn)行管理運(yùn)用. access 的優(yōu)點(diǎn)在于它能使用數(shù)據(jù)表示圖或自定義窗體收集信息,數(shù)據(jù)表示 圖提供了一種類(lèi)似于 excel 的電子表格,可以使數(shù)據(jù)庫(kù)一目了然.另外,access 允許創(chuàng)建自定義報(bào)表用于打印或輸出數(shù)據(jù)庫(kù)中的信息.access 也提供了數(shù)據(jù)存 儲(chǔ)庫(kù),可以使用桌面數(shù)據(jù)庫(kù)文件把數(shù)據(jù)庫(kù)文件置于網(wǎng)絡(luò)文件服務(wù)器,與其他網(wǎng)絡(luò) 用戶(hù)共享數(shù)據(jù)庫(kù).如上所述,access 作為關(guān)系數(shù)據(jù)庫(kù)開(kāi)發(fā)具備了許多優(yōu)點(diǎn),可以 在一個(gè)數(shù)據(jù)包中同時(shí)擁有桌面數(shù)據(jù)庫(kù)的便利和關(guān)系數(shù)據(jù)庫(kù)的強(qiáng)大功能. 第二章 需求分析 一個(gè)典型的在線(xiàn)教育系統(tǒng)至少應(yīng)包含資料顯示、資料管理和教師管理 3 種 功 能。本站的系統(tǒng)結(jié)構(gòu)如圖 21 所示。 2-1 系統(tǒng)結(jié)構(gòu) 2.1 目標(biāo)設(shè)計(jì) 在線(xiàn)教育系統(tǒng)所要實(shí)現(xiàn)的功能如下。 資料顯示模塊 顯示資料 顯示教師介紹 瀏覽查閱資料 回復(fù)提交資料 資料管理模塊 資料欄目管理 發(fā)布資料 管理資料 教師管理模塊 添加教師信息 編輯教師信息 刪除教師信息 2.2 系統(tǒng)功能分析與設(shè)計(jì) 在線(xiàn)教育系統(tǒng)共分為 3 個(gè)模塊:資料顯示模塊、資料管理模塊和教師管理 模塊,其功能模塊劃分如圖所示。 資料顯示模塊 資料顯示 資料搜索 資料管理模塊 管理員登陸 資料欄目管理 資料信息管理 教師信息添加 教師信息修改 教師信息刪除 教師管理模塊 2.3 性能需求 開(kāi)發(fā)環(huán)境 1. windowsxp 操作系統(tǒng) 2. 80g 的硬盤(pán)空間 3. amd2500+處理器 4. 17 # 純平監(jiān)視器 5. 512 內(nèi)存 適用環(huán)境 1.windows98/me/2000/xp 操作系統(tǒng) 2.1g 以上的硬盤(pán)空間 3.inter 賽揚(yáng) 1.0g 以上處理器 4.15 # 普通監(jiān)視器以上 5.32m 以上內(nèi)存 第三章 系統(tǒng)設(shè)計(jì) 3.1 資料顯示模塊 資料顯示模塊包含以下子模塊。 資料顯示 資料搜索 資料顯示子模塊包含以下頁(yè)面。 index.asp detail.asp download.asp teacherinfo.asp 資料搜索子模塊包含以下頁(yè)面。 search.asp list.asp 各頁(yè)面間的關(guān)系如圖 3-1 所示。 3-1 各頁(yè)面間的關(guān)系 3.1.1 資料信息顯示頁(yè) 1. index.asp 頁(yè)面示例 圖 3-2 為顯示資料信息所看到的頁(yè)面。 圖 3-2 顯示資料信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素。 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息。 此頁(yè)面用來(lái)顯示資料信息,使用了系統(tǒng)中的資料信息表 main 和教師信息表 teacher。 4. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用網(wǎng)站設(shè)置文件 date() then rs(“todaydate“) = date() rs.update todaytimes = 0 end if 總訪(fǎng)問(wèn)統(tǒng)計(jì) if request.cookies(“counted“) html 頁(yè)面顯示部分 “ else if len(rs(“title“) 10 then filetitle = left(rs(“title“),10) title=“查 看的個(gè)人專(zhuān)集“ 3.1.2 資料詳細(xì)信息頁(yè) 1. etail.asp 頁(yè)面示例 圖 3-3 為顯示資料詳細(xì)信息的頁(yè)面。 圖 3-3 資料詳細(xì)信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素。 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 面所涉及的數(shù)據(jù)庫(kù)表信息。 此頁(yè)使用了系統(tǒng)中的資料信息表 main 和教師信息表 teacher。 4. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用網(wǎng)站設(shè)置文件 alert(沒(méi)有找到您要查看的記錄);window.close(); “ response.end end if 打開(kāi)記錄集對(duì)象 set rs = server.createobject(“adodb.recordset“) sql = “select * from main,teacher,type where main.idofteacher=teacher.teacherid and main.idoftype=type.typeid and main.mainid=“window.close(); “ response.end else % html 頁(yè)面顯示部分,顯示資料的詳細(xì)信息 alert(沒(méi)有找到您要閱讀的資料);window.close(); “ response.end end if sql = “select * from main where mainid=“window.close(); “ response.end 如果資料詳細(xì)信息存在 else 該資料閱讀數(shù)加 1 rs(“times“) = rs(“times“) + 1 rs.update 頁(yè)面下載或者打開(kāi)資料信息 response.redirect rs(“fileurl“) 關(guān)閉記錄集對(duì)象 rs.close set rs = nothing 關(guān)閉數(shù)據(jù)庫(kù)連接對(duì)象 conn.close set conn = nothing end if % 3.1.4 提交回復(fù)作業(yè)頁(yè) 1. redetail.asp 頁(yè)面示例 圖 3-5 為提交回復(fù)作業(yè)信息所看到的頁(yè)面。 圖 3-5 提交回復(fù)作業(yè)信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)中有 3 個(gè)表單元素,如表 1 所示。 表 1 redetail.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 nametext 學(xué)生姓名 20 titletext 作業(yè)標(biāo)題 20 messagetextarea 作業(yè)答案 100 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)面用來(lái)顯示提交回復(fù)作業(yè)信息,并沒(méi)有涉及到數(shù)據(jù)庫(kù)表的操作。 4. 頁(yè)面代碼分析 html 頁(yè)面表單提交到 redetailok.asp 提交作業(yè)答案 html 頁(yè)面顯示部分 3.1.5 提交回復(fù)作業(yè)成功頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的回復(fù)作業(yè)信息記錄表 work。 3. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 alert(請(qǐng)輸入學(xué)生姓名);history.go(-1);“ conn.close set conn = nothing response.end end if if len(name) 5 then response.write “alert(學(xué)生姓名不得超過(guò) 5 個(gè)漢字);history.go(-1); “ conn.close set conn = nothing response.end end if 作業(yè)標(biāo)題必須要輸入 title = trim(request(“title“) if title = “ then response.write “alert(請(qǐng)輸入作業(yè)標(biāo)題);history.go(-1);“ conn.close set conn = nothing response.end end if 作業(yè)答案必須要輸入 message = trim(request(“message“) if message = “ then response.write “alert(請(qǐng)輸入作業(yè)答案);history.go(-1);“ conn.close set conn = nothing response.end end if 作業(yè)的 id 號(hào)必須存在 reid = trim(request(“reid“) if reid = “ then response.write “alert(非法操作);history.go(-1);“ conn.close set conn = nothing response.end end if sql = “select * from work where name=“history.go(-1);“ response.end else 如果不存在則添加作業(yè)答案記錄 rs.addnew rs(“reid“)=reid rs(“name“)=name rs(“title“)=title rs(“message“)=message 添加作業(yè)答案記錄成功 rs.update 關(guān)閉記錄集對(duì)象 rs.close set rs = nothing 關(guān)閉數(shù)據(jù)庫(kù)連接對(duì)象 conn.close set conn = nothing end if response.write “alert(添加成功); window.location.href=index.asp;“ % 3.1.6 教師基本信息頁(yè) 1. teacherinfo.asp 頁(yè)面示例 圖 3-6 為顯示教師基本信息所看到的頁(yè)面。 圖 3-6 顯示教師基本信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)面用來(lái)顯示教師基本信息,此頁(yè)使用了系統(tǒng)中的資料信息表 main 和教師 信息表 teacher。 4. 頁(yè)面代碼分析 alert(請(qǐng)不要搗亂); top.window.location.href=index.asp;“ response.end end if 判斷用戶(hù)是否是管理員 if session(“admin“) = “admin“ then isadmin = true else isadmin = false end if 判斷用戶(hù)是否是教師 if session(“teacherid“) 5 then response.write “alert(欄目名不得超過(guò) 5 個(gè)漢字);history.go(-1); “ conn.close set conn = nothing response.end end if 查找欄目信息表是否有欄目名相同的記錄 sql = “select * from type where type=“ history.go(-1);“ response.end else 如果沒(méi)有記錄則可以添加了 rs.addnew rs(“type“)=addtype rs.update 關(guān)閉記錄集對(duì)象 rs.close set rs = nothing 關(guān)閉數(shù)據(jù)庫(kù)連接對(duì)象 conn.close set conn = nothing end if response.write “alert(添加成功); window.location.href=addtype.asp;“ % 3.2.6 修改欄目信息頁(yè) 1. edittype.asp 頁(yè)面示例 圖 3-13 為修改欄目信息所看到的頁(yè)面。 圖 3-13 修改欄目信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)僅有 1 個(gè)表單元素,如表 5 所示。 表 5 edittype.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 addtypetext 欄目名稱(chēng) 10 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)用來(lái)修改欄目信息頁(yè)面,使用了系統(tǒng)中的欄目信息記錄表 type。 4. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用判斷是否是管理員登陸文件 html 頁(yè)面顯示部分 html 頁(yè)面表單提交到 edittypeok.asp 將欄目“”更名為:“ “ (欄目名稱(chēng)可以如“論文” 、 “實(shí)驗(yàn)素材”等) 3.2.7 保存修改的欄目信息頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的欄目信息記錄表 type。 3. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用判斷是否是管理員登陸文件 alert(請(qǐng)輸入欄目名);history.go(-1);“ conn.close set conn = nothing response.end end if 欄目名稱(chēng)的長(zhǎng)度不能大于 5 if len(addtype) 5 then response.write “alert(欄目名不得超過(guò) 5 個(gè)漢字);history.go(-1); “ conn.close set conn = nothing response.end end if 打開(kāi)欄目信息表查找需要修改的欄目名稱(chēng) sql = “select * from type where type=“ history.go(-1);“ response.end end if rs.close set rs = nothing 如果修改的名稱(chēng)在數(shù)據(jù)庫(kù)中沒(méi)有記錄了則可以修改 conn.execute “update type set type=“ window.location.href=addtype.asp;“ % 3.2.8 刪除欄目信息頁(yè) 1. deltype.asp 頁(yè)面示例 圖 3-14 為刪除欄目信息所看到的頁(yè)面。 圖 3-14 刪除欄目信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的欄目信息記錄表 type。 4. 頁(yè)面代碼分析 html 頁(yè)面表單提交到 deltypeok.asp 將有下列數(shù)據(jù)被刪除 1.該欄目在數(shù)據(jù)庫(kù)中的記錄 2.所有屬于該欄目的資料 “ 3.2.9 刪除欄目信息成功頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的欄目信息記錄表 type。 3. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用判斷是否是管理員登陸文件 alert(請(qǐng)不要搗亂); top.window.location.href=adminmain.asp;“ response.end end if 查找對(duì)應(yīng) id 號(hào)的欄目信息 sql = “select * from type where typeid=“ top.window.location.href=adminmain.asp;“ response.end end if rs.close set rs = nothing 對(duì)應(yīng) id 號(hào)的欄目信息如果存在則刪除欄目信息 conn.execute “delete from type where typeid=“ window.location.href=addtype.asp;“ % 3.2.10 發(fā)布資料信息頁(yè) 1.pub.asp 頁(yè)面示例 圖 3-15 為發(fā)布資料信息所看到的頁(yè)面。 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)共有 6 個(gè)表單元素,如表 6 所示。 表 6 pub.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 teachertext 教師姓名 15 coursetext 課程名稱(chēng) 15 titletext 資料標(biāo)題 52 fileurltext 資料地址 52 filesizetext 資料大小 15 contenttextarea 資料簡(jiǎn)介 300 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)用來(lái)發(fā)布資料信息頁(yè)面,使用了系統(tǒng)中的欄目信息記錄表 type。 4. 頁(yè)面代碼分析 html 頁(yè)面表單提交到 pubok.asp html 頁(yè)面顯示部分,填寫(xiě)資料信息 請(qǐng)選擇 “ “ 關(guān)閉記錄集對(duì)象 rs.close set rs = nothing % 3.2.11 資料信息發(fā)布成功頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的資料信息記錄表 main。 3.2.12 資料信息列表頁(yè) 圖 3-16 為資料信息列表頁(yè)面。 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)面用來(lái)顯示資料信息列表,使用了系統(tǒng)中的資料信息表 main 和教師信息 表 teacher。 4. 頁(yè)面代碼分析 代碼與 3.2.8 節(jié)的刪除欄目信息頁(yè)基本相同。 3.2.13 資料信息修改頁(yè) 1. edit.asp 頁(yè)面示例 圖 3-17 為修改資料信息所看到的頁(yè)面。 圖 3-17 修改資料信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)共有 5 個(gè)表單元素,如表 7 所示。 表 7 edit.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 coursetext 課題名稱(chēng) 15 titletext 資料標(biāo)題 52 fileurltext 資料地址 52 filesizetext 資料大小 15 contenttextarea 資料簡(jiǎn)介 300 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)用來(lái)修改資料信息,使用了系統(tǒng)中的資料信息記錄表 main。 4. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用判斷是否是教師登陸文件 引用網(wǎng)站設(shè)置文件 alert(請(qǐng)不要搗亂); top.window.location.href=teachermain.asp;“ response.end end if 取得要顯示的資料信息 sql = “select * from main,teacher where main.idofteacher=teacher.teacherid and main.mainid=“ top.window.location.href=teachermain.asp;“ response.end else 如果存在判斷用戶(hù)是否有修改資料的權(quán)限 if rs(“teacherid“) “admin“ then rs.close set rs = nothing conn.close set conn = nothing response.write “alert(這個(gè)資料不是你發(fā)布的,你想干什么?); top.window.location.href=teachermain.asp;“ response.end end if end if % html 頁(yè)面顯示部分,顯示要修改的資料信息 3.2.14 保存修改的資料信息頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的資料信息表 main 和教師信息表 teacher。 3. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用判斷是否是教師登陸文件 引用網(wǎng)站設(shè)置文件 alert(請(qǐng)不要搗亂); top.window.location.href=teachermain.asp;“ response.end end if 必須輸入資料名稱(chēng) if course = “ then conn.close set conn = nothing response.write “alert(請(qǐng)輸入資料名稱(chēng));history.go(-1);“ response.end end if if len(course) 25 then conn.close set conn = nothing response.write “alert(資料名稱(chēng)不得超過(guò) 25 個(gè)漢字);history.go(-1); “ response.end end if if fileurl = “ then conn.close set conn = nothing response.write “alert(請(qǐng)輸入資料地址);history.go(-1);“ response.end end if if len(fileurl) 100 then conn.close set conn = nothing response.write “alert(資料地址不得超過(guò) 100 個(gè)英文字母);history.go(-1); “ response.end end if if title = “ then conn.close set conn = nothing response.write “alert(請(qǐng)輸入資料標(biāo)題);history.go(-1);“ response.end end if if len(title) 25 then conn.close set conn = nothing response.write “alert(資料標(biāo)題不得超過(guò) 25 個(gè)漢字);history.go(-1); “ response.end end if if typeid = “ then conn.close set conn = nothing response.write “alert(請(qǐng)選擇資料類(lèi)型);history.go(-1);“ response.end end if if filesize alert(請(qǐng)輸入簡(jiǎn)介);history.go(-1);“ response.end end if 取得要修改的資料信息 sql = “select * from main where mainid=“ top.window.location.href=teachermain.asp;“ response.end else 判斷用戶(hù)是否有修改資料的權(quán)限 if rs(“idofteacher“) “admin“ then rs.close set rs = nothing conn.close set conn = nothing response.write “alert(這個(gè)資料不是你發(fā)布的,你想干什么?); top.window.location.href=teachermain.asp;“ response.end else 如果有修改權(quán)限就修改資料信息 rs(“fileurl“)=fileurl rs(“course“)=course rs(“dateandtime“)=now() rs(“content“)=content rs(“title“)=title rs(“idoftype“)=cint(typeid) rs(“filesize“)=filesize 修改成功 rs.update 關(guān)閉記錄集對(duì)象 rs.close set rs = nothing 關(guān)閉數(shù)據(jù)庫(kù)連接對(duì)象 conn.close set conn = nothing end if end if response.write “alert(修改成功); window.location.href=edit.asp?id=“ 3.2.15 刪除資料信息頁(yè) 1. admindelcourseware.asp 頁(yè)面示例 圖 3-18 為刪除資料信息所看到的頁(yè)面 圖 3-18 個(gè)人基本檔案 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)并沒(méi)有涉及到數(shù)據(jù)庫(kù)表的操作。 4. 頁(yè)面代碼分析 html 頁(yè)面表單提交到 admindelcoursewareok.asp 刪除資料信息 將有下列數(shù)據(jù)被刪除 1.該資料在數(shù)據(jù)庫(kù)中的記錄 2.與該資料相關(guān)的已上傳資料 “ 3.2.16 刪除資料信息成功頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的資料信息表 main。 3. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用判斷是否是管理員登陸文件 alert(請(qǐng)不要搗亂); top.window.location.href=adminmain.asp;“ response.end end if 取得資料信息 sql = “select * from main where mainid=“ top.window.location.href=adminmain.asp;“ response.end else 如果信息存在則先取到文件地址先刪除 fileurl = rs(“fileurl“) rs.close set rs=nothing 如果資料已上傳至本地,則刪除資料 if left(fileurl,6) = “files/“ and mid(fileurl,7,len(teacherid)+2) = teacherid window.location.href=list.asp?teacherid=“ end if % 3.3 教師管理 教師模塊包含以下頁(yè)面。 adminteacher.asp adminsearchteacher.asp addteacher.asp addteacherok.asp editteacher.asp editteacherok.asp delteacher.asp delteacherok.asp 各頁(yè)面間的關(guān)系如圖 3-19 所示。 3-19 各頁(yè)面間的關(guān)系 3.3.1 搜索教師頁(yè) 1. adminteacher.asp 頁(yè)面示例 圖 3-20 為搜索教師信息所看到的頁(yè)面。 圖 3-20 搜索教師信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)共有 4 個(gè)表單元素,如表 8 所示。 表 8 adminteacher.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 fenlei1text 教師所屬學(xué)院 15 fenlei2text 教師所屬系 15 teachertext 教師姓名 15 idtext 教師 id 15 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)并沒(méi)有涉及到數(shù)據(jù)庫(kù)表的操作。 4. 頁(yè)面代碼分析 html 頁(yè)面表單提交到 adminsearchteacher.asp 搜索教師 html 頁(yè)面顯示部分,填寫(xiě)教師搜索信息 3.3.2 教師搜索結(jié)果頁(yè) 1. adminsearchteacher.asp 頁(yè)面示例 圖 3-21 為教師信息列表所看到的頁(yè)面。 圖 3-21 教師信息列表 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)面用來(lái)顯示教師信息列表,使用了系統(tǒng)中的教師信息表 teacher。 3.3.3 添加教師信息頁(yè) 1. addteacher.asp 頁(yè)面示例 圖 3-22 為添加教師信息所看到的頁(yè)面。 3-22 添加教師信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)用來(lái)添加教師信息,頁(yè)面中共有 13 個(gè)表單元素,如表 9 所示。 表 9 addteacher.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 fenlei1text 教師所屬學(xué)院 25 fenlei2text 教師所屬系 25 teachertext 教師姓名 25 loginnametext 登陸名 22 passwordtext 密碼 25 password1text 確認(rèn)密碼 25 asktext 密碼找回問(wèn)題 25 answertext 密碼找回答案 25 emailtext 電子郵件 25 homepagetext 個(gè)人主頁(yè) 25 qqtext qq 號(hào)碼 25 addresstext 通訊地址 25 introtextarea 個(gè)人簡(jiǎn)介 150 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)并沒(méi)有涉及到數(shù)據(jù)庫(kù)表的操作。 4. 頁(yè)面代碼分析 html 頁(yè)面表單提交到 addteacherok.asp 增加教師信息 html 頁(yè)面顯示部分,填寫(xiě)教師信息 3.3.4 添加教師成功頁(yè) 1. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)無(wú)需填寫(xiě) html 表單元素。 2. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的教師信息表 teacher。 3.3.5 修改教師信息頁(yè) 1. editteacher.asp 頁(yè)面示例 圖 3-23 為修改教師信息所看到的頁(yè)面。 圖 3-23 修改教師信息 2. 頁(yè)面中需要用戶(hù)填寫(xiě)的 html 表單元素 此頁(yè)用來(lái)修改教師信息,頁(yè)面中共有 14 個(gè)表單元素,如表 10 所示。 表 10 editteacher.asp 頁(yè)的表單元素 名稱(chēng)表單元素類(lèi)型含義最大長(zhǎng)度 fenlei1text 教師所屬學(xué)院 25 fenlei2text 教師所屬系 25 teachertext 教師姓名 25 loginnametext 登陸名 22 passwordtext 密碼 25 password1text 確認(rèn)密碼 25 asktext 密碼找回問(wèn)題 25 answertext 密碼找回答案 25 emailtext 電子郵件 25 homepagetext 個(gè)人主頁(yè) 25 qqtext qq 號(hào)碼 25 addresstext 通訊地址 25 photourltext 照片地址 25 introtextarea 個(gè)人簡(jiǎn)介 150 3. 頁(yè)面所涉及的數(shù)據(jù)庫(kù)表信息 此頁(yè)使用了系統(tǒng)中的教師信息表 teacher。 4. 頁(yè)面代碼分析 引用創(chuàng)建數(shù)據(jù)庫(kù)連接對(duì)象函數(shù)文件 引用網(wǎng)站設(shè)置文件 引用判斷是否是管理員登陸文件 alert(請(qǐng)不要搗亂!); top.window.location.href=adminmain.asp;“ end if 取得對(duì)應(yīng)教師 id 號(hào)的教師信息 sql = “select * from teacher where teacherid=“ 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,

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論