0% found this document useful (0 votes)
401 views

Design and Implementation of An Advance Online Assignment System

The system was created to address challenges with the traditional paper-based assignment submission process, including assignments getting lost or damaged during submission. It allows students to upload assignments online for courses, and gives lecturers access to view and grade the submissions. The system was developed using PHP and MySQL. It aims to create a more organized process for assignment management that is convenient for both students and lecturers.

Uploaded by

Temitope Famusan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
401 views

Design and Implementation of An Advance Online Assignment System

The system was created to address challenges with the traditional paper-based assignment submission process, including assignments getting lost or damaged during submission. It allows students to upload assignments online for courses, and gives lecturers access to view and grade the submissions. The system was developed using PHP and MySQL. It aims to create a more organized process for assignment management that is convenient for both students and lecturers.

Uploaded by

Temitope Famusan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 198

DESIGN AND IMPLEMENTATION OF AN ADVANCE ONLINE

ASSIGNMENT SUBMISSION MANAGEMENT SYSTEM

A CASE STUDY OF IGNATIUS UNIVERSITY OF EDUCATION,

RIVERS STATE.
ABSTRACT

The paper examines the design and implementation of an advance

online assignment submission system. The challenges faced by

students in meeting assignment deadlines and cost associated with

printing hard copies of paper, necessitated the researcher to

develop a user friendly system to tackle these challenges. The

system allows students to submit assignments online to a

particular course lecture, who have access to the system for grading

purpose. The system was developed using PHP and MYSQL

technologies.
CHAPTER ONE

INTRODUCCTION

An online assignment handling is a system contained within the

Module virtual learning environment. The functionality of the

standard assignment handling module has been extended to cater

for all the Department's needs in terms of receiving assignments

from students, making them available to tutors to mark, returning

grades, comments and marked work to students and keeping

Registry and course administrators informed at all stages of the

process. Extension requests are an integral part of the system.

Universities, Polytechnics and colleges of education are considered

the main provider of knowledge in various fields. Various courses of

studies are taught in institutions, covering several fields including

applied Sciences, Math, Computer, Human Resource, and

Accounting. Most courses at universities consist of theoretical as

well as practical subject matter. To evaluate the level of


understanding and degree of comprehension among students,

assignments are often given.

Assignments are submitted by students either individually or in

groups. Assignment management involves collecting, marking, and

redistributing to students. Tregobov (1998) breaks the process

down into four stages: submission, recording, marking, and return.

Online assignment submission and management (OASM) involves

the use of the World-Wide Web, the Internet and computers to aid

this process (Jones, 2003). With traditional assignment submission

system, lots of problems arise especially when the students have to

submit the answers of the assignment to the lecturer. There may be

problems due to distance, time, or format of the assignment (written

or printed). Also every learning process requires administrative

support. Much of this administrative support is to some degree

transparent but if the latter is not well organized it could disrupt

the flow of learning between students and the staff.

As the educational world is moving faster and becoming more

competitive, almost every university started to use an online

submission system, or newer technologies to facilitate their task, to

have more time, and to be in pace with this fast moving IT world.
1.2 STATEMENT OF THE PROBLEM

Many reported failures in courses thought in the tertiary

institutions can be attributed to the careless of the course

representative or the teaching assistant who failed to submit an

assignment paper to the lecturer for marking (Jones, 2003). Such

careless could lead to a zero mark for the victim whose paper was

declared missing or simply not found. The manual method of

submitting assignments to the course lecturer or directly to the

lecturer in most Nigerian Universities is simply not effective as

these papers could get damaged or get missing due to the

carelessness of the course representative or the lecturer.

Moreover, assignments that are large in terms of pages or volume

could easily discourage a student from submitting due to financial

constraints brought about by high cost of printing an assignment.

All these problems highlighted are the main reasons the researcher

is developing an electronic assignment submission system to curtail


these challenges and make studying more enjoyable in our tertiary

institutions.
1.3 OBJECTIVES OF STUDY

The main objective of the paper is to design and implement an

online assignment submission system. Specific objectives of the

study are:

i) To develop a system for proper documentation of students’

record in the in the school system.

ii) To Create a database that will manage each student

assignment submission and allow access by lecturer to access

those files submitted by the student.

iii) To Create a quick search and advance search that the

student / lecturer when sorting a file.

iv) This proposed system is geared towards providing a system to

assure equal opportunity and impartial review of student

assignment submission

v) The system to be developed will provide a full school system by

that will take cares of faculty registration, lecturer registration,

course registration, department registration, users

registration, student registration, perform scores /grades

registration, test scores assessment and article entry.


1.4 SIGNIFICANCE OF THE STUDY

The study will aid lecturers to have a well-structured system for

assignment submission and grading. This will eliminate paper

work in their offices and improve on their efficiency in

managing student assignments. Unlike attaching files in a

mailing system like yahoo mail and gmail and sending to a

lecturer, this system systematically arranges assignments with

respect to courses, departments and students ID, creating a

more user-friendly environment for both the students and the

lecturers.

1.5 ORGANIZATIONAL PROFILE

Ignatius Ajuru University of Education (Formerly Rivers State

University of Education) was established by the University of

Education Law, No.8 of 2009 by the Rivers State Government. The

University is located in Port Harcourt, Rivers State capital which is

the second largest port city in Nigeria.

The University has two other campuses, St John’s Diobu along the

Port Harcourt – Aba Express Road near Garrison Junction. The St.
John’s Campus houses the University’s Business School with world

classrooms and pedagogic resources. The other Campus is located

at Ndele which is about 50 Kilometres from Port Harcourt, along the

Port Harcourt Ahoada road.

Ignatius Ajuru University of Education offers education and non-

education related programmes from bachelor’s degree to doctorate

in the fields of management Science, social Sciences, education,

humanities and vocational/technical studies. All programmes of the

University are recognized and fully accredited by the national

Universities commission.

1.6 DEFINITION OF TERMS

Assignment: a task or piece of work allocated to someone as part of

a job or course of study

Student: A student or pupil is a learner, or someone who attends

an educational institution.

Online: online" indicates a state of connectivity.


Lecturer: A lecture is an oral presentation intended to present

information or teach people about a particular subject, for

example by a university or college teacher.

Submission: the action of presenting a proposal, application, or

other document for consideration or judgement.


CHAPTER TWO

LITERATURE REVIEW

Electronic submission of assignments has been widely used by

information technology teachers for many years, taking the form of

email submission, transferring files to a specified directory or

providing marker access to directories and files on a unix system. A

brief search of the web still reveals many examples where these

practices are continued. They have had varying degrees of success

but the following comment taken from an email list is quite

revealing. “I was hoping to use an email-based submission system,

but there are still a few bugs. For now, you will need to put your file

in a directory on RCS (also accessible from CS workstations).”

A simple, modern form of electronic assignment marking is to use

MS Word which is popular and affords some advantages over

manual methods. Feedback comments can be provided through

hidden text, the Comment facility or by using different fonts and

colours. Changes can be examined through the Track Changes

facility. This may be satisfactory for written word assignments but


is totally inappropriate for computer programs, which are presented

in pure text form so that they can be compiled and run.

There are many examples of more sophisticated uses of electronic-

based assessment reported in the literature, ranging from online

questionnaire generators to comprehensive systems which may

include submission of assignments and examinations, plagiarism

checking and marking. The Hot Potatoes suite (Hot Potatoes, 2002)

includes six applications, enabling the user to create interactive

multiple-choice, short-answer, jumbled-sentence, crossword,

matching/ordering and gap-fill exe needed for programming

assignments.

One of the most successful examples of electronic courseware in

Information Technology is Course Master (Course Master, 2000), a

client-sever system for delivering course-based programming. It

provides functions for automatic assessment of students’ work,

administration of the resulting marks, solutions and course

materials. It is also able to detect plagiarism in students’ programs.

A student is able to develop a program, submit it to the server for

marking or evaluation and get instant feedback. CourseMaster is a


complete reimplementation after 10 years of experience using the

Ceilidh system (Foxley, 1999) in many institutions.

The BOSS system (Joy & Luck, 1998) is closer to OAS in terms of

its intended use. This system allows programming assignments to

be submitted online, tested against prescribed criteria and

manually marked in a secure environment. Recently facilities have

been added for electronic marking using ‘electronic marksheets’.

The project is driven by demands of increasing student numbers

and is restricted to particular operating systems.

The OAS provides all of the functionality of BOSS and improves on

this and other existing systems in a number of ways. Firstly, it was

motivated to some extent by large class sizes but more so by the

desire to provide more useful feedback to students, which has

proved to be popular. Secondly, the OAS may be used across all

units in a course of study and is not restricted to particular course

materials like Course Master. Thirdly, OAS is web-based which

represents a familiar and easy to use environment for students and

is not constrained by certain operating systems. Finally, lecturers

find that the F2M2 marking program is easy to use and many have

