You are on page 1of 232

TheGoiEbook.

com

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

PHAN I :

C S LY THUYET VE NGON NG VISUAL BASIC


I. Tm hieu ngon ng lap trnh Visual Basic 1. Tong quan ve ngon ng lap trnh Visual Basic
Visual Basic, con ng nhanh nhat va n gian nhat e tao nhng ng dung cho Microsoft Windows. Bat ke ban la mot nha chuyen nghiep hay la mot ngi mi lap trnh Windows, Visual Basic cung cap cho ban mot tap hp cac cong cu hoan chnh e nhanh chong phat trien cac ng dung. Vay Visual Basic la g ? Thanh phan Visual noi en cac phng thc dung e tao giao dien o hoa ngi s dung (GUI). Thay v viet nhng dong ma e mo ta s xuat hien va v tr cua nhng thanh phan giao dien, ta ch can them vao nhng oi tng a c nh ngha trc v tr nao o tren man hnh. Thanh phan Basic noi en ngon ng BASIC (Beginners All-Purpose Symbolic Instruction Code) mot ngon ng c dung bi nhieu nha lap trnh hn bat c mot ngon ng nao khac trong lch s may tnh. Visual Basic c phat trien dan dan da tren ngon ng BASIC, va bay gi cha ng hang tram ieu lenh, ham, va t khoa co quan he trc tiep vi giao dien o hoa cua Windows. Ngon ng lap trnh Visual Basic khong ch la Visual Basic. He thong lap trnh Visual Basic, nhng ng dung bao gom Microsoft Excel, Microsoft Access, va nhieu ng dung Windows khac eu dung cung mot ngon ng. Mac du muc ch cua chung ta la tao ra nhng ng dung nho cho ban than hay mot nhom, mot he thong cac cong ty ln, hoac tham ch phan phoi nhng ng dung ra toan cau qua Internet. Visual Basic la cung cu ma ban can. Nhng chc nang truy xuat d lieu cho phep ta tao ra nhng c s d lieu, nhng ng dung front-end, va nhng thanh phan pham vi server-side cho hau het cac dang thc c s d lieu pho bien, bao gom Microsoft SQL Server va nhng c s d lieu mc enterprise khac. Nhng ky thuat ActiveX cho phep ta dung nhng chc nang c cung cap t nhng ng dung khac, nh la chng trnh x ly van ban Microsoft Word, bang tnh Microsoft Excel va nhng ng dung Windows khac. Kha nang Internet lam cho no de dang cung cap cho viec them vao nhng tai lieu va ng dung qua Internet hoac intranet t ben trong ng dung cua ban, hoac tao nhng ng dung Internet server. ng dung cua ban ket thuc la mot file .exe that s. No dung mot may ao Visual Basic e ban t do phan phoi ng dung. Trang 1

TheGoiEbook.com

2. Cau truc cua mot ng dung Visual Basic


Mot ng dung that ra la mot tap hp cac ch dan trc tiep en may tnh e thi hanh mot hay nhieu tac vu. Cau truc cua mot ng dung la phng phap trong o cac ch dan c to chc, o la ni ch dan c lu gi va thi hanh nhng ch dan trong mot trnh t nhat nh. V mot ng dung Visual Basic, tren c ban la nhng oi tng, cau truc ma ong e tng trng cho nhng mo hnh vat ly tren man hnh. Bang viec nh ngha, nhng oi tng cha ma va d lieu. Form, cai ma chung ta nhn thay tren man hnh la tng trng cho nhng thuoc tnh, quy nh cach xuat hien va cach c x. Cho moi form trong mot ng dung, co mot quan he module form (vi ten file m rong la .frm) dung e cha ng ma cua no. Moi module cha nhng thu tuc s kien nhng oan ma, ni at nhng ch dan, cai se c thi hanh trong viec ap ng nhng s kien ch nh. Form co the cha nhng ieu khien. Tng ng vi moi ieu khien tren form, co mot tap hp nhng thu tuc s kien trong module form o. Ma khong ch quan he vi mot form ch nh hay ieu khien co the c at trong mot loai module khac, mot module chuan (.BAS). Mot thu tuc c dung e ap ng nhng s kien trong nhng oi tng khac nhau phai c at trong cung mot chuan, thay v tao nhng ban sao ma trong nhng thu tuc s kien cho moi oi tng. Mot lp module (.cls) c dung e tao nhng oi tng, cai ma co the c goi t nhng thu tuc ben trong ng dung cua ban. Trong khi mot module chuan ch cha ma, mot lp module cha ng ca ma va d lieu. Ta co the ngh no nh mot ieu khien.

3. Chung ta co the lam g vi Visual Basic


Tao giao dien ngi s dung Giao dien ngi s dung co le la thanh phan quan trong nhat cua mot ng dung. oi vi ngi s dung, giao dien chnh la ng dung ; ho khong can chu y en thanh phan ma thc thi ben di. ng dung cua chung ta co the pho bien c hay khong phu thuoc vao giao dien. S dung nhng ieu khien chuan cua Visual Basic Ta dung nhng ieu khien e lay thong tin ma ngi s dung nhap vao, va e hien th ket xuat. Nhng ieu khien ma ta co the dung trong ng dung bao gom hop van ban, nut lenh, va hop danh sach,. Nhng ieu khien khac cho ta truy xuat nhng ng dung khac, x ly d lieu cua no nh la mot thanh phan ma trong ng dung cua ban. Lap trnh vi nhng oi tng. Nhng oi tng la thanh phan chu yeu e lap tnh Visual Basic. Nhng oi tng co the la form, nhng ieu khien hay c s d lieu.

Trang 2

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Lap trnh vi phan hp thanh Chung ta oi khi can s dung kha nang tnh toan cua Microsoft Excel trong ng dung Visual Basic, hay nh dang mot tai lieu s dung thanh cong cu nh dang cua Microsoft Word, hoac lu tr va x ly d lieu dung Microsoft Jet Tat ca nhng ieu nay co the thc hien c bang cach xay dng nhng ng dung cua chung ta s dung nhng thanh phan ActiveX. Them vao o, Visual Basic co the giup chung ta tao ra nhng ieu khien ActiveX rieng. ap ng nhng s kien chuot va ban phm Nhng ng dung Visual Basic co the ap ng mot lng ln s kien chuot va ban phm. V du form, hop anh, va nhng ieu khien anh co the phat hien v tr con tro chuot, co the quyet nh phm trai hay phm phai c nhan, va co the ap ng nhng to hp cua phm chuot vi phm Shift, Ctrl, hay Alt. S dung nhng ieu khien phm, ta co the lap trnh nhng ieu khien va form e ap ng cac hanh ong phm hoac phien dch va x ly ma Ascii cua ky t. Them vao o, nhng ng dung Visual Basic co the ho tr s kien re va tha cung nh tnh nang re va tha OLE. Lam viec vi van ban va o hoa. Visual Basic cung cap kha nang o hoa va van ban phc tap trong ng dung. Nhng thuoc tnh van ban co the giup ta nhan manh cac khai niem quan trong va cac chi tiet can quan tam. Them vao o, Visual Basic cung cap kha nang o hoa cho phep ta linh ong trong thiet ke, bao ham cac hnh anh ong bang cach hien th mot loat cac hnh anh lien tiep nhau. G roi ma va quan ly loi oi khi co nhng loi xay ra ben trong ma cua ng dung. Nhng loi nghiem trong co the la nguyen nhan mot ng dung khong ap ng lenh, thong thng yeu cau ngi s dung khi ong lai ng dung, va khong lu lai nhng g ta a lam. Qua trnh tm ra va sa loi goi la g roi. Visual Basic cung cap nhieu cong cu giup chung ta phan tch ng dung lam viec nh the nao. Nhng cong cu g roi at biet hu ch trong viec tm ra nguon goc loi, nhng chung ta cung co the dung nhng cong cu nay e kiem tra chng trnh hoac tm hieu nhng ng dung khac nhau lam viec nh the nao. X ly o a, th muc va file Khi lap trnh trong Windows, no rat quan trong e co kha nang them, di chuyen, tao mi hoac xoa nhng th muc va file, lay thong tin ve va x ly o a. Visual Basic cho phep chung ta x ly o a, th muc va file bang hai phng phap : qua nhng phng htc cu nh la ieu lenh Open, Write#, va qua mot tap hp cac cong cu mi nh FSO (File System Object)

Trang 3

TheGoiEbook.com

Thiet ke cho viec thi hanh va tnh tng thch Visual Basic chia xe hau het nhng tnh nang ngon ng trong Visual Basic cho nhng ng dung, bao gom trong Microsoft Office va nhieu ng dung khac. Visual Basic, VBScript, mot ngon ng script Internet, eu la tap hp con cua ngon ng Visual Basic. Phan phoi nhng ng dung Sau khi tao mot ng dung Visual Basic, ta co the t do phan phoi bat ky ng dung nao a tao bang Visual Basic en bat c ai dung Microsoft Windows. Ta co the phan phoi ng dung tren a, tren CD, qua mang, tren intranet hoac Internet.

4. Tom tat ngon ng


4.1. Bien Bien c dung e lu tam thi cac gia tr tnh toan trong qua trnh x ly chng trnh. Cach khai bao bien Visual Basic dung cach khai bao bien trong chng trnh nh sau : Dim <Ten bien> As <Kieu bien> Ta cung co the khong can khai bao kieu bien (tc bo menh e As <Kieu bien> pha sau), trong trng hp nay, bien co the c dung e lu gi mot gia tr bat ky. Quy tac at ten bien Ten bien co chieu dai toi a 255 ky t. Phai bat au bang mot ch cai. Khong at cac khoang trong va cac ky hieu (+ - * /) trong ten bien. Khong c trung vi t khoa cua ngon ng. Tranh at ten trung nhau. Pham vi s dung bien Pham vi s dung bien tuy thuoc cach ta khai bao va cho ta at dong lenh khai bao bien. Neu ta khai bao trong phan General, bien co the c dung bat ky oan lenh nao trong from va cung ch mat i khi from c giai phong khoi bo nh. Neu ta khai bao bien trong phan viet lenh cho mot s kien cua mot oi tng (tc khai bao gia hai dong Sub va End Sub cua ma lenh o) th bien ch ton tai va dung c trong pham vi hai dong Sub va End Sub o ma thoi. Bien nh vay goi la bien rieng hay bien noi bo. Neu ta dung t khoa Public thay cho Dim e khai bao bien , bien se ton tai trong suot thi gian thc hien chng trnh va co the dung c trong bat c oan lenh nao cua chng trnh. Bien nh vay goi la bien chung hay bien toan cuc. Trang 4

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

4.2. Cac kieu d lieu trong Visual Basic Ten kieu Byte Kch thc 1 byte Khoang ga tr 0 en 255 (tc co the gan cho bien cac gia tr nho nhat la 0 va ln nhat la 255) -32768 en 32767 -2.147.483.648 en 2.147.483.647 -3,402823E38 en 1,401298E-45 (cac ga tr am) 1,401298E-45 en 3,402823E38 (cac ga tr dng) -1,79769E308 en 4,94065E-324 (gia tr am) 4,94065E-324 en 1,79769E308 (gia tr dng) -922337203685477,5808 en 922337203685477,5807 True ti False 1 thang 1 nam 100 en 31 thang 12 nam 9999 ; Thi gian t 0:00:00 en 23:59:59: co the len en 231 ky t

Integer Long Single

2 byte 4 byte 4 byte

Double

8 byte

Currency

8 byte

Boolean Date

2 byte 2 byte

String

1 byte cho moi ky t 16 byte + 1 byte cho moi ky t

Variant

Null, Error, bat ky kieu so nao co gia tr trong khoang Double hay bat ky noi dung text nao

Ky hieu Exx pha sau so co ngha la nhan vi 10xx. Kieu so nguyen dng (khong chap nhan so am) gom kieu Byte. Kieu so nguyen (chap nhan ca so am nhng khong chap nhan phan le thap phan) gom cac kieu :Integer, Long. Kieu so thc gom Single, Double, Currency. Kieu Boolean goi la kieu luan ly, no ch chap nhan hai gia tr True la ung va False la sai. Kieu String dung e cha cac gia tr chuoi. Mot chuoi ky t co the co nhieu ky t. Khi viet mot gia tr chuoi, ta phai bao hai au no bang dau nhay kep.

Trang 5

TheGoiEbook.com

Kieu ngay thang (Date) e cha gia tr thi gian. Khi viet mot gia tr kieu Date, ta co the viet theo bat c kieu ghi gi nao bao hai au bang dau #.

4.3. Cac toan t trong Visual Basic 4.3.1. Cac toan t tnh toan Toan t + * / \ Mod ^ Y ngha Cong hai so hang vi nhau co the dung e cong hai chuoi Tr hai so hang Nhan hai so hang Chia, tra ve kieu so thc Chia lay nguyen Chia lay d Lay luy tha V du X =Y + 1 st= Visual + Basic X=Y-1 X=Y*1 Y=1/2 X=3\2 X se nhan gia tr 1 X = 7 Mod 4 X se nhan gia tr 3 X=Y^3

4.3.2. Cac toan t so sanh Toan t > < = <> >= <= Y ngha So sanh xem so th nhat co ln hn so th hai khong. So sanh xem so th nhat co nho hn so th hai khong. So sanh xem so th nhat co bang so th hai khong. So sanh xem so th nhat co khac hn so th hai khong. So sanh xem so th nhat co ln hn hay bang so th hai khong. So sanh xem so th nhat co nho hn hay bang so th hai khong.

4.3.3. Cac toan t luan ly Toan t And Or Not Y ngha Tra ve True neu ca hai so hang eu la True, tra ve False neu mot trong hai so hang la False. Tra ve True neu mot trong hai so hang la True, tra ve False neu ca hai so hang la False. Tra ve True neu so hang la False, False neu so hang la True.

4.4. Cau truc tuyen va cau truc lap 4.4.1. Cau truc tuyen Cau truc tuyen If Cu phap 1 :

Trang 6

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If <bieu thc luan ly> Then End If Cu phap 2 : If <bieu thc luan ly> Then Else End If Cau truc tuyen Select Case Cu phap : Select Case <bien hay bieu thc> Case <cac gia tr> <cac cau lenh> Case <cac gia tr>

Neu bieu thc luan ly tren la True th thc hien oan lenh nay

Neu bieu thc luan ly tren la True th thc hien oan lenh nay Ngc lai neu bieu thc luan ly la False th thc hien oan lenh nay.

xet bien hay bieu thc nay Neu bien hay bieu thc bang cac gia tr nay th thc hien oan lenh nay

[ Case Else <cac cau lenh> ] End Select 4.4.2. Cac cau truc lap Cau truc DoLoop Cu phap 1 : Do While <bieu thc ieu kien> <cac cau lenh> Loop

co the co nhieu Case cho cac ieu kien can xet. Neu bien hay bieu thc khong bang cac gia tr cua cac Case ben tren th thc hien phan lenh nay

trong khi bieu thc ieu kien ung th thc hien cac cau lenh nay Quay tr ve dong Do While e kiem tra lai Trang 7

TheGoiEbook.com

Cu phap 2 : Do <cac cau lenh> Loop Until <ieu kien> thc hien cac cau lenh nay cho en khi ieu kien ung

Cu phap nay khac cu phap 1 cho : trong cu phap 1 ieu kien c xet trc khi thc hien cac cau lenh, cu phap 2 ieu kien c xet sau khi thc hien cac cau lenh. Cau truc ForNext Cu phap : For bien = gia tr au To gia tr cuoi [Step khoang tang] <cac cau lenh> Next bien 4.5. Thu tuc Cach nh ngha thu tuc Mot thu tuc trc khi muon s dung no phai nh ngha no. Dung t khoa Sub e khai bao thu tuc nh the nay. Private/Pulic Sub <Ten thu tuc> <Cac ma lenh ma thu tuc nay thc hien> End Sub Cho ket thuc thu tuc. Neu ta khai bao bang t khoa Public, thu tuc co the c goi e s dung trong bat ky form nao trong chng trnh. Neu ta khai bao bang t khoa Private, thu tuc ch co the dung c trong form co cha no ma thoi Thu tuc co truyen tham so Khi mot thu tuc c goi ma co truyen them mot so gia tr vao, cac gia tr nay c goi la cac tham so cua thu tuc o. e lam ieu nay, khi khai bao thu tuc ta can ghi them no se nhan bao nhieu tham so bang cu phap nh sau : Private/Public Sub <Ten thu tuc> (<Ten tng trng cho tham so> As <Kieu>,)

Trang 8

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

II. Nhng ng dung Internet Visual Basic 1. Cac khai niem ve ng dung Internet
1.1. ng dung Internet la g ? Mot ng dung Internet la mot ng dung tng tac, mot ng dung a c dch co the truy xuat qua Internet. ng dung Internet co the thi hanh nhng cong viec phc tap tren ca client hay tren server. Trong mot ng dung Internet server based, no dung giao thc Internet HTTP e lay lai nhng yeu cau t mot client, ac biet la mot Web browser, x ly ma ket hp vi no, va gi tra d lieu ve cho browser. Trong lap trnh Internet Visual Basic, ta co the them noi dung ong vao nhng trang Web de dang. ng dung Internet Visual Basic lien ket ma Visual Basic en mot hoac nhieu trang HTML va quan ly s kien phat sinh trong nhng trang nay bi viec tng tac vi chng trnh tren ca client hay tren server. Giao tiep vi ngi dung trong mot ng dung Internet Visual Basic co the la mot chuoi cac trang HTML(Hyper Text Markup Language), hay la mot s tron lan cua trang HTML va Visual Basic form. Tuy nhien, vi loai giao dien nao th ng dung cung quan ly s kien, goi nhng phng thc, thiet lap va lay lai nhng thuoc tnh c ban tren nhng thanh phan trong trang HTML o. 1.2. Nhng mo hnh oi tng Internet Chung ta ch dung khai niem lap trnh hng oi tng trong ng dung Internet Visual Basic ch khi chung ta lam trong ng dung Visual Basic formbased. Trong ng dung Internet Visual Basic, chung ta dung mo hnh oi tng quan he e truy xuat va x ly thong tin va nhng ieu khien tren trang HTML

. Co hai loai ng dung Internet Visual Basic : ng dung IIS va ng dung DHTML. Trong o ng dung IIS (Internet Information Server), ta dung mo hnh oi tng Active Server Pages (ASP) e lay lai thong tin t ngi s dung, gi thong tin en browse, va lu lai thong tin ve phien lam viec hien tai. Trong ng dung DHTML, ta dung mo hnh oi tng Dynamic HTML (DHTML) e x ly nhng thanh phan tren mot trang HTML.
Trang 9

1.3. Lch s phat trien tren Internet

TheGoiEbook.com

Noi dung tnh

ng dung au tien tren Internet la nhng trang tnh, no gi noi dung no en browser va khong t phan ng vi bat ky hanh ong nao ma ngi s dung a thi hanh. Mac du mo hnh trnh bay vi ngi s dung nhng trang thong tin a c format nhng s tng tac o la co gii han gia ngi s dung va Web server. Nhng trang tnh nay phai c hieu chnh bang tay e cap nhat nhng noi dung cua no.
Trnh bay noi dung ong bang cach lap trnh Gateway

S phat trien cua nhng giao tiep Gateway nh la Common Gateway Interface (CGI), ng dung Internet Server Programming Interface (ISAPI), va nhng cai khac cho phep ngi s dung them vao nhng noi dung ong cho Web. Vi noi dung ong, mot browser co the gi mot yeu cau cho viec tm kiem thong tin. Server, thay v tra ve mot trang tnh, no chay mot script hay mot ng dung va tra ve trang HTML a c cap nhat va thong tin chnh xac. ieu bat thuan li cua chng trnh Gateway la kho tao va thay oi no.
Trang 10

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Scripting

Scripting cho phep noi dung ong bang cach ket hp nhng Script co the thi hanh c vao trc tiep trong mot trang HTML. Thay v yeu cau Server, browser co the s ly nhng Script khi no tai HTML nay. Nhung script co the c s ly tren ca Client hay tren Web server. Ngon ng chung cho script Client side la VBScript va JavaScript. Rieng vi Script server side, ngon ng chung cho no la Active Server Pages (ASP). Trong mo hnh ASP Script, phat trien HTML va phat trien Script la cung qua trnh. No cho phep nha cung cap Web cung cap nhng ng dung tng tac thay v ch la xuat ban noi dung.
ng dung Internet Visual Basic Ky thuat Internet Visual Basic cho phep ta lien ket nhng ma VB chuan vi giao tiep ngi s dung cua nhng trang HTML. No cung cap chc nang lap trnh ket hp vi trang Web, cho phep ta tao nhng trang ong va tng tac. Vi ky thuat Internet Visual Basic, ta co the thi hanh nhng hoat ong phc tap ma khong can phai lap trnh phc tap nh

Co hai loai ng dung Internet VB chnh: ng dung IIS va ng dung DHTML.


Gateway hay Scripting.

1.4. Nhng thuan li cua ng dung Internet Visual Basic Co nhieu phng phap e phat trien nhng ng dung cho Internet. Trc khi co Visual Basic 6.0, nhng nha phat trien thng da tren chng trnh Gateway, tren chc nang ActiveX, hay tren Active Server Page e tao nhng ng dung Internet ong, tng tac. Phat trien ng dung Internet trong Visual Basic a ra nhieu khoa thuan li hn nhng phng phap tren. Trang 11

TheGoiEbook.com

Ta co the lam giam ang ke chi ph cho viec trien khai ng dung en vi moi ngi s dung. Ngi s dung cua mot ng dung Internet IIS co the chay ng dung nay ch vi duy nhat mot browser thch hp va thi gian chay Visual Basic tren may tnh cua ho. Nhng thanh phan can thiet a c thiet lap t ong trc o. Ta co the s dung kien thc cua mnh ve Visual Basic va dung moi trng lap trnh Visual Basic, khong can phai hoc Scripting hay nhng thao tac x ly nhng tag HTML e phat trien mot ng dung co chc nang Web base cao. Ta co the tach biet viec thiet ke giao dien ngi s dung t viec viet ma cho mot form hay mot trang. Trong nhng ng dung Web base trc, nhng ngi phat trien phai chen nhng script cua ho vao trc tiep trong mot tai lieu HTML, cai ma hau nh dung e tao giao dien ngi s dung. No lam cho ma tr nen kho oc va quan ly. Trong ng dung IIS, ta co the dung lai nhng trang trong nhng ng canh khac nhau. Khong giong nh HTML, ni ma thong tin t trang nay sang trang khac phai c gan chat vao trong ban than HTML, th viec lai thong tin cho mot trang trong mot ng dung Internet Visual Basic c lu tr tach biet t ban than moi trang. No cho phep ta dung trang nay nhieu ni trong mot ng dung, viec thay oi hng tuy thuoc vao ng canh. Ta co the giam thi gian tai va do o giam thi gian tai mang cua chung ta, bi v he thong khong can phai tai xuong nhng thanh phan khac e chay ng dung . Ta co the de dang lu gi trang thai ng dung, nh la ten cua ngi s dung hoac so account gia nhng yeu cau client. Tuy thuoc vao loai ng dung, ta co the lu gi trang thai tren client, tren server hay ca hai. Ta co the g roi nhng ng dung IIS va DHTML bang nhng cong cu g roi chuan cua Visual Basic.

2. ng dung Internet va nhng ky thuat Internet trong Visual Basic


2.1. ng dung Internet Visual Basic 2.1.1. ng dung IIS Nhng ng dung IIS thng tru tren Web Server va x ly nhng yeu cau en t mot browser. ng dung IIS x ly yeu cau o, chay ma VB ket hp vi no va tra ve nhng ap ng cho ngi s dung. Cac qua trnh x ly cho mot ng dung IIS eu xay ra tren server.

Trang 12

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

2.1.2. ng dung DHTML ng dung DHTML cho phep ta viet ma Visual Basic e quan ly nhng s kien tren bat c thanh phan nao cua mot trang HTML. Hau het qua trnh x ly trong mot ng dung DHTML co the xay ra tren may browser, mac du ng dung co the goi server neu thay can thiet. 2.1.3. S khac nhau gia ng dung IIS va ng dung DHTML ng dung IIS va ng dung DHTML la hai loai ng dung Internet ma ta co the tao tren Visual Basic. Chung ta eu co the ap ng nhng s kien trong mot trang HTML, tuy nhien cung co s khac gia hai loai ng dung : S phu thuoc ng dung DHTML c dung cho intranet, va phu thuoc vao Internet Explorer 4.0, trong khi IIS ng dung co the c dung tren Internet hoac intranet. Ngi s dung cua mot ng dung IIS khong can ch nh he ieu hanh hay browser. Mo hnh oi tng ng dung DHTML dung mo hnh oi tng khac vi ng dung IIS e truy xuat va lam viec vi nhng thanh phan tren mot trang HTML. Trong khi ng dung IIS dung mo hnh oi tng Active Server Pages, DHTML dung mo hnh oi tng Dynamic HTML. Ni x ly cac qua trnh - ng dung IIS c thiet ke e thc thi hau het cac quatrnh x ly cua no tren Web Server, con ng dung DHTML thc thi qua trnh x ly cua no tren may browser. Ta khong the tao bat c thanh phan Web Server nao khi ta tao mot ng dung DHTML. 2.2. Cac ky thuat lap trnh Web ma Visual Basic ho tr 2.2.1. VBScript Microsoft Visual Basic Scripting, thanh phan mi nhat cua ho ngon ng lap trnh Visual Basic, mang nhng Script ong vao nhng moi trng khac nhau, bao gom Script client Web trong Microsoft Internet Explorer va Script Server Web trong Microsoft Internet Information Server. Visual Basic Scripting c thiet ke e lam chu ben trong mot Internet browser, nh la Microsoft Internet Explorer hay nhng browser khac. VBScript la ky thuat ngon ng cc nhanh va manh danh cho nhng moi trng giong nh Internet, intranet, hay Word Wide Web. No cho phep nhng nha phat trien dung Visual Basic e nhanh chong tao ra nhng giai phap cho Internet hay Word Wide Web. Do VBScript la mot ngon ng phat trien qua platform, nen khong co mot so thanh phan cua ngon ng Visual Basic cho nhng ng dung. Chung bao gom nhng ham xuat nhap file, nhng hang va loai d lieu thuoc ben trong. Ta co the viet ma VBScript trong ca so ma cua Visual Basic, nhng khong the chay hay kiem tra ng dung trong Visual Basic IDE. 2.2.2. Dynamic HTML Trang 13

TheGoiEbook.com

Dynamic HTML la mot tap hp cac tnh nang co tnh chat oi mi trong Microsoft Internet Explorer 4.0 Dynamic HTML cho nhng nha sang tac kha nang tao nhng tai lieu HTML that noi bat , cai ma tng tac vi ngi s dung ma khong phai da tren nhng chng trnh server side hay tap hp nhng trang HTML phc tap e tao ra nhng hieu qua ac biet. Vi Dynamic HTML, ta co the de dang them vao nhng hieu ng, v du: Lam an i van ban va hnh anh vao trong tai lieu va gi noi dung an cho en khi qua mot khoang thi gian a ch nh hay ngi s dung tng tac vi trang nay. Lam cho van ban va hnh anh trong tai lieu cua tr nen song ong. Moi thanh phan hoat ong oc lap t bat ky iem bat au nao cho en bat c iem ket thuc nao, theo mot ng dan ta chon hay ngi s dung a chon . Tao mot ong ho e t ong cap nhat noi dung mi nhat, kho trch dan, hay d lieu khac Tao mot form sau o oc, x ly, va ap ng cho d lieu ma ngi s dung nhap vao trong form. Dynamic HTML lam viec rat tot vi nhng ng dung, nhng ieu khien Active X, va nhng cai khac chap nhan nhng oi tng. Ta co the dung nhng ng dung va ieu khien ang ton tai hay tao ra mot thanh phan mi. Nhng ng dung va ieu khien lam viec rat tot khi no da vao o e x ly nhng tac vu kho khan , va dung Dynamic HTML e hien th ket xuat va x ly thong tin ngi s dung nhap vao. 2.2.3. Nhng thanh phan ActiveX Nhng thanh phan ActiveX cho ta kha nang tao ra ng dung bang cach ket hp nhng ng dung tinh vi t nhng cai a co san. ActiveX la mot oi tng, nhng khong phai bat c oi tng nao cung la ActiveX ma no phai tuan theo 2 tieu chuan chnh : o la oi tng COM (Component Object Model), va co kha nang t ang ky. o la nhng oan chng trnh oc lap thc hien mot chc nang nao o ma co the c goi bi nhng ng dung bat ky khac. Khi ban xay dng nhng trang Web th ActiveX Control se lam cho trang Web cua ban song ong vi nhng tnh nang phong phu, va tng tac cao vi ngi s dung. ng dung Visual Basic co bao ham nhieu loai thanh phan ActiveX Nhng ng dung ho tr ky thuat ActiveX, nh la Microsoft Excel, Microsoft Word, va Microsoft Access, cung cap nhng oi tng ma ta co the thao tac lap trnh t ben trong ng dung Visual Basic cua chung ta. V du ta co the dung nhng thuoc tnh, phng thc va s kien cua Microsoft Excel, Microsoft Word, va Microsoft Access trong ng dung cua ta. Nhng thanh phan ma cung cap th vien cua nhng oi tng co the lap trnh . Khong giong nh mot oi tng trong ng dung cho phep ActiveX , mot oi Trang 14

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tng trong mot thanh ma co the chay trong cung mot qua trnh vi ng dung cua ta, cho phep nhanh chong truy xuat ti nhng oi tng nay. Ta co the them nhng tnh nang ma khong phai tao chung bang cach s dung nhng ieu khien ActiveX. V du nh hien th mot lch cong tac tren mot form hoac oc d lieu c nh dang ac biet. Nhng tai lieu Active X cho phep ta tao nhng ng dung Internet tng tac . Ta co the tao nhng form co the c cat gi trong Internet Explorer. Nhng tai lieu ActiveX co the hien th hop thong bao , form va bao ham nhng ieu khien Active X . Nhng tai lieu ActiveX co the co chc nang nh la nhng thanh phan ma.

Trang 15

TheGoiEbook.com

PHAN II :

GII THIEU E TAI


I. e tai
Lap trnh Web bang ngon ng Visual Basic 6.0

II. Nhiem vu e tai


Tao ra mot mo phong cua ien thoai di ong, vi nhng tnh nang, tac vu cung nh nguyen ly hoat ong da theo mot loai may ien thoai di ong co thc, vi yeu cau la ngi s dung tren mang co the dung c nh mot ien thoai that s.

Trang 16

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

PHAN III :

PHAN TCH VA THIET KE E TAI


