【正文】
if sMod = upl then Set Upl = () if IsObject((FILE3)) Then 39。139。fontsize:14px} th{fontfamily:宋體 ,arial。/b/font/center End if Set rs = Nothing: Set dbc = Nothing % /body /html 9 . %LANGUAGE=VBSCRIPT CODEPAGE=936% html head meta equiv=ContentType content=text/html。 where 學號 =39。,內(nèi)容 =39。< /b< /font< /center else riqi = rs(日期 ): defen = rs(得分 ) sql = update 作業(yè)題目 SET 日期 =39。jihaoamp。now()amp。dbq= amp。/textarea/td/tramp。 cols=39。_ tdb提交作業(yè)時間 /b: font color=blueamp。 set rs = (sql) if then 39。_ sReadFromDB amp。1439。 ri_qi amp。 sTemp amp。 作業(yè)提交人數(shù): /bamp。/font (至 amp。FONTSIZE: 35px39。 width=39。 amp。 sLine amp。 /td/tr/table end if /body/html % /html 7 . %LANGUAGE=VBSCRIPT CODEPAGE=936% htmlheadtitle查詢數(shù)據(jù)庫作業(yè) /title meta content=text/html。sDiramp。39。 SIZE=39。 ACTION=39。 sHW amp。/a | next end if /td/tr/table if right(xuehao,2) = 99 then 39。 si amp。 end if /td/form/tr/table table border=0 cellpadding=1 cellspacing=1 width=39。_ input type=39。hidden39。 name=39。xingming39。 value=39。tijiao39。 FONTFAMILY: 宋體 。_ brtextarea name=39。_ trtd colspan=2b學號 /b: font color=blueamp。/font 39。39。_ table border=39。 align=39。 xuehao amp。數(shù)據(jù)庫連接 strConn amp。/workamp。:sTemp=left(sXuehao,5) 39。 set rs=(strsql) if then (用戶名或密碼錯 ) end if xhNum=rs(xhNum) xMing=rs(xMing) d = DateAdd(d,365,Date) (zyxt_user_nstu) = lcase(xhNum) (zyxt_user_nstu).Expires = FormatDateTime(d) (zyxt_user_xmin) = lcase(xMing) (zyxt_user_xmin).Expires = FormatDateTime(d) % script language = JavaScript bschitchat=(39。(ls/) dim strsql,rs strsql=select * from 登陸 where 學號 = 39。,39。,39。amp。guset39。amp。如是再次提交,則對該學號進行更新記錄,覆蓋以前的內(nèi)容;若沒有提交過,則將該內(nèi)容存入數(shù)據(jù)庫中。與學生頁面不同的是多出下面的文件上傳部分。具體表結(jié)構(gòu)如下: 作業(yè)題目表:表 21 字段名 字段類型 寬度 索引 備注 日期 DATA 8 學號 文本 7 主索引 機號 文本 12 紀錄學生提交作業(yè)時所使用機器的 IP 得分 文本 2 提交作業(yè)時記錄提交次數(shù),批改時老師手動改為分數(shù) 點評 文本 150 老師手動鍵入批語 內(nèi)容 備注 8K 學生提交的作業(yè)文本,會自動替換文本中的雙引號 備注 文本 20 老師手動改一個記錄的該字段為 9,標記為范例作業(yè) 登陸表:表 22 字段名 字段類型 寬度 索引 備注 學號 文本 10 主索引 學生可以自己選定自己的登陸名 密碼 文本 10 學生在新用戶注冊是可自己填入作為登陸密碼 xhNum 文本 7 必須填入真實的學號 Y 進入系統(tǒng) 退 出 xMing 文本 10 必須填入真實的姓名 文件內(nèi)容: ( 1)注冊登錄到 [教學園地 ] ( 2)《匯編語言編程》教材 17 頁第一章所有習題 ( 1)熟悉 ASP 程序 ( 2)用 ASP 程序編寫一個登陸系統(tǒng) end (本例供模擬測試作業(yè)提交) 新作業(yè)查以 Ai( 為開始標記, i 為第 i 次作業(yè))開頭插在此行之前,日期為作業(yè)提交的最后日期,超過日期將不能提交, end行為判斷作業(yè)結(jié)束的結(jié)束行 ,以上內(nèi)容為系統(tǒng)用于讀取作業(yè)的固定格式不能刪改。 在本次課題中特別感謝崔海源老師提供的教學園地( )上的 ASP 運行空間。 ASP 運行所需的環(huán)境如下: ③ 人機交互性好,容錯性強,對用戶的操作上的錯誤,系統(tǒng)能給出相應的提示 ( 2) 系統(tǒng)功能要求 ① 用戶名認證:區(qū)別老師與同學的登錄。規(guī)定了交作業(yè)的時間,學生卻由于疏忽忘帶作業(yè)本,老師批改完后還要將作業(yè)成績寫到成績簿上,這樣費時費力。特別是ASP 技術 ,以其交互性、動態(tài)性的特點,大大擴展了互聯(lián)網(wǎng)的應用范圍,也深刻地影響了教育教學領域。 Abstract : Recently with the development of INTERNET, people in different place are able to obtain the information which they need at any time. Simultaneously the appearance of INTERNET pushes the development of education forward greatly. Especially the rapidly development of ASP technology expand the applied rage of the INTERNET, and also influenced the educational field deeply, because of the characteristic of the mutuality and dynamics. This article explains the procedure for making use of the ASP technology to build the Assignment Delivery And Correction System. This system can transform the ways students delivering and teachers correcting homework, make the students delivering it with good flexibility and free the teachers from the onerous work. This system mainly develop by DREAMWEAVER MX 關鍵詞: ASP 技術; VBScrip; JavaScrip;教育 Keywords: ASP technology; VBScript; JavaScript; Education 目 錄 需求分析 ..................................................................................... 3 1 .引言 ........................................................................................................ 3 2 .數(shù)據(jù)流圖 ................................................................................................ 3 3 .系統(tǒng)的功能及要求 ................................................................................. 4 系統(tǒng)總體設計 .............................................................................. 5 1 .系統(tǒng)功能模塊的劃分 ............................................................................. 5 2 .系統(tǒng)結(jié)構(gòu)總流程圖 ................................................................................. 5 3 .數(shù)據(jù)庫設計 ............................................................................................. 6 系統(tǒng)詳細設計 .............................................................................. 7 登陸系統(tǒng) ............................................................................................ 7 提交作業(yè)系統(tǒng) .................................................................................... 9 編碼 ........................................................................................... 13 1 . ...............................................................................................13 2 . .............................................................................................15 3 . .............................................................................................15 4 . ..............................................................................................16 5 . ..................................................................................17 6 . ..................................................................................17 7 . ...................................................................................20 8 .......................................................................................22 9 . ....................................................................................23 結(jié)