stated that it is time-saving compared to manual systems. F2M2 is


a Java application, which means that it can run on any system with

a Java Virtual Machine installed.

The electronic delivery of programming assignments also means

that, before the files are submitted to F2M2, they have already been

virus checked, are already compiled and may easily have been run

against a test suite. A further advantage of the OAS is that it is a

single integrated system unlike BOSS which is a suite of related

programs.

All teaching and learning requires administrative support (Jones

and McCormack, 1997). Much of this administrative support is to

some degree transparent but if performed inefficiently become

immediately obvious and can distract students and staff from the

learning process (Darbyshire, 2000). Online Assignment

Submission and Management (OASM) is one administrative task

that can consume much of a course coordinator’s time (Darbyshire,

2000).

Reducing the amount of time consumed, addressing other

problems, and benefiting from new advantages are some of the

reasons which have driven many staff to adopt and use OASM.
Darbyshire (2000) reports finding over 6000 hits from web search

engines for pages describing online assignment submission

procedures to students. In addition there is a large amount of

literature written on the topic. This section outlines some of the

reasons driving the adoption of OASM and provides an overview of

much of this previous work.


CHAPTER THREE

ANALYSIS AND DESIGN

3.0 INTRODUCTION

This chapter discusses the analysis and design of the

proposed system. It focus on the system structure and interactions.

It begins with a description of the system using software UML

diagrams such as the Use case and Activity diagrams. A program

specification showing the flow of commands and segmenting the

system into subroutines is also used to further describe the system.

The database structure is also discussed with entity relationship

diagrams (ERDs) showing the layout of the database.

3.1 DESCRIPTION OF THE SYSTEM

The proposed system is geared towards providing a system to

assure equal opportunity and impartial review of student

assignment submission, in the Ignatius Ajuru University of

Education, Rivers State. The online assignment submission system

to be developed allows for assignment submission by students,

faculty registration, lecturer registration, course registration,

department registration, users registration, student registration,


perform scores /grades registration, test scores assessment and

article entry. The rest of this section describes the components and

modules of the proposed system in terms of software UML

diagrams.

3.1.1 Use Case Diagram

One can visualize high level system functions of requirements

by drawing use case diagrams, which contain primary actors and

use cases. Actors are entities that interact with the system while

use cases are system functions that actors involve in.

Add student

Submit assignment

Search assignment

Delete assignment
user

Grades student

Fig. 3.1 USE CASE diagram for the proposed system


As seen in Fig. 3.1, there is one actor involved in the system.

This actor is normally the admin / lecturer.

3.1.2 Activity Diagram

Activity diagrams are graphical representations of work flows

of step wise activities and actor. In an activity diagram, the flow of

execution is modeled as activity nodes connected by activity edges.

Display UI

Enter Command

Yes
[Manage]

Upload file]
[Search]
Display UI

Enter Search Criteria


Enter Command Enter Student Password
ID

Search Database
Initiate file
explorer then
[Add student]
upload
Display results

Grade Display uploaded UI


Display student
Form

Enter student Info.

Store student info


in database
Fig. 3.2 Activity Diagram for the Proposed System

As seen in figure 3.2, the activity diagram of the proposed

system represents the sequence of activities that are involved in the

operation of the system. The activities shown are those to be carry

out by the user (recruitment manager).

3.2 PROGRAM SPECIFICATION

Main program

Begin main program

Enter command

If command = manage

Call manage subprogram

Else if command = search

Call search subprogram

Else if command = match

Call match subprogram

End if,
Manage subprogram

Begin

Enter command

If command = Add student

Call Addstudent subprogram

Else if command = faculty

Call Faculty Subprogram

End if;

End sub,

Search subprogram

Begin

Enter search criteria

Trim keywords

Search database using keywords

Rank search results

Display search results

End sub,
Match Subprogram

Begin

Enter student ID

Select student profile using ID

Search database using student profile

Grade student and display search results

Display all scores results

End sub

Add assignment subprogram

Begin

Display assignment UI form

Enter assignment details

Store details in database

End sub

Student performance subprogram

Begin

Display Grade UI form


Select student to grade

Enter grade for selected option

Store grade in database

End sub

3.2.1 FLOW CHART FOR THE PROPOSED SYSTEM

Flowcharts are employed to help visualize and document the

processes in a system and help the viewer understand these

processes. Fig. 3.3 shows the diagrammatic representation of the

system in terms of the process operations.


Start

Enter
Command

Is F Is F is
manage? assignm
search?
ent?

T T T

Display Job
Enter search Enter ID
criteria

Enter Upload/Search file to/in


Search Database
Command database

Display Results Display/download files


Is
is add F T
grade?
test?

T Display all student


F test
Display test
form

Select student and


Enter test grade
info.

Store grade for


Store test in
student
database

Stop

Fig. 3.3 Flowchart for the System


3.3 INTERFACE DESIGN

This section shows the aspect of the system design that

defines the interfaces and data that satisfy specified requirements.

LOGIN INTERFACE

LOGIN WINDOW x

User ID

PASSWORD

LOGIN

Fig 3.4 USER INTERFACE

Fig. 3.4login window for the proposed system


Fig. 3.4 shows the login in interface and the required information

for system access, the window is for both the system admin and

student.
ADD ASSIGNMENT INTERFACE

User Login

Name:

file:

Lecturer ID:

Faculty:
Title Of file:
SUBMIT

Fig. 3.4: Add Assignment Interfaces

This interface allows student to add assignment to the system


TEACHER WINDOW

User Login

NAME

Sex: Male female


age

Qualification

Salary

Send Data Cancel

Figure 3.6: Teacher Interface

The Teacher interface allows the administrator to register

teachers into the system. The actual form contains more

detailed information as seen in the application.


SEARCH WINDOW

SEARCH

Search field

Continue

Figure 3.7: Search Interface

The Search interface application search process in all the

window, where admin, lecturer and student can query the

database for result in respect to the page view.

The actual form contains more detailed information as

seen in the application.

Figure 3.8: STUDENT PERSONAL DETAILS

NAM SEX DISTRICT PARENT OFFERTYP CLASS STATU ACTION

E E S
Figure 3.8: Student personal Interface

3.4 DATABASE STRUCTURE

USERS
FIELD DATA TYPE DESCRIPTION
Id Int(11) ID auto-increment
Username Varchar(20) Username
Password Varchar(20) Password
User group Varchar(25) User group
Status Varchar(15) Status
Date-registered Date/time Date of registration

ACADEMIC YEAR
FIELD DATA TYPE DESCRIPTION

Academic (yr-id) Int (11) Academic year id

Academic (yr-name) Varchar (20) Academic year name

Academic (yr-date) Date/time Academic date

ADMISSION
FIELD DATA TYPE DESCRIPTION
Admission-ID Int (11) Admission ID
Institution-ID Int (11) Institution ID
Faculty-ID Int (11) Faculty ID
Dept-ID Int (11) Department ID
Title-ID Int(11) Title ID
First name Varchar(20) First name
Surname Varchar (20) Surname
Nationality Varchar (50) Nationality
Student no Varchar (15) Student number
Reg-no Varchar (20) Registration number
Academic year ID Int (11) Academic year ID
Course-ID Int (11) Course ID
Program-ID Int (11) Program ID
Sponsor-ID Int (11) Sponsor
Year Int (11) Year
Sex Enum (“M”, “F”) Sex
DOB Date Date of birth
POB Varchar (40) Place of birth
M-status Int (11) Marital status
Admission date Date Admission date
Admission-time Time Time of admission

ASSIGNMENTTABLE
FIELD DATA TYPE DESCRIPTION

ID Int (11) User ID

FILE_NAME Varchar (100) File name


File_tile Varchar (10o) File Tile

Faculties_id Varchar (100) Faculty id

Lecturer_id Varchar (100) Lecturer id

FACULTY
FIELD DATA TYPE DESC RIPTION

Faculty-id Int(11) Faculty ID

Institution-id Int (11) Institution ID

Faculty-name Varchar (200) Faculty name

Faculty-date Date/time Faculty date

RESULT
FIELD DATA TYPE DESCRIPTION

Result-id Int(11) Result ID


Staff-id Varchar (10) Staff ID

Course unit-id Int (11) Course unit ID

Course-work Varchar (5) Course work

Exam Varchar (5) Exam

Student no Varchar (10) Student number

Result-date Date/time Result date

ROLE
FIELD DATA TYPE DESCRIPTION

Role-id Int(11) Role ID

Role-name Varchar(100) Role name

Role-date Date/time Role date

SEMESTER
FIELD DATA TYPE DESCRIPTION

Sem-id Int(11) Semester ID


Sem-name Varchar (20) Semester name

Sem-date Date/time Semester date

STAFF
FIELD DATA TYPE DESCRIPTION

Staff-id Varchar(10) Staff ID

Staff type-id Int(11) Staff type ID