I. Phan tch e tai
1. Xac nh muc tieu cua chng trnh Nhiem vu cua chng trnh la tao ra mot website, tren o mo phong mot ien thoai di ong, vi ay u nhng tnh nang, tac vu nh mot ien thoai that s. Them vao o, website phai co nhng trang hng dan that ay u, chi tiet ve nhng tnh nang, tac vu, vi muc tieu la mot ngi s dung bnh thng, khi oc qua nhng hng dan, cung co the de dang s dung ien thoai mo phong nay nh la mot ien thoai that s. 2. Xac nh cach hien thc chng trnh Do nhiem vu cua e tai la lap trnh Web vi ngon ng lap trnh la Visual Basic 6.0, do o yeu cau phai nam vng nhng kien thc c ban cua Visual Basic 6.0, nh cac ieu lenh, cac toan t, cac cau truc tuyen, cach lam viec vi bien, vi file . Ngoai phai nam vng cac kien thc c ban o, chung em con phai tm hieu them cac khai niem c ban ve Internet e tien cho viec trien khai ng dung sau nay. Do yeu cau cua e tai la tao ra 1 mo phong ien thoai di ong, ma ngi s dung co the s dung tren mang. Van e at ra la phai tm mot cong cu ma Visual Basic 6.0 cung cap e tao ra mot mo phong ien thoai vi kha nang o hoa va tng tac cao vi ngi s dung tren mang. Sau khi tm hieu cac cong cu, oi tng ma Visual Basic 6.0 cung cap, ho tr e phat trien nhng ng dung tren Internet, chung em quyet nh chon ActiveX Control lam cong cu e xay dng chng trnh (ien thoai mo phong). Vi ActiveX Cotrol, chung em co the tao ra giao dien ngi s dung ap ng c kha nang o hoa cao va tng tac vi ngi s dung. Them vao o, chung em a dung Microsoft Frontpage nham tao s de dang trong viec tao cac trang hng dan ngi s dung dung nhng tnh nang c xay dng trong ien thoai mo phong, 4. Cac cong cu se dung e xay dng chng trnh Visual Basic 6.0. ActiveX Control trong Visual Basic 6.0. Microsoft Frontpage.

Trang 17

TheGoiEbook.com

II.

Thiet ke e tai

Phan thiet ke c chia lam 2 phan : thiet ke giao dien va xay dung nhng tnh nang tac vu cua ien thoai mo phong. 1. Thiet ke giao dien Giao dien cua chng trnh la mot chuoi cac trang html, vi trang chnh se trnh bay vi ngi s dung khi kch hoat chng trnh la

Tren trang chnh nay a thiet ke san nhng lien ket, lai ngi s dung en nhng trang khac nhau tuy theo moi lien ket ma ho chon

Trang 18

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Theo nhng lien ket nay, ban se en trang hng dan cung nh s dung ien thoai mo phong. Trang nay c chia lam 3 frame, vi moi frame la mot trang khac nhau, trnh bay nhng noi dung khac nhau. Ngi s dung co the lan theo nhng moi lien ket frame th nhat (trnh bay trang cay tnh nang) e xem nhng hng dan chi tiet ve cach s dung nhng tnh nang o c trnh bay frame th ba. Khi user xem nhng hng dan chi tiet o, ho co the trc tiep kiem nghiem cach hoat ong cua nhng tnh nang c xay dng tren ien thoai mo phong tren frame th hai cua trang nay.

Trang trnh bay cau truc cay nhng tnh nang c xay dng trong ien thoai mo phong

Trang 19

TheGoiEbook.com

Trang hng dan s dung, trnh bay that chi tiet cach dung nhng tnh nang a c mo phong

Trang trnh bay ien thoai mo phong va ngi s dung co the dung trc tiep nh mot ien thoai that s

Trang 20

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

2. Xay dng nhng tnh nang trong ien thoai mo phong Nhng tnh nang, tac vu trong ien thoai mo phong c xay dng da tren mot loai may ien thoai di ong co thc, may Motorola Cd928. Do xay dng da tren mot may co thc nen nhng tnh nang cung nh nguyen ly hoat ong cua no cung phai c bao am nh may that. Nhng tnh nang cua may c tch hp trong cac menu, trong o menu chnh se la (1) (2) (3) (4) (5) (6)
Accessory

Phone Book (1)

Call Related Features

Messages

Phone Setup

Network Selection

Nhng tnh nang trong menu co chc nang cuon tron theo nguyen ly nh may Motorola Cd928.

(1) ,.: trnh t cua cac menu con

Trang 21

TheGoiEbook.com

1. Menu Phone Book

Phone Book
Personal Number - Find Entry By Name - Find Entry By Location - Add Entry
Enter Name

- Call Number - Modify Name Or Number - Erase Name And Number - Call Number - Modify Name Or Number - Erase Name And Number

Enter Location

- Add To Phone Memory


- Check Phone Capacity
- Check SIM Capacity

- Add To SIM Card Memory

- Check Capacity - Prevent Access Fixed Dialling

- No Memory Restrictions

-View Fixed Dial List -Setup Fixed Dialling _Enter PIN2

- To SIM Card Memory - To Phone Memory - To Phone & SIM Memory

- On

One-Touch Dial Setting

- To Phone Memory - To SIM Memory - To Fixed Dial List

- Off - Edit Entry - Add Entry - Erase Entry

Phone Book
Danh ba ien thoai ien t. La ni ban co the lu nhng ten va so ien thoai nh mot muc rieng le. Personal Number La mot menu con dung cho viec tao va quan ly danh sach nhng so ien thoai ca nhan cua ban. Find Entry by Name Tuy chon c dung e chon mot so ien thoai t mot danh sach co th t nhng ten a c lu trong danh ba ien thoai. Find Entry by Location Tuy chon c dung e chon mot so ien thoai t mot danh sach co th t nhng v tr a c lu trong danh baien thoai. Trang 22

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Call Number Goi cho so ien thoai va tm thay. Modify Name Or Number Dung cho viec thay oi ten va so ien thoai cua muc va tm thay. Erase Name And Number Xoa ten va so ien thoai cua muc va tm thay. Add Entry Tuy chon dung e them muc vao trong danh ba ien thoai. Add To Phone Memory Them mot muc vao trong bo nh cua ien thoai. Add To SIM Card Memory Them mot muc vao trong bo nh cua the SIM. Check Capacity Kiem tra kha nang cha con lai cua danh ba ien thoai. Check Phone Capacity Kiem tra sc cha trong bo nh cua ien thoai. Check SIM Capacity Kiem tra sc cha trong bo nh cua the SIM. Prevent Access Tuy chon dung cho viec ngan nga truy xuat en danh sach so ien thoai c lu trong danh ba ien thoai. No Memory Restrictions Khong gii han s truy xuat en bo nh. To SIM Card Memory Gii han viec truy xuat en danh sach so ien thoai c lu trong bo nh the SIM. To Phone Memory Gii han viec truy xuat en danh sach so ien thoai c lu trong bo nh ien thoai. To Phone & SIM Memory Gii han viec truy xuat en danh sach so ien thoai c lu trong ca bo nh the SIM va bo nh ien thoai. Fixed Dialling Tnh nang nay cho phep gii han viec s dung ien thoai bang cach ch goi c nhng so co so hay tien to trung vi nhng so hay tien to a lu trong danh sach so co nh. View Fixed Dial List Trang 23

TheGoiEbook.com

Tuy chon dung e xem cac muc a c lu trong danh sach so co nh. Setup Fixed Dialling Dung e thiet lap cac tuy chon cho muc goi so co nh. On Cho phep dung tnh nang goi so co nh. Off Khong cho phep dung tnh nang goi so co nh. Edit Entry Hieu chnh mot muc (ten, so ien thoai) trong danh sach so co nh. Add Entry Them mot muc (ten, so ien thoai) vao trong danh sach so co nh. Erase entry Xoa mot muc (ten, so ien thoai) t danh sach so co nh. One-Touch Dial Setting Tnh nang nay cho phep ch nh danh sach nao co the c quay so ch vi mot phm. To Phone Memory Nhng so ien thoai c lu trong bo nh ien thoai co v tr t 1 en 9 se c quay so ch vi mot phm. To SIM Memory Nhng so ien thoai c lu trong bo nh the SIM co v tr t 101 en 109 se c quay so ch vi mot phm. To Fixed Dial List Nhng so ien thoai c lu trong danh sach so co nh co v tr t 1 en 9 se c quay so ch vi mot phm.

Trang 24

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

2. Menu Call Related Features


Call Related Features Show BatteryMetter Restrict My Phone Number Call Diverting - Show ID On Next Call - Restrict ID On Next Call - Divert Voice Calls - Divert Fax Calls Talk and Fax Call Waiting Call Barring Key Answer Only - Bar Incoming Calls - Bar Outgoing Calls - Divert Data Calls - Cancel All Diverting - Divert When
Unavailable - Divert All Voice Calls - Detailed Diverting

- Intl Calls - Intl Calls Except Home - All Calls - Off - When Roaming - All Calls - Off

- Cancel All Barring - Change Bar Password

Call Related Features


Cac ac iem ve cuoc ien thoai. Show Battery Meter Hien th ong ho o nang lng cua pin ien thoai. Restrict My Phone Number Show ID On Next Call So ien thoai cua ban se c gi i vi cuoc goi ke, nhng sau o no se khong c gi i cho en khi ban chon lai tnh nang nay. Restrict ID On Next Call So ien thoai cua ban se khong c gi i vi cuoc goi ke, sau o so ien thoai cua ban se c gi i vi nhng cuoc goi ke cho en khi ban chon lai tnh nang nay. Trang 25

TheGoiEbook.com

Call Diverting Tnh nang nay dung e chuyen cuoc goi en en nhng so ien thoai khac khi ien thoai cua ban khong hoat ong, hoac khi ban khong muon nhan cuoc goi o. Divert Voice Calls Chuyen cuoc goi Divert When Unavailable Chuyen tat ca cac cuoc goi en en mot so ien thoai khac moi khi ien thoai cua ban khong hoat ong. Divert All Voice Calls Chuyen tat ca cac cuoc goi en en mot so ien thoai khac ma khong theo mot ieu kien nao ca. Detailed Diverting Tnh nang nay dung e ch nh chuyen nhng cuoc goi en en nhng so khac nhau If Busy Chuyen cuoc goi en neu ien thoai cua ban ang ban. If Not Reachable Chuyen cuoc goi en neu ien thoai cua ban khong the tiep xuc c bi mang. If No Answer Chuyen cuoc goi en neu ban khong muon tra li. Divert Fax Calls Tnh nang nay cho phep ban chuyen tat ca nhng cuoc nhan bang Fax en mot so ien thoai n. Divert Data Calls Tnh nang nay cho phep ban chuyen tat ca nhng cuoc nhan bang d lieu en mot so ien thoai n. Cancle All Diverting Dung e huy toan bo chc nang chuyen cuoc goi. Talk and Fax La mot tnh nang mang cho phep ban noi va sau o gi hoac nhan fax trong mot cuoc goi. No co 2 tuy chon : On va Off. Call Waiting Quy nh cach ma may se bao hieu khi co mot cuoc goi ang ch. No co 2 tuy chon : On va Off. Call Barring La mot tnh nang mang dung cho viec chan cuoc goi. Trang 26

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Bar Outgoing Calls Chan nhng cuoc goi i. Intl Calls Chc nang nay se chan nhng cuoc goi i quoc te moi khi no c chon. Intl Calls Except Home Chc nang nay se chan nhng cuoc goi i quoc te ngoai tr at nc cua ban. All Calls Chan tat ca nhng cuoc goi i. Off Huy bo chc nang chan cuoc goi cho nhng cuoc goi i. Bar Incoming Calls Chan nhng cuoc goi en. When Roaming Chan nhng cuoc goi en khi ban ang roaming All Calls Chan tat ca nhng cuoc goi en. Off Huy bo chc nang chan cuoc goi cho nhng cuoc goi en. Cancle All Barring Huy toan bo chc nang nang chan cuoc goi cho nhng cuoc goi i hoac nhng cuoc goi en. Change Bar Password Thay oi ma chan cuoc goi. Key Answer Only Ch nh cach tra li cuoc goi en bang cach dung phm, hay m nap may se tra li cuoc goi en.

Trang 27

TheGoiEbook.com

3. Menu Messages

Messages Call Voicemail Outgoing Messages Message Editor Cell Broadcast Message Settings
Message List

- Send Message - Edit Message - Delete Message - Go To Next Message - Send Message - Store Message - On - Off - Voicemail Number - Service Centre - Expiry Period - Outgoing Massege Type

- Send Message - Store Message

Call VoiceMail Tuy chon se lam mot cuoc goi en so hop th thoai hien tai. Outgoing Messages Dung e xem va quan ly bat ky tin nhan gi i. Nhng tin nhan nay c lu tren the SIM. Send Message Dung e them vao so ien thoai, ni en cua tin nhan. Enter Number Dung cac phm so nhap vao so ien thoai ch, va gi tin nhan i theo so ien thoai nay. Find Entry by Name Tm so ien thoai theo ten a lu trong danh ba ien thoai va gi tin nhan i theo so ien thoai nay. Find Entry by Location Tm so ien thoai theo v tr a lu trong danh ba ien thoai va gi tin nhan i theo so ien thoai nay. Edit Message Hieu chnh tin nhan a chon hay tao mot tin nhan mi.

Trang 28

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Send Message Gi tin nhan va mi hieu chnh. Store Message Lu lai tin nhan sau khi hieu chnh. Delete Message Xoa tin nhan ang xem hien tai. Go to Next Message Hien th tin nhan ke tiep. Message Editor Hieu chnh tin nhan a chon hay tao mot tin nhan mi. Send Message Gi tin nhan va mi hieu chnh. Store Message Lu lai tin nhan sau khi hieu chnh. Cell Broadcast Dch vu phat thanh. No co 2 tuy chon : On va Off. Message Settings Cai at tin nhan. Voicemail Number Dung e nhap vao so ien thoai, la so c dung trong muc Call Voicemail. Service Centre Trc khi ban gi i bat ky tin nhan nao, ban phai dung tuy chon nay e nhap vao so cua trung tam dch vu tin nhan. Expiry Period Dung e ch nh khoang thi gian toi a ma nhng tin nhan cha c gi i, c lu lai tren trung tam dch vu tin nhan trc khi b xoa. Outgoing Message Type Ch nh dang thc cua cac tin nhan gi i. Ta co the chon t cac dang thc nh Text, Fax, Voice.

Trang 29

TheGoiEbook.com

4. Menu Phone Setup


Phone Setup Select Phone Line Adjust Ring Volume Ring or Vibrate - Ring Only - Vibrate - Vibrate Then Ring - No Ring or Vibrate - Standard Tone - Music Tone - Automatic Lock - Lock Now - Change Unlock Code

Set Ringer Tone Set Ringer Tone 2 Phone Lock Change SIM PIN2 Code New Security Code Extended Menus Show Time and Date Set Time and Date Set Time Format Battery Saving Mode Select Keypad Tone

- On - Off

- On - Off

- On - Off - Normal Tones - Single Tone - No Tones

Phone Setup Cai at ien thoai. Select Phone Line Dung e chuyen oi viec chon ng day 1 hoac ng day 2. Adjust Ring Volume Tuy chon dung e ieu chnh am lng chuong bao hieu khi co mot cuoc goi en. Ring or Vibrate Ch nh cach bao hieu ma may se thc hien khi co mot cuoc goi en.

Trang 30

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Ring Only May se phat ra tieng chuong theo theo ieu a c ch nh trong muc Set Ringer Tone Vibrate Only May ch rung khi co mot cuoc goi en. Vibrate Then Ring May se rung hai lan va sau o la tieng chuong. No Ring or Vibrate May ch bao hieu bang cach hien th thong bao Call. Set Ringer Tone Thiet lap tieng chuong bao hieu khi co cuoc goi en c nhan ng day 1. Standard Tone Tieng chuong chuan. Music Tone Khi c chon, may se to hp nhng tieng chuong khac nhau. Phone Lock Dung e thiet lap, thay oi ma m khoa may Automatic Lock T ong khoa may moi khi bat cong tac m may. Lock Now Tuy chon nay se khoa may ngay lap tc. Khi o may se khong s dung c cho en khi nhap ung ma m khoa. Change Unlock Code Thay oi ma m khoa may. New Security Code Dung e thay oi ma bao mat, ma dung cho viec ngan nga truy nhap en nhng tnh nang ben trong nhng menu. Extened Menus Dung e tat, m menu m rong. Neu tuy chon nay trang thai tat, ban khong the dung c bat ky tnh nang m rong nao. Show Time and Date La mot tnh nang m rong. Hien th ngay va gi hien tai cho en khi co mot phm c nhan. Set Time and Date La mot tnh nang m rong, dung e thay oi lai ngay va gi hien tai. Trang 31

TheGoiEbook.com

Set Time Format La mot tnh nang m rong, thiet lap dang thc hien th gi cua may (dang 12h hoac 24h) Battery Saving Mode Tnh nang nay cho phep ta tiet kiem nang lng khi may trang thai khong am thoai. Select Keypad Tones Tuy chon dung e thay oi hoac khong cho phep co am ieu khi mot phm c nhan. Normal Tones Tieng bnh thng. Single Tone Tieng n No Tones Khong co tieng.

Trang 32

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

5. Menu Network Selection


Network Selection Change Band Available Network Network Search - Change to 900/1800 - Change to 900 - Change to 1800 - Register Now - Make Preferred - Registration Preferences - Frequency Of Search Preferred Networks - Automatic Search - M anual Search Slow Search M edium Search Fast Search Continuous Search

- Add Network To List - Show List Of Networks

- Choose From Available - Choose From Known - Add New Network Code - Move To New Location - Delete Selection

Find New Network

Network Selection Chon mang hoat ong. e lam va nhan nhng cuoc goi, may cua ban phai ang ky vi mot trong nhng mang ang hoat ong. Change Band Chon bang tan hoat ong. Change to 900/1800 Chuyen sang day bang tan 900/1800 Change to 900 Chuyen sang day bang tan 900 Change to 1800 Chuyen sang day bang tan 1800 Available Networks Tnh nang nay se quet e tm nhng mang nao ang hoat ong v tr hien tai cua ban. Trang 33

TheGoiEbook.com

Register Now ang ky vi mang ban a chon Make Preferred Lu lai v tr cua mang a chon trong danh sach nhng mang u tien. Network Search Tm mang. Registration Preferences Ch nh cach thc may se lam the nao e ang ky vi mot mang. Automatic Search T ong tm va ang ky vi mot mang. Manual Search Tm va ang ky vi mot mang bang cach thu cong. Frequency of Search Ch nh ien thoai cua ban phai ch bao lau trc khi no co gang ang ky lai sau khi viec ang ky trc o a that bai. Slow Search Medium Search Fast Search Continuous Search Preferred Networks Danh sach nhng mang u tien. Add Network To List Them mang a chon vao trong danh sach nhng mang u tien. Choose From Available Chon mang t danh sach nhng mang ang hoat ong v tr hien tai cua ban. Choose From Known Chon mang t tap hp danh sach nhng mang a c nh ngha t trc. Show List Of Networks Hien th danh sach nhng mang u tien. Move To New Location Di chuyen mang a chon en mot v tr mi. Delete Selection Xoa mang a chon khoi danh sach nhng mang u tien. Find New Network Tm mang mi.

Trang 34

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

6. Menu Accessory Setup 5. Accessory Setup


Mute Car Radio Automatic Answer

- On - Off - On - Off - On - Off - On - Off - On - Off

Automatic Handsfree Safety Timer

Auxiliary Alert

Accessory Setup Thiet lap nhng thiet b nh kem. Mute Car Radio Lam tat tieng cua radio khi ban lam hoac nhan mot cuoc goi. Automatic Answer Khi c chon, may se t ong tra li khi co mot cuoc goi en sau 2 lan chuong. Automatic Handsfree Chuyen cuoc am thoai bang cach dung tai nghe va speaker. Safety Timer Auxiliary Alert en hieu se nhap nhay khi co mot cuoc goi en.

Trang 35

TheGoiEbook.com

7. Menu Quick Access

1 - Find Name? 2 - Add to SIM? 3 - Call Voicemail? 4 - Battery Meter? 5 - Show Time/Date? 6 - Adjust Ring? 7 - Switch Line 1/2? 8 - Vibrate On/Off? 9 - Change Band?

Quick Access Menu Menu truy cap nhanh la mot tnh nang oc ao. No cho phep ta chon 9 chc nang thng dung ma khong can phai ra tm long vong trong cac menu. Ta cung co the thiet ke lai menu truy cap nhanh tuy theo y thch.

Trang 36

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

3. Ma nguon cua chng trnh


3.1. Ma nguon cua cac trang HTML hng dan s dung. Ma nguon cua trang chnh <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <title>mot</title> <style> <!---> </style> </head> <body background="bg4gride.gif"> <p><img src="Welhome4.gif" width="190" height="76" alt="Welhome4.gif (56575 bytes)"></p> <p align="center"> <img src="motorola.jpg" width="229" height="70" alt="motorola.bmp (48214 bytes)"> &nbsp;&nbsp; <img src="cd928.jpg" width="98" height="59" alt="cd928.bmp (17518 bytes)"></p> <p align="left">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <font color="#004080"> &nbsp;&nbsp;&nbsp;&nbsp;</font> <font face="VNI-Present" color="#000000"> <big><strong><big>ien thoai nho cho the gii ln</big></strong></big><br> </font><font face="VNI-Vari">Mot ien thoai - nhieu phong cach - cd928 chnh la s the hien ca tnh cua ban</font></p> <table border="1" width="87%" height="228"> <tr> <td width="23%" height="63"><img src="0thkhao.gif" width="106" height="36"></td> <td width="133%" height="63"><font face="VNI-Times">Vi cau truc cay menu, cho ban mot cai nhn khai quat ve toan bo cau truc nhng tnh nang c xay dng trong may <big><font color="#FF0000">cd928</font></big>.</font></td> <td width="21%" height="63"><a href="file:///C:/LV/chung.htm"><img src="0go.gif" width="27" height="31" alt="click here de xem trang tham khao" border="0"></a></td> </tr> <tr> <td width="23%" height="67"><img src="Help.jpg" width="104" height="35"></td> Trang 37

TheGoiEbook.com

<td width="133%" height="67"><font face="VNI-Times">Vi nhng hng dan t m, ro rang, ban se de dang tiep can cach lam the nao e s dung nhng tnh nang cua may <font color="#FF0000"><big>cd928</big></font>.</font></td> <td width="21%" height="67"><a href="file:///C:/LV/chung.htm"> <img src="0go.gif" width="27" height="31" alt="click here de xem phan huong dan" border="0"></a></td> </tr> <tr> <td width="23%" height="42"><img src="SUDUNG.gif" width="105" height="31"></td> <td width="133%" height="42"><font face="VNI-Times">Mo phong cua may <big><font color="#FF0000">cd928</font></big>, cho ban cam giac nh ang s dung mot may ien thoai that s.</font></td> <td width="21%" height="42"><a href="file:///C:/LV/chung.htm"><img src="0go.gif" width="27" height="31" alt="click here de vao trang su dung" border="0"></a></td> </tr> <tr> <td width="23%" height="32"> <img src="Maila.gif" width="100" height="32"></td> <td width="133%" height="32"> <font face="VNI-Times">Xin chan thanh cam n nhng ong gop cua cac ban. </font></td> <td width="21%" height="32"><a href="mailto:e9708155@dithcmut.edu.vn"> <img src="0go.gif" width="27" height="31" alt="click here de gui mail cho toi" border="0"></a></td> </tr> </table> <p align="center"><br> <img src="3hand.gif" width="32" height="32" alt="3hand.gif (2453 bytes)"> <img src="0website.gif" width="100" height="30" alt="0website.gif (2635 bytes)"> <font face="VNI-Times"><br> <a href="http://motorola.com">http://motorola.com</a></font></p> <p align="left">&nbsp;</p> <p align="left">&nbsp;</p> <table border="1" width="660"> <tr> <td width="100%">&nbsp;</td> </tr> </table> </body> </html> Trang 38

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Ma nguon cua trang cha ien thoai mo phong <html> <head> <title>luan-van.CAB</title> </head> <body> <p> <object ID="UserControl1" CLASSID="CLSID:191803D8-6371-11D0-82CAB54CDE05F649" CODEBASE="luan-van.CAB#version=1,2,0,0" width="137" height="262"> </object> </p> </body> </html> Ma nguon cua trang trnh bay cay tnh nang <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <title></title> <base target="main"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p><font color="#FF0000"><a name="phone">Phone Book</a></font><br> <small>&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#phone-book">Personal Numbers</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#fixed dial">Fixed Dialling</a> </small><br>&nbsp;&nbsp; <a href="use-phonebook.htm#one touch"><small>One-Touch Dial Setting </small></a> &nbsp; <br> <br> <font color="#FF0000"><a name="features">Call Related Features<br> </a></font><small>&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#show battery">Show Batery Meter </a><br>&nbsp;&nbsp;&nbsp; Restric My Phone Number <br>&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#call divert"> Call Diverting </a></small><br> <small>&nbsp;&nbsp;&nbsp; Talk and Fax<br> Trang 39

TheGoiEbook.com

&nbsp;&nbsp;&nbsp; Call Waiting<br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#call bar">Call Baring</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#key answer">Key Answer Only </a></small></p> <p><font color="#FF0000"> <a name="messages">Messages<br> </a></font><small>&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#call voicemail">Call Voicemail </a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#outgoing msg">Outgoing Messages</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#msg editor">Message Editor</a><br> &nbsp;&nbsp;&nbsp; Cell Broadcast<br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#msg setting">Message Settings</a></small></p> <p><font color="#FF0000"><a name="setup">Phone Setup<br> </a></font><small>&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#line">Select Phone Line</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#volume">Adjust Ring Volume</a><br> &nbsp;&nbsp; <a href="use-phonebook.htm#ring">Ring Or Vibrate</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#ringer">Set Ringer Tone</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#tone2">Set Ringer Tone 2</a></small><br> <small>&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#lock">Phone Lock</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#code">New Security Code</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#extended">Extended Menus</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#show">Show Time and Date</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#set">Set Time Format</a><br> &nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#battery">Battery Saving Mode</a><br> Trang 40

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

&nbsp;&nbsp;&nbsp; <a href="use-phonebook.htm#keypad">Select Keypad Tones</a><br> </small><br> <font color="#FF0000">Network Selection<br> </font>&nbsp; <a href="use-phonebook.htm#change band"><small>Change Band</small></a> &nbsp;&nbsp;&nbsp; <br> <small>&nbsp;&nbsp; <a href="use-phonebook.htm#avail network">Available Network</a></small><br> <small>&nbsp;&nbsp; <a href="use-phonebook.htm#find network">Network Search</a></small><br> <small>&nbsp;&nbsp; <a href="use-phonebook.htm#prefer network">Preferred Networks</a></small><br> <small>&nbsp;&nbsp; <a href="use-phonebook.htm#find new">Find New Network</a>&nbsp; </small>&nbsp; </p> <p><a href="use-phonebook.htm#quick access"> <font color="#0000FF">Quick Access Menu</font></a></p> <p><a href="motorola_cd928__________________.htm" target="_top"> <img src=home.gif width="54" height="50" alt="click here de tro ve trang chinh" border="0"></a></p> <table border="1" width="100%"> <tr> <td width="100%">&nbsp;</td> </tr> </table> <p><br> </p> </body> </html> Ma nguon cua trang hng dan <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <title></title> </head> <body> <p><font face="VNI-Times" color="#FF0000"> <a name="phone-book">Danh ba ien thoai rieng<br> Trang 41

TheGoiEbook.com

</a></font><small><font face="VNI-Times" color="#000000">(Personal Number) <br>&nbsp;&nbsp;&nbsp; La mot menu con c dung e tao va quan ly danh sach cac so ien thoai ca nhan. e vao muc nay, dung cac phm cuon <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)"> , <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </font><font face="VNI-Times" color="#000000"> cuon en muc &quot; <strong>Phone Book</strong>&quot;, nhan </font><font face="VNI-Times"> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> &nbsp; 2 lan e vao menu con cua muc &quot; <strong>Personal Number</strong>&quot;<br>&nbsp;&nbsp; <a href="use-phonebook.htm#find-name">Find Entry By Name </a> (tm so ien thoai theo ten) <br>&nbsp;&nbsp; <a href="use-phonebook.htm#find-location">Find Entry By Location </a> (tm so ien thoai theo v tr)<br> &nbsp;&nbsp; <a href="use-phonebook.htm#add-entry">Add Entry </a> (them vao so ien thoai mi)<br> &nbsp;&nbsp; <a href="use-phonebook.htm#check-capacity">Check Capacity </a> (Kiem tra sc cha)</small><br> <small>&nbsp;&nbsp; <a href="file:///C:/Lv/use-phonebook.htm#prevent">Prevent Access </a>(Ngan nga truy nhap)</small><br> </font><small>&nbsp;&nbsp; <font face="VNI-Times">Dung cac phm cuon e en hang muc can chon. Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</font></small></p> <hr> <p><font face="VNI-Times" color="#FF0000"> <a name="nhap-ky-tu">Cach nhap mot ky t</a></font><small><br> <font face="VNI-Times"> &nbsp;&nbsp;&nbsp; Dung cac phm so e nhap ky t. V du : khi bam phm so </font><img src="5.jpg" width="24" height="17" alt="5.bmp (1734 bytes)"> <font face="VNI-Times">lan au tien th no se hien th ky t J. Nhan phm nay lan na se thay bang ch K, ...hien th so 5.<br> &nbsp;&nbsp;&nbsp; Bam va gi bat ky mot phm se chuyen tat ca cac ky t thanh ch thng, lap lai thao tac nay se chuyen tat ca lai thanh ch hoa.<br> &nbsp;&nbsp;&nbsp; Ta co the dung phm Trang 42

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="right.jpg" width="22" height="17" alt="right.bmp (1818 bytes)"> e nhap vao ky t giong nh ky t va nhap trc o. Nhan phm nay lan na se tao ra khoang trang.<br> &nbsp;&nbsp;&nbsp; Xoa mot ky t bang cach nhan <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)">. <br> &nbsp;&nbsp;&nbsp; Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e lu lai thong tin.</font></small></p> <hr> <p><font face="vni-times" color="#FF0000"> <a name="find-name">Tm mot so ien thoai theo ten</a></font> <small> <br>(Find Entry By Name) </small> <ol> <li><small><font face="VNI-Times">Dung cac phm cuon <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">,&nbsp; <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> cuon en muc &quot; <strong>Phone Book</strong>&quot;&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> 3 lan e vao muc tm so ien thoai theo v tr.</font></small></li> <li><small><font face="VNI-Times">Man hnh hien th thong bao &quot;<strong>Enter Name</strong> &quot;, nhap vao ten cua so ien thoai can tm (toi a3 ky t). Khi o, may se tm va hien th ten cua so ien thoai phu hp. </font></small></li> <li><small><font face="VNI-Times">Dung cac phm cuon e hien th nhng muc lien ke no.</font></small></li> <li><small><font face="VNI-Times">Khi tm c so mong muon, nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e vao menu con<br> - <strong>Call Number </strong>(goi so ien thoai nay)<br> - <strong>Modify Name or Number</strong> (sa ten hoac so ien thoai)<br> - <strong>Erase Name and Number</strong> (Xoa ten va so ien thoai) - </font></small></li> </ol> <p><small><font face="VNI-Times">Dung cac phm cuon e di chuyen gia nhng muc nay. Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</font></small></p> <hr> Trang 43

TheGoiEbook.com

