Tuesday 4 December 2012

❤ Developing Web Tadika Annur - Part II ^_^ ❤

Posted by kErTaS PeNseL at 18:17
Assalamualaikum and the very good morning ^_^ waaaaaaa baik betul kan aku..hehehe sebagai seorang muslim kite kene mulakan bicara dengan memberi salam..hehehe ^_^ ok u olls...u olls ingat x last entry kite post pasal ape? alaaaaaa xkan xingat kotttt..ingat laaaa..cepat laaa...(hahahaha such a gediks) huhu ok lah...dis entry aku nk sambung story telling pasal project 1 group aku yang develop web untuk tadika kitorg..aicewahh..hehe last entry aku cakap pasal user and page about web punye tadika kan..aku dah sentuh registration, survey yang mane aku apply list/menu and also radio button..then semua data yang dimasukkan tue akan diterima oleh sistem untuk direokdkan dan dapat dilihat oleh admin dalam database..n at last enrty before aku stop, aku ade tinggalkan persoalan mengenai siapa, apa itu admin right? now here, lets the journey begin..hehehe actually admin tue adalah org yang develop a web..dalam kes nie, admin untuk web tadika ni adalah aku, jannah n mas..untuk web nie, admin perlu log in, so that die dpt tgk sume info mengenai murid..boleh delete, dan juga update data murid and boleh juga menambah info dalam web..


kalo perhatikan betul2, dibawah news tue ade link untuk log in kan? ok function log in nie adalah untuk admin log masuk ke web nie for editing, updating, deleting, and so on..after click that link akan keluar page nie..


so, setiap admin akan ade their own username n password...how to create function log in for admin? 
untuk create function log in, step nye adelah seperti berikut;

1- open new php page
2- create table (invisible kan table tue..)
3- Insert text field
4- Insert Button (Login)
5- go to Server Behavior
6- Select User Authentication
7- Choose Log in User
8- so akan keluar new windows for us to fill in..select username and password..
9- after log in where to go? hoho where else to go, just directing it to the admin page..^_^

but, we also set up one page for the unsuccessful login user..same goes with the login page, but juat add on the new text which shows yang salah masuk password ke, salah username ke and so on...it is shown in the picture below..



here, sekiranya login xberjaya due to wrongly enter the password and so on, die akan keluar like abouve page..but if successful log in, akan terus ke admin page..admin page? ape itu admin page? tgk pic kat bawah..


admin page n user page nie same je actually..yang membezakannya adelah menu yang ade pada hujung sudut atas sebelah kanan..itu je yang beza dengan user...xnampak eh? meh aku nk zoom supaya korang nampak dengan jelas dan nyata nye..


kalo tgk kat pic atas neh..nie lah menu untuk admin..then kat bawah box news tue ade satu link untuk admin log out...then, tgk kat menu, untuk user akan ade registration page kan where parent kan register their children to enter this kindergarten right? but it is differ with admin page where dekat admin page akan ade student info...di bahagian student info ni akan paparkan nama murid..so here, admin boleh tgk borang setiap murid, update maklumat murid, dan boleh jugak delete record murid untuk murid yang dah pun tamat tadika or berpindah or anything else..^_^ 


pic kat atas ni shows us page student info..kat page nie akan keluar senarai nama murid yang dah telah berdaftar..so, here, admin boleh update record murid dan akan keluar murid nye profile untuk diupdatekan maklumat. 



pic atas neh adalah page dimana admin boleh update info murid setelah click pada nama murid yang berkenaan..untuk mengemaskini maklumat murid, kitorg create page update, then using the same form (jimat mase..hehehe)..

1- go to server behavior
2- click recordset(query)
3- go to binding, and drag all the info to the related field
4- go to server behavior
5- click update record
6- before apply update record, u need to insert hidden field..

how to insert hidden field?
1- go to insert
2- Click Form
3- Choose Hidden Field

Hidden field nie actually its behind the system..kene insert sbb nnt untuk id kite x update..so that's y kite letak hidden field for id..nie yang aku faham lah...hehe if ade mistake boleh leave ur comment later ok..so after dah edit/update, kite go for deleting process pulak..deleting process nie same jugak caranye mcm nk update..cume beza nye xyah nk create form mcm kite create form utk update record tadi..huhu

ok, now for deleting pulak ok..korg scroll balik tgk pic mengenai student info tadi...pastue korang akan nampak link 'Delete Record' kan? so, for admin untuk delete record pelajar, admin kene click on that particular button then akan appear page seperti pic dibawah..


so, if nk delete record murid, admin just click pada 'cross' button provided..when click on that particular button, akan appear window like this:


the, if u 're sure to delete that particular student's record, u just click ok..if not, just click cancel..so, here, how do we create this delete record page?

1- create new php page n save it as del_form
2- create table for student info
3- go to Server Behavior
4- click on Recordset(query)
5- Go to binding and drag in info to the provided field..
6- Go to Server Behavior
7- Click Repeat Region
8- Then Click also Go to detail page and customize the info needed..
mcm mane aku nk explain eh? erm mcm nie, if nk delete record, kene ade 'Go To Detail Page', so that nnt system akan delete semua data yang berkenaan..so, untuk tu, kite kene create satu page untuk del_form2..dalam page nie as usual just copy the form..do the recordset, then go to server behavior and choose delete record..so pada 'Go To Detail Page' nnt, directing kan pada del_form2..so sume data akan di delete..hehehe 
so, nie lah secara overview kitorg develop kitorng nye web untuk projek 1 kitorng..hehehe xtido mlm kot..punye nk siapkan cepat kitorg sanggup berjaga sampai pagi..at last projek nie siap jugak pukul 5 pagi....pengalaman yang sgt best...kalo belajar xrase sume nie sgt rugiiii..huhu bersama2 merempit dengan my classmate, Jannah pegi ke KTHO sbb mastermind kitorg stay kat KTHO..so buat kat bilik die lah..hehehe ape2 pun..antara moment yang xboleh dilupakan untuk MASTER level..huhu thumbs up to aku n my team project..yiehaaaa!!!!!

0 comments:

Post a Comment

 

kErTaS pEnSeL Template by Ipietoon Blogger Template | Gift Idea