Staff-name Varchar(40) Staff name

Status Int(11) Status

Staff-date Date/time Staff date

STAFF TYPE
FIELD DATA TYPE DESCRIPTION
Staff type-id Int(11) Staff type ID

Staff type-name Varchar (20) Staff type name

Staff type-date Date/time Staff type date

STATUS
FIELD DATA TYPE DESCRIPTION

ID Int(11) ID

Name Varchar (15) Name

Date Date/time Date

PASS MARK

FIELD DATA TYPE DESCRIPTION


ID Int(11) ID

Pass mark Int(11) Pass mark

PROGRAM
FIELD DATE TYPE DESCRIPTION
Program-id Int(11) Program ID

Program-name Varchar(20) Program name


Program-date Date/time Program date

REGISTRATION DEAD LINE


FIELD DATA TYPE DESCRIPTION
ID Int(11) ID
Date Date Date
Date 2 Date Date 2
Yearost-id Int(11) Yearost-id
Sem-id Int(11) Semester-id
Academic-yr Varchar912) Academic year

REGISTRATION
FIELD DATA TYPE DESCRIPTION
Takes-id Int(11) Takes ID
Academic-yr-id Int (11) Academic year ID
Yearost-id Int (11) Yearost ID
Sem-id Int (11) Semester ID
Reg no Varchar (20) Registration number
Student-no Varchar (15) Student number
Course-id Int(11) Course ID
Course unit-id Int (11) Course unit ID
Takes-date Date Takes date
Take-time Time Time taken

COURSE
FIELD DATA TYPE DESCRIPTION
Course-id Int (11) Course ID
Faculty-id Int (11) Faculty ID
Dept-id Int (11) Department ID
Course-code Varchar(20) Course code
Course-name Varchar(200) Course name
Duration-id Int (11) Duration ID
Tuition Int (11) Tuition
Course-date Date/time Course-date

GRADES
FIELD DATA TYPE DESCRIPTION
Id Int(11) Id
Upper Decimal(5,2) Upper credit
Lower Decimal(5,2) Lower credit
Grade Varchar(5) Grades
GP Decimal(5,3) Grade point
ARTICLE ENTRY
FIELD DATA TYPE DESCRIPTION
Id Int(11) Id
Student –no Int(11) Student number
Reg-no Varchar(12) Registration number
Academic-yr Int(11) Academic year
Yearost-id Int(11) Year of start id
Sem-id Int(11) Semester id
Date sent Date Date sent
Time sent Time Time sent
status Varchar(20) Status
VIEW STAFF
FIELD DATA TYPE DESCRIPTION
Staff-id Varchar (10) Staff-ID
Staff-type Varchar (20) Staff-type
Staff-name Varchar (40) Staff-name
Status Varchar (15) Status
Staff-date Date/time Staff date

VIEW TEACHERS
FIELD DATA TYPE DESCRIPTION
ID Int (11) ID
Subject Varchar (100) Subject
Staff Varchar (40) Staff
Date Date Date

VIEW USERS
FIELD DATA TYPE DESCRIPTION
Id Int (11) ID
Username Varcahr (20) Username
Password Varchar (20) Password
User group Varchar (25) User group
Status Varchar (15) Status
Date-registered Date/time Date registered

TEACHES
FIELD DATA TYPE DESCRIPTION
Teaches-id Int (11) Teaches ID
Course unit-id Int (11) Course unit ID
Staff-id Varchar (10) Staff ID
Teaches-date Date Teaches date
CHAPTER FOUR

SYSTEM IMPLEMENTATION

4.1.0 INTRODUCTION

This chapter will focus on the implementation of the system. It

discusses the features and choice of the programming language

used for the implementation of the system in this research. Also

discussed in this chapter is the system testing strategies. The target

computer requirements are explained as well as the maintenance

issues that should be considered.

4.2.0 FEATURES AND CHOICE IMPLEMENTATION

LANGUAGE

The programming language used in the implementation of this

system is PHP (Hypertext Preprocessor), while the back end

database engine adopted was MYSQL.

PHP is a general purpose server-side scripting language

originally designed for web development to produce dynamic web

pages. It has also evolved to include a command line interface

capability and can be used in stand-a lone graphical applications.


The following features make PHP a preferred implementation

language for this project:

PHP is an open source language released under the PHP

license and includes hundreds of classes and methods such as

language support classes for advanced language features like

Stings, Arrays, Threads, and Exception Handling.

i. The PHP programming language delivers software-as-a-service

(SAAS), and it is run on a web server, making its execution

dependent on a web browser. This feature allows for software

created with PHP (as that in this research) to be platform

independent because it functions independent of the type of

operating system running on the target machine.

ii. PHP has evolved to include a command-line interface capability

and can be used in stand alone graphical applications. PHP can

be deployed on most web server and also on a standalone shell of

almost every operating system and platform free of charge.

iii.PHP5 as used in this research includes new features such as

improved support for object – oriented programming.

MYSQL is a relational database management system written in

C and C++, that runs as a server providing multiuser access to a


number of databases. MYSQL is used basically to create a relational

database structure on a server in order to store data or automate

procedure. The following features make MYSQL suitable for this

research.

i. MYSQL is platform independent and it can run under a variety

of operating systems.

ii. It contains multiple storage engines that allow the

programmer to choose what is most effective for each table in

the application.

iii. MYSQL is considered to be a very fast database management

system delivering a multiuser and robust QL database server.

4.3.0 SYSTEM TESTING

This section is concerned with testing and debugging of the

programs and general processes involved in achieving the objectives

of the system requirement. System testing is conducted on a

complete integrated system to evaluate the system’s compliance

with its specified requirements. So we can also refer to the system

testing phase as the investigatory testing phase of the software


development life cycle. The system testing strategies used in this

system include the unit test and integration test.

4.3.1 Unit Test

The primary goal of unit testing is to take the smallest piece of

testable software in the application, isolate it from the remainder of

the code and determine whether it behaves exactly as it is expected

to. Developers who seek to understand the functionality provided by

a unit and how to use it can look at the unit test to gain a basic

understanding of the unit’s function. In this research, units test

were carried out on the various parts of the system and necessary

corrections were implemented on the resulting errors.

4.3.2 Integration Test

Integration testing is a logical extension of unit testing. In its

simplest form, the units that have already been tested and are

combined into a component and the interface between them is

tested. In a realistic scenario, many units are combined into the

components which are in turn aggregated into larger parts of the

system. The idea is to test combination of pieces and eventually

expand the process to test the modules with those of other groups.
The integration test result for the system in this research was

satisfactory.

4.4.0 System Requirements

This refers to the basic requirements that must be met by the

target system to allow for optimal functionality. It puts Q check on

the configuration of the target system to allow for compatibility. The

target system will be discussed in two areas; Hardware and

software requirements.

4.4.1 Software Requirements

The table shows a list of the software requirements for the

proposed system to function.

Component Requirement
Operating system Windows 2000, XP, VISTA, 7

PHP version PHP 4.2.1 or later

Database Engine MYSQL ‘5

Web Server Apache web server

Browsers Firefox, I.E, Opera, Chrome


Table 4.1: Software requirements for the target system

4.4.2 Hardware Requirements


Table 4.2 shows a list of the hardware requirements for the

proposed system to function.

Component Requirement
RAM 250MB or higher

Harddisk 10GB or higher

Processor 33Hz or higher

Table 4.2: Hardware requirements for the target system.

4.5.0 USER MANUAL

The following is a brief guide for users of the application:

i. A user should start the server application by double clicking

on the icon provided on the windows desktop. The server

application will be started.

ii. To start the client application, the user should use the

Uniform Resource Locator (URL) provided for the system. The

user page would be displayed.

iii. When this page is displayed, the user can perform any of the

following operations:

i. View all jobs to manage

ii. Search using a criteria

iii. Perform an optional quick match by specifying a “job id”


iv. Manage a selected job by clicking on the “manage” link on the

user page.

v. Add a test to a job by clicking on the “add test” link on the job

view page.

vi. Grade an application by clicking on the “Grade” link provided

on the job view page.

vii. View all applications ordered by the applicants grade in

descending order by clicking on the “view applications by

grade” link provided on the “job view” page.

viii. View applicant information by clicking on the “view

application” link provided on the job view page.

ix. View an applicants resume by clicking on the “resume” page

provided on the applicants page.


CHAPTER FIVE

5.1.0 INTRODUCTION

Base on the new system that is developed, several points has

been carefully observed for further research in other to further

improve our school system activities.

In summary of this project the researcher has read through

school management system, which is quite large to be

encapsulated in just one project work, so this project is reduced

to focus on the online assignment submission management

system as a whole.

The online assignment submission management system has

been sub-divided into modules in other to carefully handle the

processes involved in this system. The online assignment

submission management system is sub-divided into (4) four

major modules which are:

i. Description of the system