<p><font face="vni-times" color="#FF0000"> <a name="find-location">Tm mot so ien thoai theo v tr </a><small><br> </font><font face="vni-times" color="#000000">(Find Entry by Location)</font> </small> <ol> <li><small><font face="VNI-Times">Dung cac phm cuon <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">,&nbsp; <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> e cuon en muc &quot; <strong>Phone Book</strong>&quot;,&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> 2 lan e vao menu con cua muc <strong>Personal Number</strong>. Dung phm <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; e cuon en muc &quot;tm so ien thoai theo v tr&quot;, <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">. </font></small></li> <li><small><font face="VNI-Times">Man hnh hien th thong bao &quot;<strong>Enter Location</strong> &quot;, nhap vao v tr cua so ien thoai can tm. Khi o, may se tm va hien th ten cua so ien thoai phu hp.</font></small></li> <li><small> <font face="VNI-Times">Dung cac phm cuon e hien th nhng muc lien ke no. </font></small></li> <li><small><font face="VNI-Times">Khi tm c so mong muon, nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e vao menu con<br> -<strong> Call Number</strong> (goi so ien thoai nay)<br> -<strong> Modify Name or Number</strong> (sa ten hoac so ien thoai)<br> -<strong> Erase Name and Number</strong> (Xoa ten va so ien thoai) </font></small></li> </ol> <p><small><font face="VNI-Times">Dung cac phm cuon e di chuyen gia nhng muc nay. Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</font></small></p> <hr> <p><font face="vni-times" color="#FF0000"> <a NAME="add-entry">Them vao so ien thoai mi</a> <small><br> Trang 44

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

</font><font face="vni-times" color="#000000">(Add Entry)</font> </small> <ol> <li><font face="VNI-Times"><small>Dung cac phm cuon <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">,&nbsp; <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> e cuon en muc &quot; <strong>Phone Book</strong>&quot;,&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> 2 lan e vao menu con cua muc <strong>Personal Number</strong>. Dung phm <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp; e cuon en muc &quot;them vao so ien thoai mi&quot;, <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font></li> <li><small> <font face="VNI-Times">Dung cac phm cuon e chon v tr &quot;Cho vao bo nh cua may ien thoai &quot; [<strong>Add to phone memory</strong>]hay 'Cho vao the SIM &quot; [<strong>Add to SIM card memory</strong>], bam <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </font></small></li> <li><small><font face="VNI-Times">Nhap vao so ien thoai</font>, <font face="VNI-Times"> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, ghi ten, v tr, bam <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e lu. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</font></small></li> </ol> <hr> <p><font face="vni-times" color="#FF0000"> <a name="check-capacity">Kiem tra sc cha</a></font> <small><br>(Check Capacity)</small></p> <p><small> <font face="VNI-Times">Kiem tra so muc con trong trong bo nh cua ien thoai hay bo nh SIM card</font><br> <font face="VNI-Times">1.&nbsp;&nbsp;&nbsp; Dung cac phm cuon <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">,&nbsp;

Trang 45

TheGoiEbook.com

<img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> e cuon en muc &quot; <strong>Phone Book</strong>&quot;,&nbsp; <img src="ok.jpg" width="28" height="17"alt="ok.bmp (1902 bytes)"> 2 lan e vao menu con&nbsp; cua muc Personal Number.Tiep tuc dung phm cuon e cuon en muc &quot;Kiem tra sc cha&quot; <strong>[Check Capacity</strong>], <img src="ok.jpg" width="28" height="17"alt="ok.bmp (1902 bytes)">.</small><br> <small>2.&nbsp;&nbsp;&nbsp; Dung cac phm cuon e chon v tr &quot;Kiem tra sc cha cua may ien thoai&quot; [<strong>Check Phone Capacity</strong>]hay &quot;Kiem tra sc cha cua the SIM&quot; [<strong>Check SIM apacity</strong>],bam <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">. Man hnh se hien thong bao &quot;XX Unused Location&quot;.</small></font></p> <hr> <p><font face="VNI-Times"> <a name="prevent"><font color="#FF0000">Ngan nga truy nhap</font><br> </a><small>(Prevent Access)</small><br> <small>&nbsp;&nbsp; Ngan nga khong cho truy nhap vao nhng muc a c lu trong bo nh, trong the SIM hay ca hai.</small><br> <small>1.&nbsp;&nbsp;&nbsp; Dung cac phm&nbsp; <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">,&nbsp; <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> (phm cuon) e cuon en muc &quot; <strong>Phone Book</strong>&quot;,&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> 2 lan e vao menu con cua muc <strong>Personal Number</strong>. Tiep tuc dung phm cuon e cuon en muc &quot;Ngan nga truy nhap &quot; [<strong>Prevent Access</strong>], <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">.<br> 2.&nbsp;&nbsp;&nbsp; Dung cac phm cuon&nbsp; e tuy chon nhng muc &quot;Khong gii han truy nhap&quot; [<strong>No Memory Restrictions</strong>], &quot;Gii han truy nhap en the SIM&quot; [<strong>To SIM Card Memory</strong>], &quot;Gii han truy nhap en bo nh may&quot; [<strong>To Phone Memory</strong>], hay gii han ca hai, bo nh va the SIM Trang 46

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

[<strong>To Phone &amp; SIM Memory</strong>]. Dung cac phm cuon e di chuyen en muc can chon nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> . Khi o man hnh se hien thong bao nhac nhap vao ma bao mat [<strong>Security Code</strong>]. Neu nhap ma ung th s ngan nga truy nhap mi co tac dung (Ma mac nh la &quot;000000&quot; va co the thay oi c trong phan Phone Setup).</small></font></p> <hr> <p><font face="VNI-Times" color="#FF0000"> <a name="fixed dial">Goi so co nh<br> </a></font><font face="VNI-Times"><small>(Fixed Dialling)</small><br> <small>&nbsp;&nbsp;&nbsp; Tnh nang nay cho phep ban gii han viec dung ien thoai trong mot danh sach so ien thoai a c nh ngha trc, hay la mot danh sach ma quoc gia, ma vung hay la mot tien to nao o ma ban chon.</small><br> <small>&nbsp; &nbsp;&nbsp; Khi Fixed Dialling c thiet lap mc On, ban ch goi c nhng so co so (hay tien to) trung vi nhng so (hay tien to) a lu trong danh sach Fixed Dial. Neu ban th goi so khac th thong bao &quot;Restricted&quot; se hien th.</small> <br><small>&nbsp;&nbsp;&nbsp; <a href="#view fixed">View Fixed Dial List</a></small> <small>(Xem danh sach so co nh)</small><br> <small>&nbsp;&nbsp;&nbsp; <a href="#setup fixed">Setup Fixed Dialling</a> (Thiet lap so co nh)</small> <br><small>Dung cac phm cuon e di chuyen gia nhng muc nay. Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="view fixed">Xem danh sach so co nh<big><br> </big></a></font><small>( View Fixed Dial List)</small><br> <small>&nbsp;&nbsp;&nbsp; Xem danh sach so co nh a c lu trong Fixed Dial. </small><br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc <strong> Phone Book</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan phm cuon e en muc &quot; Trang 47

TheGoiEbook.com

<strong>Fixed Dialling</strong>&quot;, nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small><br> .&nbsp;Tiep tuc dung phm cuon e di chuyen en muc <strong>View Fixed Dial List</strong> . Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small></font></small><br>4.&nbsp; <small> <font face="VNI-Times">Dung phm cuon e duyet qua danh sach cac so trong <strong>Fixed Dial List</strong> . Khi ban a tm thay so ban can, nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e lam cuoc goi.</font></small></p> <hr> <p><font color="#FF0000"> <a name="setup fixed"><font face="VNI-Times">Thiet lap so co nh</font> <big><br> </big></a></font><font face="VNI-Times"><small>(Setup Fixed Dialling)</small> <br><small>Ban dung tuy chon nay e chuyen <strong>Fixed Dialling</strong> mc <strong>On</strong> hay <strong>Off</strong> va dung e them hay thay oi nhng muc trong danh sach <strong>Fixed Dial</strong>.</small></font><br> <small><font face="VNI-Times">Ban phai nhap vao ma PIN2 (mac nh la 13579) khi ban chon muc nay. </font></small>&nbsp; </p> <p><small><font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"></small> &nbsp;(phm cuon)<small> </small>e di chuyen en muc <strong>Phone Book</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan phm</small> <small>cuon<small> </small>e vao muc &quot; <strong>Fixed Dialling</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small>. <br>3.&nbsp; Tiep tuc dung phm cuon&nbsp; e di chuyen en muc &quot; <strong>Setup Fixed Dialling</strong>&quot;. Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm<small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small></small></font>.<br>4.&nbsp; Trang 48

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<font face="VNI-Times"><small>Nhap vao ma PIN2 . Bam&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e vao menu con cua no, e thoat ra dung phm<small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small></small></font>.<br> <font face="VNI-Times"><small><strong><font color="#000000">On</font> </strong> </small><br> <small>Chuyen Fixed Dialling mc On</small><br> <strong><font color="#000000"><small>Off</small></font></strong><br> <small>Chuyen Fixed Dialling mc Off</small><br> <font color="#000000"><strong><small>Edit Entry</small></strong></font><br> <small>Sa oi mot muc trong danh sach Fixed Dial. Khi ban chon muc nay, v tr au tien trong danh sach khong rong se c hien th. Dung&nbsp; phm<small> </small>cuon<small> </small>e di chuyen en&nbsp; muc ban muon thay oi, nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">. </small>Man hnh se hien th mot promt e ban sa oi ten va so ien hoai. </small><br> <font color="#400000"><strong><small>Add Entry</small></strong></font><br> <small>Them vao mot ten va ien thoai vao trong danh sach Fixed Dial.Man hnh se hien th mot promt e ban nhap vao ten, so ien thoai va v tr cua no trong danh sach.</small><br> <strong><font color="#400000"><small>Erase Entry</small></font> <font color="#FF0000"><br> </font></strong><small>Xoa mot muc a lu trong danh sach Fixed Dial. Muc au tien trong danh sach se c hien th. Di chuyen en muc ban muon xoa va nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> .</small></small><br> <br> <small>Dung cac phm cuon<small> </small>e di chuyen gia cac muc nay, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e chon.</small></font></p> <hr> <p><font face="VNI-Times"> <a name="one touch"><font color="#FF0000">Quay so vi 1 phm</font><br> </a><small>(One-Touch Dial Setting)</small><br> <small>&nbsp;&nbsp;&nbsp; Ban dung muc nay e ch nh danh sach Phone Book nao co the c quay so ch vi 1 phm.</small></font></p> <p><small> <font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, Trang 49

TheGoiEbook.com

<img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc <strong>Phone Book</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung&nbsp; phm&nbsp; cuon e vao muc &quot;<strong>One-Touch Dial Setting</strong> &quot;.&nbsp;Nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e vao menu con</small><br> <font color="#400000"><small>&nbsp;&nbsp; <strong>To Phone Memory</strong></small></font><br> <small>&nbsp;&nbsp;Cho vao bo nh ien thoai</small> (<small>nhng v tr t 1 en 9)</small><br> <small><font color="#FF0000">&nbsp;&nbsp;</font> <font color="#400000"><strong>To SIM Memory</strong></font></small> <font color="#FF0000"><br> </font><small>&nbsp;&nbsp; Cho vao bo nh the SIM </small> (<small>nhng v tr t 101 en 109)</small><br> <small><font color="#FF0000">&nbsp;&nbsp;</font> <font color="#400000"><strong>To Fixed Dial List</strong></font></small> <font color="#FF0000"><br> </font><small>&nbsp;&nbsp; Cho vao danh sach Fixed Dial </small> (<small>nhng v tr t 1 en 9)</small><br> <small>Dung cac phm cuon e di chuyen gia nhng muc nay. Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="call related">Cac ac iem ve cuoc ien thoai<big><br> </big></a></font><small>(Call Related Features)</small></font></p> <p><font face="VNI-Times">Dung e thay oi, thiet lap cau hnh cua nhng tnh nang lien quan en cuoc goi.</font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="show battery">Hien ong ho pin<br> </a></font><small>(Show Bttery Meter)</small><br> <small>Hien th ong ho cho biet mc nang lng con lai cua pin</small></font> </p><p><font face="VNI-Times"><small>1.&nbsp;Dung cac phm <small> Trang 50

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> 2 lan e vao muc &quot;<strong>Show Battery Meter</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> </small> <small>e hien th ong ho.</small><br> <small>2.&nbsp;e thoat ra dung phm <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small></font></p> <hr> <p><font face="VNI-Times" color="#FF0000"> <a name="restrict ID">Han che so ien thoai cua toi<br> </a></font><font face="VNI-Times" color="#400040"> <small>(Restrict My Phone Number)</small><br> </font><font face="VNI-Times"><small>1.&nbsp;Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> </small><br> <small>2.&nbsp; Tiep tuc dung cac phm cuon e cuon en muc &quot;</font> <font face="VNI-Times" color="#400040">Restrict My Phone Number</font> <font face="VNI-Times">&quot;,nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e vao menu con</small><br> <small>&nbsp;&nbsp;<strong>Show ID on Next Call</strong></small><br> <small>&nbsp;&nbsp;So ien thoai cua ban c gi i vi cuoc goi ke</small> <br> <small>&nbsp;&nbsp; <strong>Restric ID on Next Call&nbsp; </strong></small><br> </font>&nbsp;&nbsp; <font face="VNI-Times"> <small>So ien thoai cua ban se khong gi i vi cuoc goi ke</small></font> <br> <font face="VNI-Times"><small>Dung cac phm cuon e di chuyen gia cac muc nay, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e chon. </small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> Trang 51

TheGoiEbook.com

<a name="call divert">Chuyen cuoc goi</a><big><big><br> </big></big></font><small>(Call<small> </small>Diverting)</small><br> <small>ay la mot tnh nang mang , neu ien thoai cua ban khong co ga tr hay ban khong muon nhan cuoc goi, nhng cuoc goi en se c chuyen en nhng so ien thoai khac</small><br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot;<strong>Call Related Features</strong> &quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung phm cuon e en muc &quot; <strong>Call Diverting</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> </small> <small>e vao menu con.</small><br> &nbsp;&nbsp;<small>&nbsp; <a href="#divert voice">Divert Voice Calls</a> (chuyen cuoc goi)<br> &nbsp;&nbsp;&nbsp; <a href="#divert fax">Divert Fax Calls</a> (chuyen cuoc nhan bang fax)<br> &nbsp;&nbsp;&nbsp; <a href="#divert data">Divert Data Calls</a> (chuyen cuoc nhan bang d lieu)<br> &nbsp;&nbsp;&nbsp; <a href="#cancel divert">Cancel All Diverting</a> (huy toan bo chc nang chuyen) </small><br> <small>Dung cac phm cuon e di chuyen gia cac muc nay, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e chon. </small></font></p> <hr> <p><font face="VNI-Times"><a name="divert voice"> <font color="#FF0000">Chuyen cuoc goi</font><br> </a><small>(Divert Voice Calls)</small></font></p> <p><small><font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp; </small>e di chuyen en muc &quot;<strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> Trang 52

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

</small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung phm cuon e vao muc &quot; <strong>Call Diverting</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> </small> <small>2 lan e vao muc &quot; <strong>Divert Voice Calls</strong>&quot;.</small><br> <small>3.&nbsp;Nhan phm <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e vao menu&nbsp; con</small><br> <small>&nbsp;&nbsp; <strong> Divert When Unavailable</strong> (Chuyen khi khong ap)</small> <br> <small>&nbsp;&nbsp; <strong>Divert All Voice Calls</strong> (chuyen tat ca)</small><br> <small>&nbsp;&nbsp; <strong>Detail Diverting</strong> (chuyen theo loai)</small><br> <small>Dung cac phm cuon e di chuyen gia nhng muc nay. Nhan <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon. Bam phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> e thoat ra.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="divert fax">Chuyen cuoc nhan bang Fax<big><br> </big></a></font><small>(Diver Fax Calls)</small></font></p> <p><font face="VNI-Times"> <small>Dung e chuyen tat ca nhng cuoc nhan bang Fax en mot so ien thoai n.</small><br> <small>Muc nay co 2 tuy chon On va Off. Neu ban thay oi mc On, ban phai nhap vao so ien thoai ni chuyen en</small>.<br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot;Call Related Features&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm</small> <small>cuon e vao muc &quot;Call Diverting&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> </small>.<br> <small>3</small>.&nbsp;<small>Tiep tuc</small> <small>dung cac phm <small> Trang 53

TheGoiEbook.com

<img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small>&nbsp; e vao muc &quot;Divert Fax&nbsp; Calls&quot;. <small> </small>Nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e&nbsp; chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="divert data">Chuyen cuoc nhan bang d lieu<big><br> </big></a></font><small>(Diver Data Calls)</small></font></p> <p><font face="VNI-Times"> <small>Dung e chuyen tat ca nhng cuoc nhan bang Fax en mot so ien thoai n. </small><br> <small>Muc nay co 2 tuy chon On va Off. Neu ban thay oi mc On, ban phai nhap vao so ien thoai ni chuyen en</small>.<br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp;&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> </font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm<small> </small>cuon e vao muc &quot; <strong>Call Diverting</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small>. </small><br> <small>3</small>.&nbsp;<small>Tiep tuc</small> <small>dung cac phm cuon e vao muc &quot; <strong>Divert Data Calls</strong>&quot;.<small> </small>Nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e&nbsp; chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="cancel divert">Huy bo toan bo chc nang chuyen<br> </a></font><small>(Cancel All Diverting)</small></font></p> <p><font face="VNI-Times"><small>Chc nang nay cho phep ban huy chc nang chuyen nhng cuoc goi en.</small> <br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, Trang 54

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e en muc&quot; <strong>Call Diverting</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>.</small><br><small>3</small>. &nbsp;<small>Tiep tuc dung cac phm cuon e vao muc &quot; <strong>Cancel All Diverting</strong>&quot;.<small> </small>Nhan&nbsp; <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e chon.</small></font></p> <hr> <p><font face="VNI-Times" color="#FF0000"> <a name="talk fax">Noi va Fax<br> </a></font><font face="VNI-Times" color="#000000"> <small>(Talk and Fax)</small><br> <small>ay la mot tnh nang mang cho phep ban am thoai va sau o gi hoac nhan fax trong suot cuoc goi o. Muc nay co 2 che o On va Off.</small><br> </font><small><font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung cac phm cuon e en muc &quot;<strong>Talk and Fax</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e chon.</font></small></p> <hr> <p><font face="VNI-Times" color="#FF0000"> <a name="call waiting">Call Waiting<br> </a></font><font face="VNI-Times" color="#000000"> <small>(Cuoc goi ang ch)</small><br>

Trang 55

TheGoiEbook.com

<small>Tnh nang nay co 2 che o On va Off. Neu c thiet lap mc On, may se bao hieu khi co mot cuoc goi ang ch.</small><br> </font><small> <font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung cac phm cuon e en muc &quot; <strong>Call Waiting</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e chon.</font></small></p> <hr> <p><font face="VNI-Times"> <a name="call bar"><font color="#FF0000">Chan cuoc goi<big><br> </big></font></a><small>(Call Barring)</small></font></p> <p><font face="VNI-Times"> <small>La mot tnh nang mang, co the dung e chan nhng cuoc goi i hay nhng cuoc goi en.</small><br> <small>Moi khi ban thay oi &nbsp; viec ngan chan, ban phai nhap vao ma chan cuoc goi (mac nh la 6789). </small><br> <small>1.&nbsp;Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp; &nbsp;<font face="VNI-Times">Tiep tuc dung &nbsp; phm cuon e vao muc &quot; <strong>Call Barring</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>.</small><br> Trang 56

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<small>3.&nbsp; Nhap vao ma chan cuoc goi</small>. <small><small> </small>Nhan phm <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e vao menu con.</small><br> <small>&nbsp;&nbsp;&nbsp; <a href="#bar outgoing">Bar&nbsp;Outgoing Calls</a></small> <small>(chan nhng cuoc goi i)</small><br> <small>&nbsp;&nbsp;&nbsp;<a href="#bar incoming"> Bar&nbsp; Incoming Calls</a> (chan nhng cuoc goi en)</small> <br> <small>&nbsp;&nbsp;&nbsp; <a href="#cancel bar">Cancel All Barring </a> (huy chc nang chan cuoc goi)</small><br> <small>&nbsp;&nbsp;&nbsp; <a href="#change bar password">Change Bar Password </a> (Thay oi ma chan cuoc goi)</small><br> <small>Dung cac phm cuon<small>&nbsp; </small>e di chuyen gia cac &nbsp; muc nay, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e chon.</small></font></p> <hr> <p><font face="VNI-Times"><a name="bar outgoing"> <font color="#FF0000">Chan nhng cuoc goi i</font><br> </a><small>(Bar Outgoing Calls)</small></font></p> <p><font face="VNI-Times"> <small>Tuy theo muc ma ban chon, may se t ong chan nhng cuoc goi i khong hp le.</small><br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc&quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br>2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung phm cuon e vao muc &quot; <strong>Call Barring</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small>. </small><br> <small>3.&nbsp;&nbsp;Nhap vao ma chan cuoc goi</small><br> Trang 57

TheGoiEbook.com

<small><small>4.&nbsp;&nbsp;</small> Nhan phm <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>2 lan e vao menu con cua muc &quot; <strong>Bar&nbsp; Outgoing Calls</strong>&quot;. </small><br> <small>&nbsp;&nbsp;&nbsp;<font color="#400000"> <strong>Int'l Calls</strong></font></small><br> <small>&nbsp;&nbsp;&nbsp; Chan nhng cuoc goi i quoc te</small><br> <strong><small><font color="#FF0000">&nbsp;&nbsp;&nbsp; </font> <font color="#400000">Int'l Calls Expect Home</font></small> <font color="#FF0000"><br> </font></strong><small>&nbsp; &nbsp;&nbsp; Chan nhng cuoc goi quoc te ngoai tr at nc cua ban.</small><br> <strong><small><font color="#FF0000">&nbsp;&nbsp;&nbsp; </font> <font color="#400000">All Calls</font></small> <font color="#FF0000"><br> </font></strong> <small>&nbsp;&nbsp;&nbsp; Chan tat ca nhng cuoc goi.</small><br> <small>&nbsp;&nbsp;&nbsp;&nbsp; <font color="#400000"><strong>Off</strong></font></small><br> <small>&nbsp;&nbsp; &nbsp; Khi c chon, may se tr ve che o bnh thng (khong chan cuoc goi) </small><br> <br> <small>Dung cac phm cuon<small> </small>e di chuyen gia cac&nbsp;muc trong menu con, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon.</small> </small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="bar incoming">Chan nhng cuoc goi en<big><br> </big></a></font><small>(Bar Incoming Calls)</small></font></p> <p><small><font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> Trang 58

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung phm cuon e vao muc &quot; <strong>Call Barring</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>.</small><br> <small>3.&nbsp; Nhap vao ma chan cuoc goi</small>, <small>nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small><br> <small>4<small>.&nbsp;&nbsp;</small>Dung cac phm cuon e di chuyen en &nbsp; muc &quot; <strong>Bar Incoming Calls</strong>&quot;, nhan&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e vao menu con</small><br> <strong><font color="#400000"> <small>&nbsp;&nbsp;&nbsp; When Roaming</small></font> <font color="#FF0000"><br> </font></strong><small>&nbsp; &nbsp;&nbsp; Chan nhng cuoc goi en khi ban ang roaming</small><br> <strong><font color="#400000"><small>&nbsp;&nbsp; &nbsp; All Calls</small></font> <font color="#FF0000"><br> </font></strong> <small>&nbsp;&nbsp;&nbsp; Chan tat ca nhng cuoc goi en.</small><br> <strong><font color="#400000"><small>&nbsp;&nbsp;&nbsp; Off</small></font> <font color="#FF0000"><br> </font></strong> <small>&nbsp;&nbsp;&nbsp; Khi c chon, may se tr ve che o bnh thng (khong chan cuoc goi)</small></font></p> <p><font face="VNI-Times"> <small>Dung cac phm cuon e di chuyen gia cac &nbsp;muc trong menu con, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> e chon.</small></small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="cancel bar">Huy viec chan<big><br> </big></a></font><small>(Cancel All Barring)</small><br> <br> <small>Dung e thiet lap tat ca cac tuy chon chan cuoc goi ve mc Off</small><br> Trang 59

TheGoiEbook.com

<small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung&nbsp; phm <small> <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small>, <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)"> </small> e en muc&quot; <strong>Call Barring</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>.</small><br> <small>3.&nbsp;&nbsp;Nhap vao ma chan cuoc goi</small>, <small>nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small><br> <small>4<small>.&nbsp;&nbsp; </small>Dung cac phm cuon<small> </small>e di chuyen en&nbsp; muc &quot; <strong> Cancel All Barring</strong>&quot;, nhan&nbsp; <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e hoan thanh tac vu.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="change bar password">Thay oi ma chan cuoc goi<big><br> </big></a></font><small>(Change Bar Password)</small></font></p> <p><small><font face="VNI-Times">1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; Trang 60

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<font face="VNI-Times">Tiep tuc dung phm cuon e en muc &quot; <strong>Call Barring</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>.</small><br> <small>3.&nbsp; Nhap vao ma chan cuoc goi</small>, <small>nhan&nbsp; <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small><br> <small>4<small>.&nbsp; </small>Dung cac phm cuon e di chuyen en &nbsp;muc &quot; <strong> Change Bar Password</strong>&quot;, nhan&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> .</small><br> <small>5.&nbsp; Nhap vao ma hien tai (mac nh la 6789)</small><br> <small>6.&nbsp; Nhap vao ma mi (4 con so)&nbsp; nhan&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>e hoan thanh tac vu.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="key answer">Tra li bang phm<br> </a></font><small>(Key Answer Only)</small></font></p> <p><font face="VNI-Times"><small>Tnh nang nay co 2 chon la On va Off </small><br> <small>Khi no c thiet lap mc On, m nap may se khong tra li cuoc goi en. </small><br> <small>Khi no c thiet lap mc Off, m nap may se tra li cuoc goi en. </small><br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp;&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Call Related Features</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung phm cuon e en muc &quot; <strong>Key Answer Only</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e&nbsp; chon</small>.</font></p> Trang 61

TheGoiEbook.com

<hr> <p><font face="VNI-Times"><a name="setup"> <font color="#FF0000">Cai at ien thoai<br> </font></a><small>(Phone Setup)<br> &nbsp;&nbsp; &nbsp; Muc nay dung e thiet lap, thay oi&nbsp; cac cau hnh cho ien thoai ang s dung</small></font></p> <p><font face="VNI-Times"><font color="#FF0000"> <a name="line">Chon ng day<br> </a></font><small>(Select Phone Line)<br> &nbsp;&nbsp;&nbsp; Cho phep chuyen oi gia Line 1 va Line 2<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Phone Setup</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan phm <small> <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"></small>, <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e vao muc &quot;<strong>Select Phone Line</strong>&quot; <br> 3.&nbsp; Dung cac phm cuon e di chuyen gia <strong>Line 1</strong> va<strong> Line 2</strong>. Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small></font></small></p> <hr> <p><font face="VNI-Times"> <span style="font-family: VNI-Times"><font color="#FF0000"> <a name="volume">ieu chnh am lng chuong<br> </a></font><small>(Adjust Ring Volume)<br>&nbsp;&nbsp; &nbsp; Thiet lap am lng cua tieng chuong khi co mot cuoc goi en<br> Trang 62

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

</span>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp;</small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc &quot; <strong>Phone Setup</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan phm <small> <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small> 2 lan, <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e vao muc <span style="font-family: VNI-Times">&quot; <strong>Adjust Ring Volume</strong></span>&quot;<br> 3.&nbsp; Dung phm <small> <img src="right.jpg" width="22" height="17" alt="right.bmp (1818 bytes)"> </small>, <small> <img src="left.jpg" width="25" height="16" alt="left.bmp (1974 bytes)"> </small> e ieu chnh am lng. Nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e lu cau hnh va thoat ra.</font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="ring">Chuong hoac rung<br> </a></font><small>(Ring or Vibrate) <br>Thiet lap cach thc ma may se bao hieu khi co mot cuoc goi en<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc &quot; <strong>Phone Setup</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan phm <small> <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"></small> 3 lan, <small> Trang 63

TheGoiEbook.com

<img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e vao muc &quot; <strong>Ring or Vibrate</strong>&quot;<br> 3.&nbsp; Dung cac phm&nbsp;cuon e chuyen oi gia cac muc quot; <strong>Ring Only</strong>&quot; (ch chuong), &quot; <strong>Vibrate Only</strong>&quot; (ch rung), &quot; <strong>Vibrate then Ring</strong>&quot; (rung trc chuong sau), hay &quot; <strong>No Ring or Vibrate</strong>&quot; (khong chuong, khong rung). Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)">. </small></font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="ringer">at tieng chuong<br> </a></font><small>(Set Ringer Tone) <br>Xac nh loai tieng chuong moi khi co mot cuoc goi en<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <font color="#400000"> <strong>Phone Setup</strong></font>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e en muc &quot;<strong><font color="#400000">Set Ringer Tone</font> </strong>&quot; , <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> <br> 3.&nbsp; Tiep tuc dung cac phm<small> </small>cuon e chuyen oi gia cac muc &quot;<font color="#400000"> <strong>Standard Tone</strong></font>&quot (tieng chuan), &quot;<strong> <font color="#400000">Music Tone</font> </strong>&quot;(tieng nhac). Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> Trang 64

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small></font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="tone2">at tieng chuong 2<br> </a></font><small>(Set Ringer Tone 2)<br> Xac nh loai tieng chuong moi khi co mot cuoc goi en. Muc nay ch xuat hien khi ta chon ng day la Line 2 trong muc &quot; <strong>Select Phone Line</strong>&quot; <br>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20"alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc <font color="#400000"> <strong>Phone Setup</strong></font>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e en muc &quot;<font color="#400000"> <strong>Set Ringer Tone 2</strong></font>&quot; ,&nbsp; nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> <br> 3.&nbsp; Tiep tuc dung cac phm cuon<small> </small>e chuyen oi gia cac muc &quot; <strong><font color="#400000">Standard Tone</font> </strong>&quot;(tieng chuan), &quot;<font color="#400000"> <strong>Music Tone</strong></font>&quot;(tieng nhac). Muon chon nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small></font></small></p> <hr> <p><font face="VNI-Times"><span style="font-family: VNI-Times"> <font color="#FF0000"><a name="lock">Khoa ien thoai<br> </a></font> <small>(Phone Lock)<br> Trang 65

TheGoiEbook.com

