Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 81 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
81
Dung lượng
2,88 MB
Nội dung
TRl/QNG DAI HOC AN GIANG KHOA KY THUAT - C^NG NGHE - MOl TRUt/NG trAn ngoc ph6i KHOA LUAN TOT NGHIEP DAI HOC NGANH CO1 NHAN TIN HOC XAY DU^NG BAl GlANG DIEN Tl> MON TRIET HOC MAC - LENIN TRU6NG DAI HOC AN GIANG THl/VIEN GV hirang din: ThS Doan Thanh Nghi An Giang, 05/2006 ri Em xin chart cam an cdc Thay Co Khoa Ky thuqt - Cong nghe Moi tru&ng Truing Dai hoc An Giang eta nhiet tinh huang dan vd tao dieu Men thuqn lai cho em suot thai gian thuc hien khoa luqn Xin dqc biet cam an Thay Boan Thanh Nghi, nguai true tiip huang dan, giup da em hodn tit khoa luqn tdt nghiep Em cung xin gai lai cam an den cdc Thay Co Bo mon Mac - Lenin, dqc biet la Co Phqm Tin Thu Hdng, Co Binh Li Nguyen da giup da vd cung cap tdi lieu giup em hodn tot khoa luqn tot nghiep Mot Ian nua, xin chdn cam an gia dinh, thay co vd ban be da dqng vien, giup da em hodn thdnh tot khoa luqn tot nghiep Sau cung, em xin kinh chiic quy thay co duqc nhieu sue khde de truyen dqt nhung kinh nghiem quy bdu cua minh cho cdc the he sau Trdn trong! Sinh vien: Tran Ngoc Phoi Trong vai nam gdn day, cdng nghe thong tin da the hien la ngdnh dong mot vai trd het^ sue quan tren the gidi, no tdc dong lam thay ddi mqnh me hdu nhu tat cd ede linh vuc xung quanh Song hoi cdnh tren, ngudi cung can phdi cap nhdt bo sung kien thuc ngdy cdng hodn thien vd phong phu hem de thich ring vai mdi trucmg mdi He thong ddo tqo vd cung cap kien thuc theo kieu cu to khdng tien lai vd dap ring nhu cdu vai mdi trucmg thong tin thay doi vd cap nhdt mot each lien tuc E-learning dai chinh Id mot gidiphdp de gidi quyet van de khd khan tren He thong em de cap phqm vi ludn van Id mot phdn chudi mat xich cua E-learning linh vuc gido due ddo tqo Do Id bdi gidng dien tie man Triet hoc Mac - Lenin, Id mot kenh thong tin hd tra cho viec len lap truyen thong vd gdpphdn ddi mdi phucmgphdp gidng day Mac du qua trinh lam viec da cd nhieu cd gang, duac su hudng dan cua ede thay cd, nhung hqn che ve ky thudt lap trinh cung nhu thieu kinh nghiem xdy dung trang web hodn chinh, chdc chdn se khdng trdnh khdi nhung sai sot hoqc chua sat vai thuc te Rat mong duac su dong gdp vd hudng dan them, em xin chdn thdnh cam an! TOM TAT Ten iti tai: Xay dung bai giang dien tit mon Triet hoc Mac - Lenin Giang vien luedngdCin: Thac si Doan Thanh Nghi Sinh vien thuc Men:Tr&n Ngoc Ph6i Noi dung: Website bai giang dien tvr mon Triet hoc Mac — Lenin nham cung cap cac thong tin cho nguoi dung Internet mot each ddy du, nhanh chong va hieu qua Ngoai nhung dac diem gion^ nhu bai giang giay, bai giang dien tu co nhieu uu diem hern: ngoai thong tin bieu thi bang van ban thong thuong, bai giang dien tu co the chuyen tai den nguoi dung nhung doan video, nhung doan am mot each song dong Ben canh do, bai giang dien tit cho phep nguoi dimg tim kiem thong tin mot each nhanh nhen, chinh xac Cac bai giang cu co thg duqc truy luc lai ma khong phai ton nhieu cong siic nhu bai giang giay Website bai giang dien tu bao gom phan he: giao dien danh cho quan tri, giang vien, vien va nguoi dung duyet web Yeu cau: -Tim hieu he thdng va xac dinh cac yeu cau -Tim hieu cac van de \j thuyet co lien quan -Phan tich thiSt k6 he thdng -Cai dat chuong trinh demo Phuctng an dime chon: -He quan tri ccr so dO lieu: MySQL -Ngon ngu lap trinh: PHP -Ngon ngu truy vdn du lieu: SQL -Cong cu thi^t k: Rational Rose -Vi^t tai lieu, bao cao: Microsoft Word Ngoai co sir dung them mot so phan mem khac phuc vu cho cac so do, bieu bang MUC LUC PhanLGICSITHIEU1 I.Sir can thiet cua bai giang dien tir:2 1.Boi canh hien tai Truong Dai hoc An Giang:.'2 2.Mot s6 tinh nang cua bai giang dien hi:3 2.1.Tilth ti^n dung:3 2.2.Tinh k^ thfra:'.3 2.3.Tinh tuongtac:3 II.Co so ly thuyet:'.4 l.E-learning:4 2.Bai giang dien tir:4 3.Internet:5 3.1.Khai them:5 3.2.Trinh duyet Web::7 3.3.Webserver:8 3.4.Website dong:9 3.5.Xay dung mot ting dung tren Web:9 4.Cong cu va moi trubng phat trien:10 4.1.Phan tich thigt kg (Su dung ngon ngu mo hinh hop nhit - Unified Modeling Language - UML):10 4.2.Caid^t:12 Phan2:PHANTiCH,17 I.Mo ta pham vi he thong:18 II.Phan tich yeu clu he thong:'.19 1.Cac ygu c^u chirc nang:19 2.Cac ygu cau phi chiic nang:20 III.Phan tich du lieu:21 1.Mo hinh du lieu ER:21 2.Mo hinh mo ta cac chiic nang cua website:22 IV.Phan tich xii ly mot so chiic nang cua website:24 1.Dang ky vign:24 2.Dangnhap:25 3.Thgm bai giang:25 4.Chinh sira bai giang:26 5.Tim kigm bai giang:26 Ph4n 3: THIET KE:.27 • I.Thigtk6drlieu:28 II Thiet kg xir ly mot s6 chiic nang cua website:29 1.Use case dang nhap: 29 1.1.Mo hinh tun tir:29 1.2.Mo hinh hcrp tac:30 2.Use case thay d6i mat khiu:31 2.1 Mo hinh tu^n tir:, 31 2.2 Mo hinh hop tac::32 3.Use case thay doi thong tin ca nhan:33 3.1.Mo hinh tain tu:33 3.2.Mo hinh hop tac:34 4.Use case xem bai giang viet:35 4.1.Mo hinh tain tu:35 4.2.Mo hinh hop tac:36 5.Use case goi cau hoi thic mic:37 5.1.Mo hinh tain tu:37 5.2.Mo hinh hop tac:38 6.Use case goi y kien dong gop:38 7.Use case tra Ioi cau hoi:39 7.1.Mo hinh tain tu:39 7.2.Mo hinh hop tac:40 8.Use case tra loi y kien dong gop:40 III.Thiit ki giao dien:'.41 1.Giao dien danh cho quantri:41 2.Giao dien danh cho giang vien:42 3.Giao dien danh cho ngucri dung duy^t web:43 4.Giao dien dang nhap:44 IV.Rang huge toan ven:45 1.Rang huge toan ven miin gia tri:45 2.Rang huge toan ven lien bg:45 3.Rang huge toan ven tham chieu:45 4.Rang buoc toan ven lien thuoc tinh — lien quan he:45 Phin4:CAIDAT46 I.Gioi han quyen cho tung vien truy cap vao website:47 II.Backup du lieu:47 III.Khic phuc loi SQL injection:47 Phin5:KETLUAN48 I.Danh gia chung:49 1.Ket qua dat duoc:49 2.Han chi:.' .'50 II.Huong phat triin:51 Phin 6: M0T SO TAl LIEU THAM KHAO52 I Sach:53 II.Ebook:54 III.Website:54 Phin 7: PHU LUC56 I Kichban: :57 1.Use case dang nhap:57 1.1.Dong sir kien chinh:,.57 1.2.Cac dong s^ kien khac:57 2.Use case thay d6i mat khiu:58 2.1.Dong su kien chinh:58 2.2.Cac dong su kien khac:58 3.Use case thay doi thong tin ca nhan:59 3.1.Dong sur kien chinh:59 3.2.Cac dong sir kien khac:59 4.Use case xem bai giang viet:60 4.1.Dong sir kien chinh:60 4.2.Cac dong sy kien khac:60 5.Use case tim kiem bai giang:61 5.1.Dong sir kien chinh:61 5.2.Cac dong sir kien khac:61 6.Use case goi cau hoi thac mac:61 6.1.Dong sir kien chinh:61 6.2.Cac dong sir kien khac:62 7.Use case goi y kien dong gop:62 8.Use case tra loi cau hoi:62 8.1.Dong sir kien chinh:62 8.2.Cac dong sir kien khac:62 9.Use case tra loi y kien dong gop:62 10.Use case quan ly nguoi dung:63 10.1.Dong sir kien chinh:63 10.2.Cac dong sir kien khac:.64 II.T6 chuc Iuu triJ ca so dO lieu cua website:66 III.Rang buoctoanven:69 1.Rang buoc toan ven lien bo:69 2.Rang buoc toan ven tham chieu:69 3.Rang buoc toan ven lien thupc tinh - lien quan he:70 IV.Thuchanhantoan:71 V Huong dan cai dat::71 1.MySQL:'.71 2.PHP:72 DANH SACH CAC BANG, BIEU BO Hinh 1-1 Mo hinh minh hoa Trinh duyet web va Web server,8 Hinh 1-2 Cach lam viec cua PHP phii hop vdi mo hinh khach - chu nguoi diing yeu cau mot trang web14 *Hinh 1-3 Qua trinh xu ly yeu cdu d6i voi mot trang HTML tTnh14 Hinh 1-4 Cach hoat dong cua phan Ion cac ung dung Web dong sir dung PHP va MySQL '.'.' ' '15 Hinh 2-1 Motapham vihethOng18 Bang 2-1 Cac yeu cduchucnang19 Bang 2-2 Cac yeu cdu phi chiic nang20 Hinh 2-2 Mo hinh dtt lieu ER21 Hinh 2-3 Mo hinh use case Tong quat22 Hinh 2-4 Mo hinh use case Quan ly bai giang23 Hinh 2-5 Mo hinh use case Quan ly nguoi dung23 Hinh 2-6 Mo hinh use case Quan ly y kien dong gop24 Hinh 2-7 Xu ly dang ky vien24 Hinh 2-8 Xu ly dang nhap,25 Hinh 2-9 Xu ly them bai giang25 Hinh 2-10 Xu ly chinh svra bai giang26 Hinh 2.11 Timkiembai giang26 Hinh 3-1 Mo hinh du lieu quan he duoc chuyendoi tirmo hinhER28 Hinh 3-2 Mo hinh tuan tu cho use case dang nhap29 Hinh 3-3 Mo hinh hgp tac cho use case dang nhap30 Hinh 3-4 Mo hinh tuan tu cho use case thay doi mat khau31 Hinh 3-5 Mo hinhhcjp tac cho use case thay doi mat khdu 32 Hinh 3-6 Mo hinh tuln tu cho use case thay doi thong tin ca nhan33 Hinh 3-7 Mo hinh hgp tac cho use case thay doi thong tin ca nhan34 Hinh 3-8 Mo hinh tuan tu cho use case xem bai giang viet35 Hinh 3-9 Mo hinh hop tac cho use case xem bai giang viet36 Hinh 3-10 Mo hinh tuiln tu cho use case goi cau hoi th^c mic37 Hinh 3-11 Mo hinh hop tac cho use case goi cau hoi thac m^c38 Hinh 3-12 Mo hinh tuan tu cho use case tra loi cau hoi39 Hinh 3-13 Mo hinh hop tac cho use case tra Ibi cau hoi thac mac40 Hinh 3-14 Giao dien danh cho quan tri41 Hinh 3-15 Giao dien danh cho giang vien42 Hinh 3-16 Giao dien danh cho nguoi dung duyet web43 Hinh 3-17 Giao dien dang nhap he thong44 ABang 7-1 Bai giang66 Bang 7-2 Bai goi66 Bang 7-3 Kho66 Bang 7-4 Loai bai giang67 Bang 7-5 Loai bai goi67 Bang 7-6 Loai kho67 Bang 7-7 Loai nguoi dung67 Bang 7-8 Ngucri dung,68 Bang 7-9 Noi dung bai giang68 Bang 7-10 Tra loi bai gai69 Bang 7-11 Bang dim anh hucng cho R269 Bang 7-12 Bang tim anh hnong cho R369 Bang 7-13 Bang-tarn anh huong cho R570 Bang 7-14 Bang tSm anh huong cho R6 70 Phanl:Gl6lTHIEU Use case thay doi mat khau: 2.1 Dong sir kien chinh: Use case bat dau mot quan tri muon thay doi mat khau 1.He thong yeu cau quan tri nhap lai mat khau cu va mat khau mod 2.Quan tri nhap lai mat khau cu va mat khau mod 3.He thong kiem chung mat khau cu ma quan tri nhap va cap nhat lai mat khau mdi 2.2 Cac dong sir kien khac: 2.2.1 Quan tri clma nhap day du mat khau cu va mat khau m&i: Neu dong sir kien chinh, quan tri chua nhap day du mat khau cu va mat khau mod, he thong se hien thi mot thong bao Ioi Quan tri co the nhap tiep hoac huy bo viec thay doi, luc use case ket thuc 2.2.2.Mat khtiu cu ma quan tri nhap khong kh&p v6i mat khau da lieu co sd die lieu: Neu dong sir kien chinh, quan tri nhap mat khau cu khong khdp vdi mat khau da liru co so du lieu, he thong se hien thi mot thong bao Ioi Quan tri co the chon trd v^ dSu cua dong sir kien chinh hoac hiiy bo viec thay d6i, luc use case ket thuc 2.2.3.Thao tdc thay dbi mat khSu bi hiiy: Neu dong sir kien chinh, quan tri quyet djnh khong thay doi mat kMu niia, thao tac thay doi mat khau bi huy va dong su kien chinh dupe bit dau lai tir diu 58 Use case thay doi thong tin ca nhan: 3.1.Dong sir kien chinh: Use case bat dau mot giang vien muon thay doi thong tin ca nhan 1.He thong yeu cau giang vien nhap lai mat khau cu va cac thong tin muon thay doi 2.Giang vien nhap lai mat khau cu va cac thong tin muon thay d6i 3.He thong kiem chung mat khau cu ma giang vien nhap va cap nhat lai cac thong tin mdi 3.2.Cac (long sir kien khac: 3.2.1.Giang vien chua nhap day (til thong tin: Neu dong sir kien chinh, giang vien chua nhap day du thong tin, he thong se hien thi thong bao Ioi Giang vien co the nhap tiep hoac huy bo viec thay doi, luc use case ket thtic 3.2.2.Dia chi e-mail khong hop le (co khoang trang, khong co dim @ ): Neu dong sir kien chinh, giang vien nhap dja chi e-mail khong hop le, mot thong bao Ioi se dugc gui den giang vien Giang vien phai nhap lai dia chi e-mail hop le va use case ti^p tuc hoac giang vien huy viec thay doi va use case khoi tao lai tir d^u 3.2.3.Sd dien thoai khong hap le (co chit, khong dung dinh dang cua so dien thoai ): Neu dong sir kien chinh, giang vien nhap so dien thoai khong hop le, mot thong bao Ioi se dugc gui den giang vien Giang vien phai nhap lai so dien thoai hop le va use case tiep tuc hoac giang vien huy viec thay doi va use case khoi tao lai tu dau 3.2.4.Anh in in It hoa cophan md rpng khong hap le (khongphai laphan md rpng thupc dinh dang anh, cluing han: doc, xls ): Neu dong sir kien chinh, giang vien chon anh minh hoa co phan mo rang khong hgp le, mot thong bao lSi se dugc gui den giang vien Giang vien phai chon lai anh minh hga hgp le va use case tiep tuc hoac giang vien huy viec thay doi va use case khoi tao lai tir d^u 59 3.2.5 Tltao tdc tltay ddi thong tin bi huy: Neu ddng sir kien chi'nh, giang vien quyet djnh khong thay doi thong tin nua, thao tac chinh sira bj huy va dong sir kien chinh dugc bit dim lai tir diu Use case xem bai giang viet: 4.1.Dong sy kien chinh: Use case bat diu mot ngudi dung mu6n xem bai giang viit 1.He thong yeu cau ngudi dung chon chuc nang xem bai giang viet 2.Ngudi dung chon chuc nang xem bai giang viit 3.He thong se load danh sach cac giang vien da cd bai giang va hien thj 4.Ngudi dung chon ten giang vien 5.He thong se load danh sach ten cac bai giang theo ten giang vien ma ngudi dung yeu cau va hiSn thj 6.Ngudi dung chon ten bai giang muon xem 7.He thong se load noi dung bai giang ung vdi ten bai giang ma ngudi dung chon va hien thj 4.2.Cac dong sy kien khac: 4.2.1.Noi dung bai giang qua dai: Neu ddng sir kien chinh, bai giang co noi dung qua dai se dugc phan nhieu trang va ngudi dung co the xem tiSp hoac quay lai bang each click vao mui ten tdi hoac lui de co the xem 4.2.2.Thao tdc xem bai giang bi huy: Neu ddng su kien chinh, ngudi dung quyet djnh khong xem bai giang nua, thao tac xem bai giang bj huy va ddng su kien chinh dugc bat dau lai tir dau 60 5.Use case tim Idem bai giang: 5.1.Dong sy kien chinh: Use case bat dau mot ngudi dung mudn tim kiem bai giang 1.He thong yeu cau ngudi dung chon tieu chudn tim kiSm va nhap tur khda cdn tim 2.Ngudi dung chon tieu chuan tim kiem va nhap tit khoa can tim 3.He thong lay danh sach cac bai giang thda yeu cdu tim kiem tir he thong va hien thi 5.2.Cac (long sir kien khac: 5.2.1.Ngudi dung chua chon tieu chuan tim kiem va nhap tir khoa can tim: Neu ddng su kien chinh, ngudi dung chua cung cap day du thong tin duoc yeu cau, he thong se hien thi thong bao 16i Ngudi dimg cd the tiep tuc hoac huy bo viec tim kiem, liic use case ket thuc 5.2.2.Khong co bai giang thoayeu cau tim kiim: Neu ddng su kien chinh, khong co bai giang thda yeu cau tim kiem, mot thong bao se duoc gui den ngudi dung Ngudi dung phai cung cap iai thong tin tim ki^m hoac huy viec tim kiem va use case khdi tao Iai tir dau 6.Use case goi cau hoi th5c mac: 6.1 Dong sy kien chinh: Use case bat dau mot ngudi dung muon gdi cau hoi th5c mdc 1.He thong yeu cau ngudi dung nhap noi dung cau hoi 2.Sau ngudi dung cung cap thong tin duoc yeu cau va click vao nut gdi de gdi cau hoi, ngudi dimg co the xem cau tra ldi dien dan 61 6.2 Cac dong sir kien khac: Ngudi dung chua cung cap day du thong tin: Neu dong su kien chinh, ngudi diing chua cung dip day du thong tin, mot thong bao ldi se duoc gui den ngudi dung Ngudi dung phai cung cap them thong tin va use case tiep tuc hoac huy bo viec gdi cau hoi va use case khcri tao Iai tr dlu 7.Use case goi y kien dong gop: Tuctng tu use case gdi cau hoi thac mic 8.Use case tra loi cau hoi: 8.1.Dong sir kien chinh: Use case bat dau mot ngucri dung mu6n tra ldi cho mot cau hoi nao 1.He thong yeu cau ngudi dung chon chiic nang tra ldi cho cau hoi ma minh biet va muon tra ldi 2.Ngudi diing chon chiic nang tra ldi 3.He thong yeu cau ngudi diing nhap cau tra ldi 4.Sau ngudi diing cung cap thong tin dugc yeu cau va click vao nut gdi de gdi cau tra ldi, ngudi diing co the xem cau tra ldi diln dan 8.2.Cac dong sy kien khac: Ngudi dung chua cung cap day du thong tin: Neu dong sir kien chinh, ngudi diing chua cung caj) dSy du thong tin, mot thong bao ldi se ducrc gui den ngucri diing Ngudi dung phai cung cap them thong tin va use case tiep tuc hoac huy bo viec tra ldi cau hoi va use case khcri tao Iai tir dau 9.Use case tra loi y kien dong gop: Tuomg tu use case tra ldi cau hoi 62 10 Use case quan ly nguoi dung: 10.1 Dong sir kien chinh: Use case bat dau quan tri muon them mdi, xda hoac thay ddi mat kMu mot nguai dung 1.He thong yeu cau quan tri chon chirc nang muon thuc hien: them mdi, xoa hoac thay doi mat khau mot nguai dung 2.Sau quan tri cung cap thong tin dugc yeu cau, mot cac luong phu sau duoc thuc hien: -Neu quan tri chon "Them moi", luong phu "Them moi" dugc thuc hien -N^u quan tri chon "Xoa", Iu6ng phu "Xoa" dugc thuc hien -Neu quan tri chon "Sua", luong phu "Sua" dugc thuc hien 2.1 Them moi: 1.He thong yeu cau quan tri nhap day du cac thong tin can thiet, bao gom: ten tai khoan dang nhap, ho ten, trinh dp, dia chi e-mail va mot so thong tin phu ve nguai dung mai (neu co), bao gom: dien thoai, anh minh hpa 2.Quan tri nhap day du cac thong tin can thiet va mot so thong tin phu ve nguai dung mdi (neu co) 3.He thong kiem tra va xac nhan cac thong tin da nhap 4.Mot ngudi dung mdi dugc gia nhap vao he thong 63 2.2.Xoa: 1.He thong yeu cau quan tri chon chuc nang xoa dira vao ten tai khoan dang nhap cua ngudi dung muon xoa 2.Sau quan tri cung cap thong tin dtrqc yeu cilu, he thdng truy xu^t va hiln thi thong tin cua ngudi dung 3.He thong nhac quan tri xac nhan thao tac xoa ngudi dung 4.Quan tri xac'nhan xoa 5.He thong xoa thong tin cua ngudi dung khdi he thong 2.3.Sua: 1.He thong yeu cau quan tri nhap mat khau mod 2.Quan tri nh^p mat khau mod 3.He thong kiem chiing mat khau mdi ma quan tri nhap va cap nhat Iai mat khau mod 10.2 Cac ddng sir kien khac: 10.2.1.Cliira nhap day du cac thong tin can thiet: Neu Iudng phu "Them mdi" hoac "Sua", quan tri chua nhap diy du cac thong tin can thiet, thong bao ldi se duqc gui den quan tri Quan tri phai nhap day du cac thong tin can thiet va use case tiep tuc hoac quan tri huy viec them mod hoac sira va use case khdi tao Iai tu dau 10.2.2.Ten tai khoan dang nhap khong hop le (co khodng trdng, cac ky ticdac Met ): Neu luong phu "Them mdi", quan tri nhap ten tai khoan dang nhap khong hop le, mot thong bao Idi se duqc gui den quan tri Quan tri phai nhap Iai tai khoan va use case tiep tuc hoac quan tri huy viec them mdi va use case khdi tao Iai tir dau 10.2.3.Ten tai khoan dang nhap bi triing: Neu luong phu "Them mdi", quan tri nh^p ten tai khoan trung vdi ten tai khoan cua mot ngudi dung khac, mot thong bao loi se duqc gui den quan tri Quan tri phai chqn mot ten khac va use case tiep tuc hoac quan tri huy viec them mdi va use case khdi tao Iai tir dau 64 10.2.4.Dia chi e-mail klidng hap IS (co khodng tr&ng, khong co dau @ ): Ndu ludng phu "Them mdi", quan tri nhap dia chi e-mail khdng hap Id, mot thong bao ldi se dugc gui den quan tri Quan tri phai nhap lai dia chi e-mail hop le va use case tiep tuc hoac quan tri huy viec them mdi va use case khdi tao lai tir dau 10.2.5.S3 dien thoai khong hap IS (co chic, khong dung djnh dangcuaso dien thoai ): Neu luong phu "Them mai", quan tri nhap so dien thoai khong hop le, mot thong bao loi se duqc giii den quan tri Quan tri phai nhap lai so dien thoai hap le va use case tiep tuc hoac quan tri huy viec them mdi va use case khai tao lai tir dau 10.2.6.Anh minh hoa cophhn m&rong khong hap IS (khongphai laphan mot rpng thupc dinh dang anh, chang han: doc, xls ): Neu luong phu "Them mai", quan tri chon anh minh hoa co phan md rong khong hop le, mot thong bao 16i se dirge gui den quan tri Quan tri phai chon lai anh minh hga hap le va use case tiep tuc hoac quan tri huy viec them mai va use case khai tao lai tir dim 10.2.7.Thaotdcxoabihuy: Neu luong phu "Xoa", quan tri quyet dinh khong xoa ngudi dung nua, thao tac xoa bj huy va ddng su kien chinh dugc bat dau lai tir dau 10.2.8.Thao tac thay ddi mat khhu bi huy: Neu luong phu "Sira", quan tri quyet dinh khong thay ddi mat khau ngudi dung nua, thao tac thay ddi mat khau bi huy va ddng sir kien chinh dugc bat dau lai tir diu 65 // To chiec lieu trie cct s& die lieu cua website: Co so du lieu dirge xay dung bang MySql va duge luu trir cac bang sau: BAI_GIANG(H, Tenbg, Sotiet, Ngaycapnhat, Ghichu, Userid, Lid) Bang 7-1 Bai giang Stt Ten thuoc tinh Kiludulieu Dien giai Rang buoc w s6 Ma bai giang Khda chinh Tenbg Chudi Ten bai giang Sotiet Sd Sd tilt Ngaycapnhat Ngay Ngay cap nhat Ghichu Chudi Ghi chii Userid S6 Ma ngudi dung Khda ngoai Lid S6 Loai bai giang Khda ngoai - BAI_GOI(Id, Ngaygoi, Noidung, Userid, Lid) Bang 7-2 Bai gdi Stt Thuoc tinh Kiiu du- lieu Id s6 Ma bai gdi Ngaygoi Ngay Ngay gdi bai Noidung Chudi Ndi dung bai gdi Userid S6 Ngudi gdi bai Khda ngoai Lid S6 Ma loai bai gdi Khoa ngoai • Diin giai Rang buoc Khda chinh KHOQd, gid, Mota, DuongDan, Loai) Bang 7-3 Kho Stt Thuoc tinh Kieu du- lieu Diin giai Rang buoc Id s6 Ma kho Khoa chinh Bgid So Ma bai gdi Khda ngoai Mota ChuSi Md ta kho DuongDan Chuoi Duong din kho Lid Chudi Ma loai kho Khda ngoai 66 LOAI_BAI_GIANG(Id, Ten) Bang 7-4 Loai bai giang stt Thuoc tinh KiCudii lieu Diln giai Rang buoc Id s6 Ma loai bai giang Khoachinh Ten Chuoi Ten loai bai giang LOAI_BAI_GOI(Id, Ten) Bang 7-5 Loai bai god Stt Thuoc tinh Kiiu du lieu Dien giai Rang buoc Id s6 Ma loai bai gcri Khoa chinh Ten ChuSi Ten loai bai gdi LOAIKHOQd, Ten) Bang 7-6 Loai kho Stt Thuoc tinh Kiiu dir lieu Dien giai Rang buoc Id s6 Ma loai kho Khoa chinh Ten ChuSi Ten loai kho LOAI_NGUOI_DUNG(Id, Ten) Bang 7-7 Loai ngiroi dung Stt Thuoc tinh Kiiu dfl lieu Dien giai Rang buoc Id s6 Ma loai nguai dung Khoa chinh Ten ChuSi Ten loai ngiroi dung 67 NGUOI DUNGfUsername Password, Tennd, Trinhdo, Dienthoai, Email, Anhminhhoa, Lid, Id) Bang 7-8 Ngu-M dung Stt Thuoc tinh Kiiu dft lieu Digit giai Rang buoc Username ChuSi Ten tai khoan dang nhap Khoa chinh Password ChuSi Mat kMu dang nhap Tennd ChuSi Ho ten Trinhdo ChuSi • Trinh Dienthoai ChuSi Dien thoai Email ChuSi Bja chi email Anhminhhoa ChuSi Anh mirth hoa Lid S6 Ma loai ngudi dung Id S6 S6 thti tir Khoa ngoai NOI_DUNG_BAI_GIANGQd, Bgid, Tieude, Noidung, Pid) Bang 7-9 Noi dung bai giang Stt Thuoc tinh Kiiu dir lieu Diin giai Rang buoc Id s6 Ma noi dung bai Khoa chinh giang Bgid s6 Ma bai giang Tieude ChuSi Tieu de noi dung bai Khoa ngoai giang Noidung ChuSi Noi dung bM giang Pid S6 Ma bai giang cha Khoa ngoai 68 TRA_LOI_BAI_GOI(Id, Bgid, Ngaygoi, Noidung, Userid) Bang 7-10 Tra Idi bai gdi Stt ThuSc tinh Kiiu du lieu Dien giai Rang buoc Id s6 Ma noi dung bai gdi Khoa chinh Bgid Ma bai gdi Khda ngoai Ngaygoi Ngay Ngay gdi • Noidung So Noi dung tra Idi Userid S6 Ma ngudi tra Idi Khoa ngoai /// Rang buoc toan ven: Rang buoc toan ven lien bo: R2: V tl, t2 e NGUOMDUNG: tl +12 => tl[id] + t2[id] Bang tarn anh hudng: Bang 7-11 Bang tarn anh huong eho R2 R2 Them Xda Sira NGUOI DUNG Tucrng tir cho cac bang lai Rang buoc toan ven tham chieu: • R3: V t e TRA_LOI, s CAU_HOI: s[id] = t[chid] Bang tam anh hudng: Bang 7-12 Bang tain anh huong eho R3 R3 Them Xoa Sua TRAJLOI + - + (chid) CAUHOI - + + (id) R4: Tucmg tu R3 69 R5: V t e BAI_GIANG, s e NGUOI_DUNG: s[id] = t[userid] Bang tarn anh huong: Bang 7-13 Bang tarn anh huong cho R5 R5 Them Xoa Sua BAI_GIANG + - + (userid) NGUOI_DUNG - + + (id) Rang buoc toan ven lien thuoc tinh - lien quan he: R6: V s e TRAJLOI, 3! t e CAU_HOI: t[id] = s[chid] A t[ngaygoi]