ii. Program Specification

iii. Interface Design

iv. Structure of the Database


This module is also broken down, so as to capture all the

necessary segments that are required to make this project

successful.

5.2.0 CONCLUSION

In deciding what a school management system should look

like for a school before abstracting to the research domain for any

faculty or department. They should be validated in the fields. It’s

important to look closely at systems that have successfully been

deployed in challenging environment and any available evaluation

data.

In creating an online assignment submission management

system, out of school management system, it is essential that the

assignment submission management system is designed with goal

of allowing register student to login in with their valid ID access to

access the assignment page and being able to upload his / her

assignment in the system.

We are now in the fortunate situation of falling

information technology costs, improving computer literacy

combined with preliminary evidence of school management


successes in resource poor areas. The critical challenge is to create

well- designed, effective, low cost systems by sharing resources,

learning from each other experiences and evaluating our work.

5.3.0 RECOMMENDATION

The software developed for the implementation of this research


can be used by any School. The following recommendations are
proposed:
 System backup should be carry out day-to-day if place on a central
server on the school building.
 A cloud system backup is highly recommended to ensure safety of
system in terms of theft or fire outbreak.
 Every staff granted access to the system is require to sign an
undertaken to protect the integrity of the system.
 Users of the system should ensure to print out payment
transactions for future references.
 Administrator of the system should create passwords with long
characters so as to make password hacking difficult.
 User with certain privilege should ensure safekeeping of password
since it provides access to the system.
REFERENCES

Ben-Ari, M. (2001). Constructivism in computer science education.

Journal of Computers in Mathematics & Science Teaching, 20(1), 24-

73.

Commonwealth of Australia. (2000, Thursday, 29th November

2001). Overseas student statistics. Retrieved from

http://www.dest.gov.au/highered/statistics/tables/students2000.

htm

CourseMaster. (2000). School of Computer Science & IT, The

University of Nottingham, UK. Retrieved from

http://www.cs.nott.ac.uk/CourseMaster/cm_com/index.html

Daconta, M. (Ed.), Monk, E. & Saganich, A. (1998). Java 1.2 and

Javascript for C and C++ Programmers. John Wiley & Sons.

Foxley, E. (1999). Ceilidh on the World Wide Web. Retrieved from

http://www.cs.nott.ac.uk/~ceilidh/

Hot Potatoes (2003). Retrieved from

http://web.uvic.ca/hrd/halfbaked/
Joy, M. & Luck, M. (1995). On-line submission and testing of

programming assignments. In J. Hart (Ed.) Innovations in computing

teaching. London: SEDA.

Joy, M. & Luck, M. (1998). Effective electronic marking for on-line

assessment. In Proceedings of the 6th Annual Conference on the

Teaching of Computing/3rd Annual Conference on Integrating

Technology into Computer Science Education, 134-138.

Nulty, D., Bancroft, P., Brewster, S., & Smith, D. (1998). Web online

feedback system. Retrieved from http://www.fit.qut.edu.au/wolf/

QUT (2000) http://www.talss.qut.edu.au/talss/stafftlgrants/gen/

QUT. (2003-2007). Teaching and learning plan. QUT. Retrieved from

http://www.qut.edu.au/chan/pr/planning/StratPlan/stratplan.ht

m.

Thomas, P. G., & Paine, C. B. (2000). Tools for observing study

behaviour. Paper presented at the Psychology of Programming

Interest Group, April, Cosenza, Italy.


A. Tregobov, “The Web-Based Assignment Submission Systems”,

presented at NAWeb’98, University of New Brunswick, Canada,

1998.

David Jones, Sandy Behrens, “Online Assignment Management: An

Evolutionary Tale,” Hawaii International Conference on System

Sciences, vol. 5, no. 5, pp. 156c, Track 5, 2003.


APPENDIX A: SOURCE CODE

Index.php

<?php

session_start();

require("conection/connects.php");

$msg="";