Dung e thiet lap, thay oi ma m khoa moi khi ien thoai b khoa. Ma mac nh cua no la &quot;1234&quot; va co the thay oi c. <br> </span>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)<small>&nbsp; </small>e di chuyen en muc <font color="#400000"> <strong>Phone Setup</strong></font>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e en muc&quot; <font color="#400000"><strong>Phone Lock</strong> </font>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> <br> 3.&nbsp; Tiep tuc dung cac phm cuon<small> </small>e chuyen oi gia cac muc &quot;<font color="#400000"> <strong>Automatic Lock</strong></font>&quot; (t ong khoa may moi khi m may), &quot;<font color="#400000"> <strong>Lock Now</strong></font>&quot; (khoa may ngay lap tc), hoac &quot;<font color="#400000"> <strong>Change Unlock Code</strong></font>&quot; (thay oi ma m khoa). Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)">. </small></font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="code">Ma so bao mat mi<br> </a></font><small>(New Security Code) <br>Thay oi ma bao mat cua may. Ma nay dung e ieu khien viec truy xuat, va nhng muc khac ben trong menu<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small> (phm cuon)<small> </small>e di chuyen en muc <font color="#400000"> <strong>Phone Setup</strong></font>, nhan<small> Trang 66

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung cac&nbsp; phm cuon e en muc quot; <font color="#400000"> <strong>New Security Code</strong></font>&quot;, nhan &nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> <br> 3.&nbsp; May se yeu cau nhap vao ma so cu. Neu nhap ung, ta se nhap tiep 6 con so thay cho ma so cu. Muon lu cau hnh nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)">. </small></font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="extended">Nhng menu m rong<br> </a></font><small>(Extended Menus)<br> Chuyen oi nhng menu m rong mc On hay Off. Neu no c thiet lap mc Off, nhng tnh nang m rong se khong c hien th<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small> (phm cuon)<small> </small>e di chuyen en muc <strong>Phone Setup</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e vao muc &quot; <strong>Extended Menus</strong>&quot;, nhan&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> <br> 3.&nbsp;Tiep tuc dung cac phm cuon e chuyen oi gia cac muc <strong>On</strong> hay <strong>Off</strong>. Muon lu cau hnh nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small> </font></p> Trang 67

TheGoiEbook.com

<hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="show">Hien th ngay va gi<br> </a></font> <small>(Show Time and Date)<br> Moi khi c chon, man hnh se hien th ngay va gi cho en khi mot phm bat ky c nhan. Chc nang nay ch c hien th khi menu &quot; <strong>Extended Menus</strong>&quot; trang thai <strong>On</strong>.<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc <strong>Phone Setup</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung cac phm cuon e en muc &quot; <strong>Show Time and Date</strong>&quot;.<br> 3.&nbsp; Muon chon nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small> </font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="set">at&nbsp;lai ngay va gi<br> </a></font><small>(Set Time and Date) <br>Dung e at lai ngay va gi. Chc nang nay ch c hien th khi menu &quot;<strong>Extended Menus</strong>&quot; trang thai On.<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc <strong>Phone Setup</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> Trang 68

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung cac phm cuon e en muc &quot; <strong>Set Time and Date</strong>&quot;, <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> <br> 3.&nbsp; Man hnh se hien th thong bao &quot;<strong>Enter Time</strong>&quot;. Thi gian nhap vao phai dang thc 24h. Tiep o la thong bao nhac nh nhap vao ngay &quot;<strong>Enter Date</strong>&quot;.&nbsp; Muon lu cau hnh nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small> </font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="format">at kieu gi 12/24<br> </a></font><small>(Set Time Format) <br>Dung e at lai dang thc hien th gi. Chc nang nay ch c hien th khi menu &quot;<strong>Extended Menus</strong>&quot; trang thai <strong>On</strong>.<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc <strong>Phone Setup</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e en muc &quot;<strong>Set Time Format</strong>&quot;,nhan&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> <br> 3.&nbsp; Tiep tuc dung cac phm<small> </small>cuon<small> </small>e chuyen oi gia cac muc &quot; <strong>12-hour?</strong>&quot;(dang 12h), hay &quot; <strong>24-hour</strong>&quot;(dang 24h).&nbsp; Muon lu cau hnh nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small> </font></small></p>

Trang 69

TheGoiEbook.com

<hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="battery">Che o tiet kiem pin<br> </a></font><small>(Battery Saving Mode) <br>Tnh nang nay cho phep ien thoai hoat ong che o tiet kiem pin. Chc nang nay ch c hien th khi menu &quot; <strong>Extended Menus</strong>&quot; trang thai <strong>On</strong>. <br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc <strong>Phone Setup</strong>, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Tiep tuc dung cac phm cuon e en muc &quot; <strong>Battery Saving Mode</strong>&quot;,nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> <br> 3.&nbsp; Muon lu cau hnh nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small> </font></small></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="keypad">Chon tieng nut bam<br> </a></font><small>(Select Keypad Tones) <br> Cho phep ban thay oi hoac khong cho phep co tieng moi khi mot phm c nhan. Chc nang nay ch c hien th khi menu &quot; <strong>Extended Menus</strong>&quot; trang thai <strong>On</strong>. <br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc <strong>Phone Setup</strong>, nhan<small> Trang 70

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></font><br> 2.&nbsp;&nbsp;&nbsp; <font face="VNI-Times">Nhan cac phm cuon e en muc&quot; <strong>Select Keypad Tones</strong>&quot;,nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"></small> <br> 3.&nbsp; Tiep tuc dung cac phm cuon e chuyen oi gia cac muc &quot; <strong>Normal Tones</strong>&quot; (tieng bnh thng), &quot; <strong>Single Tone</strong>&quot; (tieng n), hay &quot; <strong>No Tones</strong>&quot; (khong co tieng).&nbsp; Muon lu cau hnh nhan <small><img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)">, </small>e thoat ra dung phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)"> </small> </font></small></p> <hr> <p><a name="messages"> <font color="#FF0000">Tin Nh</font> <font face="VNI-Times" color="#FF0000">an<br> </font></a><font face="VNI-Times"><small>(Messages) <br>Dung e soan thao tin nhan, xem noi dung tin nhan, thiet lap hoac thay oi cac cau hnh lien quan en tin nhan.</small></font></p> <p><font face="VNI-Times"><font color="#FF0000"> <a name="call voicemail">Goi hop th thoai<br> </a></font>(Call Voicemail)<br> <small>Chc nang dung e lam mot cuoc goi en so hop th thoai hien hanh. <br> So cua hop th thoai co the thay oi c trong muc &quot; <strong>Voicemail Number</strong>&quot;. <br> e dung chc nang nay, ban lam nh sau : <br>Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>e di chuyen en muc &quot; <strong>Messages</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>2 lan vao muc &quot; <strong>Call Voicemail</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> Trang 71

TheGoiEbook.com

</small></font>. Khi <font face="VNI-Times">o, may se t ong quay so cua hop th thoai. Nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e ket thuc cuoc goi.</font></small></p> <hr> <p><font face="VNI-Times"><a name="outgoing msg"> <font color="#FF0000">Cac tin gi i</font><br> </a><small>(Outgoing Messages)</small><br> <small>Chc nang nay c dung e xem va quan ly bat ky tin nhan nao gi i <small>.</small> Khi chon muc nay, tin nhan au tien se c hien th.</small> <br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong> Messages</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small>.<br> <small>2.&nbsp; Dung cac phm cuon e cuon en muc &quot; <strong>Outgoing Massages</strong>&quot;<small>, </small>nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small>. <small>Man hnh se hien th danh sach cac tin nhan gi i</small>.<br> <small>3<small>.&nbsp; </small>Tiep tuc dung cac phm cuon&nbsp; e di chuyen gia cac tin nhan. e hien th 1 tin nhan ch nh, nhap vao so th t cua tin nhan o, v du nhan phm </font> <img src="5.jpg" width="24" height="17" alt="5.bmp (1734 bytes)"> <font face="VNI-Times"> &nbsp; e hien th tin nhan th 5. Neu tin nhan o khong ton tai, thong bao &quot;<strong>Invalid Msg Number</strong>&quot; se c hien th. Nhan&nbsp; <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e vao menu con.</small><br> <small>&nbsp;&nbsp; <strong>Send Message</strong> (Gi tin nhan)</small><br> <small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><em>Enter Number</em></strong>dung cac phm so e nhap so ien thoai </small><br><small> <strong><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find Entry by Name</em> </strong>(tm mot so ien thoai a lu trong bo nh theo ten)</small> Trang 72

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<br><small> <strong><em>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Find Entry by Location</em> </strong>&nbsp;(tm mot so ien thoai a lu trong bo nh theo v tr) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </small><br> <small><strong>&nbsp;&nbsp;Store Message</strong> (Lu tin nhan)</small> <br><small><strong>&nbsp;&nbsp;Edit Message </strong> (hieu chnh tin nhan)</small><br><small> <strong>&nbsp;&nbsp;Delete Message</strong> (Xoa tin nhan hien th hien tai) <br> <strong>&nbsp;&nbsp;Go to Next Message</strong> (hien th tin nhan gi i ke tiep)&nbsp; </small></font></p> <p><font face="VNI-Times"><small>Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small> e di chuyen gia cac menu con, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>&nbsp; e chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="msg editor">Soan thao tin nhan<br> </a></font>(<small>Message Editor</small>)<br> <sub>Dung e tao hay hieu chnh nhng tin nhan.</sub> <br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> &nbsp;</small> (phm cuon) e di chuyen en muc &quot; <strong> Messages</strong>&quot;, nhan<small> <img src="ok.jpg" width="28"height="17" alt="ok.bmp (1902 bytes)"> </small></small>.<br> <small>2.&nbsp; Tiep tuc dung cac phm<small> </small>cuon<small> </small>e cuon en muc &quot; <strong>Massage Editor</strong>&quot;<small>, </small>nhan<small>&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small>.<small><small> </small>Khi o man hnh se hien th</small> <small>tin nhan cuoi cung. Nhan va gi phm <small> <img src="cancel.jpg" width="17" height="19" alt="cancel.bmp (1526 bytes)">

Trang 73

TheGoiEbook.com

</small> e xoa tin nhan va bat au mot tin nhan mi, hay hieu chnh tin nhan ang hien th,<small> </small>nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>&nbsp; moi khi hoan thanh tin nhan, e vao cac tuy chon cua no </small><br> <sub><strong>&nbsp;&nbsp;&nbsp; Send Message</strong> (Gi tin nhan)<br> <strong>&nbsp;&nbsp;&nbsp; Store Message</strong> (lu tin nhan lai trong danh sach nhng tin nhan gi i)</sub><br> <br> <small>e tham khao ve cach nhap ky t, xin xem muc &quot; <a href="#nhap-ky-tu"><small>Ca</small>ch nhap ky t</a>&quot; </small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"><big> <a name="msg setting"><sub>Cai at tin nhan</sub><br> </a></big></font><sub>(Message Settings)</sub></font></p> <p><font face="VNI-Times"><small>1.&nbsp;Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong> Messages</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small>.<br> <small>2.&nbsp;Tiep tuc dung cac phm cuon e cuon en muc &quot; <strong>Massage Settings</strong>&quot;<small>, </small>nhan <small>&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e vao menu con</small><br> <br> <strong><small>Voicemail Number</small></strong><br> <small>Dung e nhap vao mot so ien thoai, la so c dung cho muc &quot;Call Voicemail&quot;. Neu a ton tai 1 so, no se c hien th tren man hnh. Luc o, ta co the dung, thay oi hay xoa&nbsp; no neu muon.</small><br> <strong><small>Service Centre</small></strong><br> <small>Trc khi ban gi i bat ky tin nhan nao, ban phai dung tuy chon nay e nhap vao so ien thoai cua trung tam dch vu tin nhan.cua ban. Neu a ton tai 1 so, no se c hien th tren man hnh. Luc o, ta co the dung, thay oi hay xoa&nbsp; no neu muon.</small><br> <strong><small>Expiry Period</small></strong><br> Trang 74

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<small>Dung e ch nh khoang thi gian toi a e nhng tin nhan cha gi i, c lu tren trung tam dch vu tin nhan trc khi no c gi i. Khi c chon, man hnh se hien th thi gian a ch nh hien tai. </small><br> <strong><small>Outgoing Message Type</small></strong><br> <small>Dung e ch nh dang thc cua tin nhan gi i.</small></font></p> <p><font face="VNI-Times"><small>Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>e di chuyen gia cac muc trong menu con, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> e chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="network select">Chon mang hoat ong<br> </a></font><small>(Network Selection)</small></font></p> <p><small><font face="VNI-Times">e ien thoai co the nhan hoac lam mot cuoc goi, no phai ang ky vi mot trong nhng mang co gia tr. Nhng mang o co the la GSM900, GSM1800 hay la ket hp cua GSM900/1800. Tnh nang nay c dung e chon mang hoat ong, thay oi bang tan, hay tm mot mang mi....</font> </small></p> <p><font face="VNI-Times"><font color="#FF0000"> <a name="change band">Thay oi bang tan<br> </a></font><small>(Change Band)</small></font></p> <p><font face="VNI-Times"><small>Dung cac phm <small> <img src="up.jpg" width="26"height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong>Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>2 lan e vao cac menu con cua muc &quot; <strong>Change Band</strong>&quot;</small></font></p> <p><font face="VNI-Times"><small><strong>Change to 900/1800<br> </strong>Thay oi sang day bang tan 900/1800<br> <strong>Change to 900</strong><br>Thay oi sang day bang tan 900<br> <strong>Change to 1800</strong><br>Thay oi sang day bang tan 1800</small> Trang 75

TheGoiEbook.com

<br> <small>Dung cac phm cuon e di chuyen gia cac menu con cua muc &quot; <strong>Change Band</strong>&quot;<small>, </small>nhan<small>&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e&nbsp; chon</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="avail network">Nhng mang co the dung<br> </a></font><small>(Available Networks)</small></font></p> <p><font face="VNI-Times"><small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong> Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>2.&nbsp; Tiep tuc dung cac phm cuon e di chuyen en muc &quot; <strong>Available Network</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>Khi c chon, chc nang nay se quet e tm xem nhng mang nao ang hoat ong v tr hien tai cua ban. Khi viec quet a hoan thanh, dung cac phm cuon e di chuyen gia cac muc trong danh sach. Khi ban tm thay mot mang va muon ang ky hoac lu no trong danh sach nhng mang u tien, nhan <small><small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> . Khi o ban se vao menu con cua muc</small> <small>&quot;<strong>Available Network</strong>&quot;.</small><br> <br> <strong><small>Register Now </small></strong><br> <small>Moi khi c chon, may se co gang ang ky vi mang a chon.</small><br> <strong><small>Make Preferred</small></strong><br> <small>Moi khi c chon, ban se phai nhap vao v tr cua mang a chon trong danh sach nhng mang u tien.</small><br> <small>Dung cac phm cuon e di chuyen gia cac menu con cua no<small>, </small>nhan<small>&nbsp; <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e&nbsp; chon.</small></font></p>

Trang 76

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="find network">Tm mang <br> </a></font><small>(Network Search)<br> La mot tnh nang trong o co nhng tuy chon quyet nh cach lam the nao hoac bao lau th may cua ban se ang ky vi mot mang.<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc &quot; <strong> Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>2.&nbsp; Tiep tuc dung cac phm cuon e<small> </small>di chuyen en muc &quot; <strong>Network Search</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>e vao menu con </small><br> <br> <strong><small>Registration Preferences</small><br> </strong><small>Quy nh may cua ban se lam the nao e ang ky vi mot mang. Tuy chon nay co 2 che o <br> <em><strong>Automatic Search</strong></em></small><br> <small>Trong che o t ong tm, may se co gang ang ky vi mang au tien trong danh sach a lu. Neu thanh cong, no se hien th ten cua mang va sau o vao che o ch.<br> Neu viec ang ky khong thanh cong, no se tiep tuc ang ky vi nhng mang ke tiep.<br> <em><strong>Manual Search Mode.</strong></em></small><br> <small>Trong che o tm thu cong, may se trnh bay danh sach cua nhng mang a lu. Dung cac phm va e chon mot t trong danh sach o. May ien thoai cua ban se co gang ang ky vi mang a chon.</small></font></p> <p><font face="VNI-Times"> <small><strong>Frequency of Search</strong></small><br> <small>Tuy chon nay dung e quy nh may se ch bao lau, trc khi co gang ang ky lai sau khi viec ang ky trc o a that bai. Tuy chon nay co nhng thiet lap sau :<br> <strong><em>Slow Search</em><br> <em>Medium Search</em><br> <em>Fast Search</em><br> Trang 77

TheGoiEbook.com

<em>Continuous Search</em></strong></small><br> <small>Dung cac phm cuon e di chuyen gia cac menu con<small>, </small>nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="prefer network">Nhng mang u tien<br> </a></font><small>(Preferred Networks)<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon) e di chuyen en muc&quot; <strong> Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>2.&nbsp; Tiep tuc dung cac phm cuon e di chuyen en muc &quot; <strong>Preferred Network</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>e vao menu con </small><br> <br><small> <a href="#add list">Add Network to List</a> (Them mang vao trong danh sach u tien)<br> <a href="#show list">Show List of Networks</a> (Hien th danh sach mang u tien)</small><br> <small>Dung cac phm cuon e di chuyen gia cac menu con<small>, </small>nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="add list">Them mang vao trong danh sach<br> </a></font><small>(Add Network to List) <br>Tnh nang nay cho phep ban them mang vao trong danh sach mang u tien. </small><br> <small>1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, Trang 78

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)&nbsp; e di chuyen en muc &quot; <strong> Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>2.&nbsp; Tiep tuc dung cac phm cuon e di chuyen en muc &quot; <strong>Preferred Network</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>2 lan e vao &nbsp;menu con cua muc &quot; <strong>Add Network to List</strong>&quot;.</small></font><br> <font face="VNI-Times"><small> <strong>Choose From Available</strong></small><br> <small>Tuy chon se quet e tm nhng mang ang hoay ong v tr hien tai cua ban. Khi viec quet a hoan thanh, dung cac phm cuon e di chuyen gia cac muc trong danh sach. Khi ban tm thay mot mang va muon lu no trong danh sach nhng mang u tien, nhan <small><small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> . Khi o ban se c hoi e nhap vao v tr cua mang a chon trong danh sach nhng mang tham khao.</small><br> <small><strong>Choose From Known</strong></small><br> <small>Khi c chon, may se trnh bay mot danh sach cac mang. Dung cac phm cuon e duyet qua danh sach. Khi ban tm thay mot mang va muon lu no trong danh sach nhng mang u tien, nhan <small><small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> . Khi o ban se c hoi e nhap vao v tr cua mang a chon trong danh sach nhng mang tham khao.</small><br> <small>Dung cac phm cuon e di chuyen gia cac menu con<small>, </small>nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="show list">Hien th danh sach mang u tien<br> </a></font><small>(Show List of Networks)<br> Dung e hien th nhng mang ban a lu trong danh sach.</small><br> <small>1.&nbsp;&nbsp;Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)&nbsp; e di chuyen en muc &quot; Trang 79

TheGoiEbook.com

<strong>Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>2.&nbsp;&nbsp;Dung cac phm cuon<small> </small>di chuyen en muc &quot; <strong>Preferred Network</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>e vao menu con.<br> 3.&nbsp;&nbsp;Tiep tuc dung cac phm cuon cuon en muc &quot; <strong>Show List of Networks</strong>&quot;, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> se hien th danh sach nhng mang a c lu. <br> e duyet qua danh sach nay dung phm cuon, nhan <small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small> se chon muc hien tai va i vao menu con </small><br> <small><strong>Move to New Location</strong> <br>Ban se phai nhap vao gia tr v tr mi cua mang a chon.<br> <strong>Delete Selection<br> </strong>Xoa mang a chon.</small><br> <small>Dung cac phm cuon e di chuyen gia cac menu con<small>, </small>nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small>e chon.</small></font></p> <hr> <p><font face="VNI-Times"><font color="#FF0000"> <a name="find new">Tm mang mi<br> </a></font><small>(Find New Network)<br> 1.&nbsp; Dung cac phm <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)">&nbsp; </small>(phm cuon)&nbsp; e di chuyen en muc &quot; <strong>Network Selection</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> .<br> <small>2.&nbsp; Dung cac phm cuon<small> </small>di chuyen en muc &quot; <strong>FindNew Network</strong>&quot;, nhan<small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> <small>e thc hien viec tm mang mi.</small></font></p> Trang 80

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

<hr> <p><font face="VNI-Times"> <font color="#FF0000">Thiet lap nhng thiet b nh kem</font> <br>(Accessory Setup Menu)</font></p> <p>&nbsp;</p> <p><font face="VNI-Times"><br> </font><font face="VNI-Times" color="#FF0000"> <a name="quick access">Dung Menu truy cap nhanh<br> </a></font><small> <font face="vni-times">(Quick Access Menu)</font></small></p> <p><small><font face="vni-times">ay la u iem oc ao cua may Motorola ma cac may khac khong co c. No cho phep ban chon 9 chc nang thng dung ma khong phai ra tm long vong trong cac menu. Bang cach bam phm</font> <img src="arrow.jpg" width="20" height="20" alt="arrow.bmp (1954 bytes)"> <font face="VNI-Times">va ket hp mot trong cac phm so t 1 en 9 ; hoac bam phm </font> <img src="arrow.jpg" width="20" height="20" alt="arrow.bmp (1954 bytes)"> <font face="VNI-Times">ket hp vi cac phm<small> <small> <img src="up.jpg" width="26" height="20" alt="up.bmp (2550 bytes)">, <img src="down.jpg" width="28" height="20" alt="down.bmp (2262 bytes)"> </small></small> (phm cuon) e tm chc nang. Bam <small><small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> e chon. <br>Ban cung co the thiet ke lai menu truy cap nhanh tren cho phu hp vi y thch. Motorola a ra en 20 chc nang thong dung e ban chon lay 9 chc nang.<br> &nbsp;&nbsp;&nbsp; * Cach lam nh sau :<br>Bam </font> <img src="arrow.jpg" width="20" height="20" alt="arrow.bmp (1954 bytes)"> <font face="VNI-Times">va dung phm cuon hay dung phm so cuon en v tr ma ban muon oi, bam va gi phm <small><small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> mot luc, man hnh se hien th danh sach cac chc nang, tiep tuc dung cac phm cuon e tm chc nang ma ban thch. Bam <small><small> <img src="ok.jpg" width="28" height="17" alt="ok.bmp (1902 bytes)"> </small></small> khi muon chon.Chc nang mi se c thay the vao v tr o.</font> </small></p> Trang 81

TheGoiEbook.com

<p align="center"><a href="use-phonebook.htm"> <img src="backtop.gif" width="196"height="31" alt="backtop.gif (754 bytes)"></a></p> <p><font face="VNI-Times"><br> </font></p> </body> </html> 3.2. Ma nguon cua ActiveX Control Khai bao cac bien chung Option Explicit Private Type entry 'khai bao entry la muc kieu ban ghi name As String * 10 number As String * 10 location As Integer End Type Private Type access 'khai bao access la mot kieu ban ghi feature As String * 16 'luu giu ten tinh nang trong menu quick access thutu As Integer End Type Private Type messages tin As String * 25 sothutu As Integer End Type Private Type netselect mang As String * 10 End Type Dim found As Boolean 'la true khi tim thay entry can tim Const filename3 = "c:\menuquickaccess.lst" Const filename = "c:\entryphone.lst" Const filename1 = "c:\entrysim.lst" Const filename2 = "c:\entryprevent.lst" Const filename4 = "c:\messages.lst" Const filetam = "c:\filetam.lst" Const filename5 = "c:\filenetwork.list" Trang 82

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Const filename6 = "c:\preferrednetwork.list" Const filefixed = "c:\fixeddialling.lst" Dim i As Integer Dim st1 As String Dim lo As Integer 'bien luu location Dim nu As String 'bien luu number Dim st As String 'bien luu name Dim vitri As Integer 'giu vi tri khi tim thay hoac di chuyen giua cac entry Dim flag As Boolean Dim prevent As Integer 'giu trang thai trong muc Prevent Access Dim formattime As Boolean Dim unlocked As String 'luu chuoi giai ma khi phone o trang thai lock Dim line2 As Boolean 'co bang true khi line2 o trang thai ON Dim securitycode As String Dim pin2code As String 'luu chuoi ma PIN2 Dim advolume As Boolean 'bien co khi vao muc Adjust Ring Volume Dim vol As Integer 'luu gia tri hien tai cua volume o muc thu bao nhieu Dim menucon As Boolean 'bien giu vao menu con cua Find Dim aftermouseup As Date Dim aftermousedown As Date Dim danhso As Boolean 'ghi trang thai ban phim la so Dim cancle As Boolean Dim longpress As Boolean 'khi nguoi su dung nhan va giu phim Dim quickaccess As Boolean 'khi vao trong menu quickaccess Dim orderinquick As Integer Dim thu As Boolean 'bien co khi nhan va giu mot phim de vao menu quick access Dim changecase As Boolean 'doi chu hoa thanh thuong va nguoc lai Dim onetouchphone As Boolean 'goi so bang 1 phim trong bo nho may Dim onetouchof As Byte 'nhan biet One Touch Dial cua muc nao Dim messagelist As Boolean 'bien co khi vao trong danh sach message Dim taomoi As Boolean 'bien co cho biet la tao tin nhan moi hay la thay doi tin nhan Dim voicemailnumber As String 'luu so voicemail Dim servicecentre As String 'luu so service centre Dim expiryperiod As String 'bien luu gia tri max hour cua 1 tin nhan khi chua gui di trong message setting Dim messagenumber As Integer 'so thu tu cua message Dim editor As Boolean 'bien co khi hieu chinh tin nhan Dim availablenetwork As Boolean 'bien khi lam viec trong muc available networks Dim tam1 As Integer Dim cancall As Boolean 'de biet mot so co the goi duoc hay khong Dim setupfixed As Boolean 'trong muc setup fixed dialling Trang 83

TheGoiEbook.com

Dim listdial As Boolean 'bien co dung de di chuyen giua nhung muc trong danh sach Fixed Dial Dim editentrylist As Boolean 'bien dung trong muc edit entry cua Fixed dial Dim eraseentrylist As Boolean 'bien dung trong muc edit entry cua Fixed dial Dim addentrylist As Boolean 'bien dung trong Add Entry cua Fixed Dialling Dim callbarring As Boolean 'bien dung trong muc Call Barring Dim barpassword As String 'luu ma chan cuoc goi Dim showtime As Boolean Dim luumuc As Integer 'luu muc trong menu quick access Thu tuc khi nhan phm chuot Private Sub so_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) aftermousedown = Time End Sub Thu tuc khi tha chuot Private Sub so_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) Dim k As Integer Dim st As String Dim st1 As String Static switch As Boolean Dim starttime As Date Dim menuaccess As access Dim news As entry Dim banghi As Byte Dim j As Byte Dim co As Boolean aftermouseup = Time starttime = aftermouseup - aftermousedown If Second(starttime) > 2 Then 'xu ly khi user nhan va giu phim OK de vao bang chuc nang trong Quick Access If Index = 13 And thu = True Then If volume.Visible = True Then volume.Visible = False tbnhap.Visible = True Frame1.Height = 500 Frame1.Width = 1800 End If Trang 84

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

showtime = False tbnhap.Text = "Find by Name" Image2.Visible = False st = tbnhap.Text longpress = True cancle = True danhso = False Exit Sub End If 'xu ly cua muc chuyen chu hoa thanh chu thuong trong khi nhap chu If changecase = True Then If switch = False Then k = InStr(tbnhap.Text, vbLf) st = LCase(Mid(tbnhap.Text, k + 1)) st1 = tbnhap.Text Mid(st1, k + 1) = st tbnhap.Text = Left(st1, Len(st1) - 1) switch = True Exit Sub Else k = InStr(tbnhap.Text, vbLf) st = UCase(Mid(tbnhap.Text, k + 1)) st1 = tbnhap.Text Mid(st1, k + 1) = st tbnhap.Text = Left(st1, Len(st1) - 1) switch = False Exit Sub End If End If 'xu ly khi nhan va giu phim cancle de xoa va bat dau tin nhan moi If Index = 10 And editor = True Then 'messagelist = True Then tbnhap.Text = "" danhso = False cancle = False taomoi = True messagelist = False Exit Sub End If

Trang 85

TheGoiEbook.com

'xu ly cua phan One-touch Dial Setting If onetouchphone = True Then danhso = False Select Case Index Case 1 Call onetouch(1) Case 2 Call onetouch(2) Case 3 Call onetouch(3) Case 4 Call onetouch(4) Case 5 Call onetouch(5) Case 6 Call onetouch(6) Case 7 Call onetouch(7) Case 8 Call onetouch(8) Case 9 Call onetouch(9) End Select Else danhso = True Exit Sub End If Else Exit Sub End If End Sub Thu tuc khi nhan mot phm so Private Sub so_Click(Index As Integer) Dim n As Byte 'bien luu len(tbnhap)cho su kien index Dim j As Byte 'giu gia tri cho vong lap Static swit As Boolean 'xet luu o dt hay SIM Dim k As Integer Dim ch As String Dim news As entry Static tam As Integer 'luu gia tri tam khi o trong tinh nang Prevent Access Trang 86

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Dim menuaccess As access Dim message As messages Static onoff As Boolean Dim banghi As Byte Static setup As Boolean 'bien co khi lam viec voi muc Phone setup Static extend As Boolean 'bien co devao nhung muc cua menu mo rong Static newdate As Date Static newtime As Date Static locked As Boolean 'bien co khi lam viec voi muc Phone lock Static autolocked As Boolean Static phonebook As Boolean 'bien co khi lam viec voi muc Phone Book Static accessory As Boolean 'bien co trong menu Accessory Static network As Boolean 'bien co trong menu Network Static features As Boolean 'bien co trong menu CAll related features Static message1 As Boolean Static callnumberfixed As Boolean Static sending As Boolean 'bien co de biet co gui tin nhan di khong Static voice As Boolean 'co khi vao trong muc voice mail number Static service As Boolean 'co khi vao trong muc service centre Static expiry As Boolean 'co khi vao trong muc expiry period Static setting As Boolean 'co khi vao trong message setting va nhan cancle Static send As Boolean 'de nhan biet trong muc send message Static callnumber As Boolean Dim networks As netselect Static showlist As Boolean 'danh sach preferred network Static manualsearch As Boolean 'bien co trong muc Manual Search Mode Static addnetwork As Boolean 'bien co trong muc Add Network to List Dim cd As Integer Static timthay As Boolean 'tim duoc muc trong Fixed dial Dim chuoitam As String If tbnhap.Text = "Locked" Then tbnhap.Text = "Unlock Code" & vbCrLf danhso = True cancle = True Exit Sub End If If showtime = True Then tbnhap.Text = "Menu" showtime = False Trang 87

TheGoiEbook.com

Exit Sub End If If tbnhap.Text = "Menu" Then If Index >= 0 And Index < 10 Then tbnhap.Text = "" danhso = True cancle = True End If End If 'khi nguoi su dung nhan so de lam cuoc goi If (danhso = True) Or Left(tbnhap.Text, 11) = "Unlock Code" Then Select Case Index Case 0 tbnhap.Text = tbnhap.Text & "0" Case 1 tbnhap.Text = tbnhap.Text & "1" Case 2 tbnhap.Text = tbnhap.Text & "2" Case 3 tbnhap.Text = tbnhap.Text & "3" Case 4 tbnhap.Text = tbnhap.Text & "4" Case 5 tbnhap.Text = tbnhap.Text & "5" Case 6 tbnhap.Text = tbnhap.Text & "6" Case 7 tbnhap.Text = tbnhap.Text & "7" Case 8 tbnhap.Text = tbnhap.Text & "8" Case 9 tbnhap.Text = tbnhap.Text & "9" End Select End If 'truong hop cho phep user dung ban phim de nhap ky tu If cancle = False Then Select Case Index

