Documente Academic
Documente Profesional
Documente Cultură
TITLE
SCHOOL EDUCATIONAL WEBS
CANDIDATE`S INDEXNO/NAME
DIT/06/032 /W.H.A.U.ARIYARATNE.
SUPERVISOR`S NAME
DATE OF SUBMISSION
22/10/2006
DECLARATION
I certify that this dissertation does not incorporate, without acknowledgement, any material previously submitted for a degree or diploma in any University and to the best of my knowledge and belief, it does not contain any material previously published or written by another person or myself except where due reference is made in the text. I also hereby give consent for my dissertation, if accepted, to be made available for photocopying and for interlibrary loans, and for the title and summary to be made available to out side organizations. Signature of Candidate Date//
.. Name of the Candidate .. Countersigned by: Signature of Supervisor(s) Date: /. / . Name of Supervisor(s) II
ACKNOWLEDGEMENTS
Our Thanks Goes To
MR DAMSO KALANSOORIYA (SOFTWARE ENGINEER) WWW.SCHOOLS.COM (TUTORIAL PROVIDER) TEACHERS SUPERVISOR EVERYONE BEHIND THSEEN AND WHO ACTIVELY INVOLVED.
III
IV
TABLE OF CONTENTS
CHAPTER
CHAPTER 01 INTRODUCTION.
PAGE
1
1.1 INTRODUCTION TO THE CHAPTER. . 1. 2 P R O J E C T I S A B O U T 1.3 IMPORTANCE OF THE PROJECT.. 1.4 GOALS AND OBJECTIVES 01 01 01 02
1.5 SYSTEM REQUIREMENTS02 1.6 USER REQUIREMENTS (CLIENT SIDE)..02 1.7 STRUCTURE OF THE DISSERTATION TEXT.03 CHAPTER 02 BACKGROUND. 2.1 INTRODUCTION.. 04 2.2 SIMILAR WEB SITES AND THEIR FEATURES.. 04
Figure 2.2.1 (Google Search Results)04 Figure 2. 2. 2 Figure 2. 2. 3 Figure 2.2.4 (Kids Web Page)05 (Web development for schools06 (Example WEB PAGES)..06
2.3 BRIGHT IDEAS BORN FROM..06 EXISTING WEB SITES. 2.4 TAKING THE CHALLENGE OF SCHOOL 07 EDUCATIONAL WEBS.
1
3.1 INTRODUCTION 3.2 REQUIREMENT ANALYSIS
Fig 3.2.1 Design view of the parents` table..
08 08
08
Fig 3.2.2 Design view of the teachers` table.09 Fig 3.2.3 Design view of the tense table.09
VI
TABLE OF CONTENTS
PAGE
CHAPTER 05 IMPLEMENTATION
1
5.1 INTRODUCTION.17 5 . 2 I N S T A L L A T I O N 17
5.2.1 Preparation Of Software Environment.17 5.2.2 Client Side And Other Software Requirements. (Table).. 18 5.2.3 Hardware.18
5.3 SETTING UP THE WEB SITE..19 5.4 DEVELOPMENT TOOLS AND REUSABLE CODES..19
5 . 4 . 1 D e v e l o p m e n t T o o l s ..19 5.4.2 Reusable Codes.19 5.4.3 Platform Independence19
CHAPTER 06 TESTING 6.1 INTRODUCTION.20 6.2 FORM VALIDATION TEST. (Screenshot and table).20
6.2.1 Case 1..21 6.2.2 Case 2(Screenshot)21
VII
TABLE OF CONTENTS
PAGE CHAPTER 07 EVALUATION 7.1 INTRODUCTION. 23 7.2 KNOWLEDGE ACQUIRED 23 7.3 OBJETIVES ACHIEVED. 23 7.4 FURTHER IMPROVEMENTS TO BE DONE.24 7.5 DEVIATIONS FROM THE ORIGINAL PLAN24 7.6 NON-ACHIEVED OBJECTIVES.25 CHAPTER 08 CONCLUSIONS 8.1 INTRODUCTION...26 8.2 CRITICAL APPRAISAL26 8.3 FURTHER DEVELOPMENT26 8.4 PROBLEMS BEYOND THE CONTROL..26 8.5 NON-ACHIEVED OBJECTIVES.27 8.6 UPDATING..27 REFERENCES.. .28
A p p e n d i x A - D e s i g n D o c u m e n t a t i o n .29 Figure 1(parents` table)..29 Figure 2(Teachers` table)29 Figure 3(sentences)..30 Appendix B-System Documentation..31 Appendix C-User Documentation32. Figure 1.32 Figure 1.33 Appendix D- Management.34 Appendix E-Code Listing.35
VIII
C H AP T E R 1 - I n t r o d u ct i o n .
1.1
It is discussed here, actually what the project is about. First the case for the need for this project is introduced. Then goals and objectives are explained. Thirdly user and system requirements are taken into account. At last structure of the dissertation is
1. 2 P R O J E C T I S A B O U T .
Actually it is a web site that has been created to support the Sri Lankan school education system. It contains lesson materials, everyones section, and psychological counseling services via email and kids section. Registration for teachers and parents is provided too. So site has given the title school educational webs
1.4 GOALS AND OBJECTIVES. Help the srilankan students in homework and develop their skills in extra activities. Help srilankan teachers and parents to build good civilians of students by giving physiological advises concerning student problems. Enhance the coordination among teachers, parents and students.
Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 References. Appendix A Appendix B Appendix C Appendix D
Background of the project. Analysis and Design. User Interfaces. Implementation Testing. Evaluation. Conclusions. References. Design Documentation. System Documentation User documentation. Management. Code listing.
Appendix E
CHAPTER 2 -Background.
2.1 INTRODUCTION.
In chapter 2, project web site and other similar web sites are compared. Thereby birth of the project web site is explained. How, strongly features of existed work help the developer and further developments done to overcome the weaknesses of the existing work are explained within four pages.
Figure 2.2.1
But when clicked most of the links in the very first page, it resulted in having sites under following categories, 1. Web site creation for schools. 2. Kids website. 3. Websites for teachers. 4. High school web sites. 5. Primary school websites.
Figure 2.2.2
Figure 2.2.3
Continued
Screen shots show the web pages of web sites that provide webdeveloping knowledge for schools. So their ideas seem commercial by asking teachers and students to pay in order to provide it solutions. Actually these are not the expected results for the given search text, from the point of view of a Sri Lankan.It is better if some party could have created a web site that helps School children in their education and cooperate the teachers, students and parents within the same Site.
Figure 2.2.4
C H AP T E R 3 - A n a l y s i s A n d D e s i g n .
3.1-INTRODUCTION.
It will be explained about requirement analysis, fact-finding database design and dataflow of the project using diagrammatic illustrations.
3.2 REQUIREMENT ANALYSIS. As the project proceeds the necessity of a database arisen. When it was to register parents, and teachers and parents details had to be saved in a database. So separate tables for teachers and parents were created in the same database. Later another table was added to the database to keep example English sentences. There were no relationships created among tables, as it was not possible. Teacher and parent data had to be gathered across the each registration form. The sentence table was filled manually with reference to Standard English grammar publications. Tables, parents teachers and sentence are shown in the design view by following figures respectively. (Fig 3.2.1,fig 3.2.2 and fig 3.2.3).
Fig 3.2.1
8
Fig 3.2.2
Fig 3.2.3.
Start.
Is data valid?
No.
Yes .
No.
Yes.
End.
Fig 3.3.1
10
Start.
Input password
No.
No. Is it correct?
End.
Fig 3.3.2
11
C H AP T E R 4 - U s e r I n t e r f a c e s .
4.1 INTRODUCTION
Here it is illustrated that how user interacts with interfaces. Only basic interfaces are used and why they are so created is explained. 4.2.1 Homepage.
4.2 INTERFACES
1. Banner carries the main objective of the project graphically. That is school education is commonly about sports, science, languages, arts, nature and human behavior. Combination of photos represents that spirit. 2. Animated banner header has been used to absorb the web visitors` attraction and direct the curiosity towards the objective covered on the web site. 3. Animated flash movie clip stands for first glance acknowledgement of school educational structure. That is involvement of students, teachers and parents. 4. Pop-up menus can navigate user easily to different pages categorized under each button. 5. Everyones pane was added that anyone interested in information technology can click the hyperlinks and gather Knowledge, provided in pages. 6. Main details of the page go here.Go-upand home buttons have been added only in lengthy pages depending on the case.
12
Data entry is done across a form. You can enter data into text fields and clicking send button (located at the end of the form) carries data to database 4.2.4 Executable Module Linked Page.
Here hyperlinks were given to executable vb modules. When clicked, it will be asked to save or open the module (Download window).this page is found .Kids-> games.
13
Download window.
Password entry is required in the text field. Password logins were created to avoid the students from entering adults communication interfaces. So thereby privacy is provided to teachers and parents while keeping away the students from unnecessary access.
14
This page can be encountered by going it simple->ms-word. This doesnt have Common format that was in the home page. Here it is needed big space in the web page to view the screenshot clearly. So full-page area has been used. But still web page banner header animation was added. Otherwise the theme could have been completely destroyed. This animation has been hyper linked to homepage. 4.2.7 Slide Show Interface. Frameset was used here. Because this page shows a slide show that slides can be selected from the right side pane. It includes screen shots too. So the theme was restricted as in the previous case and
15
This interface is designed to search a database on requested option. Here, if the User needs to view present tense sentences of the database, he have to select the option present in the option button and press go button. Very simple search interface has been used to make the search user-friendly. Searched results are displayed in tabular form in order to compare the data easily. For an example active voice and passive voice sentences can be compared within the same data record.
16
C H AP T E R 5 - I m p l em e n t a t i on
5.1 INTRODUCTION.
Installation of basic scripts and html codes are comprehensively explained within three pages. So complete codings are not included but available in appendix E.The implemented environment (hardware and software), development tools used and platform independence are discussed too.
5.2 INSTALLATION.
Before setting up the website, major concern should go towards the software and hardware capabilities of the computer which we are going to launch our web site from. Here a server environment should be created. With out a web server there is no hope for a website. Here server side scripting language is Asp (Active server pages) script. So iis sever installation is a must. 5.2.1 Preparation Of Software Environment. For an example if the system (computer) Os (operating system) is windows Xp follow the steps given. 1. Click start. Click control panel click add or remove programs. 2. Insert the windows Xp cd to the drive. (Your operating system is on the cd). 3. Click on add or remove windows components. 4. Wait while dialog box appears. 5. Scroll the list to find IIS (Internet Information Services) server. 6. Tick the leading checkbox and select that line. 7. Click next button. 8. Complete the installation by clicking finish. Note- web server should be installed from the media that Includes the same version of the Os already in the System. Now it is required to test whether the web server was properly installed. Click start button->click Run. Type http://localhost If welcome page and documentation page appear, installation is Successful. 5.2.2 Client Side And Other Software Requirements. 17
For testing purposes, server and client computers should equipped with several soft wares. They follow, SOFTWARE Flash player 8 SERVICE. Plays flash movie clips. (Flash movie clip is located in top-right side corner of the page) Ms access is for server side database administration. Ms word and ms excel provides objects that are required by vb executable modules. (There are expression calculator, Spell checker and games in the form of vb executable modules) Web browser is needed in viewing web pages
Microsoft office. (Since this is a school academic website it is reasonable expecting Microsoft office.)
Internet explorer.
5.2.3 Hardware. This is not very hardware sensitive site. But it has run successfully with the following specifications, 1. Intel Pentium 4 microprocessor. 2. 256MB Ram. 3. 64MB graphic card. 4. Modem and utp cable for dial-up Internet connection. 5. Multimedia Controllers Actually processor speed and Ram capacity affect, because some detailed pages contain many graphics. It may take long time to load pages on slower machines.
18
Now open the installation media (this may be a cd). The major work has been saved in folder INDIVIDUALPROJECT.copy that folder into wwwroot folder, which has path, c:\inetpub\wwwroot, if your operating system was installed in drive C. Otherwise the drive letter changes After being copied, its full path follows, C:\Inetpub\wwwroot\INIDIVIDUALPROJECT. Now identify the folder named DETINDI in the installation media. Copy that folder to drive C. Now next task is running our work. Click the start button. Click on run. In the run command window type following and click ok button. http://localhost/individualproject/index2.html Now things will work fine.
19
C H AP T E R 6 - T e s t i n g .
6.1 INTRODUCTION.
Here a brief description of, how the web site was tested and responses for test data have been included. So most interactive pages were chosen.
Data is tested as user deselects the selected text field. It will be prompted, message box containing an error message. Text field name. Name. Address Phone no. Test data data Test 123123 67568 Dsdfsdfsdfsf 123123 Error message
Enter text only Address contains text as well. Enter numbers only. Srlankan phone numbers have 10 digits including leading zero. Enter numbers only.
Age
Qwe 12
Out of valid age range refer registration info. Note As the user closes the text box the invalid data is erased too. Incorrect data has been tested above.
20
6.2.1 Case 1 If the user clicks send button without entering data, he will be prompted to error detection page (which tells the story and provides a link way back to form). Data entry under same name is avoided too. If it happened the user will be prompted to preceding error page. Thereby data repetition has been avoided. All the text fields should be filled otherwise same story will be repeated. As a result of all, high precision data will find its way to the database.
Error Detection Page Hyper link given to previous page On successful data entry user can send data by clicking send button. Approved sample data follows, Name- Amila Upendra Ariyaratne. Address-Thalgasyaya, Akmeemana. Phone no-0914920421 Age 23 The date field shouldnt be filled. But at least be selected. As user deselects, users system time will be auto inserted. This trick is done to encourage the user on date of login. Remaining options can be selected as you wish. On submission of preceding d a t a t h e nu s h r ip a p s wm r d efd etlo i t I t ee s s ro o pt i d a p a g e t h aet xtp e cs ed a t a wn tse r s i x ell t d to e a is a d d e d sc h a reasc tfe rlsl y .n d c l i c k ucc s u a the check. If the s 6 . 3 P A S S p a s s R o r dLiO G I N T E S T . WOw D not correct the error will be shown in the same page and text field will be cleared. Common errors and corresponding 21 responses are given in table 6.3
The page that tells data was added successfully. 6.2.2 case 2
Error message Enter six characters. Enter six characters. Invalid password
Table 6.3
On successful password entry the user will be greeted and email link will be shown.
Note All these validation were done for user convenience and server security. Thereby user privacy is preserved and illegal access has been avoided.
C H A P T E R 7- E v a l u a t i o n
7.1 INTRODUCTION
Here 1. 2. 3. 4. 5. it is carried out a critical discussion on following, Knowledge acquired. How far the web site has reached its objectives. Things that require further development. Deviations from the original plan. Non-achieved objectives.
22
7.6 NON-ACHIEVED OBJECTIVES. There was an idea to develop chat room for teachers and Parents. But it took a long time to find suitable codes and problems remained unanswered within the given time period. Finally chartroom was replaced by e-mail.
24
C H AP T E R 8 - C o n c l u s i o n s
8.1 INTRODUCTION.
This chapter covers the summery of the whole project in brief. Chapter includes, 1. Critical appraisal of the work. 2. How someone can develop the work. 25 3. Problems beyond the control of the developer. 4. Updating.
8.5 NON-ACHIEVED OBJECTIVES. There was an idea to develop chat room for teachers and Parents. But it took a long time to find suitable codes and problems remained unanswered within the given time period. Finally chartroom was replaced by e-mail.
8.6 UPDATING.
As an academic web site, updating is essential at least once a month. Only updating the lessons are not enough. Slight changes should be applied to the theme too. For an example on a vesak poya day it is nice to see gif animation of a vesak lantern in each page. But changes should be done without harming the main objective.
Data view of database tables whose design views are shown in chapter 3
28
Figure 3(sentences) Note All the dataflow diagrams are comprehensively given in chapter 3(3.2). primary key is represented by small key logo preceding the corresponding field. (Design view chapter 3)
29
Note1- Setting up of the web site has been comprehensively explained under section 5.1(chapter 5)
Note2-Section 7.5 gives comprehensive details to those who wish to continue developing the site.
Note 3-you can uninstall the iis server as follows. 1. Click start. 2. Go and click control panel. 3. Click add or remove programs. 4. Click add or remove windows components and wait until relevant dialog box appears. 5. There, untick the check box preceding the label iis server and select the label. 6. Click next button. 7. Click finish.
30
Figure 1
In the initial window text area type your sentence or word in sentence case or in lowercase. Then click spell check .now user will be prompted a separate window containing suggestions. There user can change the text or take another decision. Note1-sample sentence should be deleted before user types.
31
Operating the smart expression calculator. Locationstudents->maths. (It is a hyperlink given within the web page) Initial window follows,
Figure 2
User should type the sum as an expression, in the text field given. Then click evaluate. Result will be appeared in the lower text field. Sample expression has been given in the initial window. So delete it before fresh expression entry.
32
Appendix D- Management
At least once an hour website administrator should respond to new registrants in order to keep running the manually driven psychological counseling services. All detailed pages should be updated at least twice a week, since this is an academic site.
33
34
width:575px; height:383px; z-index:0; left: 110px; top: 160px; } #Layer6 { position:absolute; width:86px; height:381px; z-index:0; left: 15px; top: 156px; } .style1 { color: #8080C0; font-weight: bold; } .style2 {font-family: Arial, Helvetica, sans-serif} #Layer7 { position:absolute; width:200px; height:115px; z-index:3; top: 14px; left: 189px; } #Layer8 { position:absolute; width:251px; height:154px; z-index:3; left: 574px; top: 44px; } #Layer9 { position:absolute; width:145px; height:100px; z-index:3; left: 641px; top: 9px; } #Layer10 { position:absolute; width:184px; height:95px; z-index:3; left: 589px; top: 0px; } #Layer11 { position:absolute; width:156px; height:78px;
35
z-index:4; left: 240px; top: 16px; } .style4 {font-family: Georgia, "Times New Roman", Times, serif; } #Layer12 { position:absolute; width:252px; height:141px; z-index:1; top: 78px; left: 296px; } #Layer13 { position:absolute; width:143px; height:115px; z-index:1; left: -286px; top: 11px; } #Layer14 { position:absolute; width:90px; height:109px; z-index:5; left: 178px; top: 101px; } .style5 {color: #FF0080} .style6 {color: #A80FCE} --> </style> <script language="JavaScript"> <!-function mmLoadMenus() { if (window.mm_menu_0101122831_0) return; window.mm_menu_0101122831_0 = new Menu("root",66,16,"",10,"#CC0000","#990033","#85AECF","#B1C3D9" ,"center","middle",3,0,1000,-5,7,true,true,true,0,true,true); mm_menu_0101122831_0.addMenuItem("HOME","location='INDEX2. HTML'"); mm_menu_0101122831_0.fontWeight="bold"; mm_menu_0101122831_0.hideOnMouseOut=true; mm_menu_0101122831_0.bgColor='#63CA69'; mm_menu_0101122831_0.menuBorder=1; mm_menu_0101122831_0.menuLiteBgColor='#33FFCC'; mm_menu_0101122831_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_0101131355_0 = new Menu("root",79,16,"Verdana, Arial, Helvetica, sansserif",10,"#CC0000","#990033","#85AECF","#B1C3D9","center","midd le",3,0,1000,-5,7,true,true,true,0,false,true); mm_menu_0101131355_0.addMenuItem("MATHS","location='MATHS .HTML'");
36
mm_menu_0101131355_0.addMenuItem("SCIENCE","location='SCIE NCE.HTML'"); mm_menu_0101131355_0.addMenuItem("ENGLISH","location='gram. html'"); mm_menu_0101131355_0.addMenuItem("RELIGION","location='relig ion.html'"); mm_menu_0101131355_0.addMenuItem("MUSIC","location='MUSIC. HTML'"); mm_menu_0101131355_0.fontWeight="bold"; mm_menu_0101131355_0.hideOnMouseOut=true; mm_menu_0101131355_0.bgColor='#63CA69'; mm_menu_0101131355_0.menuBorder=1; mm_menu_0101131355_0.menuLiteBgColor='#33FFCC'; mm_menu_0101131355_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_0101134010_0 = new Menu("root",84,16,"",10,"#CC0000","#990033","#85AECF","#B1C3D9" ,"center","middle",3,0,1000,-5,7,true,true,true,0,false,true); mm_menu_0101134010_0.addMenuItem("PICTURES","location='pictu res.html'"); mm_menu_0101134010_0.addMenuItem("SONGS","location='songs.ht ml'"); mm_menu_0101134010_0.addMenuItem("GAMES","location='games.h tml'"); mm_menu_0101134010_0.addMenuItem("SPELLING","location='spell .exe'"); mm_menu_0101134010_0.addMenuItem("GOOD KID","location ='goodkid.html'"); mm_menu_0101134010_0.addMenuItem("HOBBIES","location='hobbi es.html'"); mm_menu_0101134010_0.fontWeight="bold"; mm_menu_0101134010_0.hideOnMouseOut=true; mm_menu_0101134010_0.bgColor='#63CA69'; mm_menu_0101134010_0.menuBorder=1; mm_menu_0101134010_0.menuLiteBgColor='#33FFCC'; mm_menu_0101134010_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_0101134618_0 = new Menu("root",78,16,"",10,"#CC0000","#990033","#85AECF","#B1C3D9" ,"center","middle",3,0,1000,-5,7,true,true,true,0,false,true); mm_menu_0101134618_0.addMenuItem("REGISTER","location='PAR ENTREGIS.HTML'"); mm_menu_0101134618_0.addMenuItem("LOGIN","location='http://localhost/INDIVIDUALPROJECT/LOGTE_PA.AS P'"); mm_menu_0101134618_0.fontWeight="bold"; mm_menu_0101134618_0.hideOnMouseOut=true; mm_menu_0101134618_0.bgColor='#63CA69'; mm_menu_0101134618_0.menuBorder=1; mm_menu_0101134618_0.menuLiteBgColor='#33FFCC'; mm_menu_0101134618_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_0101135403_0 = new Menu("root",78,16,"",10,"#CC0000","#990033","#85AECF","#B1C3D9" ,"center","middle",3,0,1000,-5,7,true,true,true,0,false,true); mm_menu_0101135403_0.addMenuItem("REGISTER","location='TEA CHERREGIS.HTML'");
37
mm_menu_0101135403_0.addMenuItem("LOGIN","location='http://localhost/INDIVIDUALPROJECT/LOGTE_PA.AS P'"); mm_menu_0101135403_0.fontWeight="bold"; mm_menu_0101135403_0.hideOnMouseOut=true; mm_menu_0101135403_0.bgColor='#63CA69'; mm_menu_0101135403_0.menuBorder=1; mm_menu_0101135403_0.menuLiteBgColor='#33FFCC'; mm_menu_0101135403_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_0101135953_0 = new Menu("root",128,16,"",10,"#CC0000","#990033","#85AECF","#B1C3D 9","center","middle",3,0,1000,-5,7,true,true,true,0,true,true); mm_menu_0101135953_0.addMenuItem("MSWORD","location='MSWORDLESSON.htm'"); mm_menu_0101135953_0.addMenuItem("POWERPOINT","location='POWERPOINT.htm'"); mm_menu_0101135953_0.addMenuItem("HTML SIMPLE","loca tion='htmllesson.html'"); mm_menu_0101135953_0.fontWeight="bold"; mm_menu_0101135953_0.hideOnMouseOut=true; mm_menu_0101135953_0.bgColor='#63CA69'; mm_menu_0101135953_0.menuBorder=1; mm_menu_0101135953_0.menuLiteBgColor='#33FFCC'; mm_menu_0101135953_0.menuBorderBgColor='#CCCCCC'; mm_menu_0101135953_0.writeMenus(); } // mmLoadMenus() function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+ +].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
38
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(! x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="JavaScript" src="mm_menu.js"></script> </head> <body onload="MM_preloadImages('hm.gif','korbevagott.gif','earth3.gif')"> <script language="JavaScript1.2">mmLoadMenus();</script> <table width="582" height="97" border="0" bordercolor="#5686B7"> <tr> <td width="576" height="93" align="center" valign="top" scope="col"><div align="center"> <div id="Layer11"><img src="BANGIF.gif" width="150" height="82" /></div> <img src="ariyarathna.gif" width="576" height="91" hspace="0" vspace="0" align="texttop" /></div></td> </tr> </table> <div id="Layer10"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=7,0,19,0" width="185" height="95"> <param name="movie" value="MV1.swf" /> <param name="quality" value="high" /> <embed src="MV1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="185" height="95"></embed> </object> </div> <table width="754" border="0"> <tr align="center" valign="top" bgcolor="#B1C3D9"> <td height="29" scope="col"><div align="center"><img src="HBUT.jpg" name="image1" width="88" height="27" border="0" usemap="#Map" id="image1" /><img src="STBUT.jpg" name="image2" width="88" height="27" border="0" usemap="#Map2" id="image2" /><img src="KIDBUTT.jpg" name="image3" width="88" height="30" border="0" usemap="#Map3" id="image3" /><img src="PABUTT.jpg" name="image4" width="88" height="27" border="0" usemap="#Map4" id="image4" /><img src="TE2BUTT.jpg" name="image5" width="90" height="27" border="0" usemap="#Map5" id="image5" /><img src="ITBUTT.jpg" name="image6" width="90" height="27" border="0" usemap="#Map6" id="image6" /></div></td> </tr> </table> <map name="Map" id="Map"> <area shape="rect" coords="6,3,81,21" href="#" onmouseover="MM_showMenu(window.mm_menu_0101122831_0,7,27, null,'image1');MM_swapImage('image1','','hm.gif',1)" onmouseout="MM_startTimeout();;MM_swapImgRestore()" /> </map>
39
<map name="Map2" id="Map2"><area shape="rect" coords="7,6,85,23" href="#" onmouseover="MM_showMenu(window.mm_menu_0101131355_0,7,30, null,'image2');MM_swapImage('image2','','earth3.gif',1)" onmouseout="MM_startTimeout();;MM_swapImgRestore()" /> </map> <map name="Map3" id="Map3"><area shape="rect" coords="8,6,80,24" href="#" onmouseover="MM_showMenu(window.mm_menu_0101134010_0,8,35, null,'image3');MM_swapImage('image3','','korbevagott.gif',1)" onmouseout="MM_startTimeout();;MM_swapImgRestore()" /> </map> <map name="Map4" id="Map4"><area shape="rect" coords="10,6,80,24" href="#" onmouseover="MM_showMenu(window.mm_menu_0101134618_0,10,24 ,null,'image4')" onmouseout="MM_startTimeout();" /> </map> <map name="Map5" id="Map5"><area shape="rect" coords="7,9,82,19" href="#" /><area shape="rect" coords="9,4,80,18" href="#" /><area shape="rect" coords="6,5,81,21" href="#" onmouseover="MM_showMenu(window.mm_menu_0101135403_0,6,21, null,'image5')" onmouseout="MM_startTimeout();" /> </map> <map name="Map6" id="Map6"> <area shape="rect" coords="11,10,83,19" href="#" /> <area shape="rect" coords="7,4,86,21" href="#" onmouseover="MM_showMenu(window.mm_menu_0101135953_0,7,21, null,'image6')" onmouseout="MM_startTimeout();" /> </map> <div id="Layer4"><img src="sidepane1.jpg" width="75" height="437" /></div> <table width="97" height="430" border="5" bordercolor="#BF4080"> <tr> <td height="416" scope="row"><div align="center"> <div id="Layer6"> <p><strong><u>Everyone`s Pane </u></strong></p> <p><strong><a href="searchtip.html">Internet Search tips </a></strong></p> <p><strong><a href="INDECIPLINES.HTML">Internet Disciplines</a> </strong></p> <p class="style1"><a href="moannonvio.html">Movies for everyone</a></p> <p><a href="moannonvio.html">Choosing nonviolent entertainment on interne</a>t</p> <p><em>credits</em> goes to<span class="style6"> People behind the seen. </span></p> </div> <p> </p> </div></td> </tr> </table> <div id="Layer5"> <div align="center"><span class="style2"><u>......<strong>THE PAGE YOU WERE LOOKING FOR</strong>...</u>.. </span></div>
40
<p align="justify" class="style4">Teachers ! Students ! Parents! as our banner suggests graphically,the site has been focused on SRILANKAN SCHOOL EDUCATION system. </p> <p align="right" class="style4"> </p> <div id="Layer12"><img src="41248.JPG" width="253" height="141" /> <div id="Layer13"><img src="41227.JPG" width="141" height="171" /></div> </div> <div id="Layer14"><img src="book_worm.gif" width="87" height="108" /></div> <p align="right"> </p> <p align="right"> </p> <p align="right"> </p> <p align="right"><em>But it opens the door, to the universe of <span class="style5">Information Technology</span> </em></p> <p align="justify"><em>for every srilankan . Pages were arranged carefully since the surfers vary in age .Passwords are required by Teachers and Parents for <span class="style5">SUCCESSFUL LOGIN</span>. PASSWORDS WILL BE MADE AVAILABLE AFTER THE SURFER IS CONFIRMED. </em>You must have Ms office and Flash player installed on your system to work the functions correctly. </p> </div> </body> </html>
41
<SCRIPT type=text/vbscript> sub agch() //function declaration- checks age field onblur x=len(trim(document.frm.ag.value)) if x<>0 then if (isnumeric(document.frm.ag.value)=false) then /*checks whether the age is numeric value by using standard vb script function isnumeric*/ msgbox("ENTER NUMBERS ONLY") /*message box is declared to display conditionally*/ document.frm.ag.value=" " //text field is cleaned conditionally elseif (fix(document.frm.ag.value))<>(csng(document.frm.ag.value)) then //function fix drops decimal point and csng converts to strings msgbox("ENTER FULLNUMBERS ONLY") document.frm.ag.value="" elseif (document.frm.ag.value>65) or (document.frm.ag.value<18) then msgbox("OUT OF VALID AGE RANGE. REFER REGISTRATION INFO") document.frm.ag.value=" " end if end if end sub sub phch() //phone number validation function-on event onblur x=len(trim(document.frm.ph.value)) if x<>0 then if (isnumeric(document.frm.ph.value)=false) then msgbox("ENTER NUMBERS ONLY") document.frm.ph.value="" elseif (fix(document.frm.ph.value))<>(csng(document.frm.ph.value)) then msgbox("ENTER FULLNUMBERS ONLY") document.frm.ph.value="" elseif ((document.frm.ph.value)<0) then msgbox("INVALID ENTRY.RETYPE WITHOUT - ") document.frm.ph.value="" elseif (len(trim("0"& int(document.frm.ph.value)))<>10) then msgbox("SRILANKAN PHONE NUMBERS HAVE 10 DIGITS INCLUDING LEADING ZERO ") document.frm.ph.value="" end if end if end sub sub drch() //date entry-on event onblur document.frm.dr.value=DATE() end sub sub adch()
42
if (isnumeric(document.frm.ad.value)=true) then msgbox("ADDRESS CONTAINS TEXT AS WELL") document.frm.ad.value=" " end if end sub sub nach() //name validation function-on event onblur if (isnumeric(document.frm.na.value)=true) then msgbox("ENTER TEXT ONLY") document.frm.na.value=" " end if end sub </SCRIPT> </head> <body onload="MM_preloadImages('hm.gif','korbevagott.gif','earth3.gif')"> <div id="Layer20"> <CENTER> <H2><U>PARENT`S REGISTRATION </U></H2></CENTER> <FORM name=frm action=http://localhost/INDIVIDUALPROJECT/contpa.asp method=post> //declaration of the form <TABLE align=center> <TBODY> <TR> <TD>NAME </TD> <TD><INPUT onblur=nach() name=na></TD></TR> <TR> <TD>ADDRESS </TD> <TD><INPUT onblur=adch() name=ad></TD></TR> <TR> <TD>PHONE NO </TD> <TD><INPUT onblur=phch() size=11 name=ph></TD></TR> <TR> <TD>AGE </TD> <TD><INPUT onblur=agch() size=3 name=ag></TD></TR> <TR> <TD>DATE OF REGISTRATION </TD> <TD><INPUT onblur=drch() size=15 name=dr></TD></TR> <TR> <TD>SEX </TD> <TD><SELECT name=se><OPTION selected>MALE<OPTION>FEMALE</OPTION></SELECT></TD></ TR> <TR> <TD>OCCUPATION</TD> <TD><select name=occ> <option selected>GOVERNMENT</option> <option>PRIVATE</option> <option>OTHER</option> <option>NO</option>
43
</select></TD> </TR> <TR> <TD>NATIONALITY</TD> <TD><SELECT name=nan> <OPTION selected>SINHALA<OPTION>ENGLISH<OPTION>TAMIL<OPTI ON>OTHER </SELECT></TD></TR> <TR> <TD><B>PLEASE INCLUDE YOUR E-MAIL <BR>ADDRESS ALONG WITH THE ADDRESS<BR>(IF AVAILABLE).</B></TD></TR><BR> <TR> <TD><B>YOUR PASSWORD WILL BE SENT ON <BR>CONFIRMATION, VIA "E-MAIL" OR "SMS".</B></TD></TR> <TR> <TD><INPUT type=submit value=SEND></TD> <TD><INPUT type=reset value=Reset></TD></TR></TBODY></TABLE> </FORM>
44
45
46
If (len(trim(fname2)))<>0 then //len function checks length of the password If len(fname2)<>6 then Response.Write("<h4>enter six chracters!</h4><br />") else If fname2="pwe123" Then Response.Write("<H3>THANK YOU click the link below!</H3><br />") Response.Write("<A HREF=mailto:parentrequ@yahoo.com><H4>E-MAIL</H4></A>") else If (len(trim(fname2)))<>0 then Response.Write("<h4>INVALID PASSWORD</h4>") end if end if End If End If %> </center> <CENTER>TEACHERS AND PARENTS SHOULD REGISTER TO GET A PASSWORD. <BR> <P class="style3"> <FONT COLOR="RED"> ABOVE LOGINS ARE PASSWORD ENABLED <BR>TO AVOID STUDENTS FROM LOGIN AND DUE TO SECURITY REASONS.</FONT> <P class="style2">when you e-mail please include your name as given in the registration form. it may be very useful in solving your problem. our experts will counsel you via e-mail or sms or by phone.(depending on case ) </CENTER></div>
47
48
49