if(isset($_POST['btn_log'])){

$uname=$_POST['unametxt'];

$pwd=$_POST['pwdtxt'];

$sql=mysqli_query($db,"SELECT * FROM users_tbl

WHERE

username='$uname' AND password='$pwd'


");

$cout=mysqli_num_rows($sql);

if($cout>0){

$row=mysqli_fetch_array($sql);

$_SESSION['uname'] =$row['username'];

$_SESSION['pass'] =$row['password'];

if($row['type']=='admin')

$msg="UNILAG School Admin!.....";

else

header("location: everyone.php");

else
$msg="Login Username and Password

Wrong......";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<title>::. Springlight School Manager.::</title>

<link rel="stylesheet" type="text/css" href="css/login.css" />

</head>
<body>

<form method="post">

<fieldset>

<fieldset></fieldset>

<div id="login_back">

<div id="msg">

</div>

<div id="login_form">

<label for="login">Username:</label>

<input type="text" class="fields" name="unametxt" title="Enter

username here" />

<div class="clear"></div>

<label for="login">Password:</label>
<input type="password" class="fields" name="pwdtxt" title="Enter

Password here" autocomplete="off"/>

<div class="clear"></div>

<input type="submit" class="button" name="btn_log" value="Log

in" />

</div>

<a href="indexs.php" class="button">For Student Login </a>

</div>

</fieldset>

</form>

<h2 style="color:#00F;" align="center">

<?php echo $msg; ?>


</h2>

</body>

</html>

Home(everyone.php)home.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<link rel="stylesheet" type="text/css" href="css/home.css"/>

<title>::. UNILAG School Manager.::</title>

</head>

<body>
<div id="content">

<div >

<img src="picture/master1.png" width="805" height="308" />

</div>

<div id="space"></div>

<div id="question">

What do you know about University Of Lagos?

</div>

<div id="space"></div>

<div style="text-indent:40px; text-align:justify">In order to achieve

rapid industrialization and development after independence, Nigeria

needed to invest in the training of a professional workforce. The

indispensable need to create more universities to reach this goal


was facilitated by the establishment of the University of Lagos in

1962. The Eric Ashby Commission on Post School Certificate and

Higher Education was established by the Nigerian Government in

May 1959. The Ashby Commission&rsquo;s report, titled

Investment in Education, recommended the establishment of a new

university in Lagos, the then Federal Capital, to provide education

for students in Economics, Commerce, Business Administration,

and Higher Management Studies. In 1961, UNESCO Advisory

Commission was assigned the detailed planning of the new

university by the Federal Government. However, whereas the Ashby

Commission had envisaged a non-residential institution which

would be cited in the business district of Central Lagos, the

UNESCO Commission opted for a traditional university, &ldquo;a

complete all encompassing institution&rdquo; with residential

accommodation on a large campus. Following the acceptance of the

UNESCO Commission&rsquo;s report, the University of Lagos was

established on 22 October 1962 on the authority of the University of

Lagos Act of 1962.</div>

</div><!--end of content -->


</body>

</html>

LOCATION_ENTRY.PHP

<?php

$id="";

$opr="";

if(isset($_GET['opr']))

$opr=$_GET['opr'];

if(isset($_GET['rs_id']))

$id=$_GET['rs_id'];

if(isset($_POST['btn_sub'])){
$loca_name=$_POST['locationtxt'];

$description=$_POST['descriptxt'];

$note =$_POST['notetxt'];

$sql_ins=mysql_query("INSERT INTO location_tb

VALUES(

NULL,

'$loca_name',

'$description' ,

'$note'

");

if($sql_ins==true)

$msg="1 Row Inserted";


else

$msg="Insert Error:".mysql_error();

//------------------uodate data----------

if(isset($_POST['btn_upd'])){

$loca_name=$_POST['locationtxt'];

$description=$_POST['descriptxt'];

$note=$_POST['notetxt'];

$sql_update=mysql_query("UPDATE location_tb SET

l_name='$loca_name' ,

description='$description' ,

note='$note'

WHERE loca_id=$id
");

if($sql_update==true)

header("location:?tag=view_location");

else

$msg="Update Fail!...";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<title>::. Springlight School Manager.::</title>

<link rel="stylesheet" type="text/css" href="css/style_entry.css" />

</head>

<body>

<?php

if($opr=="upd")

$sql_upd=mysql_query("SELECT * FROM location_tb WHERE

loca_id=$id");

$rs_upd=mysql_fetch_array($sql_upd);
?>

<div id="top_style">

<div id="top_style_text">

Loction Update

</div>

<!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_location"><input type="button"

name="btn_view" value="Back" id="button_view" style="width:70px;"

/></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->


<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Location Name</td>

<td>

<input type="text" name="locationtxt" id="textbox" value="<?php

echo $rs_upd['l_name'];?>" />

</td>

</tr>

<tr>

<td>Description:</td>

<td>
<textarea name="descriptxt" cols="23" rows="4"><?php echo

$rs_upd['description'];?></textarea>

</td>

</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="4"><?php echo

$rs_upd['note'];?></textarea>

</td>

</tr>

<tr>

<td colspan="2">
<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_upd" value="Update" id="button-

in" />

</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

else
{

?>

<div id="top_style">

<div id="top_style_text">

Loction Entry

</div>

<!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_location"><input type="button"

name="btn_view" value="View_location" id="button_view"

style="width:120px;" /></a>

</form>

</div><!-- end of top_style_button-->


</div><!-- end of top_style-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Location Name</td>

<td>

<input type="text" name="locationtxt" id="textbox" />

</td>

</tr>

<tr>

<td>Description:</td>
<td>

<textarea name="descriptxt" cols="23" rows="4"></textarea>

</td>

</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="4"></textarea>

</td>

</tr>

<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>


<input type="submit" name="btn_sub" value="Add Now" id="button-

in" />

</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

?>

</body>
</html>

LOGOUT.PHP

<?php

session_start();

session_destroy();

header('location:index.php');

?>

STUDENT_ENTRY.PHP

<?php

$id="";

$opr="";

if(isset($_GET['opr']))

$opr=$_GET['opr'];
if(isset($_GET['rs_id']))

$id=$_GET['rs_id'];

//--------------add data-----------------

if(isset($_POST['btn_sub'])){

$f_name=$_POST['fnametxt'];

$l_name=$_POST['lnametxt'];

$gender=$_POST['gender'];

$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];

$pob=$_POST['pobtxt'];

$addr=$_POST['addrtxt'];

$phone=$_POST['phonetxt'];

$mail=$_POST['emailtxt'];

$note=$_POST['notetxt'];

$reg_no=$_POST['reg_no'];

$username=$_POST['username'];
$password=$_POST['password'];

$sql_ins=mysqli_query($db,"INSERT INTO stu_tbl

VALUES(

NULL,

'$f_name',

'$l_name' ,

'$gender',

'$dob',

'$pob',

'$addr',

'$phone',

'$mail',

'$note',

'$reg_no',

'$username',
'$password'

");

if($sql_ins==true)

$msg="1 Row Inserted";

else

$msg="Insert Error:".mysqli_error();

//------------------uodate data----------

if(isset($_POST['btn_upd'])){

$f_name=$_POST['fnametxt'];

$l_name=$_POST['lnametxt'];

$gender=$_POST['gender'];

$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];

$pob=$_POST['pobtxt'];
$addr=$_POST['addrtxt'];

$phone=$_POST['phonetxt'];

$mail=$_POST['emailtxt'];

$note=$_POST['notetxt'];

$reg_no=$_POST['reg_no'];

$username=$_POST['username'];

$password=$_POST['password'];

$sql_update=mysqli_query($db,"UPDATE stu_tbl SET

f_name='$f_name',

l_name='$l_name' ,

gender='$gender',

dob='$dob',

pob='$pob',

address='$addr',

phone='$phone',
email='$mail',

note='$note',

reg_no = '$reg_no',

username='$username',

password='$password'

WHERE

stu_id=$id

");

if($sql_update==true)

?>

<script>

window.location='everyone.php?tag=view_students';

</script>

<?php }

else
$msg=mysqli_error('Update Fail');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<link rel="stylesheet" type="text/css" href="css/style_entry.css" />

<title>::. UNILAG School Manager.::</title>

</head>

<body>

<?php
if($opr=="upd")

$sql_upd=mysqli_query($db, "SELECT * FROM stu_tbl WHERE

stu_id=$id");

$rs_upd=mysqli_fetch_array($sql_upd);

list($y,$m,$d)=explode('-',$rs_upd['dob']);

?>

<!-- for form Upadte-->

<div id="top_style">

<div id="top_style_text">

Students Update </div>

<!-- end of top_style_text-->

<div id="top_style_button">
<form method="post">

<a href="?tag=view_students"><input type="button"

name="btn_view" title="View Students" value="Back"

id="button_view" style="width:70px;" /></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<div id="style_informations">

<form method="post" >

<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Reg No:</td>
<td>

<input type="text" name="reg_no" id="textbox" value="<?php

echo $rs_upd['reg_no'];?>"/>

</td>

</tr>

<tr>

<td>First Name:</td>

<td>

<input type="text" name="fnametxt" id="textbox" value="<?php

echo $rs_upd['f_name'];?>"/>

</td>

</tr>

<tr>

<td>Last Name:</td>

<td>
<input type="text" name="lnametxt" id="textbox" value="<?php

echo $rs_upd['l_name'];?>"/>

</td>

</tr>

<tr>

<td>Gender:</td>

<td>

<input type="radio" name="gender" value="Male" <?php

if($rs_upd['gender']=="Male") echo "checked";?> />Male

<input type="radio" name="gender" value="Female" <?php

if($rs_upd['gender']=="Female") echo "checked";?>/>Female

</td>

</tr>

<tr>

<td>Date Of Birth:</td>
<td>

<select name="yy" >

<option>years</option>

<?php

$sel="";

for($i=1985;$i<=2015;$i++){

if($i==$y){

$sel="selected='selected'";}

else

$sel="";

echo"<option value='$i' $sel>$i

</option>";

?>
</select>

<select name="mm">

<option>Month</option>

<?php

$sel="";

$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","

Oct","NOv","Dec");

$i=0;

foreach($mm as $mon){

$i++;

if($i==$m){

$sel=$sel="selected='selected'";}

else
$sel="";

echo"<option value='$i' $sel> $mon</option>";

?>

</select>

<select name="dd">

<option>Date</option>

<?php

$sel="";

for($i=1;$i<=31;$i++){

if($i==$d){

$sel=$sel="selected='selected'";}

else

$sel="";
?>

<option value="<?php echo $i ;?>"<?php echo $sel?>>

<?php

if($i<10)

echo"0"."$i" ;

else

echo"$i";

?>

</option>

<?php

}?>

</select>

</td>

</tr>
<tr>

<td>Place Of Brith:</td>

<td>

<input type="text" name="pobtxt" id="textbox" value="<?php

echo $rs_upd['pob'];?> "/>

</td>

</tr>

<tr>

<td>Address:</td>

<td>

<textarea name="addrtxt" cols="22" rows="3"><?php echo

$rs_upd['address'];?></textarea>

</td>

</tr>
<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_upd" value="Update"

id="button-in" />

</td>

</tr>

</table>

</div>

<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Phone:</td>
<td>

<input type="text" name="phonetxt" id="textbox" value="<?php

echo $rs_upd['phone'];?>" />

</td>

</tr>

<tr>

<td>E-mail:</td>

<td>

<input type="text" name="emailtxt" id="textbox" value="<?php

echo $rs_upd['email'];?> "/>

</td>

</tr>

<tr>

<td>Note:</td>
<td>

<textarea name="notetxt" cols="22" rows="5"><?php echo

$rs_upd['note'];?></textarea>

</td>

</tr>

<tr>

<td>Username:</td>

<td>

<input type="text" id="textbox" name="username" value="<?

php echo $rs_upd['username'];?>"/>

</td>

</tr>

<tr>

<td>Password:</td>

<td>

<input type="text" id="textbox" name="password" value="<?

php echo $rs_upd['password'];?>"/>


</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

else

?>

<!-- for form Register-->


<div id="top_style">

<div id="top_style_text">

Students Entry

</div><!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_students"><input type="button"

name="btn_view" title="View Students" value="View_Students"

id="button_view" style="width:120px;" /></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<div id="style_informations">

<form method="post" >


<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Reg No:</td>

<td>

<input type="text" name="reg_no" id="textbox"/>

</td>

</tr>

<tr>

<td>First Name:</td>

<td>

<input type="text" name="fnametxt" id="textbox"/>

</td>

</tr>

<tr>
<td>Last Name:</td>

<td>

<input type="text" name="lnametxt" id="textbox"/>

</td>

</tr>

<tr>

<td>Gender:</td>

<td>

<input type="radio" name="gender" value="Male"

checked="checked" />Male

<input type="radio" name="gender" value="Female"/>Female

</td>

</tr>

<tr>
<td>Date Of Birth:</td>

<td>

<select name="yy" >

<option>Year</option>

<?php

for($i=1985;$i<=2015;$i++){

echo"<option

value='$i'>$i</option>";

?>

</select>

<select name="mm">

<option>Month</option>

<?php
$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","

Oct","NOv","Dec");

$i=0;

foreach($mm as $mon){

$i++;

echo"<option value='$i'> $mon</option>";

?>

</select>

<select name="dd">

<option>Date</option>

<?php

for($i=1;$i<=31;$i++){

?>
<option value="<?php echo $i; ?>">

<?php

if($i<10)

echo"0".$i;

else

echo"$i";

?>

</option>

<?php

}?>

</select>

</td>

</tr>

<tr>

<td>Place Of Brith:</td>
<td>

<input type="text" name="pobtxt" id="textbox"/>

</td>

</tr>

<tr>

<td>Address:</td>

<td>

<textarea name="addrtxt" cols="22" rows="3"></textarea>

</td>

</tr>

<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>


<input type="submit" name="btn_sub" value="Register"

id="button-in" />

</td>

</tr>

</table>

</div>

<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Phone:</td>

<td><input type="text" name="phonetxt" id="textbox" /></td>

</tr>

<tr>

<td>E-mail:</td>

<td><input type="text" name="emailtxt" id="textbox" /></td>


</tr>

<tr>

<td>Note:</td>

<td><textarea name="notetxt" cols="22"

rows="5"></textarea></td>

</tr>

<tr>

<td>Username:</td>

<td>

<input type="text" name="username" id="textbox" />

</td>

</tr>

<tr>

<td>Password:</td>

<td>

<input type="text" name="password" id="textbox" />


</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

?>

</body>

</html>

SCORE_ENTYR.PHP

<?php
$id="";

$opr="";

if(isset($_GET['opr']))

$opr=$_GET['opr'];

if(isset($_GET['rs_id']))

$id=$_GET['rs_id'];

if(isset($_POST['btn_sub'])){

$stu_name=$_POST['sudenttxt'];

$fa_name=$_POST['factxt'];

$sub_name=$_POST['subjecttxt'];

$miderm=$_POST['midermtxt'];

$final=$_POST['finaltxt'];

$note=$_POST['notetxt'];
$sql_ins=mysql_query("INSERT INTO stu_score_tbl

VALUES(

NULL,

'$stu_name',

'$fa_name' ,

'$sub_name',

'$miderm',

'$final',

'$note'

");

if($sql_ins==true)

$msg="1 Row Inserted";

else
$msg="Insert Error:".mysql_error();

//------------------uodate data----------

if(isset($_POST['btn_upd'])){

$stu_id=$_POST['sudenttxt'];

$faculties_id =$_POST['factxt'];

$sub_id=$_POST['subjecttxt'];

$miderm=$_POST['midermtxt'];

$final=$_POST['finaltxt'];

$note=$_POST['notetxt'];

$sql_update=mysql_query("UPDATE stu_score_tbl SET

stu_id='$stu_id' ,

faculties_id='$faculties_id' ,
sub_id='$sub_id' ,

miderm='$miderm' ,

final='$final' ,

note='$note'

WHERE ss_id=$id

");

if($sql_update==true)

header("location:?tag=view_scores");

else

$msg="Update Fail!...";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<title>::. Springlight School Manager.::</title>

<link rel="stylesheet" type="text/css" href="css/style_entry.css" />

</head>

<body>

<?php

if($opr=="upd")

{
$sql_upd=mysql_query("SELECT * FROM stu_score_tbl

WHERE ss_id=$id");

$rs_upd=mysql_fetch_array($sql_upd);

?>

<div id="top_style">

<div id="top_style_text">

Scores Update

</div><!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_scores"><input type="button"

name="btn_view" value="Back" id="button_view" style="width:70px;"

/></a>

</form>

</div><!-- end of top_style_button-->


</div><!-- end of top_style-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td>Students's Name</td>

<td>

<select name="sudenttxt" id="textbox">

<option>---- Students's Name -----</option>

<?php

$student_name=mysql_query("SELECT * FROM stu_tbl");

while($row=mysql_fetch_array($student_name)){
if($row['stu_id']==$rs_upd['stu_id'])

$iselect="selected";

else

$iselect="";

?>

<option value="<?php echo $row['stu_id'];?>" <?php echo $iselect ;?

>><?php echo $row['f_name']; echo" "; echo $row['l_name'];?

></option>

<?php

?>

</select>

</td>

</tr>
<tr>

<td>Facuties's Name</td>

<td>

<select name="factxt" id="textbox">

<option>---- Facuries's Name ------</option>

<?php

$fac_name=mysql_query("SELECT * FROM

facuties_tbl");

while($row=mysql_fetch_array($fac_name)){

if($row['faculties_id']==$rs_upd['faculties_id'])

$iselect="selected";

else

$iselect="";
?>

<option value="<?php echo $row['faculties_id'];?>" <?php

echo $iselect ;?>><?php echo $row['faculties_name'];?></option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td>Subjects's Name</td>

<td>

<select name="subjecttxt" id="textbox">

<option>------------ Sujects -----------</option>

<?php
$subject=mysql_query("SELECT * FROM

sub_tbl");

while($row=mysql_fetch_array($subject)){

if($row['sub_id']==$rs_upd['sub_id'])

$iselect="selected";

else

$iselect="";

?>

<option value="<?php echo $row['sub_id'];?>" <?php echo $iselect ;?

>><?php echo $row['sub_name'];?></option>

<?php

?>

</select>
</td>

</tr>

<tr>

<td>Miderm</td>

<td>

<input type="text" name="midermtxt" id="textbox" value="<?

php echo $rs_upd['miderm'];?> "/>

</td>

</tr>

<tr>

<td>Final</td>

<td>

<input type="text" name="finaltxt" id="textbox" value="<?php

echo $rs_upd['final'];?>" />

</td>
</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="3"><?php echo

$rs_upd['note'];?></textarea>

</td>

</tr>

<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_upd" value="Update"

id="button-in" title="Update" />

</td>
</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

else

?>

<div id="top_style">

<div id="top_style_text">

Scores Entry
</div><!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_scores"><input type="button"

name="btn_view" value="View_Scores" id="button_view"

style="width:120px;" /></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>
<td>Students's Name</td>

<td>

<select name="sudenttxt" id="textbox">

<option>---- Students's Name -----</option>

<?php

$student_name=mysql_query("SELECT * FROM stu_tbl");

while($row=mysql_fetch_array($student_name)){

?>

<option value="<?php echo $row['stu_id'];?>"><?php echo

$row['f_name']; echo" "; echo $row['l_name'];?></option>

<?php

?>

</select>
</td>

</tr>

<tr>

<td>Facuties's Name</td>

<td>

<select name="factxt" id="textbox">

<option>---- Facuries's Name ------</option>

<?php

$fac_name=mysql_query("SELECT * FROM

facuties_tbl");

while($row=mysql_fetch_array($fac_name)){

?>

<option value="<?php echo $row['faculties_id'];?>"><?php

echo $row['faculties_name'];?></option>

<?php
}

?>

</select>

</td>

</tr>

<tr>

<td>Subjects's Name</td>

<td>

<select name="subjecttxt" id="textbox">

<option>------------ Sujects -----------</option>

<?php

$subject=mysql_query("SELECT * FROM

sub_tbl");

while($row=mysql_fetch_array($subject)){
?>

<option value="<?php echo $row['sub_id'];?>"><?php echo

$row['sub_name'];?></option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td>Miderm</td>

<td>

<input type="text" name="midermtxt" id="textbox" />

</td>

</tr>
<tr>

<td>Final</td>

<td>

<input type="text" name="finaltxt" id="textbox" />

</td>

</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="3"></textarea>

</td>

</tr>

<tr>

<td colspan="2">
<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_sub" value="Add Now"

id="button-in" />

</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

?>

</body>

</html>
TEACHER.PHP

<?php

$msg="";

$opr="";

$id="";

if(isset($_GET['opr']))

$opr=$_GET['opr'];

if(isset($_GET['rs_id']))

$id=$_GET['rs_id'];

//--------------add data-----------------

if(isset($_POST['btn_sub'])){

$f_name=$_POST['fnametxt'];
$l_name=$_POST['lnametxt'];

$gender=$_POST['genderrdo'];

$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];

$pob=$_POST['pobtxt'];

$addr=$_POST['addrtxt'];

$degree=$_POST['degree'];

$salary=$_POST['slarytxt'];

$married=$_POST['marriedrdo'];

$phone=$_POST['phonetxt'];

$mail=$_POST['emailtxt'];

$note=$_POST['notetxt'];

$sql_ins=mysql_query("INSERT INTO teacher_tbl

VALUES(

NULL,

'$f_name',
'$l_name' ,

'$gender',

'$dob',

'$pob',

'$addr',

'$degree',

'$salary' ,

'$married',

'$phone',

'$mail',

'$note'

");

if($sql_ins==true)

$msg="1 Row Inserted";

else
$msg="Insert Error:".mysql_error();

//------------------uodate data----------

if(isset($_POST['btn_upd'])){

$f_name=$_POST['fnametxt'];

$l_name=$_POST['lnametxt'];

$gender=$_POST['genderrdo'];

$dob=$_POST['yy']."/".$_POST['mm']."/".$_POST['dd'];

$pob=$_POST['pobtxt'];

$addr=$_POST['addrtxt'];

$degree=$_POST['degree'];

$salary=$_POST['slarytxt'];

$married=$_POST['marriedrdo'];

$phone=$_POST['phonetxt'];

$mail=$_POST['emailtxt'];
$note=$_POST['notetxt'];

$sql_update=mysql_query("UPDATE teacher_tbl SET

f_name='$f_name' ,

l_name='$l_name' ,

gender='$gender' ,

dob='$dob' ,

pob='$pob' ,

address='$addr' ,

degree='$degree' ,

salary='$salary' ,

married='$married' ,

phone='$phone' ,

email='$mail' ,

note='$note'

WHERE teacher_id=$id
");

if($sql_update==true)

header("location:?tag=view_teachers");

else

$msg="Update Fail!...";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />
<link rel="stylesheet" type="text/css" href="css/style_entry.css" />

<title>::. Springlight School Manager.::</title>

</head>

<body>

<?php

if($opr=="upd")

$sql_upd=mysql_query("SELECT * FROM teacher_tbl WHERE

teacher_id=$id");

$rs_upd=mysql_fetch_array($sql_upd);

list($y,$m,$d)=explode('-',$rs_upd['dob']);

?>

<div id="top_style">
<div id="top_style_text">

Teachers

Update</div>

<!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_teachers"><input type="button"

name="btn_back" value="Back" id="button_view"

style="width:70px;" /></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<!-- for form Upadte-->


<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td>First Name</td>

<td>

<input type="text" name="fnametxt" id="textbox" value="<?php

echo $rs_upd['f_name'];?>" />

</td>

</tr>

<tr>

<td>Last Name</td>

<td>
<input type="text" name="lnametxt" id="textbox" value="<?

php echo $rs_upd['f_name'];?>"/>

</td>

</tr>

<tr>

<td>Gender</td>

<td>

<input type="radio" name="genderrdo" value="Male"<?php

if($rs_upd['gender']=="Male") echo "checked";?> />Male

<input type="radio" name="genderrdo" value="Female"<?php

if($rs_upd['gender']=="Female") echo "checked";?> />Female

</td>

</tr>

<tr>

<td>Date Of Birth:</td>
<td>

<select name="yy" >

<option>years</option>

<?php

$sel="";

for($i=1985;$i<=2015;$i++){

if($i==$y){

$sel="selected='selected'";}

else

$sel="";

echo"<option value='$i' $sel>$i

</option>";

?>
</select>

<select name="mm">

<option>Month</option>

<?php

$sel="";

$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","

Oct","NOv","Dec");

$i=0;

foreach($mm as $mon){

$i++;

if($i==$m){

$sel=$sel="selected='selected'";}

else
$sel="";

echo"<option value='$i' $sel> $mon</option>";

?>

</select>

<select name="dd">

<option>Date</option>

<?php

$sel="";

for($i=1;$i<=31;$i++){

if($i==$d)

$sel="selected='selected'";

else

$sel="";

?>
<option value="<?php echo $i ;?>"<?php echo $sel ;?>>

<?php

if($i<10)

echo"0"."$i" ;

else

echo"$i";

?>

</option>

<?php

}?>

</select>

</td>

</tr>

<tr>
<td>Place Of Birth</td>

<td>

<input type="text" name="pobtxt" id="textbox" value=" <?php

echo $rs_upd['pob']; ?>"/>

</td>

</tr>

<tr>

<td>Address</td>

<td>

<textarea name="addrtxt" cols="23" rows="3"><?php echo

$rs_upd['address'];?></textarea>

</td>

</tr>

<tr>
<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_upd" value="Update"

id="button-in" />

</td>

</tr>

</table >

</div>

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td>Degree</td>

<td>

<select name="degree" id="textbox" >


<?php

$mm=array("Bachelor","Master","P.HD");

$i=0;

foreach($mm as $mon){

$i++;

if($mon==$rs_upd['degree'])

$iselect="selected";

else

$iselect="";

echo"<option

value='$mon' $iselect> $mon</option>";

}
?>

</select>

</td>

</tr>

<tr>

<td>Salary</td>

<td>

<input type="text" name="slarytxt" id="textbox" value="<?php

echo $rs_upd['salary'];?>" />

</td>

</tr>

<tr>

<td>Married</td>

<td>
<input type="radio" name="marriedrdo" value="Yes"<?php

if($rs_upd['married']=="Yes") echo "checked";?>/>Yes

<input type="radio" name="marriedrdo" value="No"<?php

if($rs_upd['married']=="No") echo "checked";?> />No

</td>

</tr>

<tr>

<td>Phone</td>

<td>

<input type="text" name="phonetxt" id="textbox" value="<?

php echo $rs_upd['phone'];?>" />

</td>

</tr>

<tr>

<td>E-mail</td>
<td>

<input type="text" name="emailtxt" id="textbox" value="<?php

echo $rs_upd['email'];?>" />

</td>

</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="3"><?php echo

$rs_upd['note'];?></textarea>

</td>

</tr>

</table>
</div>

</form>

</div><!-- end of style_informatios -->

<?php

else

?>

<div id="top_style">

<div id="top_style_text">

Teachers Entry

</div>

<!-- end of top_style_text-->

<div id="top_style_button">
<form method="post">

<a href="?tag=view_teachers"><input type="button"

name="btn_view" title="View Teachers" value="View Teachers"

id="button_view" style="width:120px;" /></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<!-- for form Upadte-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>
<td>First Name</td>

<td>

<input type="text" name="fnametxt" id="textbox" />

</td>

</tr>

<tr>

<td>Last Name</td>

<td>

<input type="text" name="lnametxt" id="textbox" />

</td>

</tr>

<tr>

<td>Gender</td>

<td>
<input type="radio" name="genderrdo" value="Male"

checked="checked"/>Male

<input type="radio" name="genderrdo" value="Female" />Female

</td>

</tr>

<td>Date Of Birth</td>

<td>

<select name="yy" style="height:25px;">

<option>Year</option>

<?php

for($i=1985;$i<=2015;$i++){

echo"<option

value='$i'>$i</option>";

?>
</select>

<select name="mm" style="height:25px;">

<option>Month</option>

<?php

$mm=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","

Oct","NOv","Dec");

$i=0;

foreach($mm as $mon){

$i++;

echo"<option value='$i'> $mon</option>";

?>

</select>

-
<select name="dd" style="height:25px;">

<option>Date</option>

<?php

for($i=1;$i<=31;$i++){

?>

<option value="<?php echo $i; ?>">

<?php

if($i<10)

echo"0".$i;

else

echo"$i";

?>

</option>

<?php

}?>

</select>
</td>

</tr>

<tr>

<td>Place Of Birth</td>

<td>

<input type="text" name="pobtxt" id="textbox"/>

</td>

</tr>

<tr>

<td>Address</td>

<td>

<textarea name="addrtxt" cols="23" rows="3"></textarea>

</td>

</tr>
<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_sub" value="Register"

id="button-in" />

</td>

</tr>

</table >

</div>

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td>Degree</td>
<td>

<select name="degree" id="textbox">

<option>------------ Select ------------</option>

<?php

$mm=array("Bachelor","Master","P.HD");

$i=0;

foreach($mm as $mon){

$i++;

echo"<option

value='$mon'> $mon</option>";

//echo"<option value='$i'> $mon</option>";

?>

</select>

</td>

</tr>
<tr>

<td>Salary</td>

<td>

<input type="text" name="slarytxt" id="textbox" />

</td>

</tr>

<tr>

<td>Married</td>

<td>

<input type="radio" name="marriedrdo" value="Yes"

checked="checked"/>Yes

<input type="radio" name="marriedrdo" value="No" />No

</td>

</tr>
<tr>

<td>Phone</td>

<td>

<input type="text" name="phonetxt" id="textbox"/>

</td>

</tr>

<tr>

<td>E-mail</td>

<td>

<input type="text" name="emailtxt" id="textbox" />

</td>

</tr>

<tr>
<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="3"></textarea>

</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->

<?php

?>

</body>
</html>

SUBJECT_ENTRY.PHP

<?php

$id="";

$opr="";

if(isset($_GET['opr']))

$opr=$_GET['opr'];

if(isset($_GET['rs_id']))

$id=$_GET['rs_id'];

if(isset($_POST['btn_sub'])){

$fa_name=$_POST['factxt'];

$teach_name=$_POST['techtxt'];

$semester=$_POST['semestertxt'];
$sub_name=$_POST['subtxt'];

$note=$_POST['notetxt'];

$sql_ins=mysqli_query($db,"INSERT INTO sub_tbl

VALUES(

NULL,

'$fa_name',

'$teach_name' ,

'$semester',

'$sub_name' ,

'$note'

");
if($sql_ins==true)

$msg="1 Row Inserted";

else

$msg="Insert Error:".mysqli_error();

//------------------uodate data----------

if(isset($_POST['btn_upd'])){

$fac_id=$_POST['factxt'];

$tea_id=$_POST['techtxt'];

$semester=$_POST['semestertxt'];

$sub_name=$_POST['subtxt'];

$note=$_POST['notetxt'];
$sql_update=mysqli_query($db,"UPDATE sub_tbl SET

faculties_id='$fac_id' ,

teacher_id='$tea_id' ,

semester='$semester' ,

sub_name='$sub_name' ,

note='$note'

WHERE sub_id=$id

");

if($sql_update==true)

header("location:?tag=view_subjects");

else

$msg="Update Fail!...";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<title>::. Springlight School Manager.::</title>

<link rel="stylesheet" type="text/css" href="css/style_entry.css" />

</head>

<body>

<?php
if($opr=="upd")

$sql_upd=mysqli_query($db,"SELECT * FROM sub_tbl WHERE

sub_id=$id");

$rs_upd=mysqli_fetch_array($sql_upd);

?>

<div id="top_style">

<div id="top_style_text">

Subjects Entry

</div><!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_subjects" ><input type="button"

name="btn_view" title="Back" value="Back" id="button_view"

style="width:70px;" /></a>
</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td>Facuties's Name</td>

<td>

<select name="factxt" id="textbox">

<option>---- Facuries's Name ------</option>

<?php

$fac_name=mysqli_query($db,"SELECT * FROM

facuties_tbl");
while($row=mysqli_fetch_array($fac_name)){

if($row['faculties_id']==$rs_upd['faculties_id'])

$iselect="selected";

else

$iselect="";

?>

<option value="<?php echo $row['faculties_id'];?>" <?php

echo $iselect;?>><?php echo $row['faculties_name'];?></option>

<?php

?>

</select>

</td>
</tr>

<tr>

<td>Teacher's Name</td>

<td>

<select name="techtxt" id="textbox">

<option>---- Teachers's Name ----</option>

<?php

$te_name=mysqli_query($db,"SELECT * FROM

teacher_tbl");

while($row=mysqli_fetch_array($te_name)){

if($row['teacher_id']==$rs_upd['teacher_id'])

$iselect="selected";

else
$iselect="";

?>

<option value="<?php echo $row['teacher_id'];?>" <?php echo

$iselect?>><?php echo $row['f_name'] ; echo " "; echo

$row['l_name'];?></option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td>Semester</td>

<td>
<input type="text" name="semestertxt" id="textbox" value="<?

php echo $rs_upd['semester'];?>" />

</td>

</tr>

<tr>

<td>Subjects's name</td>

<td>

<input type="text" name="subtxt" id="textbox" value="<?php

echo $rs_upd['sub_name'];?>" />

</td>

</tr>

<tr>

<td>Note</td>

<td>
<textarea name="notetxt" cols="23" rows="3"><?php echo

$rs_upd['note'];?></textarea>

</td>

</tr>

<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_upd" value="Update"

id="button-in" />

</td>

</tr>

</table>

</div>

</form>
</div><!-- end of style_informatios -->

<?php

else

?>

<div id="top_style">

<div id="top_style_text">

Subjects Entry

</div><!-- end of top_style_text-->

</div><!-- end of top_style-->


<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td>Facuties's Name</td>

<td>

<select name="factxt" id="textbox">

<option>---- Facuries's Name ------</option>

<?php

$fac_name=mysqli_query($db,"SELECT * FROM

facuties_tbl");

while($row=mysqli_fetch_array($fac_name)){

?>

<option value="<?php echo $row['faculties_id'];?>"><?php

echo $row['faculties_name'];?></option>
<?php

?>

</select>

</td>

</tr>

<tr>

<td>Teacher's Name</td>

<td>

<select name="techtxt" id="textbox">

<option>---- Teachers's Name ----</option>

<?php

$te_name=mysqli_query($db,"SELECT * FROM

teacher_tbl");
while($row=mysqli_fetch_array($te_name)){

?>

<option value="<?php echo $row['teacher_id'];?>"><?php echo

$row['f_name'] ; echo " "; echo $row['l_name'];?></option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td>Semester</td>

<td>
<input type="text" name="semestertxt" id="textbox" />

</td>

</tr>

<tr>

<td>Subjects's name</td>

<td>

<input type="text" name="subtxt" id="textbox" />

</td>

</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="3"></textarea>

</td>
</tr>

<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_sub" value="Add Now"

id="button-in" />

</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->


<?php

?>

</body>

</html>

FACULTIES.PHP

<?php

$id="";

$opr="";

if(isset($_GET['opr']))

$opr=$_GET['opr'];

if(isset($_GET['rs_id']))

$id=$_GET['rs_id'];
if(isset($_POST['btn_sub'])){

$facuties_name=$_POST['fnametxt'];

$note=$_POST['notetxt'];

$sql_ins=mysql_query("INSERT INTO facuties_tbl

VALUES(

NULL,

'$facuties_name',

'$note'

");

if($sql_ins==true)

$msg="1 Row Inserted";

else
$msg="Insert Error:".mysql_error();

//------------------uodate data----------

if(isset($_POST['btn_upd'])){

$fac_name=$_POST['fnametxt'];

$note=$_POST['notetxt'];

$sql_update=mysql_query("UPDATE facuties_tbl SET

faculties_name='$fac_name',

note='$note'

WHERE

faculties_id=$id

");
if($sql_update==true)

header("location:?tag=view_faculties");

else

$msg="Update Fail".mysql_error();

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-

8" />

<title>::. Springlight School Manager.::</title>

<link rel="stylesheet" type="text/css" href="css/style_entry.css" />

</head>
<body>

<?php

if($opr=="upd")

$sql_upd=mysql_query("SELECT * FROM facuties_tbl WHERE

faculties_id=$id");

$rs_upd=mysql_fetch_array($sql_upd);

?>

<div id="top_style">

<div id="top_style_text">

Faculties Update
</div><!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_faculties"><input type="button"

name="btn_view" value="Back" title="View_faculties"

id="button_view" style="width:70px;" /></a>

</form>

</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="4" cellspacing="0">


<tr>

<td>Faculties's Name</td>

<td>

<input type="text" name="fnametxt" id="textbox" value="<?php

echo $rs_upd['faculties_name'];?>" />

</td>

</tr>

<tr>

<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="4"><?php echo

$rs_upd['note'];?></textarea>

</td>

</tr>
<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_upd" value="Update"

id="button-in" />

</td>

</tr>

</table>

</div>

</form>

</div><!-- end of style_informatios -->


<?php

else

?>

<div id="top_style">

<div id="top_style_text">

Faculties Entry

</div><!-- end of top_style_text-->

<div id="top_style_button">

<form method="post">

<a href="?tag=view_faculties"><input type="button"

name="btn_view" title="View_faculties" value="View_Faculties"

id="button_view" style="width:120px;" /></a>

</form>
</div><!-- end of top_style_button-->

</div><!-- end of top_style-->

<div id="style_informations">

<form method="post">

<div>

<table border="0" cellpadding="4" cellspacing="0">

<tr>

<td>Faculties's Name</td>

<td>

<input type="text" name="fnametxt" id="textbox" />

</td>

</tr>

<tr>
<td>Note</td>

<td>

<textarea name="notetxt" cols="23" rows="4"></textarea>

</td>

</tr>

<tr>

<td colspan="2">

<input type="reset" value="Cancel" id="button-in"/>

<input type="submit" name="btn_sub" value="Add Now"

id="button-in" />

</td>

</tr>

</table>
</div>

</form>

</div><!-- end of style_informatios -->

<?php

?>

</body>

</html>

CONNECTION.PHP

<?php

$host = "localhost";
$user = "root";

$pass = "";

$dbname = "assignment";

//session_start();

$db=mysqli_connect($host, $user, $pass) or die("Could not connect

to database server");

mysqli_select_db($db,$dbname) or die ("Could not connect to

database name");

$thisFile = str_replace('\\', '/', __FILE__);

$docRoot = $_SERVER['DOCUMENT_ROOT'];

$webRoot = str_replace(array($docRoot, 'dbconnect.php'), '',

$thisFile);

$srvRoot = str_replace('dbconnect.php', '', $thisFile);

define('WEB_ROOT', $webRoot);

define('SRV_ROOT', $srvRoot);
define('PRODUCT_IMAGE_DIR', 'employer_images/');

define('LIMIT_PRODUCT_WIDTH', true);

define('MAX_PRODUCT_IMAGE_WIDTH', 180);

define('THUMBNAIL_WIDTH', 180);

if (!get_magic_quotes_gpc())

if (isset($_POST))

foreach ($_POST as $key => $value)

$_POST[$key] = trim(addslashes($value));

if (isset($_GET))

foreach ($_GET as $key => $value)


{

$_GET[$key] = trim(addslashes($value));

?>

APPENDIX B: WINDOW SCREEN.

Login screen(index.php)
Welcome screen (everyone.php included home.php)
VIEW ASSIGNMENT

STUDENT ENTRY
SCORE_ENTRY
VIEW_ASSIGNMENT
STUDENT LOGIN
STUDENT HOME SCREEN

FILE ENTRY

You might also like