Trang 88

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

'********** phim so 0 ***************** Case 0 'user dung phim so trong menu message If quickaccess = True Then Exit Sub End If If messagelist = True Then tbnhap.Text = "Invalid Msg Number" messagelist = False Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "+" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "-" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "0" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "=" i=i+1 Case 4 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "*" i=i+1 Case 5 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "/" 'i = 0 End Select '**************phim so 1***************** Case 1 Trang 89

TheGoiEbook.com

'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(1) orderinquick = 1 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(1) Exit Sub End If 'user dung phim de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & " " i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "." i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "1" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "?" i=i+1 Case 4 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "!" i=i+1 Case 5 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & ":" 'i = 0 End Select '**************phim so 2****************** Trang 90

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Case 2 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(2) orderinquick = 2 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(2) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "A" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "B" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "C" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "2" 'i = 0 End Select '****************phim so 3*************** Case 3 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(3) orderinquick = 3 Exit Sub End If Trang 91

TheGoiEbook.com

'user dung phim so trong menu message If messagelist = True Then Call clickmessage(3) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "D" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "E" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "F" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "3" 'i = 0 End Select '***************phim so 4**************** Case 4 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(4) orderinquick = 4 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(4) Exit Sub End If

Trang 92

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "G" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "H" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "I" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "4" 'i = 0 End Select '************** phim so 5 *************** Case 5 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(5) 'menuaccess.thutu orderinquick = 5 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(5) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "J" i=i+1 Case 1 n = Len(tbnhap.Text) Trang 93

TheGoiEbook.com

tbnhap.Text = Left(tbnhap.Text, n - 1) & "K" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "L" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "5" 'i = 0 End Select '*************** phim so 6 *************** Case 6 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(6) 'menuaccess.thutu orderinquick = 6 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(6) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "M" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "N" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "O" i=i+1 Case 3 Trang 94

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "6" 'i = 0 End Select '**************** phim so 7 ************** Case 7 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(7) orderinquick = 7 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(7) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "P" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "Q" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "R" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "S" i=i+1 Case 4 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "7" 'i = 0 Trang 95

TheGoiEbook.com

End Select '*********** phim so 8 ******************* Case 8 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(8) orderinquick = 8 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(8) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "T" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "U" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "V" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "8" 'i = 0 End Select '************* phim so 9 ***************** Case 9 'user dung phim so trong menu quick access If quickaccess = True Then luumuc = clickquickaccess(9) Trang 96

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

orderinquick = 9 Exit Sub End If 'user dung phim so trong menu message If messagelist = True Then Call clickmessage(9) Exit Sub End If 'user dung phim so de nhap ky tu Select Case i Case 0 tbnhap.Text = tbnhap.Text & "W" i=i+1 Case 1 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "X" i=i+1 Case 2 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "Y" i=i+1 Case 3 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "Z" i=i+1 Case 4 n = Len(tbnhap.Text) tbnhap.Text = Left(tbnhap.Text, n - 1) & "9" 'i = 0 End Select End Select End If '********** phim cancle ****************** Select Case Index Case 10 If volume.Visible = True Then Exit Sub End If Trang 97

TheGoiEbook.com

If locked = True Or autolocked = True Then Exit Sub End If If callnumberfixed = True Then callnumberfixed = False End If If listdial = True Then listdial = False 'Exit Sub End If If callnumber = True Then tbnhap.Text = "Menu" callnumber = False 'Exit Sub End If If found = True Then 'And setup = False Then tbnhap.Text = "Phone Book" found = False flag = False menucon = False Exit Sub End If If phonebook = True Then tbnhap.Text = "Phone Book" phonebook = False send = False Exit Sub End If 'se thoat ra muc Phone Setup khi dang lam viec voi menu con cua no If setup = True Then tbnhap.Text = "Phone Setup" setup = False Exit Sub End If Trang 98

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

'neu dang nam trong menu quick access then If quickaccess = True Then tbnhap.Text = "Menu" quickaccess = False danhso = True Exit Sub End If If longpress = True Then tbnhap.Text = "Menu" longpress = False danhso = True Exit Sub End If If tbnhap.Text = "Overwritten?" Then tbnhap.Text = "Enter Location!" & vbCrLf Exit Sub End If If accessory = True Then tbnhap.Text = "Accessory Setup" accessory = False Exit Sub End If If network = True Then tbnhap.Text = "Network Selection" network = False showlist = False Exit Sub End If If features = True Then tbnhap.Text = "Call Related Features" features = False Exit Sub End If If message1 = True Then Trang 99

TheGoiEbook.com

tbnhap.Text = "Messages" message1 = False messagelist = False Exit Sub End If If tbnhap.Text = "Phone Book" Or tbnhap.Text = "Messages" Or tbnhap.Text = "Phone Setup" Then tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "Call Related Features" Or tbnhap.Text = "Network Selection" Or tbnhap.Text = "Accessory Setup" Then tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "Are you sure?" Then tbnhap.Text = "Network Selection" network = False showlist = False Exit Sub End If If availablenetwork = True Or addnetwork = True Then tbnhap.Text = "Network Selection" availablenetwork = False addnetwork = False Exit Sub End If If editentrylist = True Or eraseentrylist = True Or addentrylist = True Then editentrylist = False addentrylist = False eraseentrylist = False Exit Sub End If If danhso = False And cancle = True Then tbnhap.Text = "Menu" Trang 100

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

danhso = True Exit Sub End If If danhso = True Or cancle = False Then If editor = True Then n = Len(tbnhap.Text) If n = 0 Then tbnhap.Text = "Messages" editor = False danhso = False cancle = True Exit Sub Else tbnhap.Text = Left(tbnhap.Text, n - 1) Exit Sub End If End If If setting = True Then n = Len(tbnhap.Text) If n = 0 Then tbnhap.Text = "Messages" danhso = False cancle = True setting = False Else tbnhap.Text = Left(tbnhap.Text, n - 1) End If Exit Sub End If k = InStr(tbnhap.Text, vbCr) n = Len(tbnhap.Text) If n = 0 Then tbnhap.Text = "Menu" Exit Sub End If If n = k + 1 Then 'Beep tbnhap.Text = "Phone Book" '"Personal Number" cancle = True Trang 101

TheGoiEbook.com

danhso = False changecase = False 'Exit Sub Else If tbnhap.Text = "Menu" Then Beep Else tbnhap.Text = Left(tbnhap.Text, n - 1) Exit Sub End If End If End If '************ Phim menu-up *************** Case 11 If tbnhap.Text = "Network Selection" Then tbnhap.Text = "Phone Setup" Exit Sub End If If tbnhap.Text = "Phone Setup" Then tbnhap.Text = "Messages" Exit Sub End If If tbnhap.Text = "Messages" Then tbnhap.Text = "Call Related Features" Exit Sub End If If tbnhap.Text = "Call Related Features" Then tbnhap.Text = "Phone Book" Exit Sub End If If tbnhap.Text = "Phone Book" Then tbnhap.Text = "Accessory Setup" Exit Sub End If If tbnhap.Text = "Accessory Setup" Then Trang 102

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Network Selection" Exit Sub End If 'menu con cua muc Phone Book If tbnhap.Text = "One-Touch Dial Setting" Then tbnhap.Text = "Fixed Dialling" Exit Sub End If If Trim(tbnhap.Text) = "Fixed Dialling" Then tbnhap.Text = "Personal Number" Exit Sub End If If tbnhap.Text = "Personal Number" Then tbnhap.Text = "One-Touch Dial Setting" Exit Sub End If 'vao menu con cua muc Personal Number If tbnhap.Text = "Prevent Access" Then tbnhap.Text = "Check Capacity" Exit Sub End If If tbnhap.Text = "Check Capacity" Then tbnhap.Text = "Add Entry" Exit Sub End If If tbnhap.Text = "Add Entry" Then tbnhap.Text = "Find Entry by Location" Exit Sub End If If tbnhap.Text = "Find Entry by Location" Then tbnhap.Text = "Find Entry by Name" Exit Sub End If

Trang 103

TheGoiEbook.com

If tbnhap.Text = "Find Entry by Name" Then tbnhap.Text = "Prevent Access" Exit Sub End If 'vao menu con cua muc Check Capacity If tbnhap.Text = "Check SIM Capacity" Then tbnhap.Text = "Check Phone Capacity" Exit Sub End If If tbnhap.Text = "Check Phone Capacity" Then tbnhap.Text = "Check SIM Capacity" Exit Sub End If 'vao menu con cua muc Find Entry If tbnhap.Text = "Erase Name and Number" Then tbnhap.Text = "Modify Name or Number" Exit Sub End If If tbnhap.Text = "Modify Name or Number" Then tbnhap.Text = "Call Number" Exit Sub End If If tbnhap.Text = "Call Number" Then tbnhap.Text = "Erase Name and Number" Exit Sub End If 'menu con cua muc Prevent Access If tbnhap.Text = "To Phone & SIM Memory" Then tbnhap.Text = "To Phone Memory" Exit Sub End If If tbnhap.Text = "To Phone Memory" Then tbnhap.Text = "To SIM Card Memory" Exit Sub Trang 104

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If If tbnhap.Text = "To SIM Card Memory" Then tbnhap.Text = "No Memory Restrictions" Exit Sub End If If tbnhap.Text = "No Memory Restrictions" Then tbnhap.Text = "To Phone & SIM Memory" Exit Sub End If 'menu con cua muc Add Entry If tbnhap.Text = "Add To SIM Card Memory" Then tbnhap.Text = "Add To Phone Memory" Exit Sub End If If tbnhap.Text = "Add To Phone Memory" Then tbnhap.Text = "Add To SIM Card Memory" Exit Sub End If 'xu ly cua muc Fixed Dialling If tbnhap.Text = "Setup Fixed Dialling" Then tbnhap.Text = "View Fixed Dial List" Exit Sub End If If tbnhap.Text = "View Fixed Dial List" Then tbnhap.Text = "Setup Fixed Dialling" Exit Sub End If 'xu ly cua muc Setup Fixed Dialling If tbnhap.Text = "Off." Then tbnhap.Text = "On." Exit Sub End If If tbnhap.Text = "Erase Entry" Then Trang 105

TheGoiEbook.com

tbnhap.Text = " Add Entry" Exit Sub End If If tbnhap.Text = " Add Entry" Then tbnhap.Text = "Edit Entry" Exit Sub End If If tbnhap.Text = "Edit Entry" Then tbnhap.Text = "Off." Exit Sub End If If tbnhap.Text = "On." Then tbnhap.Text = "Erase Entry" Exit Sub End If 'phan xu ly khi vao menu con cua muc One-Touch Dial Setting If tbnhap.Text = " To SIM Memory" Then tbnhap.Text = " To Phone Memory" Exit Sub End If If tbnhap.Text = " To Phone Memory" Then tbnhap.Text = " To Fixed Dial List" Exit Sub End If If tbnhap.Text = " To Fixed Dial List" Then tbnhap.Text = " To SIM Memory" Exit Sub End If 'phan xu ly cua menu Call Related Features If tbnhap.Text = "Key Answer Only" Then tbnhap.Text = "Call Barring" Exit Sub End If

Trang 106

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Call Barring" Then tbnhap.Text = "Call Waiting" Exit Sub End If If tbnhap.Text = "Call Waiting" Then tbnhap.Text = "Talk and Fax" Exit Sub End If If tbnhap.Text = "Talk and Fax" Then tbnhap.Text = "Call Diverting" Exit Sub End If If tbnhap.Text = "Call Diverting" Then tbnhap.Text = "Restrict My Phone Number" Exit Sub End If If tbnhap.Text = "Restrict My Phone Number" Then tbnhap.Text = "Show Battery Meter" Exit Sub End If If tbnhap.Text = "Show Battery Meter" Then tbnhap.Text = "Key Answer Only" Exit Sub End If 'vao menu con cua muc Restrict My Phone Number If tbnhap.Text = "Show ID On Next Call" Then tbnhap.Text = "Restrict ID On Next Call" Exit Sub End If If tbnhap.Text = "Restrict ID On Next Call" Then tbnhap.Text = "Show ID On Next Call" Exit Sub End If

Trang 107

TheGoiEbook.com

'vao menu con cua muc Call Diverting If tbnhap.Text = "Divert Voice Calls" Then tbnhap.Text = "Cancel All Diverting" Exit Sub End If If tbnhap.Text = "Cancel All Diverting" Then tbnhap.Text = "Divert Data Calls" Exit Sub End If If tbnhap.Text = "Divert Data Calls" Then tbnhap.Text = "Divert Fax Calls" Exit Sub End If If tbnhap.Text = "Divert Fax Calls" Then tbnhap.Text = "Divert Voice Calls" Exit Sub End If 'vao menu con cua muc Divert Voice Calls If tbnhap.Text = "Divert When Unavailable" Then tbnhap.Text = "Detailed Diverting" Exit Sub End If If tbnhap.Text = "Detailed Diverting" Then tbnhap.Text = "Divert All Voice Calls" Exit Sub End If If tbnhap.Text = "Divert All Voice Calls" Then tbnhap.Text = "Divert When Unavailable" Exit Sub End If 'vao menu con cua muc Detailed Diverting If tbnhap.Text = "If No Answer" Then tbnhap.Text = "If Not Reachable" Exit Sub Trang 108

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If If tbnhap.Text = "If Not Reachable" Then tbnhap.Text = "If Busy" Exit Sub End If If tbnhap.Text = "If Busy" Then tbnhap.Text = "If No Answer" Exit Sub End If 'vao menu con cua muc Call Barring If tbnhap.Text = "Change Bar Password" Then tbnhap.Text = "Cancel All Barring" Exit Sub End If If tbnhap.Text = "Cancel All Barring" Then tbnhap.Text = "Bar Incoming Calls" Exit Sub End If If tbnhap.Text = "Bar Incoming Calls" Then tbnhap.Text = "Bar Outgoing Calls" Exit Sub End If If tbnhap.Text = "Bar Outgoing Calls" Then tbnhap.Text = "Change Bar Password" Exit Sub End If 'vao menu con cua muc Bar Outgoing Calls If tbnhap.Text = "Off?" Then tbnhap.Text = "All Calls" Exit Sub End If If tbnhap.Text = "All Calls" Then tbnhap.Text = "Int'l Calls Expect Home" Trang 109

TheGoiEbook.com

Exit Sub End If If tbnhap.Text = "Int'l Calls Expect Home" Then tbnhap.Text = "Int'l Calls" Exit Sub End If If tbnhap.Text = "Int'l Calls" Then tbnhap.Text = "Off?" Exit Sub End If 'vao menu con cua muc Bar Incoming Call If tbnhap.Text = "Off? " Then tbnhap.Text = " All Calls" Exit Sub End If If tbnhap.Text = " All Calls" Then tbnhap.Text = "When Roaming" Exit Sub End If If tbnhap.Text = "When Roaming" Then tbnhap.Text = "Off? " Exit Sub End If 'phan xu ly cua menu Message If tbnhap.Text = "Outgoing Messages" Then tbnhap.Text = "Call Voicemail" Exit Sub End If If tbnhap.Text = "Message Editor" Then tbnhap.Text = "Outgoing Messages" Exit Sub End If If tbnhap.Text = "Cell Broadcast" Then Trang 110

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Message Editor" Exit Sub End If If tbnhap.Text = "Message Settings" Then tbnhap.Text = "Cell Broadcast" Exit Sub End If If tbnhap.Text = "Call Voicemail" Then tbnhap.Text = "Message Settings" Exit Sub End If 'vao menu con cua muc Outgoing Message If tbnhap.Text = "Edit Message" Then tbnhap.Text = "Send Message" Exit Sub End If If tbnhap.Text = "Delete Message" Then tbnhap.Text = "Edit Message" Exit Sub End If If tbnhap.Text = "Go to Next Message" Then tbnhap.Text = "Delete Message" Exit Sub End If If tbnhap.Text = "Send Message" Then tbnhap.Text = "Go to Next Message" Exit Sub End If 'vao menu con cua muc Edit Message If tbnhap.Text = " Send Message" Then tbnhap.Text = "Store Message" Exit Sub End If

Trang 111

TheGoiEbook.com

If tbnhap.Text = "Store Message" Then tbnhap.Text = " Send Message" Exit Sub End If 'vao menu con cua muc Send Message If tbnhap.Text = " Find Entry by Location" Then tbnhap.Text = " Find Entry by Name" Exit Sub End If If tbnhap.Text = " Find Entry by Name" Then tbnhap.Text = " Enter Number" Exit Sub End If If tbnhap.Text = " Enter Number" Then tbnhap.Text = " Find Entry by Location" Exit Sub End If 'vao menu con cua muc Message Setting If tbnhap.Text = "Service Centre" Then tbnhap.Text = "Voicemail Number" Exit Sub End If If tbnhap.Text = "Expiry Period" Then tbnhap.Text = "Service Centre" Exit Sub End If If tbnhap.Text = "Outgoing Message Type" Then tbnhap.Text = "Expiry Period" Exit Sub End If If tbnhap.Text = "Voicemail Number" Then tbnhap.Text = "Outgoing Message Type" Exit Sub End If Trang 112

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

'vao menu con cua muc Outgoing Message Type If tbnhap.Text = "Fax" Then tbnhap.Text = "Text" Exit Sub End If If tbnhap.Text = "X400" Then tbnhap.Text = "Fax" Exit Sub End If If tbnhap.Text = "Paging" Then tbnhap.Text = "X400" Exit Sub End If If tbnhap.Text = "Email" Then tbnhap.Text = "Paging" Exit Sub End If If tbnhap.Text = "ERMES" Then tbnhap.Text = "Email" Exit Sub End If If tbnhap.Text = "Voice" Then tbnhap.Text = "ERMES" Exit Sub End If If tbnhap.Text = "Text" Then tbnhap.Text = "Voice" Exit Sub End If 'phan xu ly khi dung phim menu de di chuyen giua nhung tin nhan If messagelist = True Then Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) Trang 113

TheGoiEbook.com

If messagenumber = 1 Then Get #1, banghi, message tbnhap.Text = Trim(message.tin) messagenumber = banghi Else messagenumber = messagenumber - 1 Get #1, messagenumber, message tbnhap.Text = Trim(message.tin) End If Close #1 Exit Sub End If 'nhung muc con cua Phone Setup If tbnhap.Text = "Adjust Ring Volume" Then tbnhap.Text = "Select Phone Line" Exit Sub End If If tbnhap.Text = "Ring or Vibrate" Then tbnhap.Text = "Adjust Ring Volume" Exit Sub End If If tbnhap.Text = "Set Ringer Tone" Then tbnhap.Text = "Ring or Vibrate" Exit Sub End If If tbnhap.Text = "Set Ringer Tone 2" Then tbnhap.Text = "Set Ringer Tone" Exit Sub End If If line2 = True Then If tbnhap.Text = "Phone Lock" Then tbnhap.Text = "Set Ringer Tone 2" Exit Sub End If Else If tbnhap.Text = "Phone Lock" Then Trang 114

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Set Ringer Tone" Exit Sub End If End If If tbnhap.Text = "Change SIM PIN2 Code" Then tbnhap.Text = "Phone Lock" Exit Sub End If If tbnhap.Text = "New Security Code" Then tbnhap.Text = "Change SIM PIN2 Code" Exit Sub End If If tbnhap.Text = "Extended Menus" Then tbnhap.Text = "New Security Code" Exit Sub End If If extend = False Then If tbnhap.Text = "Select Phone Line" Then tbnhap.Text = "Extended Menus" Exit Sub End If End If 'nhung menu mo rong khi extended menus o trang thai on If extend = True Then If tbnhap.Text = "Show Time and Date" Then tbnhap.Text = "Extended Menus" Exit Sub End If If tbnhap.Text = "Set Time and Date" Then tbnhap.Text = "Show Time and Date" Exit Sub End If If tbnhap.Text = "Set Time Format" Then tbnhap.Text = "Set Time and Date" Exit Sub Trang 115

TheGoiEbook.com

End If If tbnhap.Text = "Battery Saving Mode" Then tbnhap.Text = "Set Time Format" Exit Sub End If If tbnhap.Text = "Select Keypad Tones" Then tbnhap.Text = "Battery Saving Mode" Exit Sub End If If tbnhap.Text = "Select Phone Line" Then tbnhap.Text = "Select Keypad Tones" Exit Sub End If End If 'vao menu con cua muc Select phone line If tbnhap.Text = "Line 2" Then tbnhap.Text = "Line 1" Exit Sub End If If tbnhap.Text = "Line 1" Then tbnhap.Text = "Line 2" Exit Sub End If 'vao menu con cua muc Ring or vibrate If tbnhap.Text = "Vibrate Only" Then tbnhap.Text = "Ring Only" Exit Sub End If If tbnhap.Text = "Vibrate Then Ring" Then tbnhap.Text = "Vibrate Only" Exit Sub End If If tbnhap.Text = "No Ring or Vibrate" Then Trang 116

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Vibrate Then Ring" Exit Sub End If If tbnhap.Text = "Ring Only" Then tbnhap.Text = "No Ring or Vibrate" Exit Sub End If 'vao menu con cua muc Set Ringer Tone If tbnhap.Text = "Music Tone" Then tbnhap.Text = "Standard Tone" Exit Sub End If If tbnhap.Text = "Standard Tone" Then tbnhap.Text = "Music Tone" Exit Sub End If 'vao menu con cua muc Phone Lock If tbnhap.Text = "Lock Now" Then tbnhap.Text = "Automatic Lock" Exit Sub End If If tbnhap.Text = " Change Unlock Code" Then tbnhap.Text = "Lock Now" Exit Sub End If If tbnhap.Text = "Automatic Lock" Then tbnhap.Text = " Change Unlock Code" Exit Sub End If 'vao menu con cua muc Automatic phone lock If tbnhap.Text = " Off " Then tbnhap.Text = " On " Exit Sub End If Trang 117

TheGoiEbook.com

If tbnhap.Text = " On " Then tbnhap.Text = " Off " Exit Sub End If 'vao menu con cua muc Extended menus If tbnhap.Text = " Off" Then tbnhap.Text = " On" Exit Sub End If If tbnhap.Text = " On" Then tbnhap.Text = " Off" Exit Sub End If 'vao menu con cua muc Require SIM card pin If tbnhap.Text = "Change SIM PIN Code" Then tbnhap.Text = " Off." Exit Sub End If If tbnhap.Text = " Off." Then tbnhap.Text = " On." Exit Sub End If If tbnhap.Text = " On." Then tbnhap.Text = "Change SIM PIN Code" Exit Sub End If 'vao menu con cua muc Set time format If tbnhap.Text = "24-hour?" Then tbnhap.Text = "12-hour?" Exit Sub End If If tbnhap.Text = "12-hour?" Then tbnhap.Text = "24-hour?" Trang 118

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If 'vao menu cua muc Select Keypad tone If tbnhap.Text = "Single Tone" Then tbnhap.Text = "Normal Tones" Exit Sub End If If tbnhap.Text = "No Tones" Then tbnhap.Text = "Single Tone" Exit Sub End If If tbnhap.Text = "Normal Tones" Then tbnhap.Text = "No Tones" Exit Sub End If 'vao menu con cua muc Phone Status If tbnhap.Text = "Master Reset" Then tbnhap.Text = "Status Review" Exit Sub End If If tbnhap.Text = "Master Clear" Then tbnhap.Text = "Master Reset" Exit Sub End If If tbnhap.Text = "Status Review" Then tbnhap.Text = "Master Clear" Exit Sub End If 'phan xu ly cua menu Network Selection If tbnhap.Text = "Find New Network" Then tbnhap.Text = "Preferred Networks" Exit Sub End If

Trang 119

TheGoiEbook.com

If tbnhap.Text = "Preferred Networks" Then tbnhap.Text = "Network Search" Exit Sub End If If tbnhap.Text = "Network Search" Then tbnhap.Text = "Available Networks" Exit Sub End If If tbnhap.Text = "Available Networks" Then tbnhap.Text = " Change Band" Exit Sub End If If tbnhap.Text = " Change Band" Then tbnhap.Text = "Find New Network" Exit Sub End If 'vao menu con cua Change Band If tbnhap.Text = "Change to 1800" Then tbnhap.Text = "Change to 900" Exit Sub End If If tbnhap.Text = "Change to 900" Then tbnhap.Text = "Change to 900/1800" Exit Sub End If If tbnhap.Text = "Change to 900/1800" Then tbnhap.Text = "Change to 1800" Exit Sub End If 'vao menu con cua muc Available Networks If tbnhap.Text = "Register Now" Then tbnhap.Text = "Make Preferred" Exit Sub End If

Trang 120

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Make Preferred" Then tbnhap.Text = "Register Now" Exit Sub End If 'vao menu con cua muc Network Search If tbnhap.Text = "Registration Preferences" Then tbnhap.Text = "Frequency of Search" Exit Sub End If If tbnhap.Text = "Frequency of Search" Then tbnhap.Text = "Registration Preferences" Exit Sub End If 'vao menu con cua muc "Registration Preferences If tbnhap.Text = "Manual Search Mode" Then tbnhap.Text = "Automatic Search Mode" Exit Sub End If If tbnhap.Text = "Automatic Search Mode" Then tbnhap.Text = "Manual Search Mode" Exit Sub End If 'vao menu con cua muc Frequency If tbnhap.Text = "Continuous Search" Then tbnhap.Text = "Fast Search" Exit Sub End If If tbnhap.Text = "Fast Search" Then tbnhap.Text = "Medium Search" Exit Sub End If If tbnhap.Text = "Medium Search" Then tbnhap.Text = "Slow Search" Exit Sub Trang 121

TheGoiEbook.com

End If If tbnhap.Text = "Slow Search" Then tbnhap.Text = "Continuous Search" Exit Sub End If 'vao menu con cua muc Preferred networks If tbnhap.Text = "Add Network to List" Then tbnhap.Text = "Show List of Networks" Exit Sub End If If tbnhap.Text = "Show List of Networks" Then tbnhap.Text = "Add Network to List" Exit Sub End If If tbnhap.Text = "Choose From Available" Then tbnhap.Text = "Choose From Known" Exit Sub End If If tbnhap.Text = "Choose From Known" Then tbnhap.Text = "Choose From Available" Exit Sub End If If tbnhap.Text = "Move to New Location" Then tbnhap.Text = "Delete Network" Exit Sub End If If tbnhap.Text = "Delete Network" Then tbnhap.Text = "Move to New Location" Exit Sub End If 'phan xu ly cua menu Accessory Setup If tbnhap.Text = "Auxiliary Alert" Then tbnhap.Text = "Safety Timer" Trang 122

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If If tbnhap.Text = "Safety Timer" Then tbnhap.Text = "Automatic Handsfree" Exit Sub End If If tbnhap.Text = "Automatic Handsfree" Then tbnhap.Text = "Automatic Answer" Exit Sub End If If tbnhap.Text = "Automatic Answer" Then tbnhap.Text = "Mute Car Radio" Exit Sub End If If tbnhap.Text = "Mute Car Radio" Then tbnhap.Text = "Auxiliary Alert" Exit Sub End If If tbnhap.Text = "On" Then tbnhap.Text = "Off" Exit Sub End If If tbnhap.Text = "Off" Then tbnhap.Text = "On" Exit Sub End If 'phan xu ly khi vao menu truy cap nhanh If quickaccess = True Then Open filename3 For Random As #1 Len = Len(menuaccess) If orderinquick = 1 Then orderinquick = 9 Get #1, 9, menuaccess tbnhap.Text = Trim(menuaccess.feature) luumuc = menuaccess.thutu Trang 123

TheGoiEbook.com

Close #1 Exit Sub Else orderinquick = orderinquick - 1 Get #1, orderinquick, menuaccess tbnhap.Text = Trim(menuaccess.feature) luumuc = menuaccess.thutu Close #1 Exit Sub End If End If 'vao nhung tinh nang trong Quick Access khi nhan va giu phim OK If longpress = True Then quickaccess = False showtime = False If tbnhap.Text = "Find by Location" Then tbnhap.Text = "Find by Name" st = "Find Name?" luumuc = 1 Exit Sub End If If tbnhap.Text = "Add Entry to Phone" Then tbnhap.Text = "Find by Location" st = "Find Location?" luumuc = 2 Exit Sub End If If tbnhap.Text = "Add Entry to SIM" Then tbnhap.Text = "Add Entry to Phone" st = "Add to Phone?" luumuc = 3 Exit Sub End If If tbnhap.Text = "Call VoiceMail" Then tbnhap.Text = "Add Entry to SIM" st = "Add to SIM?" luumuc = 4 Trang 124

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If If tbnhap.Text = "Battery Meter" Then tbnhap.Text = "Call VoiceMail" st = "Call Voicemail?" luumuc = 12 Exit Sub End If If tbnhap.Text = "Phone Lock Now" Then tbnhap.Text = "Battery Meter" st = "Battery Meter?" luumuc = 11 Exit Sub End If If tbnhap.Text = "Ring Volume" Then tbnhap.Text = "Phone Lock Now" st = "Lock Now?" luumuc = 5 Exit Sub End If If tbnhap.Text = "VibraCall On or Off" Then tbnhap.Text = "Ring Volume" st = "Adjust Ring?" luumuc = 6 Exit Sub End If If tbnhap.Text = " Outgoing Messages" Then tbnhap.Text = "VibraCall On or Off" st = "Vibrate On/Off?" luumuc = 9 Exit Sub End If If tbnhap.Text = " Message Editor" Then tbnhap.Text = " Outgoing Messages" st = "Outgoing SMS?" Trang 125

TheGoiEbook.com

luumuc = 14 Exit Sub End If If tbnhap.Text = "Switch Line 1/2" Then tbnhap.Text = " Message Editor" st = "Message Editor?" luumuc = 15 Exit Sub End If If tbnhap.Text = "Change Band" Then tbnhap.Text = "Switch Line 1/2" st = "Switch Line 1/2?" luumuc = 7 Exit Sub End If If tbnhap.Text = " Show Time and Date" Then tbnhap.Text = "Change Band" st = "Change Band?" luumuc = 10 Exit Sub End If If tbnhap.Text = "Find by Name" Then tbnhap.Text = " Show Time and Date" st = "Show Time/Date?" luumuc = 8 Exit Sub End If End If

'phan xu ly khi dung phim menu de di chuyen giua cac muc con If found = True Then Call menu_upswitchentry End If 'khi dung phim menu de di chuyen giua nhung muc trong Fixed Dial If listdial = True Then Trang 126

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Call menu_uplistdial End If 'xu ly khi dung phim menu de di chuyen giua cac mang If availablenetwork = True Or addnetwork = True Then tam1 = tam1 - 1 Open filename5 For Random As #1 Len = Len(networks) banghi = LOF(1) \ Len(networks) If tam1 >= 1 Then Get #1, tam1, networks tbnhap.Text = networks.mang st = networks.mang Close #1 Else tam1 = banghi Get #1, banghi, networks tbnhap.Text = networks.mang st = networks.mang Close #1 End If Exit Sub End If 'xu ly cua muc Preferred network If showlist = True Then Open filename6 For Random As #1 Len = Len(networks) banghi = LOF(1) \ Len(networks) tam1 = tam1 - 1 If tam1 >= 1 Then Get #1, tam1, networks tbnhap.Text = networks.mang st = networks.mang Else tam1 = banghi Get #1, banghi, networks tbnhap.Text = networks.mang st = networks.mang End If Close #1 Exit Sub End If Trang 127

