TAP CHi K H O A H Q C S O n 32 www htu edu vn NGHIEN Ctru , XAY nif^G iTNG DUNG HO TRO TCOfNG TAC CHO SINH VIEN T R I T O N G DAI HOC HA TINH Tran Thi Hurffng Tnrdng Dgi hpc Hd Tinh Email huong ti''''ant[.]
TAP CHi K H O A H Q C S O n 32 www.htu.edu.vn NGHIEN C t r u , XAY nif^G iTNG DUNG HO T R O TCOfNG TAC CHO SINH VIEN T R I T O N G DAI HOC HA TINH Tran Thi Hurffng Tnrdng Dgi hpc Hd Tinh Email: huong.ti'anthi@hti4.edu.vn Nguyin Thi Vift Trudng Dgi hoc Hd Tinh Email: viet.nguyenthi@htu.edu.vn Nguyin Thi Duyfin Trudng Dgi hpc Hd Tinh Email: duyen.nguyenthi@,htu.edu.vn Ngdy nhdn bdi (received): 9/11/2017 Ngdy nhdn bdn sura (revised): 25/11/2017 Ngdy nhgn ddng (accepted): 10/12/2017 Tdm tdt Trong bai bdo ndy nhdm tac gia nghidn cftu vd ftng dyng ngdn ngft lap trinh PHP, Java, phan tieh va thiSt ke he thdng xdy dyng phdn mdm hd ttp tuang tac cho sinh vien Trudng Dai hpc Ha TTnh Nhd dd cho phdp sinh vidn hdi dap, tta eftu didm tiii, ljch thi, hpc phi vd tuong tde vdi qua ftng dyng Tft khda: Ngdn ngft lap trinh PHP, He didu hanh Android, Ngdn ngft lap trinh Java, Ma ngudn md Research and design of the interactive software for students of Ha Tinh University Abstract In this article, the authors research and apply the Programming language PHP, and Java, analyze and design of the system to build interactive software for students of Ha Tinh University This allow students to ask questions, check scores, schedule, tuition and interact with each other through the application Keywords: Progamming language PHP, language Java, Open Source ISSN 0866-7594 2018 Joumal of Science, Vol, Xlll All rights resenwl Operating system Android, Progamming AP CHI KHOA HOC s o 13 33 www.htu.edu.vn Mdr dau Giang dudng dgi hgc khdng chi la nai dS hoc chu, md cdn phdi la nai de sinh vien ren luyfn cdc ky ndng sdng De thue hien dieu dd, ttong nhimg nam qua, cdng tac gido dye vd dodn hdi cua Trudng Dgi hgc Hd TTnh da ed nhieu chuyen bien tich eye Chdt lupng hpc tap cua sinh vien da dugc nang cao, sinh vien dugc tham gia nhieu hoat dgng vdn hda, vdn nghe, the dye, thS thao va cae boat ddng ngogi khda khac Tuy nhien, su tuang tde gifta sinh viSn vd nhd tnrdng cdn nhieu han che Mdi lien ket gifta sinh viSn vd sinh viSn cdn thieu ehdt che Da phdn nhiing bat cgp xudt phdt tft benh "ngai" eua sinh vien: ngai ndi, ngai hdi, ngai phdt biSu, chiem phan ddng ttong sd Id nhiing suih viSn nam mdt va nam hai cdn nhiSu bd ngo vd it mdi quan hf Nhdm giai quyet nhftng van de dd, nghien ciiu, xay dyng irng dyng hd tip tuang tdc cho sinh vien Trudng Dai hpc Ha TTnh la hdt sftc can thiet, Noi dung 2.1 Casdlythuyet 2.1.1 Gi&i thieu vi PHP PHP (Personal Home Page) dugc phat tridn tft nam 1994 bdi Rasmus Lerdoft Liic ddu chi la mpt bd dgc td Perl, dugc sft dyng de luru dau vet ngudi diing tten cac trang web Vdo gifta ndm 1997, PHP da dugc phat trien nhanh chdng teong su yeu thich ciia nhieu ngudi, trd mpt cdng nghe web quan trpng Qua ede giai doan phdt trien PHP bay gid dupe gpi la PHP Hypertext PreProcesor PHP la ngon ngft ma ngudn md, dupe su dung teen Web server, muc dich tgo cdc ftng dung cd su tuong tdc vdi ca sd dft lieu, PHP thyc hien vdi tdc dp nhanh va hieu qua, mdt Server binh thudng cd thd ddp ung dupe hang teieu truy cap tdi mpt Ben cgnh PHP hd trg ket ndi vdi ODBC (Open Database Connectivity) - ket ndi co sd du lieu md) dS kdt ndi vdi nhieu ngdn ngu khac md ODBC hd ttp Khd nang ftng dung cua ngdn ngu PHP: - Vdi tinh nang cai dgt dl ddng, mien phi nhanh chdng md PHP dugc cdi dgt rpng rai tten cdc ttang website nhu: Apache, IIS hay tren face, zalo dSu dugc sft dyng rdng rai Hien nay, PHP dang Id mdt teong nhiing ngdn ngft phd biSn hang dau dupe dung lap teinh web tft nhirng trang bao dien tft, trang mgng xa hdi cho tdi cac portal cua Chinh phu deu dang sft dung - Phd bien vdi tat ca cdc hf dieu hanh, mdy chii dang dupe sft dyng, de dang ket hop vdi cac CO sd dft lifu, dupe sft dyng rdng rai - PHP cd ca sd dft kif u phong phft la yeu to quan trgng ma ede tiang web yeu cau nen cang dupe ket ndi, sft dyng mgnh me hon 2.1.2 He dieu hdnh Android ISSN 0866-7594,201BJoumalofScience, Vol Xlll All nghts reserved TAP CHl KHOA HOC SO 13 34 www.htu.edu.vn Android la mgt hf didu hanh ed ma ngudn md dya tien ndn tdng Linux dugc thiSt kg danh cho cdc thiSt bi di dpng cd man hinh cam ftng nhu difn thogi thdng minh vd mdy tinh bdng Ban ddu Android dupe phat tridn bdi Tdng cdng ty Android, vdi su hd trp tai chinh tft Google Android bao gdm phdn ehinh: Middleware, Cae thu vifn va API viet bdng C, cac ftng dyng thuc thi viet bang Java Cac phdn ftng dung teSn Android bao gdm: - Activity: Ddng vai tid Id mdt man hinh, noi ngudi dimg cd tiie tuong tac vdi ftng dung - View: Dupe sft dyng dS tao cac dieu khien teen man hinh cho phep nhgn cac tuong tde tft ngudi diing cung nhu hien thi cac thdng tin edn thiet - Service: Dupe sft dung de thuc thi cac tdc vy can nhieu thdi gian, thue hien d chi dd ngdm va thuong khdng edn giao difn hiSn thi - Broadcast Receiver: Xdy dyng cdc tmyen thdng bao den cac phdn trongftngdyi^ - Intent: La ddi tugng mang thdng diep, eho phep tgo cdc yeu cau hanh ddng giiia cdc thdnh phan ftng dung hoac gifta ede ftng dung vdi - Content Provider: Xdy dung each thftc truy xudt tap hgp cac du lifu ung dung, du lieu cd the luu trft d nhieu dang nhu: SQLite, tap tin, tai nguyen Web hogc bdt ky thu muc luu tru nao - Notification: Duge xdy dyng cho myc dich gfti cdc thdng bdo dSn ngudi dung thdng qua trang thdi 2.1.3 Lap trinh Android v&i Java Cd rdt nhidu ngdn ngft dS co tiiS phat triSn ftng dyng Android nhu: Java, C/C++/C#, Lua (Corana), Javascript (PhoneGap ) Tuy nhien ngdn ngft chinh tiiuc dd phdt tiiln Android la Java Phdn ldn Android dupe viSt bdng Java va ede hdm API dupe thidt kS dupe gpi chu ydu tft Java Java Id mdt ngdn ngft lgp ttinh dugc phdt hanh ddu tien bdi Sun Microsystems vao ndm 1995 Dugc phdt teiSn teSn nhiSu loai thiSt bi khac tii dien thogi thdng minh, cho ddn may tinh ldn Java khdng bien dieh tdi Native Code ma dua tedn mdt "mdy do" co th^ hieu mdt dinh dgng ma trung gian dugc gpi Id Java bytecode Mdi nSn tdng chay Java cdn mpt may (VM) de tiiyc thi TrSn Android, mdy ban ddu dupe gpi Id Dalvik Google eung dd bat ddu xdy dyng thd he mdy tiSp theo cua hp gpi la ART Cdng vifc cfta nhiing may ao Id dd tiidng dich md bytecode, chiing tiiyc eung chi Id mdt tap cac Ifnh tirang ty nhu ma may CPU, vd thue hidn chuong trmh ttSn bp vi xu ly Lap ttinh viSn co thi phat triSn ftng dung Android tien cac he didu hanh Windows, Linux hodc OS X vd trinh ISSN 0866-7594,2018 Joumal ofScience, Vol Xl|[, All rights resen/ed t P CHI KHOA HOC SO 13 www htu edu dieh Java se chuyen ma ngudn md bytecode Ma se dupe thuc thi teen may dupe tich hop ttong Android 2.2 Bdi todn xay dirng ung dung tuang tdc cho sinh vien Trudng Dgi hpc Hd TTnh 2.2.1 Xdy dung bdi todn Yeu cau bdi toan: Ung dung gdm phdn chinh: - Ddi vdi nguai dftng: Sau ddng ky thdnh vien cd thS + Tham gia dgt edu hdi, tra Idi edu hdi voi sinh vien khdc hoac nha trudng teen cac thiet bi smartphone + Ket ban vdi nhau, theo doi cac bai vidt cua nhau, trd chuyen, tuong tac qua cdc chftc nang cua phan mem + Cho phep tra cftu ede thdng tin nhu: diem thi, hgc phi qua cac chftc ndng cua he thdng - Ddi vdi quan tri: dieu hdnh he thdng mdt edeh dl ddng vdi giao difn thdn thifn, day dii chftc nang nhu quan ly ngudi dftng, thdng ke cac thdng tin liSn quan, cap nhat cac ndi dung lien quan den thdng tin diem thi, lich thi, Ket qua dy kien: Cai dat thdnh cdng ftng dyng hd ttp tuong tdc cho sinh vien Tnrdng Dgi hgc Ha TTnh 2.2.2 Phdn tich vd thiet ki he thong - Cdc tac nhan: STT Tac nhdn Phuang thftc Ngudi dftng - Dang nhgp - Dang ky - Dang xudt - Xem cdu hdi - Xem trang cd nhdn - Xem canteaIdi - Gfti cau hdi - Tra Idi cau hdi - Theo ddi ban be - Thay ddi thdng tin - Thdng bdo - Tim kiem ban be - Lien ket trang ddo tgo - Xem hgc phi - Xem diSm ISSN 0866-7594.2018 Jcsimal ofScience, Vol Xlll, All nghts reserved 36 TAP CHI KHOA HOC SO 13 www.htu.edu.vn - Xem thdi khda biSu - Cdi dgt - Quan tri ngudi dung Quan tri vien - Thdng kS - Ddng nhdp - Ddngky - Dang xuat - Bieu dd Use Case Hinh I: Bilu d6 use case ISSN 0866-7594,2018 Joumal of Science, Vol Xlll, All rights resen/ed TAP CHI KHOA HOC SO 13 www.htu edu.vn Hinh 2: Bieu trien khai Caubci • IValoi Lugt ttiidi MicdDbdi Mi tai kboan toi M i tai kboan gui LoficsDhoi Hilo tin trang din Sdlugttbicb N^idung niem Xoa Khd phuc Mac&ihra Ndidung M i tM kboan ib&n Xda Liy cautialdi M i tai kboan M i ctiu boi Tliidi Bothidi Tai kboan # Ma tai khoan Tendiydii TSnd&ngDh^ mcngbsotialoi • • Ma tai kboan M i cau bdi Tf dioag b k i Iheo doi Mjtldiau Anh Ha I Ma sinh vien M$ikhSuaiibvi§n Siia KDgnbgp Bioglcy ESngxuit Daub sadidcn Tdi tai kboan Tutaikboao • Bao cao Toi lai kboan Tir lai khoan tim (kmg bao cao Logbuy C9P Bocb^ Tdi tai khoan l b tai kboan nieod^ B6 theo doi Mft tai kboan M i user agent IP ib€m Hinh 3: Mo hinh hda ca sd dft lifu 2.2.3 Cdi dgt phdn mem • Thdng tin eai dat - Client - Ngdn ngu lap trinh: Java - He didu hdnh: Android - Server - Ngdn ngu lgp trinh: PHP ISSN 0866-7594,2018 Joumal of Science Vol Xlll, All n; www.htu.edu.vn TAP CHI KHOA HOC SO 13 - He didu hdnh: da nen tang • Mgt sd giao dien chuang trinh CtiiSu htfc k njra? Nguy6n Tien Dung vfl ngirtri k h ^ c C Ng ta phdt hl$n xdc ctiet c i l a m $ t c h ^ n g trai treo cS ctiet il n o c n h d Dirdrl c h a n c$u ta cdch k h o d n g c m S^n s d n n h d Id m ^ v u n g nirdc ldm Hdi c4iJ t a l a m s a o