Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 47 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
47
Dung lượng
2,16 MB
Nội dung
TRlTCKVG DAI HOC AN GIANG KHOA KY THUAT - CONG NGHE - MOI TRI/cnVG NGUYfiN THAI THJ NGQC TRAN LOfPDH3TH2 KHOA LUAN TOT NGHIEP CU" NHAN TIN HOC CHlTOfNGTRINH QUAN LY THITRAC NGHIEM TREN WEB ^l HQC AN GIANG THl/VIEN GV Huang din: Ks Dang Thi Nhung AnGiang, 05/2006 Bao Cao Khoa Limn Tot NgbicpHe thing quan ly Ilii trie ngliifm LO^ CAM ON Em xin chan cam an Ban Giam Hieu, quy thiy co Khoa Ky thuat - Cong ngh$ - Moi truang va Trung tarn tin hoc truang Bai hoc An Giang da luon quan tarn, tao dieu kien hoc tap va nhiet tinh chi b^o giiip chung em co di^u kien hoan t6t luan van Em cung kinh giiri lai cam cm den quy thiy co trucmg Bai hpc Khoa hoc T^ Nhien va tnrang Bai hoc Can Tha da truyen dat nhttng kien thuc quy bau cho tap the sinh vien Bai hQC An Giang nhOng nam qua Bac bi?t, em xin chan c^m an co Bang Thi Nhung - ngirai true tiep hudmg din, dong vien va diu dat cho em suot thori gian hoan laun van, va tSp the lap DH3TH2 da luon quan tarn, giup d5 va tao dilu kien cho toi vuat qua nhumg kho khan hoc tap cung nhu cuoc s6ng suot bon nam qua Mot lln ntta em kinh mong Ban Giam Hieu, qui thiy co tnrang Bai hoc An Giang khoa Ky thuat - Cong nghe - Moi trucmg va Trung tarn tin hQC nhan nai em lcri cam an chan va sau sac nhat Em xin kinh chuc qui thay co doi dao sxec khde, va luon gat hai dugc nhieu cong cuoc song Tran trpng kinh chao! Long Xuyen, 15/04/2006 Sinh vien: Nguyin Thai Th'iNgoc Tran Bao Cao Khda Llian Tit Nghi ^p.Hf tltottg quail ly tlli Irac ughifin TOM TAT Ten de tai: "Chuang trinh quan ly tin trac nghiem trin web" Giang vien hirdng din: KS Dang Thj Nhung Sinh vien thuc hien : Nguyen Thai Thi Ngoc Tran Noi dune: Xay dung hf thing qu^n ^^ thi trie nghiem hS trq cho gi^ng vi6n cong tac soan ngan hang cau hoi va dl thi cho sinh vien He thong duqc chia hai phan chinh: 1.Chdc nang qu^n ly ngan hang cau h6i: ho tru cho giang vien quan ^^ (them, xoa, sura) cau hoi, dap an cda mon thi 2.Chuc nang quan ly thi: vdi chtic nang nay, sinh vien sS chon mon dS thi, sau khoing thai gian qui djnh cua giao vien chuang trinh tu dqng tinh diem va luu ket qua thi cua timg sinh vien vao ca sd dQ lieu Yeu cau: Chuang trinh phai tif n dung va dam bao tinh b^o mat Phai ho tra cho giang vien nhilu loai cau hoi qua trinh soan ngan hang cau hoi Cac cau hoi phai duqc tron ngiu nhien trudc cho sinh vien thi (khong co bai thi nao giong nhau) Cac bu&c thirc hien: Tim hilu mot s6 hf th6ng thi trie nghiem Lfp ki hoach phan tich va thiit ki hf thing Tien hanh phan tich va thiit ke he thing Cai dat chuang trinh Thur nghif m Mm tntcme cai dat: -Ngon ngu lap trinh Web : PHP5 -Hf qu^n tri ca sd du Iifu MySQL5 -Trinh duyet Web : Internet Explorer Ung dung may chii Web : Apache2 Bao Cao Kh6a Luan Tot Nghi?pHf th$ng quin ly tin trie ngliipn MUC LUC phAnmOdAu1 I.Ly chgn dl tai:1 II.Boi tugng va pham vi ling dung:I III.Muc dich va phiromg phap thuc hien:I 1.Muc dich:1 2.Co su ly thuylt:2 PHANN0IDUNG5 I.GI0ITHIfiU:5 1.Tong quan he thing:5 2.Mo t& pham vi he thong:6 3.Rang buoc tdng quan he thong:7 II.PHANTiCH:8 1.Phan tich h| th6ng :8 1.1.So d6 phan cap ngudi dung:8 1.2.Mo t^ hoat dong cOa he thdng8 2.Phan tich ySu c^u h6 th6ng:10 2.1.Cac yeu cau chiic n5ng v^ ySu cau phi chiic n^ng10 2.2.Mo hinh xii ly (DFD) quan niem :12 3.Phan tich dt lieu:18 5.7 Mo hinh dur lieu miic quan niem (mo hinh thuc the k^t hop - ER):18 3.2.Mo ta cac thirc the va cac thuoc tinh cua thuc the:18 3.3.Thupc tinh mo t4 cho cc m6i kit hgp md rong18 3.4.Ciich qui djnh dat thuoc tinh tham gia lam djnh danh cho cac thuc thl18 III.THIET KE :20 1.Thiltkl he thong20 1.1.Thilt kl xii ly20 1.2.Thilt kl chuc nang phan mem24 2.Thilt kl du lieu:25 3.Mo ta cac rang buoc toan ven31 Bao Cap Khoa Lufin Tot Nghi^pHe th^ng quail ly till trie ngliifm Thiet ke giao dien35 Caidat:38 KETLILJlN39 I.Danhgiachung39 II.Hudmg dong gop cua lun van39 III.Huong phat trien40 TAI LIfiU THAM KHAO41 DANH SACH CAC BANG, HINH VE Hinh II-3: Mo hinh xur ly hoat dong cua he thong quan ^^ thi trie nghiem12 Hinh II-4: Mo hinh xu ly mure cua he thong quan ^^ thi trac nghiem13 Hinh II-5: M6 hinh phan xii ly "Qu^n ly mon thi"14 Hinh II-6: Mo hinh phan xur ly "Qu^n ly cau h6i"14 Hinh II-7: Mo hinh phan xu ly "Qu^n ly dap an"15 Hinh II-8: Mo hinh phan xcr ly "Qu4n ly thong tin ngudi dung"15 Hinh II-9: Mo hinh phan xii ly "Qu^n ly dg thi"16 Hinh 11-10: Mo hinh phan xti ly "Qu&n ly thi"16 Hinh II-l 1: Mo hinh phan xil ly "Qu^n ly kit qu^ thi"17 Hinh 11-12: Mo hinh thuc the - ket h^p cila he thing quan ly thi trie nghiem18 Hinh III-l: So tuan tu cho xir ly "Them cau hoi"20 Hinh III-2: So tuan tu cho xCr ly "SOra cau hoi"20 Hinh III-3: So tuan tu cho xur ^^ "Xoa cau hoi"21 Hinh III-4: So d6 tuin tu cho xii ly "Them dap an"21 Hinh III-5: So d6 tuin tu cho xii 1^ "SOra dap an"22 Hinh III-6: So tuin tu cho xur ly "X6a dap an"22 Hinh III-7: So tuin tu cho xir ly them sinh vien23 Hinh II1-9: Man hinh dang nhap h? thong35 Hinh 111-10: Man hinh quan ly mon thi36 Hinh III-l 1: Man hinh them mon thi37 Bao Cao Kh6a Luan Tot Nghi^pUS thong quan ly thi trie nghi$m Danh sach cac ky hieu va cac tir viSt t;1t KT-DG : Kiem tra - danh gia DFD: Data Flow Diagram ER: Entity-relationship modeling ID: identify Bflo Khoa Luan T6t NgliiepH( til^ng quan ly thi trie nghifm phAnmodAu I.Ly chon de tai: Giao due dao tao dugc xem la qu8c sdeh hang dim giai doan hi$n Trong do, kidm tra - ddnh gia (KT-DG) kdt qua hoc tap la mgt khau quan trong qua trinh day hoc nha tru8ng, la ca so &^ xdc nhan nhOng kdt qua dat ^ugc qtto trinh hoc tap cba hoc sinh - sinh vien Dua vao do, giao vien se co nhung quydt dinh mod d dieu chinh phuong phap, ndi dung day hoc cho phil hgp nhim giiip hoc sinh - sinh vien dat dugc ket qua hoc tap a giai doan sau dugc t6t hon, ddng then ket qua dat dugc KT-DG se giup cho hoc sinh - sinh vien nh^n thly dugc nhung uu diem cda minh de phat huy, nhung mat yeu kem de bo sung hay sua ddi Nhung didu d6 to co so cho su tidn bd cua mi hoc sinh - sinh vien va la co so nang cao chat lugng day hpc Co nhi^u hinh thiic KT-DG nhu ki8m tra viit, kilm tra thuc hanh Tuy nhien, vao muc dich, ngi dung hoc tap, doi tugng ma gjao vien se dua hinh thiic KT-DG phu hgp MiSt khac, theo m6t s6 pghi8n curu cho thdy, dl viec KT-DG dung vdi y nghTa cua no phai dam bao cac yeu cau ve tinh muc dich, tinh thucmg xuyen, tinh he thong, tinh dien hinh va tinh khach quan Trong s6 cac yeu ciu tren thi yeu cau bao dam tinh khach quan to quan nMt Thuc to cho thdy, viec KT-DG phu thuoc v^o ygu to chu quan cua gtoo vign se khong phan anh diing nang luc, ki6n thile dat dugc cua hgc sinh - sinh vien Tinh khdeh quan doi hoi phai co nhung tieu chi danh gia ro rang doi vdi tung doi tugng hoc sinh - sinh viSn d tung giai doan hoc tap nhSt dinh, nhd dd co th6 h^n ch^ dn muc th^p nh^t yeu t6 chu quan co the co cua giao vien qua trinh kiem tra, danh gto Hien nay, mot so nha nghien cuu phuong phap day hoc d nhiSu nude khac tren the gicd da thira nhan KT-DG ket qua hoc tap cua hoc sinh - sinh vien bang phuong phap thi trac nghiem cd kha n3ng dam bao tinh khach quan cao Thi trie nghiem to mot hinh thuc mdi vua dugc ap dung nhiJng nam gan day vdi nhiSu loai hinh khdc Tuy nhien, hinh thiic thi cung chi dugc tiin hanh thi tren giay, cac thu tuc, cung nhu khau dl thi gap nhieu khd khan va phiic tap Do do, viec xay dung mdt he th^ng thing thdng tin nhim tin hoc hda hoat dong day hoc nha trudng, giup giao vien tiet kiem dugc thai gian, va giam bdt mgt so thao tac rudm to, phiic tap chuan bi cac hinh thiic KT-DG la mot diiu cin thiet Xuit phat tir nhiing ly tren ndn toi da chon di toi la viet "Chitomg trinh quan ly thi trac nghiem tren Web " II.Doi tuong va pham vi ling dung: Dii tugng sii dung: giao vien va sinh vien to hai doi tugng chinh, ngoai can mot nha quan tri de qudn ly nhung thong tin lien quan he thdng Pham vi ling dung: cd the ap dung tren pham vi trudng hoc HI Muc dich va phmmg phap thnc hien: Muc dich: Mp hinh thi trie nghiem hidn dang dugc dp dung rong rai nhidu linh vuc vdi nhieu muc dich su dung khdc nhu: tuyen dtm^ nhan su, trac nghiem tam ly, dac biet Giao Due va Dao Tao vai tro cua thi trac nghiem cang dugc khang dinh Trang1 B^o Cao Kh6a Lu3n Tot NghiepH$ thong, quail ly tin trie ng/iifm Ben canh do, cimg vdi sir phat triln cua cong ngh6 thong tin, tin hpc h6a he th6ng thong tin quan ly la mdt hoat dong khong th thi^u thdi dai Vi vay, he thdng quan \y thi trSc nghiem tren Web nhlm hudng d6n muc dich h trp cho giao vien va hoc sinh - sinh vien Nha trubng co dugc cong cu de lam viec t6t horn, tiSt kiem dugc thoi gian va chi phi Cff sd ly thuylt: Hien nay, vdi sir phat tri^n cua Internet, nhitag ling dung Web tinh khong dii kha nang dap ling nhu ciiu cua thuc xk Cung vdi su h trg cua cac loai ca sd du: lieu, co thS kit hop chiing vdi mot ngon ngii lap trinh Web tren server nhu: ASP, JSP, Perl, PHP ngudi ta co the xay dvmg nhfing trang Web dong va triin khai ling dung Web vdi nhi^u muc dich khac nhau, phong phii hon, dap ling dugc nhu cau ciia ngudi dung.Tuy nhien, vao miic phiic tap, quy mo cua ling dung va nhung dieu kien khach quan khac ma ta chgn mot ngon ngO lap trinh Web ket hop vdi ca sd dii lidu phii hop Vi vay, vdi d6 tai nay, toi chon ngon PHP kdt hop vdi hg qu^n tri co sd dii lieu MYSQL d6 h trg qua trinh xay dung he thong Day la hai cong nghe bien nhat dugc dimg de tao cac Website dong hien nay, sau day la mot so dac diim ndi bat ciia cua PHP va MySQL : 2.1.Ngon ngir lap trinh web PHP5 PHP: la vidt tat cda "Personal Home Page" Rasmus Lerdorf t^o nam 1994 d6 theo doi ngudi dung truy cap ly lich true tuyen cua ong Vi tinh kha dung va kha nang phat trien nen PHP da bat dau dugc sii ditng moi trudng chuyen nghiep va no trd "PHP:Hypertext Preprocessor" PHP la cong nghe phia may chu (server-side) khong phu thugc moi trudng (cross-platform), va cd kha nang nhiing vao HTML Mot s6 tinh nang cua PHP: Tuong thich vdi nhieu loai he didu hanh thong d^mg hien nhu: Linux, Unix, Microsoft Windows, Mac OS X, RISC OS, Va h trg cho nhi^u web servers nhu: Apache, Microsoft Internet Information Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd, Mot nhftng dac tinh manh me cua PHP la kha nang thuc hien va tich hop chat che vdi hau het co sd du ligu cd san, va vi la ma nguon md nen tinh linh dong va kha nang phat trien cua PHP la khong gidi hgn PHP hd trg nhi^u thu vien ham dugc thiet ke san va ling dung ldn dugc viet theo hudng ddi tugng (nhu PEAR) Ngoai ra, PHP cd kha nang xuat web cac tap tin anh, tap tin PDF, phim flash va dac biet, tir PHP5 mo hinh hudng d6i tugng da dugc dua vao ling dung Day cung la diem manh cua ngon ngu lap trinh web PHP (cd the tham Ichao dia chinh thiic ciia PHP tai dia chi http://www.php.net/) 2.2.He quan tri eff sd dir lieu MYSQL: Giong nhu PHP, h^ qu^n tri ca sd dii lieu MySQL la mot ling dung ma nguon md va cd kha nang thuc thi hoan hao, r^t linh dong, nhd gon, it tdn chi phi nhung vln cd the xd ly nhung co sd du lieu kha ldn MySQL la mot nhiing he quan tri co sd dii lieu nguon md bi6n nhat hien nay, dimg bien cho cac doanh nghiep vda va nhd, MySQL dugc phat trien va ho trg bdi cong ty MySQL AB (dia chi web site cua MySQL: http://www.mvsql.com/) Trang B:io C^io Kli6a Luan Tot Nghi^p Hf thing quan ly thi trie nghi(m MySQL server co the quan ly nhieu cor sa dft lieu cho hhiiu ling dung va moi ca sir du IiSu co the luu trir dii HSu khac vai nhiing each khac MySQL thuQc loai ca s6r dii H6u quan he v^ co nhiiu tlnh nang kh6ng thua kem SQL Server Sau day la mot s6 dac tinh cua MySQL : Cung cap transactional and non-transactional storage engines Cung dp nhieu kieu dtr lieu: signed/unsigned integers 1, 2, 3, 4, va bytes, FLOAT, DOUBLE, CHAR, VARCHAR, TEXT, BLOB, DATE, TIME, DATETIME, TIMESTAMP, YEAR, SET, ENUM, and OpenGIS spatial types - MySQL co thS cai dat tren nhi6u he diSu hanh: Digital Unix 4.x, SunOS 4.x, Windows 9x, Me, NT, 2000, XP, va 2003 ciia Microsoft Tuy nhien, MySQL mcri phat triln nen chi h trgr tren nhiing he di^u hanh gdn ddy Ho trgr nhi^u loai cau lenh va ham thong dimg cua ng6n ngu SQL Bao mat: MySQL he thOng privilege va password cho phep mS hoa an toan tit ca mat khiu kit nii vao server Ca sa dii lieu cua MySQL co thS chila khoang 50 trieu miu tin (record), mi bang (table) c6 the chiia tren 64 chi muc (index) Ngoai ra, cac phien ban mai ciia MySQL (MySQL 4.1, 5.0, 5.1) cho phep khai bao cac chi muc nham tang tinh ndng tmy cap tlm kiem dii lieu va co ho trg Unicode 2.3 Cac mo hinh dung phan tich va thiet ke: ^- M6 hinh thuc thi - kit hgp ER Khai niem ^ nghia Kyhieu Thuc thi Mpt doi tupng thong qua tim hiiu bai toan Moi ket hop Biiu diin mii quan he giiia cac thuc thi o Thuoc tinh Bieu dien cac dac trung ca ban ciia thuc the • hay moi kit hpp Trang Biio Cdo Kh6a Luan Tot Nghi^p Hi thong quin ly thi trie iigliifm • Mo hinh lubng dtt lieu DFD (Data Flow ) Khai niem Oxuly Ky hieu Y nghia o MQt ede hoat dpng bSn cua Dong dft lieu ? HTTT, mi xii ly duoc danh m6t s6 de biet duoc n6 Id xii ly thii may va a cap nao Su chuyen doi thong tin gifta cac phdn Kho dtt lieu Vung chtia dtt lieu, thbng tin h^ thong Dau cu6i Mot tac nhan ben ngoai he thbng " So d6 tuan ttr (sequence diagram) Khai niem Ky hieu Actor(tdc nhan) Y nghia Mpt thdnh phdn tuong tac vdi he thbng Actor Object(d6i tu^ng) :Name D "1 1 Message(thong diep) Message Bieu dien su chuyen giao cac thong diep gitta cac d6i tuong Trang H^ thong quan ly thi trie ngliiSm Bao Cap Kh6a Luan Tot Ngliicp ^• Thanh phan: SINHVIEN Y nghTa: Liru trir thong tin ca nhan moi sinh vien STT ThuoetinhKicuMien gia tri IDSV Integer IDTK Integer MSSV Char TSidalOkytu Ma so ciia sinh vien HoTen Varchar T6i da 50 ky to Ho va ten sinh vien NgaySinh Date Lop VarChar AutoNumber IDsinh vien Khoa chinh ID_tai khoan Khoa ngoai Ngay sinh T6i da ky to Lop ^ Thanh phiin: MONTHI Y nghla: Liru trir thong tin ve cac mon thi STT Thuoc tinh Mien giii tri IDMT Integer IDGV Integer MaMonThi Char T6idal0kyto Ma mon thi TenMonThi VarChar T6i da 100 ky tu Ten mon thi Auto_Number ID_mon thi Khoa chinh ID_giao vien Khoa ngoai dl [MaDeThi] o d2 [MaDeThi]) Trang 31 ong quan ly thitrjc nghi$m B;io Cao Khoa Lu^n Tot ^ghiep Bang tam anh hiicmg: R4 Them Xoa Siia DETHI + - + MaDeThi Rang buoc toan ven lien thuoc linh Rang buoc 5: R5 : "T6ng ti le cau hoi di, trung binh, kho phai bang 100 " Boi canh: DETHI Vd g DETHI (( d [TiLeCHDe] + d [TiLeCHTB] + d [TiLeCHKho]) = 100) Bang tam anh hvrong: R5 Them DETHI + Xoa Sua + TiLeCHDe + TiLeCHTB + TiLeCHKho - Rang buoc toan ven tren nliieu Ikoc So quan he ^a Rang buoc toan ven tham chieu Rang buoc 6: R6 : "M6i cau hoi phai lien quan dSn mot mon thi" Boi canh: MONTHI, CAUHOI V c e CAUHOI ( m e MONTHI (m.IDMT = c.IDMT)) Bang tam anh htrong: R6 Them Xoa Sun CAUHOI + - + IDMT MONTHI - + - Rang buoc 7: R7 : "M6i dap an phai lien quan d&t mot cau hoi ngan hang cau hoi" B6i canh: DAPAN, CAUHOI V d g DAPAN ( c e CAUHOI ( c.IDCH = d.IDCH)) Trang 32 He thong quan ly thi trie nglliSm Bio Cap Khoa Luan T6I Nghiep Bang tam anh hudng: R4 Them X6a Suu DAPAN + - + IDCH CAUHOI - + - Rang buoc 8: R8 : M6i de thi phai lien quan den mot mon thi B6i canh: MONTHI, DETHI Vde DETHI ( m e MONTHI ( m.IDMT = d.IDMT)) Bang tam anh hudng: R8 Them Xda Sfra DETHI + - + IDMT MONTHI - + - Rang buoc 9: R9 : M6i bai thi phai lien quan dn mot d^ thi va mot sinh vien B6i canh: BAITHI, DETHI, SINHVIEN Vbe BAITHI ( d e DETHI, s e SINHVIEN ( d.IDDT = b.IDDT A s.IDTV= b.IDTV)) Bang tam anh huong: R9 Them Xoa Sira BAITHI + - + IDDT + IDTV DETHI - SINHVIEN - - + - Trang 33 Bio CAo Kh6a Lu3n T6t Nghi^p H( IhSitg qucm ly thi trie nghiem Rane buoc toan yen lien bo lien quart he Rang buoc 10: RIO : "M6i bai thi phai co it nhat mot chi tiSt bai thi" B6i canh: BAITHI, CTBAITHI V b e BAITHI, c e CTBAITHI ( b.IDBT = c.IDBT) Bang tam anh hirong: RIO • Them* tX6a? Sihi BAITHI + + + CTBAITHI + + + DS dam bao RIO khbng bi vi pham, sau day la mot s6 giao tac duoc thuc Men: Giao tac: Them_bai_tM + Them bvao BAITHI + Them el vao CTBAITHI + Them c2 vao CTBAITHI + Neu (co mot phep them that bai) v (cl.IDBT o b.IDBT) v (cl.IDBT o bJDBT) v thi quay lui giao tdc; + Cu6i n^u; + Ngugc lai, hoan tat giao the; Cuoi giao tac Giao tac: X6a_bai_tM (ID_BAITHI) + Voi moi c e CTBAITHI (c [IDBT] = ID_BAITHI), xda c khoi CTBAITHI + Cu6i vdi moi + Xoa b e BAITHI (b [IDBT] = IDBAITHI) + Neu (co mot phep xoa that bai) tM quay lui giao tac; + Ngugc lai, hoan tat giao tac; + Cu6i neu; Cu6i giao tac Cac giao tac them, xoa, sira dong dem le, hoac sua BAITHI cflng nhu CTBAITHI deubicam Trang 34 B5o Cao Khfa Luan Tot Nghiep He thong quail ty tlii trie nghiem Is Rane buoc toan yen lien thuoc tinh, lien quart he Rangbuocll: RIO : "Ngay thi khong duoc truac d^" B6i canh: BAITHI, DETHI Vb e BAITHI( 3!d e DETHI(d[IDDT] = b[IDDT] A d [NgayLap] 'i-'Back - -#• • ; AddresS j^Jhttpi//tacawst^trac_nghlem/admiiT^ndex.php?aaeddacode^subject "u '3 ^ Chitting trinh Quan LvThi Trc Nahiem Hinh 111-13: M^n hinh tliem mon thi Trang 37 Cao Cao Kh