TheGoiEbook.com

'********** phim menu-down ************ Case 12 If tbnhap.Text = "Menu" Then tbnhap.Text = "Phone Book" cancle = True danhso = False Exit Sub End If If tbnhap.Text = "Phone Book" Then tbnhap.Text = "Call Related Features" Exit Sub End If If tbnhap.Text = "Call Related Features" Then tbnhap.Text = "Messages" Exit Sub End If If tbnhap.Text = "Messages" Then tbnhap.Text = "Phone Setup" Exit Sub End If If tbnhap.Text = "Phone Setup" Then tbnhap.Text = "Network Selection" Exit Sub End If If tbnhap.Text = "Network Selection" Then tbnhap.Text = "Accessory Setup" Exit Sub End If If tbnhap.Text = "Accessory Setup" Then tbnhap.Text = "Phone Book" Exit Sub End If 'vao menu con cua muc Phone Book If tbnhap.Text = "Personal Number" Then Trang 128

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Fixed Dialling" Exit Sub End If If tbnhap.Text = "Fixed Dialling" Then tbnhap.Text = "One-Touch Dial Setting" Exit Sub End If If tbnhap.Text = "One-Touch Dial Setting" Then tbnhap.Text = "Personal Number" Exit Sub End If 'vao menu con cua muc Personal Number If tbnhap.Text = "Find Entry by Name" Then tbnhap.Text = "Find Entry by Location" Exit Sub End If If tbnhap.Text = "Find Entry by Location" Then tbnhap.Text = "Add Entry" flag = False found = False Exit Sub End If If tbnhap.Text = "Add Entry" Then tbnhap.Text = "Check Capacity" Exit Sub End If If tbnhap.Text = "Check Capacity" Then tbnhap.Text = "Prevent Access" Exit Sub End If If tbnhap.Text = "Prevent Access" Then tbnhap.Text = "Find Entry by Name" Exit Sub End If Trang 129

TheGoiEbook.com

'vao menu con cua muc Prevent Access If tbnhap.Text = "No Memory Restrictions" Then tbnhap.Text = "To SIM Card Memory" Exit Sub End If If tbnhap.Text = "To SIM Card Memory" Then tbnhap.Text = "To Phone Memory" Exit Sub End If If tbnhap.Text = "To Phone Memory" Then tbnhap.Text = "To Phone & SIM Memory" Exit Sub End If If tbnhap.Text = "To Phone & SIM Memory" Then tbnhap.Text = "No Memory Restrictions" Exit Sub End If 'vao menu con cua muc Add Entry If tbnhap.Text = "Add To Phone Memory" Then tbnhap.Text = "Add To SIM Card Memory" Exit Sub End If If tbnhap.Text = "Add To SIM Card Memory" Then tbnhap.Text = "Add To Phone Memory" Exit Sub End If 'vao menu con cua muc Check Capacity If tbnhap.Text = "Check Phone Capacity" Then tbnhap.Text = "Check SIM Capacity" Exit Sub End If If tbnhap.Text = "Check SIM Capacity" Then tbnhap.Text = "Check Phone Capacity" Trang 130

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If 'vao menu con cua muc Find Entry If tbnhap.Text = "Call Number" Then tbnhap.Text = "Modify Name or Number" Exit Sub End If If tbnhap.Text = "Modify Name or Number" Then tbnhap.Text = "Erase Name and Number" Exit Sub End If If tbnhap.Text = "Erase Name and Number" Then tbnhap.Text = "Call Number" Exit Sub End If 'phan xu ly khi vao menu One-Touch Dial Setting If tbnhap.Text = " To SIM Memory" Then tbnhap.Text = " To Fixed Dial List" Exit Sub End If If tbnhap.Text = " To Phone Memory" Then tbnhap.Text = " To SIM Memory" Exit Sub End If If tbnhap.Text = " To Fixed Dial List" Then tbnhap.Text = " To Phone Memory" Exit Sub End If 'xu ly cua muc Fixed Dialling If tbnhap.Text = "View Fixed Dial List" Then tbnhap.Text = "Setup Fixed Dialling" Exit Sub End If

Trang 131

TheGoiEbook.com

If tbnhap.Text = "Setup Fixed Dialling" Then tbnhap.Text = "View Fixed Dial List" Exit Sub End If 'xu ly trong muc Setup Fixed Dialling If tbnhap.Text = "On." Then tbnhap.Text = "Off." Exit Sub End If If tbnhap.Text = "Off." Then tbnhap.Text = "Edit Entry" Exit Sub End If If tbnhap.Text = " Add Entry" Then tbnhap.Text = "Erase Entry" Exit Sub End If If tbnhap.Text = "Edit Entry" Then tbnhap.Text = " Add Entry" Exit Sub End If If tbnhap.Text = "Erase Entry" Then tbnhap.Text = "On." Exit Sub End If 'phan xu ly cua menu Call Related features If tbnhap.Text = "Call Barring" Then tbnhap.Text = "Key Answer Only" Exit Sub End If If tbnhap.Text = "Call Waiting" Then tbnhap.Text = "Call Barring" Exit Sub End If Trang 132

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Talk and Fax" Then tbnhap.Text = "Call Waiting" Exit Sub End If If tbnhap.Text = "Call Diverting" Then tbnhap.Text = "Talk and Fax" Exit Sub End If If tbnhap.Text = "Restrict My Phone Number" Then tbnhap.Text = "Call Diverting" Exit Sub End If If tbnhap.Text = "Show Battery Meter" Then tbnhap.Text = "Restrict My Phone Number" Exit Sub End If If tbnhap.Text = "Key Answer Only" Then tbnhap.Text = "Show Battery Meter" Exit Sub End If 'vao menu con cua muc Restrict My Phone Number If tbnhap.Text = "Show ID On Next Call" Then tbnhap.Text = "Restrict ID On Next Call" Exit Sub End If If tbnhap.Text = "Restrict ID On Next Call" Then tbnhap.Text = "Show ID On Next Call" Exit Sub End If 'vao menu con cua muc Call Diverting If tbnhap.Text = "Cancel All Diverting" Then tbnhap.Text = "Divert Voice Calls" Exit Sub Trang 133

TheGoiEbook.com

End If If tbnhap.Text = "Divert Data Calls" Then tbnhap.Text = "Cancel All Diverting" Exit Sub End If If tbnhap.Text = "Divert Fax Calls" Then tbnhap.Text = "Divert Data Calls" Exit Sub End If If tbnhap.Text = "Divert Voice Calls" Then tbnhap.Text = "Divert Fax Calls" Exit Sub End If 'vao menu con cua muc Divert Voice Calls If tbnhap.Text = "Detailed Diverting" Then tbnhap.Text = "Divert When Unavailable" Exit Sub End If If tbnhap.Text = "Divert All Voice Calls" Then tbnhap.Text = "Detailed Diverting" Exit Sub End If If tbnhap.Text = "Divert When Unavailable" Then tbnhap.Text = "Divert All Voice Calls" Exit Sub End If 'vao menu con cua muc Detailed Diverting If tbnhap.Text = "If Not Reachable" Then tbnhap.Text = "If No Answer" Exit Sub End If If tbnhap.Text = "If Busy" Then tbnhap.Text = "If Not Reachable" Trang 134

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If If tbnhap.Text = "If No Answer" Then tbnhap.Text = "If Busy" Exit Sub End If 'vao menu con cua muc Call Barring If tbnhap.Text = "Bar Incoming Calls" Then tbnhap.Text = "Cancel All Barring" Exit Sub End If If tbnhap.Text = "Bar Outgoing Calls" Then tbnhap.Text = "Bar Incoming Calls" Exit Sub End If If tbnhap.Text = "Cancel All Barring" Then tbnhap.Text = "Change Bar Password" Exit Sub End If If tbnhap.Text = "Change Bar Password" Then tbnhap.Text = "Bar Outgoing Calls" Exit Sub End If 'vao menu con cua muc Bar Outgoing Calls If tbnhap.Text = "All Calls" Then tbnhap.Text = "Off?" Exit Sub End If If tbnhap.Text = "Int'l Calls Expect Home" Then tbnhap.Text = "All Calls" Exit Sub End If If tbnhap.Text = "Int'l Calls" Then Trang 135

TheGoiEbook.com

tbnhap.Text = "Int'l Calls Expect Home" Exit Sub End If If tbnhap.Text = "Off?" Then tbnhap.Text = "Int'l Calls" Exit Sub End If 'vao menu con cua muc Bar Incoming Call If tbnhap.Text = " All Calls" Then tbnhap.Text = "Off? " Exit Sub End If If tbnhap.Text = "When Roaming" Then tbnhap.Text = " All Calls" Exit Sub End If If tbnhap.Text = "Off? " Then tbnhap.Text = "When Roaming" Exit Sub End If 'phan xu ly cua menu Message If tbnhap.Text = "Call Voicemail" Then tbnhap.Text = "Outgoing Messages" Exit Sub End If If tbnhap.Text = "Outgoing Messages" Then tbnhap.Text = "Message Editor" Exit Sub End If If tbnhap.Text = "Message Editor" Then tbnhap.Text = "Cell Broadcast" Exit Sub End If

Trang 136

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Cell Broadcast" Then tbnhap.Text = "Message Settings" Exit Sub End If If tbnhap.Text = "Message Settings" Then tbnhap.Text = "Call Voicemail" Exit Sub End If 'vao menu con cua muc Outgoing Message If tbnhap.Text = "Send Message" Then tbnhap.Text = "Edit Message" Exit Sub End If If tbnhap.Text = "Edit Message" Then tbnhap.Text = "Delete Message" Exit Sub End If If tbnhap.Text = "Delete Message" Then tbnhap.Text = "Go to Next Message" Exit Sub End If If tbnhap.Text = "Go to Next Message" Then tbnhap.Text = "Send Message" Exit Sub End If 'vao menu con cua muc Edit Message If tbnhap.Text = " Send Message" Then tbnhap.Text = "Store Message" Exit Sub End If If tbnhap.Text = "Store Message" Then tbnhap.Text = " Send Message" Exit Sub End If Trang 137

TheGoiEbook.com

'vao menu con cua muc Send Message If tbnhap.Text = " Enter Number" Then tbnhap.Text = " Find Entry by Name" Exit Sub End If If tbnhap.Text = " Find Entry by Name" Then tbnhap.Text = " Find Entry by Location" Exit Sub End If If tbnhap.Text = " Find Entry by Location" Then tbnhap.Text = " Enter Number" Exit Sub End If 'vao menu con cua muc Message Setting If tbnhap.Text = "Voicemail Number" Then tbnhap.Text = "Service Centre" Exit Sub End If If tbnhap.Text = "Service Centre" Then tbnhap.Text = "Expiry Period" Exit Sub End If If tbnhap.Text = "Expiry Period" Then tbnhap.Text = "Outgoing Message Type" Exit Sub End If If tbnhap.Text = "Outgoing Message Type" Then tbnhap.Text = "Voicemail Number" Exit Sub End If 'vao menu con cua muc Outgoing Message Type If tbnhap.Text = "Text" Then tbnhap.Text = "Fax" Trang 138

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If If tbnhap.Text = "Fax" Then tbnhap.Text = "X400" Exit Sub End If If tbnhap.Text = "X400" Then tbnhap.Text = "Paging" Exit Sub End If If tbnhap.Text = "Paging" Then tbnhap.Text = "Email" Exit Sub End If If tbnhap.Text = "Email" Then tbnhap.Text = "ERMES" Exit Sub End If If tbnhap.Text = "ERMES" Then tbnhap.Text = "Voice" Exit Sub End If If tbnhap.Text = "Voice" Then tbnhap.Text = "Text" Exit Sub End If 'khi dung phim menu de di chuyen giua cac tin nhan If messagelist = True Then Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) If messagenumber = banghi Then Get #1, 1, message tbnhap.Text = Trim(message.tin) messagenumber = 1 Trang 139

TheGoiEbook.com

Else messagenumber = messagenumber + 1 Get #1, messagenumber, message tbnhap.Text = Trim(message.tin) End If Close #1 Exit Sub End If 'nhung muc con cua Phone Setup If tbnhap.Text = "Select Phone Line" Then tbnhap.Text = "Adjust Ring Volume" Exit Sub End If If tbnhap.Text = "Adjust Ring Volume" Then tbnhap.Text = "Ring or Vibrate" Exit Sub End If If tbnhap.Text = "Ring or Vibrate" Then tbnhap.Text = "Set Ringer Tone" Exit Sub End If If line2 = True Then If tbnhap.Text = "Set Ringer Tone" Then tbnhap.Text = "Set Ringer Tone 2" Exit Sub End If Else If tbnhap.Text = "Set Ringer Tone" Then tbnhap.Text = "Phone Lock" Exit Sub End If End If If tbnhap.Text = "Set Ringer Tone 2" Then tbnhap.Text = "Phone Lock" Exit Sub End If Trang 140

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Phone Lock" Then tbnhap.Text = "Change SIM PIN2 Code" Exit Sub End If If tbnhap.Text = "Change SIM PIN2 Code" Then tbnhap.Text = "New Security Code" Exit Sub End If If tbnhap.Text = "New Security Code" Then tbnhap.Text = "Extended Menus" Exit Sub End If 'nhung menu mo rong khi extended menus o trang thai on If extend = True Then If tbnhap.Text = "Extended Menus" Then tbnhap.Text = "Show Time and Date" Exit Sub End If If tbnhap.Text = "Show Time and Date" Then tbnhap.Text = "Set Time and Date" Exit Sub End If If tbnhap.Text = "Set Time and Date" Then tbnhap.Text = "Set Time Format" Exit Sub End If If tbnhap.Text = "Set Time Format" Then tbnhap.Text = "Battery Saving Mode" Exit Sub End If If tbnhap.Text = "Battery Saving Mode" Then tbnhap.Text = "Select Keypad Tones" Exit Sub Trang 141

TheGoiEbook.com

End If If tbnhap.Text = "Select Keypad Tones" Then tbnhap.Text = "Select Phone Line" Exit Sub End If Else If tbnhap.Text = "Extended Menus" Then tbnhap.Text = "Select Phone Line" Exit Sub End If End If 'vao menu con cua muc Select phone line If tbnhap.Text = "Line 1" Then tbnhap.Text = "Line 2" Exit Sub End If If tbnhap.Text = "Line 2" Then tbnhap.Text = "Line 1" Exit Sub End If 'vao menu con cua muc Ring or vibrate If tbnhap.Text = "Ring Only" Then tbnhap.Text = "Vibrate Only" Exit Sub End If If tbnhap.Text = "Vibrate Only" Then tbnhap.Text = "Vibrate Then Ring" Exit Sub End If If tbnhap.Text = "Vibrate Then Ring" Then tbnhap.Text = "No Ring or Vibrate" Exit Sub End If If tbnhap.Text = "No Ring or Vibrate" Then Trang 142

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Ring Only" Exit Sub End If 'vao menu con cua muc Set Ringer Tone If tbnhap.Text = "Standard Tone" Then tbnhap.Text = "Music Tone" Exit Sub End If If tbnhap.Text = "Music Tone" Then tbnhap.Text = "Standard Tone" Exit Sub End If 'vao menu con cua muc Phone Lock If tbnhap.Text = "Automatic Lock" Then tbnhap.Text = "Lock Now" Exit Sub End If If tbnhap.Text = "Lock Now" Then tbnhap.Text = " Change Unlock Code" Exit Sub End If If tbnhap.Text = " Change Unlock Code" Then tbnhap.Text = "Automatic Lock" Exit Sub End If 'vao menu con cua muc Extended menus If tbnhap.Text = " On" Then tbnhap.Text = " Off" Exit Sub End If If tbnhap.Text = " Off" Then tbnhap.Text = " On" Exit Sub End If Trang 143

TheGoiEbook.com

If tbnhap.Text = " On " Then tbnhap.Text = " Off " Exit Sub End If If tbnhap.Text = " Off " Then tbnhap.Text = " On " Exit Sub End If 'vao menu con cua muc Require SIM card pin If tbnhap.Text = " On." Then tbnhap.Text = " Off." Exit Sub End If If tbnhap.Text = " Off." Then tbnhap.Text = "Change SIM PIN Code" Exit Sub End If If tbnhap.Text = "Change SIM PIN Code" Then tbnhap.Text = " On." Exit Sub End If

'vao menu con cua muc Set time format If tbnhap.Text = "12-hour?" Then tbnhap.Text = "24-hour?" Exit Sub End If If tbnhap.Text = "24-hour?" Then tbnhap.Text = "12-hour?" Exit Sub End If 'vao menu cua muc Select Keypad tone If tbnhap.Text = "Normal Tones" Then Trang 144

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Single Tone" Exit Sub End If If tbnhap.Text = "Single Tone" Then tbnhap.Text = "No Tones" Exit Sub End If If tbnhap.Text = "No Tones" Then tbnhap.Text = "Normal Tones" Exit Sub End If 'vao menu con cua muc Phone Status If tbnhap.Text = "Status Review" Then tbnhap.Text = "Master Reset" Exit Sub End If If tbnhap.Text = "Master Reset" Then tbnhap.Text = "Master Clear" Exit Sub End If If tbnhap.Text = "Master Clear" Then tbnhap.Text = "Status Review" Exit Sub End If 'phan xu ly cua menu Network Selection If tbnhap.Text = " Change Band" Then tbnhap.Text = "Available Networks" Exit Sub End If If tbnhap.Text = "Available Networks" Then tbnhap.Text = "Network Search" Exit Sub End If

Trang 145

TheGoiEbook.com

If tbnhap.Text = "Network Search" Then tbnhap.Text = "Preferred Networks" Exit Sub End If If tbnhap.Text = "Preferred Networks" Then tbnhap.Text = "Find New Network" Exit Sub End If If tbnhap.Text = "Find New Network" Then tbnhap.Text = " Change Band" Exit Sub End If 'vao menu con cua Change Band If tbnhap.Text = "Change to 900" Then tbnhap.Text = "Change to 1800" Exit Sub End If If tbnhap.Text = "Change to 900/1800" Then tbnhap.Text = "Change to 900" Exit Sub End If If tbnhap.Text = "Change to 1800" Then tbnhap.Text = "Change to 900/1800" Exit Sub End If 'vao menu con cua muc Available Networks If tbnhap.Text = "Register Now" Then tbnhap.Text = "Make Preferred" Exit Sub End If If tbnhap.Text = "Make Preferred" Then tbnhap.Text = "Register Now" Exit Sub End If Trang 146

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

'vao menu con cua muc Network Search If tbnhap.Text = "Registration Preferences" Then tbnhap.Text = "Frequency of Search" Exit Sub End If If tbnhap.Text = "Frequency of Search" Then tbnhap.Text = "Registration Preferences" Exit Sub End If 'vao menu con cua muc "Registration Preferences If tbnhap.Text = "Manual Search Mode" Then tbnhap.Text = "Automatic Search Mode" Exit Sub End If If tbnhap.Text = "Automatic Search Mode" Then tbnhap.Text = "Manual Search Mode" Exit Sub End If 'vao menu con cua muc Frequency If tbnhap.Text = "Fast Search" Then tbnhap.Text = "Continuous Search" Exit Sub End If If tbnhap.Text = "Medium Search" Then tbnhap.Text = "Fast Search" Exit Sub End If If tbnhap.Text = "Slow Search" Then tbnhap.Text = "Medium Search" Exit Sub End If If tbnhap.Text = "Continuous Search" Then tbnhap.Text = "Slow Search" Trang 147

TheGoiEbook.com

Exit Sub End If 'vao menu con cua muc Preferred networks If tbnhap.Text = "Add Network to List" Then tbnhap.Text = "Show List of Networks" Exit Sub End If If tbnhap.Text = "Show List of Networks" Then tbnhap.Text = "Add Network to List" Exit Sub End If If tbnhap.Text = "Choose From Available" Then tbnhap.Text = "Choose From Known" Exit Sub End If If tbnhap.Text = "Choose From Known" Then tbnhap.Text = "Choose From Available" Exit Sub End If If tbnhap.Text = "Move to New Location" Then tbnhap.Text = "Delete Network" Exit Sub End If If tbnhap.Text = "Delete Network" Then tbnhap.Text = "Move to New Location" Exit Sub End If 'phan xu ly cua menu Accessory setup If tbnhap.Text = "Mute Car Radio" Then tbnhap.Text = "Automatic Answer" Exit Sub End If If tbnhap.Text = "Automatic Answer" Then tbnhap.Text = "Automatic Handsfree" Trang 148

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If If tbnhap.Text = "Automatic Handsfree" Then tbnhap.Text = "Safety Timer" Exit Sub End If If tbnhap.Text = "Safety Timer" Then tbnhap.Text = "Auxiliary Alert" Exit Sub End If If tbnhap.Text = "Auxiliary Alert" Then tbnhap.Text = "Mute Car Radio" Exit Sub End If If tbnhap.Text = "On" Then tbnhap.Text = "Off" Exit Sub End If If tbnhap.Text = "Off" Then tbnhap.Text = "On" Exit Sub End If 'phan xu ly khi vao menu truy cap nhanh If quickaccess = True Then Open filename3 For Random As #1 Len = Len(menuaccess) orderinquick = orderinquick + 1 Get #1, orderinquick, menuaccess tbnhap.Text = Trim(menuaccess.feature) luumuc = menuaccess.thutu If orderinquick > 9 Then 'Else orderinquick = 1 Get #1, 1, menuaccess tbnhap.Text = Trim(menuaccess.feature) luumuc = menuaccess.thutu Close #1 Trang 149

TheGoiEbook.com

Exit Sub End If Close #1 End If 'menu Quick Access If tbnhap.Text = "Find by Name" Then quickaccess = False tbnhap.Text = "Find by Location" st = "Find Location?" luumuc = 2 Exit Sub End If If tbnhap.Text = "Find by Location" Then tbnhap.Text = "Add Entry to Phone" st = "Add to Phone?" luumuc = 3 Exit Sub End If If tbnhap.Text = "Add Entry to Phone" Then tbnhap.Text = "Add Entry to SIM" st = "Add to SIM?" luumuc = 4 Exit Sub End If If tbnhap.Text = "Add Entry to SIM" Then tbnhap.Text = "Call VoiceMail" st = "Call Voicemail?" luumuc = 12 Exit Sub End If If tbnhap.Text = "Call VoiceMail" Then tbnhap.Text = "Battery Meter" st = "Battery Meter?" luumuc = 11 Exit Sub End If Trang 150

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Battery Meter" Then tbnhap.Text = "Phone Lock Now" st = "Lock Now?" luumuc = 5 Exit Sub End If If tbnhap.Text = "Phone Lock Now" Then tbnhap.Text = "Ring Volume" st = "Adjust Ring?" luumuc = 6 Exit Sub End If If tbnhap.Text = "Ring Volume" Then tbnhap.Text = "VibraCall On or Off" st = "Vibrate On/Off?" luumuc = 9 Exit Sub End If If tbnhap.Text = "VibraCall On or Off" Then tbnhap.Text = " Outgoing Messages" st = "Outgoing SMS?" luumuc = 14 Exit Sub End If If tbnhap.Text = " Outgoing Messages" Then tbnhap.Text = " Message Editor" st = "Message Editor?" luumuc = 15 Exit Sub End If If tbnhap.Text = " Message Editor" Then tbnhap.Text = "Switch Line 1/2" st = "Switch Line 1/2?" luumuc = 7 Exit Sub Trang 151

TheGoiEbook.com

End If If tbnhap.Text = "Switch Line 1/2" Then tbnhap.Text = "Change Band" st = "Change Band?" luumuc = 10 Exit Sub End If If tbnhap.Text = "Change Band" Then tbnhap.Text = " Show Time and Date" st = "Show Time/Date?" luumuc = 8 Exit Sub End If If tbnhap.Text = " Show Time and Date" Then tbnhap.Text = "Find by Name" st = "Find Name?" luumuc = 1 Exit Sub End If 'xu ly khi bam phim menu de di chuyen giua nhung entry If found = True Then Call menu_downswitchentry End If 'khi dung phim menu de di chuyen giua nhung muc trong Fixed Dial If listdial = True Then Call menu_downlistdial End If 'xu ly khi dung phim menu de di chuyen giua cac mang If availablenetwork = True Or addnetwork = True Then tam1 = tam1 + 1 Open filename5 For Random As #1 Len = Len(networks) banghi = LOF(1) \ Len(networks) If tam1 <= banghi Then Get #1, tam1, networks tbnhap.Text = networks.mang Trang 152

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

st = networks.mang Close #1 Else tam1 = 1 Get #1, 1, networks tbnhap.Text = networks.mang st = networks.mang Close #1 End If Exit Sub End If 'khi dung phim menu de di chuyen trong danh sach preferred network If showlist = True Then Open filename6 For Random As #1 Len = Len(networks) banghi = LOF(1) \ Len(networks) tam1 = tam1 + 1 If tam1 <= banghi Then Get #1, tam1, networks tbnhap.Text = networks.mang st = networks.mang Else tam1 = 1 Get #1, 1, networks tbnhap.Text = networks.mang st = networks.mang End If Close #1 Exit Sub End If '************ Day la phim OK ************* Case 13 '***** Personal Number ********* If tbnhap.Text = "Phone Book" Then tbnhap.Text = "Personal Number" phonebook = True Exit Sub End If '*****Find Entry by Name****** Trang 153

TheGoiEbook.com

If tbnhap.Text = "Personal Number" Then tbnhap.Text = "Find Entry by Name" Exit Sub End If If tbnhap.Text = "Find Entry by Name" Or tbnhap.Text = " Find Entry by Name" Or (luumuc = 1 And quickaccess = True) Then 'longpress = False) Then If tbnhap.Text = " Find Entry by Name" Then send = True 'phonebook = False End If quickaccess = False tbnhap.Text = "Name" & vbCrLf cancle = False danhso = False changecase = True luumuc = 0 phonebook = False Exit Sub End If '***** Tim theo ten ******** If Left(tbnhap.Text, 4) = "Name" Then k = InStr(tbnhap.Text, vbLf) st = Mid(tbnhap.Text, k + 1) Call find_name(st) If send = True Then 'phonebook = False Then sending = True send = False End If cancle = True danhso = False changecase = False Exit Sub End If '*******Tim theo vi tri ******* If tbnhap.Text = "Find Entry by Location" Or tbnhap.Text = " Find Entry by Location" Or (luumuc = 2 And quickaccess = True) Then 'longpress = False) Then If tbnhap.Text = " Find Entry by Location" Then send = True 'phonebook = False End If Trang 154

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

quickaccess = False tbnhap.Text = " Enter Location" & vbCrLf cancle = True 'False danhso = True 'False luumuc = 0 phonebook = False Exit Sub End If If Left(tbnhap.Text, Len(" Enter Location")) = " Enter Location" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) = "" Then lo = 0 Else lo = Val(Mid(tbnhap.Text, k + 1)) If lo < 1 Or lo > 255 Then tbnhap.Text = " Range 1-255" danhso = False Exit Sub End If End If Call find_location(lo) If send = True Then 'phonebook = False Then sending = True send = False End If cancle = True danhso = False Exit Sub End If '********* vao menu con cua Find ******** If (flag = True Or menucon = True) Then 'And phonebook = True Then k = InStr(tbnhap.Text, vbLf) st = Trim(Mid(tbnhap.Text, k + 1)) flag = False menucon = False found = False tbnhap.Text = "Call Number" cancle = True danhso = False Trang 155

TheGoiEbook.com

phonebook = True 'False Exit Sub End If '******** Xu ly cua muc Call Number ************** If tbnhap.Text = "Call Number" Or tbnhap.Text = " Call Number" Or tbnhap.Text = "Call Number?" Then If callbarring = True Then tbnhap.Text = " Restricted" Exit Sub End If If setupfixed = True Then Open filefixed For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) For j = 1 To banghi Get #1, j, news chuoitam = Trim(news.number) If Trim(Mid(st, 1, Len(chuoitam))) = chuoitam Then timthay = True Exit For End If Next j Close #1 If timthay = True Then Image2.Visible = True tbnhap.Text = "Calling" danhso = False cancle = True Timer1.Interval = 3000 callnumber = False phonebook = False timthay = False Else tbnhap.Text = " Restricted" Exit Sub End If Else Image2.Visible = True tbnhap.Text = "Calling" danhso = False cancle = True Trang 156

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Timer1.Interval = 3000 callnumber = False phonebook = False End If End If If tbnhap.Text = "End Call?" Then tbnhap.Text = "Menu" danhso = True Image2.Visible = False Exit Sub End If If tbnhap.Text = " Restricted" Then tbnhap.Text = "Phone Book" Exit Sub End If '******** Xu ly cua muc Modify Name ************ If tbnhap.Text = "Modify Name or Number" Then phonebook = False tbnhap.Text = "Change Name" & vbCrLf 'longpress = True cancle = False danhso = False changecase = True found = False flag = False menucon = False Close #1 Exit Sub End If If Left(tbnhap.Text, 11) = "Change Name" Then k = InStr(tbnhap.Text, vbLf) st = Trim(Mid(tbnhap.Text, k + 1)) tbnhap.Text = "Number Change" & vbCrLf cancle = True 'False danhso = True 'False changecase = False Exit Sub Trang 157

TheGoiEbook.com

End If If Left(tbnhap.Text, Len("Number Change")) = "Number Change" Then k = InStr(tbnhap.Text, vbLf) nu = Mid(tbnhap.Text, k + 1) If editentrylist = True Then Call modify(st, nu, vitri) Else If prevent = 2 Or prevent = 3 Then Open filename For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) For j = 1 To banghi Get #1, j, news If st1 = news.name Then vitri = j Exit For End If Next j Close #1 End If Call modify(st, nu, vitri) Call sapthutu Call prevent_access(prevent) End If tbnhap.Text = "Completed" Exit Sub End If '******* Xu ly cua phan Erase Name ************* If tbnhap.Text = "Erase Name and Number" Then phonebook = False found = False flag = False menucon = False Call erased(vitri) Call prevent_access(prevent) End If '******* Add Entry ********* If tbnhap.Text = "Add Entry" Then flag = False Trang 158

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

found = False menucon = False tbnhap.Text = "Add To Phone Memory" Exit Sub End If If tbnhap.Text = "Add To Phone Memory" Or (luumuc = 3 And quickaccess = True) Then 'longpress = False) Then quickaccess = False luumuc = 0 phonebook = False tbnhap.Text = "Enter Name?" & vbCrLf swit = True cancle = False danhso = False changecase = True Exit Sub End If If tbnhap.Text = "Add To SIM Card Memory" Or (luumuc = 4 And quickaccess = True) Then 'longpress = False) Then quickaccess = False luumuc = 0 phonebook = False tbnhap.Text = "Enter Name?" & vbCrLf swit = False cancle = False danhso = False changecase = True Exit Sub End If '******* Them vao bo nho may ********** If Left(Trim(tbnhap.Text), 11) = "Enter Name?" Then k = InStr(tbnhap.Text, vbLf) st = Mid(tbnhap.Text, k + 1) If st = "" Then Beep tbnhap.Text = "Enter Name?" & vbCrLf Else tbnhap.Text = "Enter Number" & vbCrLf Trang 159

TheGoiEbook.com

cancle = True danhso = True changecase = False Exit Sub End If End If If Left(tbnhap.Text, Len("Enter Number")) = "Enter Number" Then k = InStr(tbnhap.Text, vbLf) nu = Mid(tbnhap.Text, k + 1) If nu = "" Then Beep tbnhap.Text = "Enter Number" & vbCrLf Else menucon = False flag = False found = False tbnhap.Text = "Enter Location!" & vbCrLf danhso = True Exit Sub End If End If If Left(tbnhap.Text, 15) = "Enter Location!" Then k = InStr(tbnhap.Text, vbLf) ch = Mid(tbnhap.Text, k + 1) 'flag = False If ch = "" Then lo = add_lo(swit) If addentrylist = True Then Call add_entry(st, nu, lo, swit) Else Call add_entry(st, nu, lo, swit) Call sapthutu Call prevent_access(prevent) End If Exit Sub Else lo = Val(ch) If addentrylist = True Then If lo = 0 Or lo > 40 Then tbnhap.Text = "Range 1-40" Trang 160

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

danhso = False Exit Sub End If 'ghi vao trong Fixed Dial List Call add_entry(st, nu, lo, swit) Else If swit = False Then 'ghi vao trong SIM If lo < 100 Or lo > 255 Then tbnhap.Text = "Range 101-255" danhso = False Exit Sub End If Call add_entry(st, nu, lo, swit) Call sapthutu Call prevent_access(prevent) Exit Sub Else 'ghi vao trong bo nho If lo = 0 Or lo > 100 Then tbnhap.Text = "Range 1-100" danhso = False Exit Sub End If Call add_entry(st, nu, lo, swit) Call sapthutu Call prevent_access(prevent) Exit Sub End If End If End If End If If tbnhap.Text = "Overwritten?" Then Call OVERWRITE(st, nu, lo) Call sapthutu Call prevent_access(prevent) Exit Sub End If '***** Kiem tra suc chua cua phone**** Trang 161

TheGoiEbook.com

If tbnhap.Text = "Check Capacity" Then tbnhap.Text = "Check Phone Capacity" Exit Sub End If If tbnhap.Text = "Check Phone Capacity" Then Call check(0) Exit Sub End If If tbnhap.Text = "Check SIM Capacity" Then Call check(1) Exit Sub End If 'Xu ly cua phan Prevent Access If tbnhap.Text = "Prevent Access" Then tbnhap.Text = "No Memory Restrictions" Exit Sub End If If tbnhap.Text = "No Memory Restrictions" Then phonebook = False prevent = 1 tbnhap.Text = "Enter Security Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = "To SIM Card Memory" Then phonebook = False 'tam = 2 prevent = 2 tbnhap.Text = "Enter Security Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = "To Phone Memory" Then phonebook = False 'tam = 3 Trang 162

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

prevent = 3 tbnhap.Text = "Enter Security Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = "To Phone & SIM Memory" Then phonebook = False 'tam = 4 prevent = 4 tbnhap.Text = "Enter Security Code" & vbCrLf danhso = True Exit Sub End If If Left(tbnhap.Text, 19) = "Enter Security Code" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) <> securitycode Then tbnhap.Text = " Failed" danhso = False Exit Sub Else Call prevent_access(prevent) tbnhap.Text = "Restricted" End If Exit Sub End If If tbnhap.Text = "Menu" Then Beep tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "No Name Stored" Or tbnhap.Text = "No Numbers Stored" Then tbnhap.Text = "Menu" Exit Sub End If 'xu ly cua muc Fixed Dialling If tbnhap.Text = "Fixed Dialling" Then Trang 163

TheGoiEbook.com

tbnhap.Text = "View Fixed Dial List" danhso = False cancle = True Exit Sub End If If tbnhap.Text = "Setup Fixed Dialling" Then listdial = False tbnhap.Text = "Enter PIN2 Code" & vbCrLf phonebook = False danhso = True cancle = True Exit Sub End If 'xu ly cua muc View Fixed Dial List If tbnhap.Text = "View Fixed Dial List" Then Call fixeddiallist callnumberfixed = True listdial = True cancle = True danhso = False Exit Sub End If If callnumberfixed = True Then k = InStr(tbnhap.Text, vbLf) st = Trim(Mid(tbnhap.Text, k + 1)) tbnhap.Text = "Call Number?" danhso = False listdial = False cancle = True callnumberfixed = False Exit Sub End If 'xu ly khi vao trong muc Setup Fixed Dialling If Left(tbnhap.Text, 10) = "Enter PIN2" Then callnumberfixed = False k = InStr(tbnhap.Text, vbLf) st = Mid(tbnhap.Text, k + 1) Trang 164

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If st = pin2code Then tbnhap.Text = "On." phonebook = True 'False danhso = False cancle = True Else tbnhap.Text = "Not Match." danhso = False End If Exit Sub End If If tbnhap.Text = "On." Then setupfixed = True tbnhap.Text = "Completed" phonebook = False Exit Sub End If If tbnhap.Text = "Off." Then setupfixed = False tbnhap.Text = "Completed" phonebook = False Exit Sub End If If tbnhap.Text = "Edit Entry" Then Call fixeddiallist editentrylist = True cancle = False Exit Sub End If If editentrylist = True Then tbnhap.Text = "Change Name" & vbCrLf cancle = False danhso = False changecase = True listdial = False phonebook = False Exit Sub Trang 165

TheGoiEbook.com

End If If tbnhap.Text = " Add Entry" Then tbnhap.Text = "Enter Name?" & vbCrLf cancle = False danhso = False addentrylist = True swit = True phonebook = False Exit Sub End If If tbnhap.Text = "Erase Entry" Then Call fixeddiallist eraseentrylist = True Exit Sub End If If eraseentrylist = True Then Call erased(vitri) listdial = False phonebook = False Exit Sub End If 'xu ly cua muc One-Touch Dial Setting If tbnhap.Text = "One-Touch Dial Setting" Then tbnhap.Text = " To Phone Memory" Exit Sub End If If tbnhap.Text = " To Phone Memory" Then tbnhap.Text = "Completed" onetouchphone = True onetouchof = 1 Exit Sub End If If tbnhap.Text = " To SIM Memory" Then tbnhap.Text = "Completed" onetouchof = 2 Trang 166

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

onetouchphone = True Exit Sub End If If tbnhap.Text = " To Fixed Dial List" Then tbnhap.Text = "Completed" onetouchphone = True onetouchof = 3 Exit Sub End If 'xu ly cua menu Call Related Features If tbnhap.Text = "Call Related Features" Then tbnhap.Text = "Show Battery Meter" features = True Exit Sub End If If tbnhap.Text = "Restrict My Phone Number" Then tbnhap.Text = "Show ID On Next Call" Exit Sub End If If tbnhap.Text = "Call Diverting" Then tbnhap.Text = "Divert Voice Calls" Exit Sub End If If tbnhap.Text = "Divert Voice Calls" Then tbnhap.Text = "Divert When Unavailable" Exit Sub End If If tbnhap.Text = "Divert When Unavailable" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Divert All Voice Calls" Then tbnhap.Text = "On" Exit Sub Trang 167

TheGoiEbook.com

End If If tbnhap.Text = "Detailed Diverting" Then tbnhap.Text = "If Busy" Exit Sub End If If tbnhap.Text = "If Busy" Or tbnhap.Text = "If Not Reachable" Or tbnhap.Text = "If No Answer" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Divert Fax Calls" Or tbnhap.Text = "Divert Data Calls" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Talk and Fax" Or tbnhap.Text = "Call Waiting" Or tbnhap.Text = "Key Answer Only" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Call Barring" Then tbnhap.Text = "Enter Barring Password" & vbCrLf danhso = True cancle = True features = False Exit Sub End If If Left(tbnhap.Text, 13) = "Enter Barring" Then k = InStr(tbnhap.Text, vbLf) st = Mid(tbnhap.Text, k + 1) If st = barpassword Then tbnhap.Text = "Bar Outgoing Calls" features = True danhso = False cancle = True Else Trang 168

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = " Not Match." danhso = False End If Exit Sub End If

If tbnhap.Text = "Bar Outgoing Calls" Then tbnhap.Text = "Int'l Calls" Exit Sub End If If tbnhap.Text = "Bar Incoming Calls" Then tbnhap.Text = "When Roaming" Exit Sub End If 'xu ly cua phan change bar password If tbnhap.Text = "Change Bar Password" Then tbnhap.Text = " Current Password" & vbCrLf features = False danhso = True setup = False Exit Sub End If If Left(tbnhap.Text, 17) = " Current Password" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) = barpassword Then tbnhap.Text = "New Barring Password" & vbCrLf danhso = True cancle = True Else tbnhap.Text = "Invalid Password" danhso = False cancle = True End If Exit Sub End If If Left(tbnhap.Text, 20) = "New Barring Password" Then Trang 169

TheGoiEbook.com

k = InStr(tbnhap.Text, vbLf) If Len(Mid(tbnhap.Text, k + 1)) <> 4 Then tbnhap.Text = " Enter 4 Digit" danhso = False Else barpassword = Mid(tbnhap.Text, k + 1) tbnhap.Text = "Completed" End If Exit Sub End If 'vao menu con cua muc Show Battery Meter If volume.Visible = True Then volume.Visible = False tbnhap.Visible = True Frame1.Height = 500 Frame1.Width = 1800 tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "Show Battery Meter" Or (luumuc = 11 And quickaccess = True And longpress = False) Then volume.Visible = True tbnhap.Visible = False Frame1.Height = 240 Frame1.Width = 1800 volume.Picture = battery.Picture cancle = True danhso = False quickaccess = False features = False luumuc = 0 Exit Sub End If 'phan xu ly cua menu restrict my phone number If tbnhap.Text = "Show ID On Next Call" Or tbnhap.Text = "Restrict ID On Next Call" Or tbnhap.Text = "Cancle All Diverting" Then tbnhap.Text = "Completed" features = False Trang 170

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If 'xu ly cua phan call barring If tbnhap.Text = "Int'l Calls" Or tbnhap.Text = "Int'l Calls Except Home" Then tbnhap.Text = "Completed" features = False Exit Sub End If If tbnhap.Text = "All Calls" Then callbarring = True tbnhap.Text = "Completed" features = False Exit Sub End If If tbnhap.Text = "Off?" Then callbarring = False tbnhap.Text = "Completed" features = False Exit Sub End If 'xu ly cua phan Bar Incoming Calls If tbnhap.Text = "When Roaming" Or tbnhap.Text = " All Calls" Or tbnhap.Text = "Off? " Then tbnhap.Text = "Completed" features = False Exit Sub End If If tbnhap.Text = "Cancel All Barring" Then callbarring = False tbnhap.Text = "Completed" features = False Exit Sub End If 'vao phan xu ly cua menu Messages If tbnhap.Text = "Messages" Then Trang 171

TheGoiEbook.com

tbnhap.Text = "Call Voicemail" message1 = True Exit Sub End If 'phan xu ly trong muc Message Editor If tbnhap.Text = "Message Editor" Or (luumuc = 15 And quickaccess = True) Then taomoi = False quickaccess = False luumuc = 0 Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) If banghi = 0 Then tbnhap.Text = "" editor = True danhso = False cancle = False message1 = False Else Get #1, banghi, message tbnhap.Text = Trim(message.tin) messagenumber = banghi editor = True danhso = False cancle = False message1 = False End If Close #1 Exit Sub End If If editor = True Then If tbnhap.Text = "" Then Exit Sub Else st = tbnhap.Text tbnhap.Text = " Send Message" editor = False cancle = True danhso = False Trang 172

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If Exit Sub End If If tbnhap.Text = "Cell Broadcast" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Message Settings" Then tbnhap.Text = "Voicemail Number" Exit Sub End If If tbnhap.Text = "Outgoing Message Type" Then tbnhap.Text = "Text" Exit Sub End If 'phan xu ly cua menu Outgoing Message If tbnhap.Text = "Outgoing Messages" Or tbnhap.Text = "Outgoing SMS?" Then '(luumuc = 14 And quickaccess = True) Then messagelist = True quickaccess = False thu = False luumuc = 0 cancle = False Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) If banghi = 0 Then tbnhap.Text = "No Message Stored" messagelist = False Else Get #1, 1, message tbnhap.Text = Trim(message.tin) messagenumber = 1 'cancle = True danhso = False End If Close #1 Exit Sub Trang 173

TheGoiEbook.com

End If If messagelist = True Then tbnhap.Text = "Send Message" messagelist = False Exit Sub End If If tbnhap.Text = "Send Message" Or tbnhap.Text = " Send Message" Then tbnhap.Text = " Enter Number" danhso = False cancle = True message1 = True Exit Sub End If If tbnhap.Text = " Enter Number" Then tbnhap.Text = "" message1 = False danhso = True cancle = True send = True Exit Sub End If If sending = True Then If tbnhap.Text = "" Then sending = False Exit Sub End If messagelist = False sending = False tbnhap.Text = "Sending" message1 = False flag = False menucon = False Exit Sub End If 'phan xu ly cua muc Edit Message If tbnhap.Text = "Edit Message" Then Trang 174

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

taomoi = False Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) Get #1, messagenumber, message tbnhap.Text = Trim(message.tin) danhso = False cancle = False editor = True message1 = False Close #1 Exit Sub End If 'phan xu ly cua muc Store Message If tbnhap.Text = "Store Message" Then Call store_message message1 = False Exit Sub End If 'phan xu ly cua muc delete message trong Outgoing Message If tbnhap.Text = "Delete Message" Then Call delete_message message1 = False danhso = False cancle = True Exit Sub End If 'xu ly cua muc Go to next Message trong Outgoing Message If tbnhap.Text = "Go to Next Message" Then Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) If banghi <= messagenumber Then Get #1, 1, message tbnhap.Text = Trim(message.tin) Else messagenumber = messagenumber + 1 Get #1, messagenumber, message tbnhap.Text = Trim(message.tin) End If Trang 175

TheGoiEbook.com

messagelist = True Close #1 Exit Sub End If 'xu ly khi gap truong hop No Msg Stored If tbnhap.Text = "No Message Stored" Then message1 = False tbnhap.Text = "Menu" danhso = True cancle = True Exit Sub End If 'vao trong muc voicemail number cua message setting If tbnhap.Text = "Voicemail Number" Then tbnhap.Text = voicemailnumber danhso = True cancle = True setting = True message1 = False voice = True Exit Sub End If If voice = True Then If tbnhap.Text = "" Then Exit Sub Else voicemailnumber = tbnhap.Text voice = False tbnhap.Text = "Completed" danhso = False cancle = True setting = False Exit Sub End If End If 'vao trong muc Service Centre cua message setting If tbnhap.Text = "Service Centre" Then Trang 176

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = servicecentre danhso = True cancle = True setting = True service = True message1 = False Exit Sub End If If service = True Then If tbnhap.Text = "" Then Exit Sub Else servicecentre = tbnhap.Text service = False tbnhap.Text = "Completed" danhso = False setting = False Exit Sub End If End If 'vao trong muc Expiry Period cua message setting If tbnhap.Text = "Expiry Period" Then tbnhap.Text = expiryperiod danhso = True cancle = True setting = True message1 = False expiry = True Exit Sub End If If expiry = True Then If tbnhap.Text = "" Then Exit Sub Else expiryperiod = tbnhap.Text expiry = False tbnhap.Text = "Completed" danhso = False Trang 177

TheGoiEbook.com

setting = False Exit Sub End If End If 'xu ly cua phan Call Voicemail If tbnhap.Text = "Call Voicemail" Or (luumuc = 12 And quickaccess = True) Then If longpress = True Then Exit Sub End If tbnhap.Text = "Calling" danhso = False cancle = True Image2.Visible = True message1 = False quickaccess = False luumuc = 0 Exit Sub End If '******** vao menu con cua muc Phone Setup ******** If tbnhap.Text = "Phone Setup" Then tbnhap.Text = "Select Phone Line" setup = True Exit Sub End If 'vao menu con cua muc Select phone line If tbnhap.Text = "Select Phone Line" Or (luumuc = 7 And quickaccess = True) Then 'longpress = False) Then quickaccess = False luumuc = 0 tbnhap.Text = "Line 1" danhso = False cancle = True Exit Sub End If If tbnhap.Text = "Line 1" Then tbnhap.Text = "Completed" Trang 178

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

line2 = False setup = False Exit Sub End If If tbnhap.Text = "Line 2" Then tbnhap.Text = "Completed" quickaccess = False line2 = True setup = False Exit Sub End If 'vao menu con cua muc Adjust Ring Volume If volume.Visible = True Then 'And so(14).Value = False And so(15).Value = False Then volume.Visible = False tbnhap.Visible = True Frame1.Height = 500 Frame1.Width = 1800 tbnhap.Text = "Menu" advolume = False setup = False Exit Sub End If If (tbnhap.Text = "Adjust Ring Volume" And setup = True) Or (luumuc = 6 And quickaccess = True) Then 'longpress = False) Then volume.Visible = True tbnhap.Visible = False Frame1.Height = 240 Frame1.Width = 1790 volume.Picture = volume1(vol).Picture advolume = True setup = False cancle = True danhso = False quickaccess = False luumuc = 0 Exit Sub End If

Trang 179

TheGoiEbook.com

'vao menu con cua muc Ring or vibrate If tbnhap.Text = "Ring or Vibrate" Then tbnhap.Text = "Ring Only" Exit Sub End If If luumuc = 9 And quickaccess = True Then If longpress = True Then Exit Sub End If quickaccess = False luumuc = 0 If Image7.Visible = False Then Image7.Visible = True Else Image7.Visible = False End If danhso = False cancle = True tbnhap.Text = "Completed" Exit Sub End If If tbnhap.Text = "Ring Only" Or tbnhap.Text = "Vibrate Then Ring" Or tbnhap.Text = "Vibrate Only" Or tbnhap.Text = "No Ring or Vibrate" Then If tbnhap.Text = "Vibrate Only" Or tbnhap.Text = "No Ring or Vibrate" Then Image7.Visible = False Else Image7.Visible = True End If tbnhap.Text = "Completed" setup = False Exit Sub End If 'vao menu con cua muc Set ringer tone If tbnhap.Text = "Set Ringer Tone" Then tbnhap.Text = "Standard Tone" Exit Sub End If If tbnhap.Text = "Standard Tone" Or tbnhap.Text = "Music Tone" Then Trang 180

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

tbnhap.Text = "Completed" setup = False Exit Sub End If 'vao menu con cua muc Set ringer tone 2 If tbnhap.Text = "Set Ringer Tone 2" Then tbnhap.Text = "Standard Tone" Exit Sub End If 'vao menu cua muc Phone Lock If tbnhap.Text = "Phone Lock" Then tbnhap.Text = "Automatic Lock" Exit Sub End If If tbnhap.Text = "Automatic Lock" Then tbnhap.Text = " On " Exit Sub End If If Left(tbnhap.Text, 5) = " On " Then autolocked = True tbnhap.Text = "Completed" setup = False Exit Sub End If If tbnhap.Text = " Off " Then tbnhap.Text = "Completed" setup = False autolocked = False Exit Sub End If If tbnhap.Text = "Lock Now" Or (luumuc = 5 And quickaccess = True) Then tbnhap.Text = "Locked" locked = True setup = False quickaccess = False Trang 181

TheGoiEbook.com

luumuc = 0 Exit Sub End If If Left(tbnhap.Text, Len("Unlock Code")) = "Unlock Code" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) = unlocked Then locked = False tbnhap.Text = "Menu" setup = False Else tbnhap.Text = "Not Match" danhso = False End If Exit Sub End If If tbnhap.Text = " Change Unlock Code" Then tbnhap.Text = "Old Code" & vbCrLf danhso = True setup = False Exit Sub End If If Left(tbnhap.Text, 8) = "Old Code" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) = unlocked Then tbnhap.Text = "New Code" & vbCrLf Else tbnhap.Text = " Not Match" danhso = False End If Exit Sub End If If Left(tbnhap.Text, 8) = "New Code" Then k = InStr(tbnhap.Text, vbLf) If Len(Mid(tbnhap.Text, k + 1)) <> 4 Then tbnhap.Text = "Enter 4 Digit" danhso = False Exit Sub Trang 182

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Else unlocked = Mid(tbnhap.Text, k + 1) tbnhap.Text = "Completed" danhso = False setup = False Exit Sub End If End If If tbnhap.Text = "Require SIM Card PIN" Then tbnhap.Text = " On." Exit Sub End If 'xu ly cua muc Change SIM Pin2 code If tbnhap.Text = "Change SIM PIN2 Code" Then tbnhap.Text = "Current PIN2 Code" & vbCrLf danhso = True setup = False Exit Sub End If If Left(tbnhap.Text, 17) = "Current PIN2 Code" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) = pin2code Then tbnhap.Text = "New PIN2 Code" & vbCrLf Else tbnhap.Text = " Invalid Code" danhso = False End If Exit Sub End If If Left(tbnhap.Text, 13) = "New PIN2 Code" Then k = InStr(tbnhap.Text, vbLf) If Len(Mid(tbnhap.Text, k + 1)) < 4 Or Len(Mid(tbnhap.Text, k + 1)) > 8 Then tbnhap.Text = "Enter 4-8 Digit" danhso = False Else pin2code = Mid(tbnhap.Text, k + 1) tbnhap.Text = "Completed" Trang 183

TheGoiEbook.com

setup = False End If Exit Sub End If 'xu ly cua phan New Security Code If tbnhap.Text = "New Security Code" Then tbnhap.Text = "Current Code" & vbCrLf danhso = True setup = False Exit Sub End If If Left(tbnhap.Text, 12) = "Current Code" Then k = InStr(tbnhap.Text, vbLf) If Mid(tbnhap.Text, k + 1) = securitycode Then tbnhap.Text = "New Security Code" & vbCrLf Else tbnhap.Text = "Invalid Code" danhso = False End If Exit Sub End If If Left(tbnhap.Text, 17) = "New Security Code" Then k = InStr(tbnhap.Text, vbLf) If Len(Mid(tbnhap.Text, k + 1)) <> 6 Then tbnhap.Text = "Enter 6 Digit" danhso = False Else securitycode = Mid(tbnhap.Text, k + 1) tbnhap.Text = "Completed" danhso = False setup = False End If Exit Sub End If 'xu ly cua phan Extended Menus If tbnhap.Text = "Extended Menus" Then tbnhap.Text = " On" Exit Sub Trang 184

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If If tbnhap.Text = " On" Then extend = True tbnhap.Text = "Completed" setup = False Exit Sub End If If tbnhap.Text = " Off" Then extend = False tbnhap.Text = "Completed" setup = False Exit Sub End If If tbnhap.Text = "Show Time and Date" Or (luumuc = 8 And quickaccess = True) Then tbnhap.Text = Format(Now, "Medium Date") & vbCrLf & Format(Now, "Short Time") If longpress = True Then showtime = False 'True Else showtime = True End If setup = False quickaccess = False luumuc = 0 Exit Sub End If If tbnhap.Text = "Set Time and Date" Then tbnhap.Text = "Enter Time" & vbCrLf setup = False cancle = False Exit Sub End If If Left(tbnhap.Text, 10) = "Enter Time" Then j = InStr(tbnhap.Text, vbLf) Trang 185

TheGoiEbook.com

If Not IsDate(Mid(tbnhap.Text, j + 1)) Then 'k < 1 Or k > 24 Then tbnhap.Text = "Invalid Time" cancle = True danhso = False Exit Sub Else newtime = Mid(tbnhap.Text, j + 1) tbnhap.Text = "Enter Date" & vbCrLf End If Exit Sub End If If Left(tbnhap.Text, 10) = "Enter Date" Then j = InStr(tbnhap.Text, vbLf) If Not IsDate(Mid(tbnhap.Text, j + 1)) Then tbnhap.Text = "Invalid Date" cancle = True danhso = False Exit Sub Else newdate = Mid(tbnhap.Text, j + 1) End If Time = newtime Date = newdate tbnhap.Text = "Completed" cancle = True Exit Sub End If If tbnhap.Text = "Set Time Format" Then tbnhap.Text = "12-hour?" Exit Sub End If If tbnhap.Text = "12-hour?" Then formattime = False tbnhap.Text = "Completed" setup = False Exit Sub End If

Trang 186

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "24-hour?" Then formattime = True tbnhap.Text = "Completed" setup = False Exit Sub End If If tbnhap.Text = "Battery Saving Mode" Then tbnhap.Text = "On" setup = False Exit Sub End If If tbnhap.Text = "On" Then tbnhap.Text = "Completed" features = False network = False accessory = False message1 = False Exit Sub End If If tbnhap.Text = "Off" Then tbnhap.Text = "Completed" features = False network = False accessory = False message1 = False Exit Sub End If If tbnhap.Text = "Select Keypad Tones" Then tbnhap.Text = "Normal Tones" Exit Sub End If If tbnhap.Text = "Normal Tones" Or tbnhap.Text = "Single Tone" Or tbnhap.Text = "No Tones" Then tbnhap.Text = "Completed" setup = False Exit Sub Trang 187

TheGoiEbook.com

End If If tbnhap.Text = "Phone Status" Then tbnhap.Text = "Status Review" Exit Sub End If 'phan xu ly cua menu Network Selection If tbnhap.Text = "Network Selection" Then tbnhap.Text = " Change Band" network = True Exit Sub End If If tbnhap.Text = " Change Band" Or (luumuc = 10 And quickaccess = True) Then 'longpress = False) Then tbnhap.Text = "Change to 900/1800" danhso = False cancle = True quickaccess = False luumuc = 0 Exit Sub End If If tbnhap.Text = "Available Networks" Then tbnhap.Text = "Wait.." addnetwork = False availablenetwork = True Exit Sub End If If tbnhap.Text = "Choose From Available" Or tbnhap.Text = "Choose From Known" Then addnetwork = True availablenetwork = False tbnhap.Text = "Wait.." Exit Sub End If If tbnhap.Text = "Network Search" Then tbnhap.Text = "Registration Preferences" Trang 188

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Exit Sub End If If tbnhap.Text = "Registration Preferences" Then tbnhap.Text = "Automatic Search Mode" Exit Sub End If If tbnhap.Text = "Automatic Search Mode" Or manualsearch = True Then tbnhap.Text = "Registerring" cancle = True 'False danhso = False 'True manualsearch = False network = False Exit Sub End If If tbnhap.Text = "Manual Search Mode" Then Open filename5 For Random As #1 Len = Len(networks) Get #1, 1, networks tbnhap.Text = networks.mang tam1 = 1 availablenetwork = True manualsearch = True Close #1 Exit Sub End If If tbnhap.Text = "Frequency of Search" Then tbnhap.Text = "Slow Search" Exit Sub End If 'xu ly cua phan Preferred Networks If tbnhap.Text = "Preferred Networks" Then tbnhap.Text = "Add Network to List" Exit Sub End If If tbnhap.Text = "Add Network to List" Then tbnhap.Text = "Choose From Available" Trang 189

TheGoiEbook.com

Exit Sub End If If tbnhap.Text = "Show List of Networks" Then Open filename6 For Random As #1 Len = Len(networks) banghi = LOF(1) \ Len(networks) If banghi = 0 Then tbnhap.Text = "No Network in List" Close #1 Exit Sub End If Get #1, 1, networks tbnhap.Text = networks.mang st = networks.mang tam1 = 1 showlist = True Close #1 Exit Sub End If If tbnhap.Text = "No Network in List" Then tbnhap.Text = "Network Selection" Exit Sub End If 'xu ly cua muc Move to New Location If showlist = True Then tbnhap.Text = "Move to New Location" showlist = False Exit Sub End If If tbnhap.Text = "Move to New Location" Then tbnhap.Text = "New Location?" & vbCrLf danhso = True cancle = True network = False Exit Sub End If If Left(tbnhap.Text, 4) = "New " Then Trang 190

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

k = InStr(tbnhap.Text, vbLf) lo = Val(Mid(tbnhap.Text, k + 1)) If lo = 0 Then tbnhap.Text = "New Location?" & vbCrLf Exit Sub End If Call movenew(tam1, lo) network = False showlist = False End If 'xu ly cua muc Delete Network If tbnhap.Text = "Delete Network" Then tbnhap.Text = "Are you sure?" Exit Sub End If If tbnhap.Text = "Are you sure?" Then Call xoa(tam1) network = False showlist = False Exit Sub End If 'xu ly cua phan Find New Network If tbnhap.Text = "Find New Network" Then tbnhap.Text = "Finding" network = False Exit Sub End If 'phan xu ly cua muc Change Band If tbnhap.Text = "Change to 900/1800" Or tbnhap.Text = "Change to 900" Or tbnhap.Text = "Change to 1800" Then tbnhap.Text = "Completed" quickaccess = False danhso = False cancle = True network = False Exit Sub End If Trang 191

TheGoiEbook.com

If addnetwork = True Then availablenetwork = False tbnhap.Text = " Location?" & vbCrLf danhso = True cancle = True addnetwork = False network = False Exit Sub End If 'xu ly cua muc available network If availablenetwork = True Then tbnhap.Text = "Register Now" availablenetwork = False Exit Sub End If If tbnhap.Text = "Register Now" Then tbnhap.Text = "Register" network = False Exit Sub End If If tbnhap.Text = "Make Preferred" Then tbnhap.Text = " Location?" & vbCrLf danhso = True cancle = True network = False Exit Sub End If If Left(tbnhap.Text, 10) = " Location?" Then k = InStr(tbnhap.Text, vbLf) lo = Val(Mid(tbnhap.Text, k + 1)) If lo = 0 Then tbnhap.Text = " Location?" & vbCrLf Exit Sub End If Call preferredlist(lo, st) tbnhap.Text = "Completed" Trang 192

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

network = False danhso = False Exit Sub End If 'phan xu ly cua muc Frequency of search If tbnhap.Text = "Slow Search" Or tbnhap.Text = "Medium Search" Or tbnhap.Text = "Fast Search" Or tbnhap.Text = "Continuous Search" Then tbnhap.Text = "Completed" network = False danhso = False Exit Sub End If 'phan xu ly cua menu Accessory Setup If tbnhap.Text = "Accessory Setup" Then tbnhap.Text = "Mute Car Radio" accessory = True Exit Sub End If 'vao menu con cua cac muc trong Accessory setup If tbnhap.Text = "Mute Car Radio" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Automatic Answer" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Automatic Handsfree" Then tbnhap.Text = "On" Exit Sub End If If tbnhap.Text = "Safety Timer" Then tbnhap.Text = "On" Exit Sub End If Trang 193

TheGoiEbook.com

If tbnhap.Text = "Auxiliary Alert" Then tbnhap.Text = "On" Exit Sub End If 'phan xu ly cua muc Quick Access Menu If longpress = True Then 'And st <> "" Then Open filename3 For Random As #1 Len = Len(menuaccess) Get #1, orderinquick, menuaccess menuaccess.feature = st menuaccess.thutu = luumuc Put #1, orderinquick, menuaccess Close #1 longpress = False tbnhap.Text = "Completed" thu = False quickaccess = False Exit Sub End If 'truong hop user nhap vao mot so de lam mot cuoc goi If IsNumeric(tbnhap.Text) = True And sending = False Then st = tbnhap.Text If Len(tbnhap.Text) < 7 Then If tbnhap.Text = "1080" Or tbnhap.Text = "113" Or tbnhap.Text = "114" Or tbnhap.Text = "115" Then cancall = False Else cancall = True End If If send = True Then sending = True send = False End If End If danhso = False cancle = True tbnhap.Text = "Calling" '" Call Number" Image2.Visible = True callnumber = True Trang 194

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If 'truong hop user nhap vao so dien thoai co format khong phu hop If tbnhap.Text = "Connecting Failed" Then tbnhap.Text = "Menu" Exit Sub End If '********* phim left ********* Case 14 'menu con cua muc Personal Number If quickaccess = True Then Exit Sub End If 'xu ly cua muc Adjust Ring Volume If advolume = True Then i=i+1 If vol > 0 Then Select Case i Case 3, 6, 9, 12, 15, 18, 21 vol = vol - 1 volume.Picture = volume1(vol).Picture End Select Else Beep End If Exit Sub End If '********** phim phai ********** Case 15 If quickaccess = True Then 'longpress = True Then Exit Sub End If If cancle = False Then Select Case i Case 0 tbnhap.Text = tbnhap.Text & Right(tbnhap.Text, 1) i=i+1 Case 1 tbnhap.Text = tbnhap.Text & " " Trang 195

TheGoiEbook.com

End Select Else 'xu ly cua phan Adjust Ring Volume If advolume = True Then i=i+1 If vol < 7 Then Select Case i Case 3, 6, 9, 12, 15, 18, 21 vol = vol + 1 volume.Picture = volume1(vol).Picture End Select Else Beep End If Exit Sub End If End If '****** day la phan xu ly cua phim OnOff ******* Case 16 phonebook = False quickaccess = False message1 = False setup = False network = False listdial = False editentrylist = False addentrylist = False eraseentrylist = False changecase = False messagelist = False taomoi = False editor = False availablenetwork = False addnetwork = False Image2.Visible = False Select Case onoff Case 0 screen.Visible = True Frame1.Visible = False tbnhap.Visible = False Trang 196

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If volume.Visible = True Then volume.Visible = False Frame1.Height = 500 Frame1.Width = 1800 End If onoff = 1 Exit Sub Case 1 screen.Visible = False Frame1.Visible = True tbnhap.Visible = True If autolocked = True Or locked = True Then tbnhap.Text = "Locked" Else tbnhap.Text = "Menu" End If onoff = 0 Exit Sub End Select 'phan xu ly cua menu quick access Case 17 If locked = True Then Exit Sub End If If volume.Visible = True Then 'And so(14).Value = False And so(15).Value = False Then volume.Visible = False tbnhap.Visible = True Frame1.Height = 500 Frame1.Width = 1800 End If Image2.Visible = False network = False phonebook = False setup = False listdial = False editentrylist = False addentrylist = False eraseentrylist = False changecase = False Trang 197

TheGoiEbook.com

messagelist = False taomoi = False editor = False availablenetwork = False addnetwork = False Open filename3 For Random As #1 Len = Len(menuaccess) Get #1, 1, menuaccess tbnhap.Text = Trim(menuaccess.feature) orderinquick = 1 luumuc = menuaccess.thutu quickaccess = True phonebook = False thu = True danhso = False cancle = False Close #1 Exit Sub End Select End Sub '****** CHUONG TRINH CON THEM SO DT MOI ***** Private Sub add_entry(st As String, nu As String, lo As Integer, flag As Boolean) Dim news As entry Dim banghi As Byte Dim j As Byte If addentrylist = True Then Open filefixed For Random As #1 Len = Len(news) Else Open filename For Random As #1 Len = Len(news) End If banghi = LOF(1) \ Len(news) For j = 1 To banghi Get #1, j, news If news.location = lo Then tbnhap.Text = "Overwritten?" Close #1 Exit Sub End If Next j news.name = st news.number = nu Trang 198

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

news.location = lo banghi = banghi + 1 If addentrylist = True Then Put #1, banghi, news Else If flag = True Then Put #1, banghi, news Else Put #1, banghi, news End If End If addentrylist = False listdial = False tbnhap.Text = "Stored" & Str(lo) Close #1 End Sub '**** THU TUC TIM VI TRI SE GHI MOT MUC KHI USER KHONG NHAP VAO LOCATION **** Private Function add_lo(co As Boolean) As Integer Dim news As entry Dim banghi As Byte Dim j As Integer Dim i As Integer Dim timthay As Boolean If co = True Then i=1 If addentrylist = True Then Open filefixed For Random As #1 Len = Len(news) Else Open filename For Random As #1 Len = Len(news) End If banghi = LOF(1) \ Len(news) If banghi = 0 Then add_lo = 1 timthay = False Close #1 Else timthay = True End If Trang 199

TheGoiEbook.com

Do While timthay = True For j = 1 To banghi Get #1, j, news If i = news.location Then i=i+1 timthay = True Exit For Else If j = banghi Then add_lo = i timthay = False Close #1 Exit Do End If End If Next j Loop Else i = 101 Open filename For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) If banghi = 0 Then add_lo = 101 timthay = False Else timthay = True End If Do While timthay = True For j = 1 To banghi Get #1, j, news If i = news.location Then i=i+1 timthay = True Exit For Else If j = banghi Then add_lo = i timthay = False Close #1 Exit Do End If Trang 200

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If Next j Loop Close #1 End If End Function '***** CHUONG TRINH CON TIM SO DT THEO TEN ****** Private Sub find_name(ten As String) Dim news As entry Dim i As Integer Dim j As Integer Dim banghi As Integer Select Case prevent Case 1 Open filename For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) Case 2, 3 Open filename2 For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) Case 4 found = False tbnhap.Text = "No Name Stored" Exit Sub End Select '**** Truong hop khong co ten nao da duoc luu **** If banghi = 0 Then found = False tbnhap.Text = "No Name Stored" Close #1 Exit Sub End If '**** truong hop user khong nhap ten de tim ******** If ten = "" And banghi <> 0 Then Get #1, 1, news found = True vitri = 1 st1 = news.name Trang 201

TheGoiEbook.com

st = news.name nu = news.number tbnhap.Text = st & vbCrLf & nu Close #1 flag = True Exit Sub 'truong hop ten nhap vao trung voi ten da luu Else For i = 1 To banghi Get #1, i, news If StrComp(Left(news.name, Len(ten)), ten) = 0 Then found = True vitri = i st = news.name nu = news.number st1 = news.name tbnhap.Text = st & vbCrLf & nu flag = True Close #1 Exit Sub End If Next i End If 'truong hop ten nhap vao khong trung voi ten da luu For i = 1 To banghi Get #1, i, news If StrComp(Left(news.name, 1), Left(ten, 1)) = 0 Then found = True vitri = i st = news.name nu = news.number st1 = news.name tbnhap.Text = st & vbCrLf & nu flag = True Close #1 Exit Sub End If Next i

Trang 202

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

'truong hop ten nhap vao khong tin thay, lay entry dau tien Get #1, 1, news st1 = news.name st = news.name nu = news.number tbnhap.Text = st & vbCrLf & nu found = True flag = True vitri = 1 Close #1 End Sub '***** THU TUC GHI DE KHI TRUNG VI TRI ***** Private Sub OVERWRITE(st As String, nu As String, lo As Integer) Dim j As Integer Dim news As entry Dim banghi As Byte If addentrylist = True Then Open filefixed For Random As #1 Len = Len(news) addentrylist = False Else Open filename For Random As #1 Len = Len(news) End If banghi = LOF(1) \ Len(news) For j = 1 To banghi Get #1, j, news If news.location = lo Then news.location = lo news.number = nu news.name = st Put #1, j, news tbnhap.Text = "Stored" & Str(lo) Exit For End If Next j Close #1 End Sub '****** THU TUC TIM MOT MUC THEO VI TRI ***** Private Sub find_location(so As Integer) Dim news As entry Trang 203

TheGoiEbook.com

Dim news1 As entry Dim j As Integer Dim banghi As Byte Dim i As Integer 'found = True Select Case prevent Case 1 Open filename For Random As #1 Len = Len(news) Case 2, 3 Open filename2 For Random As #1 Len = Len(news) Case 4 tbnhap.Text = "No Number Stored" Exit Sub End Select banghi = LOF(1) \ Len(news) If banghi = 0 Then tbnhap.Text = "No Numbers Stored" Close #1 Exit Sub End If If so = 0 Then Get #1, 1, news i = news.location For j = 2 To banghi Get #1, j, news1 If i > news1.location Then i = news1.location vitri = j Else vitri = i End If Next j found = True flag = True Get #1, vitri, news st1 = news.name tbnhap.Text = news.name & vbCrLf & news.number Close #1 Exit Sub Else Trang 204

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

For j = 1 To banghi Get #1, j, news If so = news.location Then found = True vitri = j Exit For Else found = False End If Next j If found = True Then st1 = news.name tbnhap.Text = news.name & vbCrLf & news.number Else tbnhap.Text = "Location Empty" End If End If flag = True Close #1 End Sub '****** THU TUC SUA DOI MOT MUC *********** Private Sub modify(ten As String, so As String, cho As Integer) Dim news As entry Dim banghi As Byte Dim j As Integer If editentrylist = True Then Open filefixed For Random As #1 Len = Len(news) Else Open filename For Random As #1 Len = Len(news) End If Get #1, cho, news If ten <> "" Then If so <> "" Then news.name = ten news.number = so Put #1, cho, news Close #1 Else news.name = ten Put #1, cho, news Trang 205

TheGoiEbook.com

Close #1 End If Else If so <> "" Then news.number = so Put #1, cho, news Close #1 Else Close #1 End If End If If editentrylist = True Then editentrylist = False listdial = False End If End Sub '****** THU TUC XOA MOT MUC ************ Private Sub erased(cho As Integer) Dim news As entry Dim news1 As entry Dim banghi As Byte Dim j As Byte Dim i As Integer If eraseentrylist = True Then Open filefixed For Random As #1 Len = Len(news) Else Open filename For Random As #1 Len = Len(news) End If Open filename1 For Random As #2 Len = Len(news1) banghi = LOF(1) \ Len(news) For j = 1 To banghi If j <> cho Then Get #1, j, news Put #2, j, news Else i = news.location Exit For End If Next j Do While j < banghi Trang 206

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Get #1, j + 1, news Put #2, j, news j=j+1 Loop tbnhap.Text = "Erased" Close #1 Close #2 If eraseentrylist = True Then Kill filefixed Name filename1 As filefixed eraseentrylist = False listdial = False Else Kill filename Name filename1 As filename End If End Sub '***** THU TUC XU LY CUA PHAN PREVENT ACCESS ******* Private Sub prevent_access(k As Integer) Dim news As entry Dim news1 As entry Dim banghi As Byte Dim j As Integer Dim i As Integer Open filename For Random As #1 Len = Len(news) Open filename2 For Random As #2 Len = Len(news) banghi = LOF(1) \ Len(news) i=0 Select Case k Case 1, 4 Close #1 Close #2 Exit Sub Case 2 For j = 1 To banghi Get #1, j, news If news.location < 100 Then i=i+1 Put #2, i, news End If Trang 207

TheGoiEbook.com

Next j Close #1 Open filename1 For Random As #3 Len = Len(news) For j = 1 To i Get #2, j, news Put #3, j, news Next j Close #2 Close #3 Kill filename2 Name filename1 As filename2 Case 3 For j = 1 To banghi Get #1, j, news If news.location > 100 Then i=i+1 Put #2, i, news End If Next j Close #1 Open filename1 For Random As #3 Len = Len(news) For j = 1 To i Get #2, j, news Put #3, j, news Next j Close #2 Close #3 Kill filename2 Name filename1 As filename2 End Select End Sub '***** THU TUC KHI PHIM BI MAT TIEU DIEM*** Private Sub so_LostFocus(Index As Integer) i=0 End Sub 'QUAY SO CHI VOI MOT PHIM Private Sub onetouch(vitri As Integer) Dim news As entry Dim j As Byte Trang 208

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Dim banghi As Byte Select Case onetouchof Case 1, 2 Open filename For Random As #1 Len = Len(news) Case 3 Open filefixed For Random As #1 Len = Len(news) End Select If onetouchof = 2 Then vitri = vitri + 100 End If banghi = LOF(1) \ Len(news) For j = 1 To banghi Get #1, j, news If news.location = vitri Then tbnhap.Text = news.number Exit For End If Next j Close #1 End Sub 'DANH SACH SO CO DINH Private Sub fixeddiallist() Dim news As entry Dim banghi As Byte Dim i As Integer Dim j As Integer Open filefixed For Random As #1 Len = Len(news) found = False banghi = LOF(1) \ Len(news) If banghi = 0 Then tbnhap.Text = "List Empty" Else If banghi = 1 Then Get #1, 1, news vitri = 1 Else Get #1, 1, news i = news.location For j = 2 To banghi Get #1, j, news Trang 209

TheGoiEbook.com

If i > news.location Then i = news.location vitri = j Else vitri = i End If Next j End If listdial = True Get #1, vitri, news st1 = news.name tbnhap.Text = news.name & vbCrLf & news.number End If Close #1 End Sub 'XU LY CUA BO DEM THOI GIAN Private Sub Timer1_Timer() Dim j As Integer Dim i As Integer Dim ch As String Dim networks As netselect If formattime = False Then Label2.Caption = Format(Now, "medium time") Else Label2.Caption = Format(Now, "short time") End If If Left(tbnhap.Text, 11) = "Range 1-100" Or Left(tbnhap.Text, 13) = "Range 101255" Or Left(tbnhap.Text, 10) = "Range 1-40" Then danhso = True tbnhap.Text = "Enter Location!" & vbCrLf Exit Sub End If If Left(tbnhap.Text, 6) = " Range" Then danhso = True tbnhap.Text = " Enter Location" & vbCrLf Exit Sub End If Trang 210

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If tbnhap.Text = "Location Empty" Then 'cancle = True danhso = False tbnhap.Text = "Personal Number" Exit Sub End If If Right(tbnhap.Text, Len("Unused Locations")) = "Unused Locations" Then tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "Restricted" Then tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "Completed" Then tbnhap.Text = "Menu" danhso = True Exit Sub End If If tbnhap.Text = "Calling" Then Timer1.Interval = 3000 If cancall = True Then tbnhap.Text = "Connecting Failed" Image2.Visible = False cancall = False Exit Sub End If tbnhap.Text = "Connected" Exit Sub End If If tbnhap.Text = "Connected" Then tbnhap.Text = "End Call?" found = False Exit Sub End If Trang 211

TheGoiEbook.com

If Left(tbnhap.Text, 6) = "Erased" Then tbnhap.Text = "Menu" Exit Sub End If If Left(tbnhap.Text, 6) = "Stored" Then tbnhap.Text = "Menu" Exit Sub End If If tbnhap.Text = "Range 1-24" Then cancle = False danhso = True tbnhap.Text = "Enter Time" & vbCrLf Exit Sub End If If tbnhap.Text = "Invalid Format" Then cancle = False danhso = True tbnhap.Text = "Enter Date" & vbCrLf Exit Sub End If If tbnhap.Text = "Not Match" Then danhso = True tbnhap.Text = "Unlock Code" & vbCrLf Exit Sub End If If tbnhap.Text = " Not Match" Then danhso = True tbnhap.Text = "Old Code" & vbCrLf Exit Sub End If If tbnhap.Text = "Not Match." Then danhso = True tbnhap.Text = "Enter PIN2 Code" & vbCrLf Exit Sub Trang 212

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

End If If tbnhap.Text = " Not Match." Then danhso = True tbnhap.Text = "Enter Barring Password" & vbCrLf Exit Sub End If If tbnhap.Text = "Finding" Then tbnhap.Text = "Failed" Exit Sub End If If tbnhap.Text = "Failed" Then tbnhap.Text = "Network Selection" Exit Sub End If If tbnhap.Text = "Enter 4 Digit" Then tbnhap.Text = "New Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = "Invalid Code" Then tbnhap.Text = "Current Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = " Invalid Code" Then tbnhap.Text = "Current PIN2 Code" & vbCrLf danhso = True End If If tbnhap.Text = "Invalid Password" Then tbnhap.Text = " Current Password" & vbCrLf danhso = True Exit Sub End If

Trang 213

TheGoiEbook.com

If tbnhap.Text = " Enter 4 Digit" Then tbnhap.Text = "New Barring Password" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = "Enter 4-8 Digit" Then tbnhap.Text = "New PIN2 Code" & vbCrLf danhso = True End If If tbnhap.Text = "Enter 6 Digit" Then tbnhap.Text = "New Security Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = " Failed" Then tbnhap.Text = "Enter Security Code" & vbCrLf danhso = True Exit Sub End If If tbnhap.Text = "Invalid Time" Then tbnhap.Text = "Enter Time" & vbCrLf danhso = False cancle = False Exit Sub End If If tbnhap.Text = "Invalid Date" Then tbnhap.Text = "Enter Date" & vbCrLf cancle = False danhso = False Exit Sub End If If tbnhap.Text = "Sending" Then If cancall = True Then tbnhap.Text = "Connecting Failed" Image2.Visible = False Trang 214

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

cancall = False Else tbnhap.Text = " Connected" End If Exit Sub End If If tbnhap.Text = " Connected" Then Image2.Visible = False tbnhap.Text = "Completed" Exit Sub End If If tbnhap.Text = "Deleted" Then tbnhap.Text = "Messages" cancle = True danhso = False Exit Sub End If If tbnhap.Text = "Invalid Msg Number" Then tbnhap.Text = "Messages" cancle = True danhso = False Exit Sub End If 'xu ly khi lam trong muc available network If tbnhap.Text = "Wait.." Then tbnhap.Text = "Scanning" Exit Sub End If If tbnhap.Text = "Scanning" Then Open filename5 For Random As #1 Len = Len(networks) Get #1, 1, networks tam1 = 1 tbnhap.Text = networks.mang st = tbnhap.Text Close #1 Exit Sub Trang 215

TheGoiEbook.com

End If If tbnhap.Text = "Register" Then tbnhap.Text = "Completed" Exit Sub End If If tbnhap.Text = "Registerring" Then tbnhap.Text = "Failed" Exit Sub End If End Sub 'THU TUC SAP THU TU Private Sub sapthutu() Dim news As entry Dim news1 As entry Dim j As Integer Dim k As Integer Dim banghi As Byte Dim ch As String Dim ch1 As String Dim so As String Dim vitri As Integer Open filename For Random As #1 Len = Len(news) Open filename For Random As #2 Len = Len(news1) banghi = LOF(1) \ Len(news) For j = 2 To banghi Get #1, j, news ch = news.name so = news.number vitri = news.location For k = j - 1 To 1 Step -1 Get #2, k, news1 ch1 = news1.name If StrComp(ch, ch1) = 1 Or StrComp(ch, ch1) = 0 Then Exit For End If news.name = news1.name news.number = news1.number Trang 216

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

news.location = news1.location Put #1, k + 1, news Next k news.name = ch news.number = so news.location = vitri Put #1, k + 1, news Next j Close #1 Close #2 End Sub 'CHUYEN MOT MUC Private Sub menu_downswitchentry() Dim news As entry Dim banghi As Byte Select Case prevent Case 1 Open filename For Random As #1 Len = Len(news) Case 2, 3 Open filename2 For Random As #1 Len = Len(news) End Select banghi = LOF(1) \ Len(news) menucon = True vitri = vitri + 1 If vitri <= banghi Then Get #1, vitri, news st1 = news.name st = news.name nu = news.number tbnhap.Text = st & vbCrLf & nu Close #1 Exit Sub Else vitri = 1 Get #1, vitri, news st = news.name st1 = news.name nu = news.number tbnhap.Text = st & vbCrLf & nu Close #1 Trang 217

TheGoiEbook.com

End If End Sub 'CHUYEN MOT MUC Private Sub menu_upswitchentry() Dim news As entry Dim banghi As Byte Select Case prevent Case 1 Open filename For Random As #1 Len = Len(news) Case 2, 3 Open filename2 For Random As #1 Len = Len(news) End Select banghi = LOF(1) \ Len(news) menucon = True vitri = vitri - 1 cancle = True danhso = False If vitri >= 1 Then Get #1, vitri, news st1 = news.name st = news.name nu = news.number tbnhap.Text = st & vbCrLf & nu Close #1 Exit Sub Else vitri = banghi 'vitri + 1 Get #1, vitri, news st1 = news.name st = news.name nu = news.number tbnhap.Text = st & vbCrLf & nu Close #1 End If End Sub 'DI CHUYEN GIUA CAC MUC TRONG DANH SACH SO CO DINH Private Sub menu_downlistdial() Dim news As entry Trang 218

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Dim banghi As Byte Open filefixed For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) If banghi = 0 Then listdial = False Close #1 Exit Sub End If vitri = vitri + 1 If vitri <= banghi Then Get #1, vitri, news tbnhap.Text = news.name & vbCrLf & news.number Else vitri = 1 Get #1, vitri, news tbnhap.Text = news.name & vbCrLf & news.number End If Close #1 End Sub 'DI CHUYEN GIUA CAC MUC TRONG DANH SACH SO CO DINH Private Sub menu_uplistdial() Dim news As entry Dim banghi As Byte Open filefixed For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) If banghi = 0 Then listdial = False Close #1 Exit Sub End If vitri = vitri - 1 If vitri >= 1 Then Get #1, vitri, news tbnhap.Text = news.name & vbCrLf & news.number Else vitri = banghi Get #1, vitri, news tbnhap.Text = news.name & vbCrLf & news.number Trang 219

TheGoiEbook.com

End If Close #1 End Sub 'THU TUC KIEM TRA BO NHO Private Sub check(so As Boolean) Dim news As entry Dim banghi As Byte Dim j As Integer Dim max As Integer Dim max1 As Integer Open filename For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) For j = 1 To banghi Get #1, j, news If news.location < 100 Then max = max + 1 Else max1 = max1 + 1 End If Next j If so = 0 Then tbnhap.Text = (100 - max) & " Unused Locations" Else tbnhap.Text = (155 - max1) & " Unused Locations" End If Close #1 End Sub 'DI CHYEN GIUA DANH SACH CAC MANG UU TIEN Private Sub preferredlist(so As Integer, chuoi As String) Dim networks As netselect Dim banghi As Byte Dim j As Integer Open filename6 For Random As #1 Len = Len(networks) Open filetam For Random As #2 Len = Len(networks) banghi = LOF(1) \ Len(networks) If banghi = 0 Then networks.mang = chuoi Trang 220

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Put #2, 1, networks Else For j = 1 To banghi If so <> j Then Get #1, j, networks Put #2, j, networks Else networks.mang = chuoi Put #2, j, networks Exit For End If Next j Do While j <= banghi Get #1, j, networks.mang Put #2, j + 1, networks.mang j=j+1 Loop End If If lo > banghi Then networks.mang = st Put #2, banghi + 1, networks End If Close #1 Close #2 Kill filename6 Name filetam As filename6 End Sub 'THU TUC DI CHUYEN MOT MANG UU TIEN DEN VI TRI MOI Private Sub movenew(oldlo As Integer, newlo As Integer) Dim networks As netselect Dim i As Integer Dim banghi As Integer Dim chuoi As String Open filename6 For Random As #1 Len = Len(networks) Open filetam For Random As #2 Len = Len(networks) banghi = LOF(1) \ Len(networks) If oldlo = newlo Then Close #1 Trang 221

TheGoiEbook.com

Close #2 tbnhap.Text = "Completed" Exit Sub End If If newlo >= banghi Then For i = 1 To oldlo - 1 Get #1, i, networks Put #2, i, networks Next i Get #1, oldlo, networks chuoi = networks.mang For i = oldlo + 1 To banghi Get #1, i, networks Put #2, i - 1, networks Next i networks.mang = chuoi Put #2, banghi, networks.mang End If If oldlo < newlo And newlo < banghi Then For i = 1 To oldlo - 1 Get #1, i, networks Put #2, i, networks Next i Get #1, oldlo, networks chuoi = networks.mang For i = oldlo + 1 To newlo Get #1, i, networks Put #2, i - 1, networks Next i networks.mang = chuoi Put #2, newlo, networks.mang i = newlo + 1 Do While i <= banghi Get #1, i, networks Put #2, i, networks i=i+1 Loop End If

Trang 222

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

If oldlo > newlo Then For i = 1 To newlo - 1 Get #1, i, networks Put #2, i, networks Next i Get #1, oldlo, networks Put #2, newlo, networks For i = newlo To oldlo - 1 Get #1, i, networks Put #2, i + 1, networks Next i i = oldlo + 1 Do While i <= banghi Get #1, i, networks Put #2, i, networks i=i+1 Loop End If Close #1 Close #2 Kill filename6 Name filetam As filename6 tbnhap.Text = "Completed" End Sub 'THU TUC XOA MOT MANG UU TIEN Private Sub xoa(loca As Integer) Dim networks As netselect Dim j As Integer Dim i As Integer Dim banghi As Byte Open filename6 For Random As #1 Len = Len(networks) Open filetam For Random As #2 Len = Len(networks) banghi = LOF(1) \ Len(networks) For j = 1 To banghi If j <> loca Then Get #1, j, networks Put #2, j, networks Else Exit For Trang 223

TheGoiEbook.com

End If Next j Do While j < banghi Get #1, j + 1, networks Put #2, j, networks j=j+1 Loop Close #1 Close #2 Kill filename6 Name filetam As filename6 tbnhap.Text = "Completed" End Sub '**** Ham dung phim so trong menu Quick Access ***** Private Function clickquickaccess(so As Integer) As Integer Dim menuaccess As access Open filename3 For Random As #1 Len = Len(menuaccess) Get #1, so, menuaccess tbnhap.Text = Trim(menuaccess.feature) clickquickaccess = menuaccess.thutu 'orderinquick = 1 Close #1 End Function '**** Thu tuc dung phim trong menu Message list Private Sub clickmessage(so As Integer) Dim message As messages Dim banghi As Byte Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) If banghi < so Then tbnhap.Text = "Invalid Msg Number" messagelist = False Else Get #1, so, message tbnhap.Text = Trim(message.tin) messagenumber = 2 End If Close #1 End Sub Private Sub store_message() Trang 224

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Dim message As messages Dim banghi As Byte Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) If taomoi = True Then banghi = banghi + 1 message.tin = st message.sothutu = banghi 'messagenumber Put #1, banghi, message 'messagenumber Else Get #1, messagenumber, message message.tin = st Put #1, messagenumber, message End If tbnhap.Text = "Stored" 'message1 = False Close #1 End Sub Private Sub delete_message() Dim message As messages Dim banghi As Byte Dim j As Integer Open filename4 For Random As #1 Len = Len(message) banghi = LOF(1) \ Len(message) Open filetam For Random As #2 Len = Len(message) For j = 1 To banghi If j <> messagenumber Then Get #1, j, message Put #2, j, message Else Exit For End If Next j Do While j < banghi Get #1, j + 1, message Put #2, j, message j=j+1 Loop tbnhap.Text = "Deleted" Close #1 Trang 225

TheGoiEbook.com

Kill filename4 Close #2 Name filetam As filename4 End Sub 'KHOI TAO CONTROL Private Sub UserControl_Initialize() Dim news As entry Dim banghi As Integer Dim menuaccess As access Dim k As Integer Dim message As messages Dim networks As netselect Label2.Caption = Left(Time, 5) tbnhap.Text = "Menu" unlocked = "1234" securitycode = "000000" voicemailnumber = "4321" servicecentre = "130" pin2code = "13579" expiryperiod = "24" barpassword = "6789" volume.Picture = volume1(2).Picture vol = 3 prevent = 1 Open filename3 For Random As #1 Len = Len(menuaccess) menuaccess.feature = "Find Name?" menuaccess.thutu = 1 Put #1, 1, menuaccess menuaccess.feature = "Add to SIM?" menuaccess.thutu = 4 Put #1, 2, menuaccess menuaccess.feature = "Call Voicemail?" menuaccess.thutu = 12 Put #1, 3, menuaccess menuaccess.feature = "Battery Meter?" menuaccess.thutu = 11 Trang 226

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Put #1, 4, menuaccess menuaccess.feature = "Show Time/Date?" menuaccess.thutu = 8 Put #1, 5, menuaccess menuaccess.feature = "Adjust Ring?" menuaccess.thutu = 6 Put #1, 6, menuaccess menuaccess.feature = "Switch Line 1/2?" menuaccess.thutu = 7 Put #1, 7, menuaccess menuaccess.feature = "Vibrate On/Off?" menuaccess.thutu = 9 Put #1, 8, menuaccess menuaccess.feature = "Change Band?" menuaccess.thutu = 10 Put #1, 9, menuaccess Close #1 Open filename For Random As #1 Len = Len(news) news.name = "NHA" news.number = "8402631" news.location = 1 Put #1, 1, news news.name = "HUNG" news.number = "8570726" news.location = 101 Put #1, 2, news Close #1 Open filename4 For Random As #2 Len = Len(message) message.tin = "HELLO" message.sothutu = 1 Put #2, 1, message Close #2

Trang 227

TheGoiEbook.com

Open filename5 For Random As #1 Len = Len(networks) networks.mang = "FPT" Put #1, 1, networks networks.mang = "Phuong Nam" Put #1, 2, networks networks.mang = "SaigonNet" Put #1, 3, networks networks.mang = "VNN" Put #1, 4, networks Close #1 Open filefixed For Random As #1 Len = Len(news) banghi = LOF(1) \ Len(news) If banghi = 0 Then news.name = "NHA" news.number = "8402631" news.location = 1 Put #1, 1, news End If Close #1 Open filename6 For Random As #1 Len = Len(networks) banghi = LOF(1) \ Len(networks) If banghi = 0 Then networks.mang = "FPT" Put #1, 1, networks End If Close #1 End Sub 'KHI CONTROL KET THUC Private Sub UserControl_Terminate() Kill filename Kill filename3 Kill filename4 Kill filename5 Kill filename6 Trang 228

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

Kill filefixed End Sub

Trang 229

TheGoiEbook.com

PHAN IV:

KET LUAN
Vi nhng kien thc lanh hoi c trng va s giup cua cac Thay, Co trong khoa cong nghe thong tin trng ai Hoc Ky Thuat Thanh Pho Ho Ch Minh. Va s hng dan giup tan tnh cua thay Nguyen Cao Tr, en ay chung em xin hoan thanh luan van cua mnh. Tuy luan van hoan thanh cha c ln lao g, nhng em cung hy vong luan van nay cung la mot phan tai lieu tham khao nho nho giup cho nhng ngi hoc va lap trnh Web vi Visual Basic.

Trang 230

TheGoiEbook.com

Lap Trnh Web Vi Visual Basic

PHAN V :

TAI LIEU THAM KHAO


Ky nang lap trnh Visual Basic 6.0. Microsoft Developer Network.

Trang 231

You might also like