100% found this document useful (2 votes)
1K views166 pages

School Management System-MCS-2010 PDF

Uploaded by

Sahar Pervez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
1K views166 pages

School Management System-MCS-2010 PDF

Uploaded by

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

On

Online
line
School Management System

Final Year Project Report

Online

School Management System

MCS,Batch-7

Project Advisor
SIR MUHAMMAD SIDDIQUE
Chairman,
Department of ComputerScience

Submitted by:

Muhammad Aijaz…………………………………Roll No: 1241084


Muhammad Habib Mahar………………………Roll No: 1241093

FEDERAL URDU UNIVERSITY OF ARTS SCIENCE &T ECHNOLOGY


University Road, Karachi–75270

Final YearProject Report [1]


Online
School Management System

Preface………………………………………………………………………… 3
Acknowledgement…………………………………………………………… 4
Group Members………………………………………………………………… 5
Certificate………………………………………………………………………… 6

Synopsis…………………………………………………………………… 7

Chapter 1 Introduction………………………………………………… 9
1.1 Objective of The Project…………………………………………… 10
Chapter 2. Requirement Identification ……………………………… 12
Chapter 3. Preliminary Investigation………………………………… 14
3.1 Hardware Interfaces……………………………………………… 14
3.2 Software Interfaces………………………………………………… 15
Chapter 4. System Study………………………………………………… 17
4.1 Existing System along with limitations/deficiencies…………… 17
4.2 Proposed System along with intended objectives………………… 18
4.3 Feasibility Study………………………………………………………… 19
4.3.1 Operational………………………………………………… 23
4.3.2 Technical…………………………………………………… 27
4.3.3 Economical………………………………………………… 29
4.3.4 Time (Duration)…………………………………………… 31
Chapter 5. System Analysis………………………………………………… 32
5.1 Requirement Specification…………………………………………… 32
5.1.1 Hardware Specification……………………… 32
5.1.2 Software Specification ………………………… 33
5.2 Data Flow Diagrams…………………………………………………… 34
5.3 Source of data…………………………………………………………… 36
Chapter 6. System Design…………………………………………………… 37
6.1 File/Database Design…………………………………………………… 44
6.2 Screen Shots/Input-output forms……………………………… 57
6.3 Coding..................................................................................... 71
Chapter 7. System Testing …………………………………………………...... 157
7.1 Preparation of Test Data……………………………………………… 159
Chapter 8. System Implementation………………………………………… 161
Chapter 9. Conclusion ………………………………………………………… 162
Chapter 10. Scope of the Project……………………………………………… 163
10.1 Deficiencies……………………………………………………………… 163
10.2 Future Scope and Further Enhancement…………………………… 164
Chapter 11. References/Bibliography………………………………………… 166
Final YearProject Report [2]
Online
School Management System

Preface

This report is all about theproject “Online School Management System”

that provides us a simple interface for maintenance of School

Information.It can be used by educational institutes/schoolsto maintain

the recordeasily. Achieving this objective is difficult using a manual

system as the information is scattered, can be redundant and collecting

relevant information may be very time consuming. All these problems are

solved using this project.

This project provides facilities like Students and staff registration, Class

andExam Scheduling, Fee Information, Courses Outline and Staff Salary

etc.

This report covers all the designand development strategies of the

project and also every module of the system is discussedwith necessary

diagrams, flowchart and screenshots.

Final YearProject Report [3]


Online
School Management System

Acknowledgment

First of all, we thank Almighty Allah who praise us with the ability to

think, work and deliver this project perfectly. Secondly, we are privileged

to express our sense of gratitude to our respected teacher Mr.

Muhammad Siddique who helps us in this project.

We also acknowledge our teachers that throughout our studies helps us

and guides us, departmental staff and university staff.

Final YearProject Report [4]


Online
School Management System

Introduction to group members

Specialization:
Design & Development, Report Writing,Data
Collection and requirement analysis

Muhammad Aijaz
Roll No.1241084; Registration No. MS/E/0 /10/CS
Contact Info: CellPh: 0300-226388, Email:

Specialization:
Design & Development,Requirement
gathering,Report Writing,

Muhammad Habib Mahar


Roll No.1241093; Registration No. MS/E/022/10/CS
Contact Info: CellPh:0345-3036819, Email: [email protected]

Final YearProject Report [5]


Online
School Management System

FEDERAL URDU UNIVERSITY OF ARTS SCIENCE &T ECHNOLOGY


Department of Computer Science

Certificate of Completion

This is to certify that thefollowing students

Muhammad Aijaz…………………………………Roll No: 1241084


Muhammad Habib Mahar………………………Roll No: 1241093

have successfully completed their final year project named

“Online School Management System”

in the partial fulfillment of the Degree of Masters Computer Science

_____________________________________
Mr. Muhammad Siddique(Project Supervisor)
Chairman, Dept. of Comptuer Science, FUUAST, Karachi.

Final YearProject Report [6]


Online
School Management System

Synopsis

School Management System can be used by education institutes to

maintain the records of students, staff and general management.

Achieving thisgoalis difficultand time consumingusing a manual system

as the information is scatteredandcan be redundant.

System is designed to be used at more than one branches of the school.

Initially, we haveadded modules for twobranches, which could be

enhanced as per requirement.

Name of the Project: OnlineSchoolManagement System

Objectives:

 Student andstaffregistration

 Holidays,class andexamschedulemanagement

 Attendancerecord management

 Staffsalary andstudents’feeinformation

 Leave requests and approvals

Users Views:

 Administrator

 Staff

 Student

Final YearProject Report [7]


Online
School Management System

Platform:

Operating Systems:

 Microsoft Windows

Technologies Used:

 Front End: HTML and JavaScript

 Logic design and server side scripting:PHP

 Database System: MySQL

Software Requirements:

 PHP 5.0

 APACHE HTTP Server

 Latest Internet Browser (Mozilla Firefox is recommended)

Hardware Requirements:

 Intel Pentium IV processor or equivalent or higher

 512 MB Ram or Higher

 20 GB HDD or Higher

 Connectivity to web server

Final YearProject Report [8]


Online
School Management System

CHAPTER 1
INTRODUCTION

Every school has lots of tasks to perform. So in order to perform all the

tasks in a controlled and systematic manner we need to automate and

accomplish all the frantic and baffling work with the help of easy decision

making system.

This software is about “School Management System”. This software gives

many facilities to user to manage all administrative works of a school

such as student management, staff management, FeeInformation and

Scheduling etc. It also gives facility to prepare Mark sheet of a student.

The School Management System will replace the paper-based data

collection and information exchange system among the variousbranches

of a particular school. The School Management System provides an

innovative solution for Today’s school record-keeping challenges.

School Management System opens a universe of opportunities to

automate the laborious paperwork involved in proper school

management. With our proposed record-keeping software the

management can more effectively interact with the students as they

develop skills and character for success. They will not only have more

time to spend with them, but it will be quality time because they will have

up to-date student information to facilitate them.

Final YearProject Report [9]


Online
School Management System

School Management System issoftware for a school handling regular

management work. By going through the flow of application one can

easily maintain its student detail, fees detail, Employee detail, Exam

scheduling. This software includes the management of students,

Employee/Staff, Fees, Exam, Time Tableandits respective reports.

OnlineSchool Management System could make school staff's life easier

than ever. Using School Management System, finding student information

is just a few seconds away which might have cost hours, or evendays.

This System is designed to perform the efficient security, reliability and

maximum accuracy of information.

School Management is intended to automatealmost every aspect of

operations and day to day activities of the Institution.

1.1 Objectiveof the Project

Importance and Need of Computerized system:

1. To do the processing speedily and to help in decision making,

the information concerned can be retrieved in the faster manner

as compared to the manual system and the information provided

by the system is accurate and to the point which help in faster

decision making.

2. To minimize the cost of manpower and the paper work which

lead to minimum wastage of time in theInstitution. The paper

Final YearProject Report [10]


Online
School Management System

work in the Institution can be reduced due to the

computerization of the different departmentsand branches.

3. To give the management accurate and updated reports about

the students and staff employees, exam schedules, allotment of

faculties to the classes etc.

4. To give the details and solutions for the queries askedby the

system timely and to give the precise and confirm information to

them.

5. To keep the document or records and other valuable information

in safety so that unauthorized access of the information can be

prevented and detected and the records are prevented from the

modification, which is not allowed so that unauthorized person,

cannot access and modify the information.

Final YearProject Report [11]


Online
School Management System

CHAPTER 2
REQUIREMENT IDENTIFICATION

The currentmanual system follows the traditional approach of delivering

the information i.e. all paper work like Registers, ledgers, etc. The

Registration, Allotment, Student details, Staff details and other details are

either verbally told to the concerned persons or by hand-made reports on

paper and lot of work has to be done in absence of computerized system.

Further the retrieval of information is very slow and time consuming and

the processed information may not be 100% accurate, as with the case of

computers.

The main drawback of themanual system is the lack of retrieval of fast

and accurate information. The consumption of time is another major

disadvantage as it finally results in loss of money, which is a vital

resource.

Another disadvantage is cost of labor thatis involved in completing this

task and is very high. The report generation is very tedious and time-

consuming process and there is always the possibility of processing the

wrong result, as manual systems are prone to error.

So, for resolving these problems ofmanual System, wesuppose to work

on a computerized School Management System. This “OnlineSchool

Management System” will be the backbone for managing administrative

Final YearProject Report [12]


Online
School Management System

operations of a school and plays an important role for handling school`s

day today management operations. In today’s competitive world speedy

and accurate information is very essential to face the challenge of

meeting the ever increasing demand of people. “Change is the law of

nature”, as rightly said, and if it brings prosperity and gains all welcomes

it.

Final YearProject Report [13]


Online
School Management System

CHAPTER-3
PRELIMINARY INVESTIGATION

The following investigations have been done before the system design

that helped in finding the basic requirement of the Hardware and

different Software required for the properfunctioning of the software.

This activity is also known as the feasibility analysis or the initial business

study. It begins with a request from the user for a new system. It involves

the following:-

• Identify the responsible users for the system.

• Clarifythe user request.

• Identify deficiencies in the current system.

• Establish goals and objectives for the new system.

• Determine the feasibility for the new system.

3.1 Hardware Interfaces:

The External interface for this system includes the following points:

• Interface to the External Hardware

• Interface to the External Software

• Interface to the User

This is the window or a screen to which the user is interacting. In

this user having the look of the window, what are the inputs he has

to be entering beforeusing the software? For example in any

database access user has to be entering his login name and

password. This window provides the Authentication to the users.

Final YearProject Report [14]


Online
School Management System

3.1.1Design Constraints

Those constraints that perform the limitation on the System

are called design constraints these may be hardware or

software constraints. There are software constraints which

are related to the design of are database and user interface.

In this we are providing the authority to use the database to

the limited number of users. Similarly Hardware constraints

are related to the hardware devices used by the system.

3.1.2Standard Compliance

This system maintains and obeys the standards which are

being useworldwide.

These are the standards, which are used in the software at

the different places. They are firstly fixed and then use at

each different level in the software.

3.2 Software Interfaces:

This system requires Software Interfaces to interact with theother

software’s or to the USER that is being used by the system to work

properly.

The window or a screen to which the user is interacting. In this user

having the look of the window, what are the inputs he has to be

entering before using the software.

Final YearProject Report [15]


Online
School Management System

3.2.1Performance Requirements

For giving the optimal processing to the software we have

took the help of different software.

3.2.2Standard Compliance

This system maintains and obeys the standards, which are

being use worldwide.

These are the standards, which are used in the software at

the different places. They are firstly fixed and then use at

each different level in the software.

Final YearProject Report [16]


Online
School Management System

CHAPTER-4
SYSTEM STUDY

The study of system is deathly that one cannot ignore any parent or

element of a system without first finding out the effect that element has

on the operation of the system as a whole. The system analysis is a

management technique, which helps us in designing a new system or

improving an existing system.

4.1 ManualSystem Along With Limitations/Deficiencies

Theexisting manual system for the School Management System is

done by manual application, which is very difficult to handle.This is

very typical andtime consuming job to maintain manually all these

tasks required by the organization. So it is not a reliable and

efficient approach to do work manually.

The main problems with the existing system (manual applications)

can be summarized as follows:-

Difficult to handle

Requires much manpower

More time consuming

Not reliable and effective

Calculations are very difficult to do

Queries can`t be possible

Data Management

Irrelevant structure and methodologies

Final YearProject Report [17]


Online
School Management System

Not properly scheduled

Lack of easy and friendly environment

4.2 Proposed system along with intended objectives

After analysis of the existingmanual system, a computerized

graphical system is proposed. The proposed system for School

Management System supports the existing system very efficiently

andable to solve the problems occurred in the existing system. The

proposed system will helpful to automate the all the activities of

existing manual school management system and to overcome all

the limitations of Existing system.

This system will maintainall the information properly and overcome

the limitations of the existing system with following important

features:-

Providing a strong administration over whole system

The new user can be able to handle the software easily

Safe and sophisticated system of record keeping

Compatible to utilize available resources to the optimum level

Capable to retrieve information from database within short time.

Capable to keep proper information about staff ,student, Class

and exam Schedule, Fee and Salary of staff.

Capable to check whether the input data is valid or not

Provide facility to print reports

Final YearProject Report [18]


Online
School Management System

The application of the proposed system is associated with various

problems in the conventional manual system-:

1. To get updated information.

2. Maximum utilization of the available resources in the

organization.

3. To maintain the privacy of the relevant and valuable data.

4. To store the data for long-term utilization.

5. To secure the data in the organization.

6. To get the updated and faster details for the queries asked by

themanagement.

7. To facilitate faster processing in the system.

8. To help the management in decision making by giving them

the relevant information.

9. To keep the data so that it can be used later.

4.3 Feasibility Study

At the end of the information gathering phase, we have a

reasonable idea about the data/information available currently and

the deficiencies/needs of the current system. We also reach the

consensus on the requirements and the priorities among these

requirements. Using these data, it is possible to define broad goals

for the project and detailed sub goals. It is necessary at this stage

to quantify the goals and the sub goals. Once these goals are

quantified, the next step is to find out whether these goals can be

Final YearProject Report [19]


Online
School Management System

met, and if yes, how they will be met and at what cost . Feasibility

analysis is mainly concerned with these questions.

Feasibility Study is the most important step in System Analysis.

Depending on the result of initial investigation, the survey is

expanded to more detailed feasibility study. A feasibility study is a

test of system proposal according to its work ability, impact on the

organization, ability to meet needs, and effective use of resources.

Feasibility Study is the determination of whether the project is

feasible or not. Once it has been determined that a project is

feasible, the analyst can go ahead and prepare the project

specification which finalizes project requirements.

A feasibility study should provide management with enough

information to decide:-

• Whether the project can be done

• Whether the final product will benefit its intended users

• What are the alternatives among which a solution will be chosen.

• Is there a preferred alternative

• After a feasibility study, management makesa go/no go decision

Things to be studied during the feasibility study phase:

Final YearProject Report [20]


Online
School Management System

• The present organizational system, including users, policies,

functions, objectives...

• Problems with the present system (inconsistencies, inadequacies

in functionality,performance...

• Objectives and other requirements for the new system

• Constraints, including nonfunctional requirements on the

system (preliminary pass)

• Possible alternatives (the current system is always one of those)

• Advantages and disadvantages of the alternatives

Things to conclude feasibility of the project and the preferred

alternative:

The result of feasibility study is simply a report-a formal document

detailing the nature and scope of the proposed solution. It tells

whether this project will resultin successful & useful project.

Types of Feasibility

The Feasibility is determined in terms of four aspects. These are:

OperationalFeasibility:

Define the urgency of the problem and the acceptability of any

solution, if the system is developed, will it be used? Includes

people-oriented and social issues: internal issues, such as

manpower problems, manager resistance, organizational conflicts

Final YearProject Report [21]


Online
School Management System

and policies, also external issues, including social acceptability,

legal aspects and government regulations.

Technical Feasibility:

Is the project feasibility within the limits of current technology?

Does the technology exist at all? Is it available within given resource

constraints (i.e.,budget, schedule...)

Economic (Cost/Benefits Analysis)Feasibility:

Is the project possible, given resource constraints? Are the benefits

that will accrue from the new system worth the costs? What are the

savings that will result from the system, including tangible and

intangible ones? What are the development and operational costs?

Time Feasibility

A project will fail if it takes too long to be completed before it is

useful. Typically this means estimating how long the system will

take to develop, and if it can be completed in a given time period

using some methods like payback period. Time Feasibility is a

measure of how reasonable the project timetable is. Given our

technical expertise, are the project deadlines reasonable? Some

projects are initiated with specific deadlines. You need to determine

whether the deadlines are mandatory or desirable.

Final YearProject Report [22]


Online
School Management System

4.3.1 Operational Feasibility

In manual system whenever any person comes in and asks for

the services from the system as per the requirement, staff

members has to check for the solutions of their requirements

manually by searching each and every recordand updates all

the records when the task given to them is accomplished.

Besides this, the staff members have to prepare various

status reports manually which in turn require greater

attention over the different records of the system. Manual

system has more problems associated with it.

Deficiencies of manual system.

4.3.1.1 Area of unsatisfactory performance:

(a). Accuracy and reliability:- Since all the

manipulation and calculation are handled by

human being, so it is not sure to get correct

output, further handling large amount of data is

also error prone as correction in hand written

document leads to overwriting and this create

confusion.

(b) Managing the number of physical file register:

All the records relating to the booking and

removal of the student record are maintained on

paper and physical files. So it becomes a tedious

Final YearProject Report [23]


Online
School Management System

job to manage all of them in an effective manner

and also difficult to group homogenous records

together.

(c) Preparation of periodic reports aren’t accurate:

Since manipulations are done manually, the

processing may result wrong. This will lead to

inaccurate reports. Manual processing takes

more time and so it maytake time in preparation

of report, which is not required.

4.3.1.2 Excessive cost of operation:

(a)Manpower shortage:

System requires efficient working of the system

but it is not always possible. This results in

continual shortage of staffand rise in pay slab to

keep manpower.

(b). Manual efforts and paper work:

Large volume of information has to be recorded

and maintained manually. This leads to lot of

manual efforts and time. Large volume of paper

is also utilized for maintenance. This results in

excessive cost of stationary.

(c) Movements of documents:

Final YearProject Report [24]


Online
School Management System

Different documents, files and reports have to be

sent to different departments, which require

additional resources.

4.3.1.3 Lack of Immediate Retrieval of Information:

One of the problemsof the conventional system

is the immediate retrieval of the information

required at some particular time. Since the

conventional system deals with the manual work

so all the data are stored on papers and the

processing of the data are done manually, so the

retrieval of the information related to some query

delays.

4.3.1.4 Lack of validationCheck/Controls:

In the conventional manual system there is lack

of validation while updating the transaction .In

real life many types of invalid data can be

entered so there must be some type of validation

while entering data and updating the data. In the

conventional system all work is done manually

and there is much possibility of mistakes done

by human beings so there must be some

validation checks on the entry of data and the

recording of the data.

Final YearProject Report [25]


Online
School Management System

4.3.1.5 Lack of Data Security:-

In the conventional manual processingsystem

there is lack of data security since all work is

done manually and all the details are stored on

paper so there is a possibility of losing data on

papers and any unauthorized person can access

the data.

4.3.1.6 Lack of Immediate Processing of Data:

The conventional manual system deals with

manual processing of the data, so the processing

delays and all the transaction cannot be

performed at the time when needed. In the

conventional processing system all the work is

done through paper work and muchof paper

work is done.

4.3.1.7 Lack of Sorted Information:

In the conventional manual system there is lack

of getting sorted information. In the conventional

system if we want to get sorted information we

have to sorted out all the information manually

asthere is no option of getting sorted which is

there in the case of the automated system and

therefore much time is wasted in sorting of data.

Final YearProject Report [26]


Online
School Management System

In contrast of the manual system, with

computerized system we can get sorted

information from the computer.

TheNew Automated System

Speedy and efficient information processing is crucial to our

socially and highly developed technology. Computers can

help the intolerable burden of handling the ever increasing

amount of information with which government department,

public services and business concerns are expected to

contend because of their ability to analyze information as

well as to retain, update and reproduce it because of their

versatility to present it in a variety of forms can, to some

extent ease the problemfaced due to information explosion.

From the above Analysis we can conclude that the new

system is feasible in term of operation as is needs less

manpower and time to operate and also less deficiencies then

the older system.

4.3.2Technical Feasibility

Technical feasibility centers on the existing computer system

(hardware, software, etc) and to what extent it can support

the proposed addition. Technical feasibility is a most

required feature of a system. This is concerned with

Final YearProject Report [27]


Online
School Management System

specifying equipment and software that will successfully

satisfy the user requirement.

Is the project feasibility within the limits of current

technology? Does the technology exist at all? Is it available

within given resource constraints (i.e., budget, schedule...)

In examiningtechnical feasibility, configuration of the system

is given more importance than actual make of hardware. The

configuration should give the complete picture about the

system`s requirements.

As far as the project is concerned the proper implementation

anddesigning of the application specific data bases results

the fulfillment of the desired goal. The present day

computational techniques related to dot net results in the

great ease of the application required and the fast processing

and retrieving speeds ofhardware makes the desired system

technically feasible.

This system is technically sound. It can work on simple

personal computer. Its hardware/software requirements and

produce output in given limited time. It has ability to process

huge volume of transaction at speed. And provide a great

friendly environment to user.

Final YearProject Report [28]


Online
School Management System

4.3.3EconomicalFeasibility

Cost benefit analysis is necessary to determine economic

feasibility .The primary objectives of cost benefit analysis is

to find out whether it iseconomically worthwhile to invest in

the project, if the returns on the investments are good, and

then the project is considered economically worthwhile.

First listing all the cost associated with the project performs

this analysis. Cost consists of bothdirect cost and indirect

cost, and then benefits are calculated .A comparison is made

to see economic feasibility.

Direct cost: This is used in buying equipments, cost on

manpower, cost of consumable items etc.

Indirect cost: Cost of time spent by user in discussing

problems with system analysis etc.

Once the cost benefits of project have been qualified and

calculated, the next step is to find the recovery period of the

capital invested.

Economic analysis is the most frequently used method for

evaluating the effectiveness of a system. More commonly

known as Cost Benefit Analysis, the procedure is to

Final YearProject Report [29]


Online
School Management System

determine the benefits and the savings that are expected

from a system and compare them with costs.

Though the developmental cost for the system may be higher

but one deployed it can provide huge economic benefits to

the particular organization in comparison to the other

traditional systems provided or directly going for human

deployment due to the technological limitations.

The cost for proposed School Management System is

outweighing the cost and efforts involved in maintaining the

registers, books, files and generation of various reports. The

system also reduces the administrative and technical staff to

do various jobs that single software can do. So , this system

is economically feasible.

It can be analyzed that the cost of proposed system is much

less than the benefits that can be derived from it. So we can

accept it to be economically feasible.

This system must economical because used technique for

evaluating the effectiveness is also economic so that I take

design to make and implement this system.

Final YearProject Report [30]


Online
School Management System

4.3.4Time(Duration) Feasibility

Time Feasibilityis a determination of whether a proposed

project can be implemented fully within a stipulatedperiod. If

a project takes too much time it is likely to be rejected.

The proposed system takes a little time period for

implementation so it can be considered as Time Feasible

Software.

Final YearProject Report [31]


Online
School Management System

CHAPTER 5
SYSTEM ANALYSIS

System Analysis is a detail study of the various operations performs by a

system and their relationship within and outside of the system. A key

question is what must be done to solve the problem. System Analysis is

use of experimental approach inunderstanding thebehaviorof

aneconomy, market, or othercomplex phenomenon where

mathematicalanalysis techniquesare inadequate or unfeasible.

5.1 Requirement Specification

Requirement Specification includes all type of requirements that are

needed to implement a software system at user site.

For proper functioning of any system the system must fulfill some

basic Requirements So that it can perform up to the level required

and can fulfill the needs of user.

For a computer system these requirements are classified in two

broad categories:-

5.1.1Hardware Specification

Hardware Specificationsof the system are the specification of

the physical components of the machine on which the project

has been devised.

Thehardwarerequirements for our project are:

Hard disk->1 GB free space

Memory-> 256 MBRAM

Final YearProject Report [32]


Online
School Management System

Processor-> Intel ® Pentium 4 or Higher

Monitor-> V G A or Higher

Mouse-> Standard

Keyboard-> Standard

5.1.2Software specification

Software Specifications are the Software’s required to be

installed on the computer on which the software project isto

be run.The software requirements for our project are:

1. Microsoft Windows (XP-Professional, 2000 Server, 2003

Server, Vista )

4. Microsoft office Tools (Word, Power point) for preparing

documentation, Data Flow Diagram and Presentation.

5. Apache WebServer

6. JavaScript enabled Browser

7. PHP/MySQL

Final YearProject Report [33]


Online
School Management System

5.2 Data Flow Diagram

A data flow diagram (DFD) is a graphical representation of the flow

of data between processes. DFDs can also be used for the

visualizationofdata processing (structureddesign).On a DFD, data

items flow from an external data source or an internal data store to

an internal data store or an external data sink, via an internal

process.

Administrator’s Modules DFD:

UpdateStaff Detail
Staff Database

1
Existing Staff Detail
Staff
Management
New Staff Entry Update StudentDetail
Student Database

2 ExistingStudentDetail
New student Entry Student
Management
Update ScheduleDetail
ScheduleDatabase

Schedule Entry 3 ExistingScheduleDetail


Schedule
Management

Update PaymentDetail
PaymentDatabase
Administrator
4 ExistingPaymentDetail
Payment
Management

Update marks detail

Final YearProject Report [34]


Online
School Management System

Staff’sModules DFD:

MarksDatabase
5
Marks
ExistingmarksDetail
Management

Update attendance detail PaymentDatabase


Staff
6
ExistingattendanceDetail
Attendance
Management

View Staff, Student, Schedule,


Payment, Marks Payment
7 Database

View

Student’sModules DFD:

Student
View
Staff, Student, Schedule,
Payment, Marks Payment
8 Database
View

Final YearProject Report [35]


Online
School Management System

5.3 Sourcesof Data

To develop a School Management System, we must first determine

its information needs. A school’s information needs are

determined by the types of information it must maintain and the

users who require access.

This information is gathered from principals, program managers,

department heads and other staff members. For example, staff

members responsible for reporting to outside agencies will be most

familiar with the requirements of these outside agencies. For

internal operations, each staff member’s data requirements are

dictated by the staff member’s responsibilities. The person most

familiar with the job will be able to specify the information needed

to do the job efficiently and accurately. The increasing reliance on

site-based decision making generally means that more information

must be made available to more people. Including personnel from

all areas of a school in the development of the School Management

System increases the chances of the system’s success. After

information needs are identified, we can determine sources for the

various types of information and specify how the information will

be collected. Now we must identify an appropriate source for each

type of information required. We acquire information from both

internal and external sources. If there are multiple sources for a

Final YearProject Report [36]


Online
School Management System

particular type of information, then sources must be judged based

on efficiency, accuracy and how close the source is to the

origination of thedata. A direct flow of information is generally the

most efficient and the most accurate. Now we determine the most

efficient source and modify its data collection procedures if a

proposed source is more efficient than the existing source.

Generally, information derived from an original source is more

reliable than secondary information.

The method for collection of information depends on the type of

data and how it will be utilized. It may be done verbally, with paper

documents or with magnetic media. We assign collection

responsibilities to specific staff members to ensure that

expectations are clearly understood and that duplication of effort is

reduced.

For collection activities that require data to be collected or reported

in specific formats, we refer to the source documents that provide

the information.

We collected all the information about each module. We consulted

our need with various concerned persons and the system managers

and discussed that what type of input should be involved in each

section/module/department in School Management System.

Final YearProject Report [37]


Online
School Management System

CHAPTER 6
SYSTEM DESIGN

The most creativity and challenging phase of the system life cycle is

system design. The term design describes a final system and the process

by which it is developed.

The possible definitions of the system are

1. A set or arrangement of things so related as to form a unity or organic

whole;

2. A set of facts, principles, rules etc., classified and arranged in an

orderly form so as to show a logical plan linking the various parts.

3. A method or plan of classification of arrangement.

4. An established way of doing something;method; producer.

To accomplish the goal, a computer based system makes use of a variety

of system elements:-

Software: Computer programs, data structures, and related

documentation that serve to effect the logical method , procedure , or

control thatis required.

Hardware: Electronic devices that provide computing capability, the

interconnectivity devices that enable the flow of data, and

electromechanical devices. That provides external world function.

People:Users and operators of hardware and software.

Final YearProject Report [38]


Online
School Management System

Database:A large, organized collection of information that is accessed via

software.

Documentation: Descriptive information that could the use and/or

operation of the system.

Procedure:The steps that define the specific use of each system elements

or the procedural context in which the system resides.

Design is a meaningful engineering representation of something that is to

be built, it can be traced to a customer’s requirement and at the same

time accessed for quality against a set of predefined criteria for “Good”

design .In the software engineering context, design focus on four major

areas of concern: data, architecture, interfaces, and components.

Software engineers design computer based systems, but the skills

required at each level of design work are different. At that data and

architecture level, design focus on patterns as they apply to the

application to be built. At the interface level, human ergonomics often

dictate our design approach. At thecomponent level, a “Programming

Approach” leads us to effective data and procedural designs.

As we would not attempt to build a house without a blueprint, likewise we

will not risk confusion, errors, and a floor plan that did not make sense,

windows anddoors in the wrong place. A mess, computer software is

Final YearProject Report [39]


Online
School Management System

considerably more complex than a house; hence we need a blueprint –

the design.

Design begins with the requirements model. We worked to transform this

model into four levels of design details; the data structure, the system

architecture, the interface representation, and the components level

details, during each design activity, we applied basic concepts and

principles that lead to high quality.

Ultimately, a design specification is produced. The specification is

composed of the design models that describe architecture, interfaces,

and components. Each is a work product of the design process.

At each stage, software design work product are reviewed for clarity,

correctness, completeness, and consistency with the requirements and

with one-another.

With regard to our project School Management System we followed the

same steps. First of all we define the purpose of the of software. We

propose to implement the new system. The new system with qualitative

and meaningful reporting , timely and objective scrutiny of deficient

areas, meticulous monitoring and early rectification of irregularities. It is

sure , the operating guidelines will prove immensely useful to the staff

working and user of system.

Final YearProject Report [40]


Online
School Management System

After considering the various recommendations suggestions operating

guidelines have been formulated.

After defining the purpose we define the scope of the software. This

software will reduce all the manual and rigorous studying of the different

databases/tables. Only the simple query will produce the desired output.

Like the person need not to go throughall the registers, ledgers.

Since we are using all the Microsoft Standards and products hence will be

compatible with other software products of Microsoft.

Decomposition description:

Whole the project is divided into different sub-modules. These sub

modules are as follows:

1) Staff Details

a) Staff Information

b) Class Allocation

c) Add Staff Record

d) Delete Staff Record

2) Student Details

a) Personal Profiles

b) Fee Details

c)Marks Information

3) Student Admission

Final YearProject Report [41]


Online
School Management System

a) Add Student Record

b) Delete Student Record

4) Schedules

a) Exam Schedules

b) Holiday Schedules

c) Class Schedule

Detailed design:

The forms are designed by using:

 Labels: That describes the information to be entered by the user. The

labels are self-explanatory which provides ease to the user sothat they

can fill the entries correctly as well as can retrieve the information and

understand them correctly.

 Command buttons: These buttons act like control buttons of the form.

With the help of this the user can interact with the School Management

System. The user can enter the data into the database through them as

well as receive the data from the database.

ADD-this command button is used to add entries into database.

EDIT-this command button is used to modify data into database.

CLEAR-this command button is used to make all the controls empty.

CANCEL-this command button is used to close the current running form.

OK-this command button is used to enter the data of the form into the

database.

Final YearProject Report [42]


Online
School Management System

• Text area: These text areas are being used in order to enter the data by

the user and also to retrieve the data from the user. But text areas take

more data with respect to text box.

Code Efficiency:

Code is efficient, if it have these properties:

o Codeis Reliable.

o Easily available to the user.

o Easy to use.

o Understandable by the user.


All these properties are in our project code, so code is efficient.

Final YearProject Report [43]


Online
School Management System

6.1 File/Database Design

Database designis the process of producing a detaileddata

modelof adatabase. Thislogical data modelcontains all the

needed logical and physical design choices and physical storage

parameters needed to generate a design in aData Definition

Language, which can then be used to create a database. Afully

attributed data model contains detailed attributes for each entity.

The term database design can be used to describe many different

parts of the design of an overalldatabase system. Principally, and

most correctly, it can be thought of as the logical design of the

base data structures used to store the data.

Our project included thesetwo databases design with tables as

seen in screenshot.

Final YearProject Report [44]


Online
School Management System

“school_management_branch_a|” Database Tables

attendance_table
Column Type Null Default Comments

Date date No

Student ID int(10) No

Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No

Section enum('A', 'B', 'C', 'D', 'E') No

Status enum('Present', 'Absent') No

class_table
Column Type Null Default Comments
Mark int(11) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Section enum('A', 'B', 'C', 'D', 'E') No

exam_schedule_table
Column Type Null Default Comments
Mark int(10) No
Exam Name varchar(20) No
StartTime varchar(30) No
Am Pm ForStartTime enum('Am', 'Pm') No
EndTime varchar(20) No
Am Pm ForEndTime enum('Am', 'Pm') No
Class varchar(20) No
Section varchar(20) No
Subject varchar(30) No
Date date No

Final YearProject Report [45]


Online
School Management System

fee_table
Column Type Null Default Comments
Mark int(11) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Library Fee int(10) No
Lab Fee int(10) No
Transport Fee int(10) No
No Of Terms int(10) No
First Term int(10) No
Second Termint(10) No

holiday_schedule_table
Column Type Null Default Comments
Mark int(10) No
Date date No
Holiday Name varchar(20) No
From Date date No
To Date date No

message_table
Column Type Null Default Comments
From varchar(20) No
Subject varchar(50) No
Message text No

period_table
Column Type Null DefaultComments
Mark int(10) No
enum('I', 'II', 'III','IV', 'V', 'VI', 'VII', 'VIII', 'IX',
Period No
'X', 'Break')
StartTime varchar(20) No
Am Pm
enum('Am', 'Pm') No
ForStartTime
EndTime varchar(20) No
Am Pm
enum('Am', 'Pm') No
ForEndTime

Final YearProject Report [46]


Online
School Management System

staff_leave_table
Column Type Null Default Comments

Mark1 int(10) No

Staff ID int(10) No

No Of Leave int(10) No

Start Date date No

To Date date No

Reason varchar(100) No

Status enum('Approve', 'Reject', 'Pending') No

staff_salary_table
Column Type Null Default Comments

Mark int(11) No

Staff ID int(20) No

HRA int(20) No

PF int(20) No

TA int(20) No

DA int(20) No

Professional Tax int(20) No

Basic int(20) No

No Of Working Days int(20) No

No Of Days Present int(20) No

Total Amount int(20) No

Final YearProject Report [47]


Online
School Management System

staff_table
Column Type Null Default Comments
Mark int(10) No
Staff Registration No varchar(20) No
Staff ID int(10) No
Staff Name varchar(20) No
Specilization varchar(20) No
Gender enum('Male', 'Female') No
Experience varchar(20) No
Salary int(20) No
Date Of Join date No
Perminant Address varchar(80) No
Present Address varchar(80) No
Phone varchar(12) No
Cell No varchar(12) No
City varchar(20) No
Required User Name varchar(20) No
Others text No

students_marks_table
Column Type Null Default Comments
Student ID int(10) No
Class varchar(20) No
Section varchar(10) No
Marks1 int(10) No
Marks2 int(10) No
Marks3 int(10) No
Marks4 int(10) No
Marks5 int(10) No
Marks6 int(10) No
Marks7 int(10) No
Marks8 int(10) No
Marks9 int(10) No
Marks10 int(10) No
Total Marks int(10) No
Percentage int(10) No
Grade varchar(2) No

Final YearProject Report [48]


Online
School Management System

student_table

Column Type Null DefaultComments

Mark int(11) No

Student Registration
varchar(20) No
No

Student ID int(10) No

Student Name varchar(20) No

Date Of Birth date No

enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII',


Class No
'IX', 'X')

Section enum('A', 'B', 'C', 'D', 'E') No

Gender enum('Male', 'Female') No

Date Of Join date No

Father Name varchar(20) No

Mother Name varchar(20) No

Occupation varchar(30) No

Perminant Address text No

Present Address text No

City varchar(20) No

Phone varchar(12) No

Email ID varchar(40) No

Others text

subject_table
Column Type Null Default Comments
Mark int(10) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Subject varchar(30) No

Final YearProject Report [49]


Online
School Management System

syllabus_table
Column Type Null Default Comments
Mark int(10) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Subject varchar(30) No
Syllabus Url varchar(50) No

time_table
Column Type Null Default Comments
Class enum('I', 'II', 'III','IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Section enum('A', 'B', 'C', 'D', 'E') No
Teacher Name varchar(20) No
Period enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Subject varchar(30) No

Final YearProject Report [50]


Online
School Management System

“school_management_branch_b|” Database Tables

attendance_table
Column Type Null Default Comments

Date date No

Student ID int(10) No

Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No

Section enum('A', 'B', 'C', 'D', 'E') No

Status enum('Present', 'Absent') No

class_table
Column Type Null Default Comments
Mark int(11) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Section enum('A', 'B', 'C', 'D', 'E') No

exam_schedule_table
Column Type Null Default Comments
Mark int(10) No
Exam Name varchar(20) No
StartTime varchar(30) No
Am Pm ForStartTime enum('Am', 'Pm') No
EndTime varchar(20) No
Am Pm ForEndTime enum('Am', 'Pm') No
Class varchar(20) No
Section varchar(20) No
Subject varchar(30) No
Date date No

Final YearProject Report [51]


Online
School Management System

fee_table
Column Type Null Default Comments
Mark int(11) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Library Fee int(10) No
Lab Fee int(10) No
Transport Fee int(10) No
No Of Terms int(10) No
First Term int(10) No
Second Termint(10) No

holiday_schedule_table
Column Type Null Default Comments
Mark int(10) No
Date date No
Holiday Name varchar(20) No
From Date date No
To Date date No

message_table
Column Type Null Default Comments
From varchar(20) No
Subject varchar(50) No
Message text No

period_table
Column Type Null DefaultComments
Mark int(10) No
enum('I', 'II', 'III','IV', 'V', 'VI', 'VII', 'VIII', 'IX',
Period No
'X', 'Break')
StartTime varchar(20) No
Am Pm
enum('Am', 'Pm') No
ForStartTime
EndTime varchar(20) No
Am Pm
enum('Am', 'Pm') No
ForEndTime

Final YearProject Report [52]


Online
School Management System

staff_leave_table
Column Type Null Default Comments

Mark1 int(10) No

Staff ID int(10) No

No Of Leave int(10) No

Start Date date No

To Date date No

Reason varchar(100) No

Status enum('Approve', 'Reject', 'Pending') No

staff_salary_table
Column Type Null Default Comments

Mark int(11) No

Staff ID int(20) No

HRA int(20) No

PF int(20) No

TA int(20) No

DA int(20) No

Professional Tax int(20) No

Basic int(20) No

No Of Working Days int(20) No

No Of Days Present int(20) No

Total Amount int(20) No

Final YearProject Report [53]


Online
School Management System

staff_table
Column Type Null Default Comments
Mark int(10) No
Staff Registration No varchar(20) No
Staff ID int(10) No
Staff Name varchar(20) No
Specilization varchar(20) No
Gender enum('Male', 'Female') No
Experience varchar(20) No
Salary int(20) No
Date Of Join date No
Perminant Address varchar(80) No
Present Address varchar(80) No
Phone varchar(12) No
Cell No varchar(12) No
City varchar(20) No
Required User Name varchar(20) No
Others text No

students_marks_table
Column Type Null Default Comments
Student ID int(10) No
Class varchar(20) No
Section varchar(10) No
Marks1 int(10) No
Marks2 int(10) No
Marks3 int(10) No
Marks4 int(10) No
Marks5 int(10) No
Marks6 int(10) No
Marks7 int(10) No
Marks8 int(10) No
Marks9 int(10) No
Marks10 int(10) No
Total Marks int(10) No
Percentage int(10) No
Grade varchar(2) No

Final YearProject Report [54]


Online
School Management System

student_table

Column Type Null DefaultComments

Mark int(11) No

Student Registration
varchar(20) No
No

Student ID int(10) No

Student Name varchar(20) No

Date Of Birth date No

enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII',


Class No
'IX', 'X')

Section enum('A', 'B', 'C', 'D', 'E') No

Gender enum('Male', 'Female') No

Date Of Join date No

Father Name varchar(20) No

Mother Name varchar(20) No

Occupation varchar(30) No

Perminant Address text No

Present Address text No

City varchar(20) No

Phone varchar(12) No

Email ID varchar(40) No

Others text

subject_table
Column Type Null Default Comments
Mark int(10) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Subject varchar(30) No

Final YearProject Report [55]


Online
School Management System

syllabus_table
Column Type Null Default Comments
Mark int(10) No
Class enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Subject varchar(30) No
Syllabus Url varchar(50) No

time_table
Column Type Null Default Comments
Class enum('I', 'II', 'III','IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Section enum('A', 'B', 'C', 'D', 'E') No
Teacher Name varchar(20) No
Period enum('I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X') No
Subject varchar(30) No

Final YearProject Report [56]


Online
School Management System

6.2 Screenshots

Home Screen

Branch Selection Screen

Final YearProject Report [57]


Online
School Management System

LoginSelectionPage

Login Page

Final YearProject Report [58]


Online
School Management System

AdministratorHome Screen

Staff Home Screen

Final YearProject Report [59]


Online
School Management System

Student Home Screen

Class Registration

Final YearProject Report [60]


Online
School Management System

Staff Registration

Student Registration:

Final YearProject Report [61]


Online
School Management System

Staff Detail view/edit

Delete Student/Staff

Final YearProject Report [62]


Online
School Management System

Add Timetable

View Timetable

Final YearProject Report [63]


Online
School Management System

Add Holiday

View/EditHoliday

Final YearProject Report [64]


Online
School Management System

Add Exam Schedule

View Exam Schedule

Final YearProject Report [65]


Online
School Management System

Add Student Fee

View/Edit Student Fee

Final YearProject Report [66]


Online
School Management System

Add Staff Salary

View/Edit Staff Salary

Final YearProject Report [67]


Online
School Management System

Add Student’s marks detail

View Student Marks

Final YearProject Report [68]


Online
School Management System

Student Attendance Entry

Leave Request Placement

Final YearProject Report [69]


Online
School Management System

Leave Approval

Leave Histgoryview

Final YearProject Report [70]


Online
School Management System

6.2 Coding

Project Directory Structure

Final YearProject Report [71]


Online
School Management System

Index.php
<?php
function ae_detect_ie()
{
If(isset($_SERVER['HTTP_USER_AGENT'])&&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
{
return true;
}
else
{
return false;
}
}
if(ae_detect_ie())
{
echo"<center><table border=1 width=600 style=border-
collapse:collapse><tr><td align=center
style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This
Website Does Not Support IE</b></td></tr>";
echo "<tr align=center><td style=background-color:#AFEEEE><a
href=http://www.mozilla.com/firefox/target=_blank>DownLoad
FireFox</a></td></tr></center>";
exit;
}
else
session_start();
unset($_SESSION['user_name']);
unset($_SESSION['password']);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" />
<title>Index Page</title>
</head>
<table border=0>
<tr><td colspan="3" width="100%" height="150px"><img
src="images/top_banner_w.gif"/></td></tr>
<tr><td colspan="3" style="background-color:rgb(0,40,118);"
height="5px"></td></tr>
<tr>

<td><img src="images/left_banner.gif"</td>

Final YearProject Report [72]


Online
School Management System

<td valign="top" align="center" width="480">

<table border=0 cellspacing="4">


<tr><td height="130px"></td></tr>
<tr><td colspan="2" align="center" width="465px" valign="bottom"
height="0px" class="def_page_welcome"><i>Welcome to</i></td></tr>
<tr height="10px"><td></td></tr>
<tr><td width="50px" align="right"><img
src="images/logo.jpg"/></td><td style="color:green;font-size:40; width:
350px"><br>The City Public School</td></tr>
<tr><td colspan="2" height="10px"></td></tr>
<tr><td colspan="2" align="center"><form
action="list_of_branches.php"><input class="enter_button" type="submit"
value="Enter >>"/></form></td></tr>

</table></td>
<td><img src="images/right_banner.gif"</td>
</tr>
</table>
<!--frameset border="1" rows="150px,*">
<frame src="images/k5.jpg" noresize="noresize"/>
<frameset border="1" cols="20px,30px,20px">
<frame src="images/k6.jpg" noresize="noresize"/>
<frame src="welcome_page.php" noresize="noresize"/>
<frame src="images/k7.jpg" noresize="noresize"/>
<p>adfasdF</p>
</frameset-->
</html>

list_of_branches.php
<?php
function ae_detect_ie()
{
If(isset($_SERVER['HTTP_USER_AGENT'])&& (strpos($_SERVER['HTTP_USER_AGENT'],
'MSIE') !== false))
{
return true;
}
else
{
return false;
}
}
if(ae_detect_ie())
{

Final YearProject Report [73]


Online
School Management System

echo "<center><table border=1 width=600 style=border-collapse:collapse><tr><td


align=center
style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This Website Does
Not Support IE</b></td></tr>";
echo "<tr align=center><td style=background-color:#AFEEEE><a
href=http://www.mozilla.com/firefox/target=_blank>DownLoad FireFox
</a></td></tr></center>";
exit;
}
else
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css">
<title>List of Branches</title>
</head>
<table border=0>
<tr><td colspan="3" width="100%" height="150px"><img
src="images/top_banner_w.gif"/></td></tr>
<tr><td colspan="3" style="background-color:rgb(0,40,118);"
height="5px"></td></tr>
<tr>

<td><img src="images/left_banner.gif"</td>
<td valign="top"align="center" width="480">

<table border=0 width="480px" cellspacing="4">


<tr><td height="10px"></td></tr>
<tr height="10px"><td></td></tr>
<tr><td width="100px" align="right"><img src="images/logo.jpg"
width="70"/></td><td class="welcome_to">The City Public School</td></tr>
<tr><td colspan="2" width="50px"><fieldset><legend class="leg" style="">List
of Bracnches</legend>
<div id="branches_link">
<a href="branch_a/home.php">Bracnh A</a>
<hr/>
<a href="branch_b/home.php">Bracnh B</a>
<hr/>
</div>

</fieldset></td></tr>
</table>

</td>

Final YearProject Report [74]


Online
School Management System

<td><img src="images/right_banner.gif"</td>
</tr>
</table>
<!--frameset border="1" rows="150px,*">
<frame src="images/k5.jpg" noresize="noresize"/>
<frameset border="1" cols="20px,30px,20px">
<frame src="images/k6.jpg" noresize="noresize"/>
<frame src="welcome_page.php" noresize="noresize"/>
<frame src="images/k7.jpg" noresize="noresize"/>
<p>adfasdF</p>
</frameset-->
</html>

welcome_page.php
<?php
function ae_detect_ie()
{
if(isset($_SERVER['HTTP_USER_AGENT'])&& (strpos($_SERVER['HTTP_USER_AGENT'],
'MSIE') !== false))
{
return true;
}
else
{
return false;
}
}
if(ae_detect_ie())
{
echo "<center><table border=1 width=600 style=border-collapse:collapse><tr><td
align=center
style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This Website Does
Not Support IE</b></td></tr>";
echo "<tr align=center><td style=background-color:#AFEEEE><a
href=http://www.mozilla.com/firefox/ target=_blank>DownLoad
FireFox</a></td></tr></center>";
exit;
}
else
?>
<table border=0 cellspacing="4">

<tr><td colspan="2" align="center" width="465px" valign="bottom"


height="150px" style="font-size:30; font-weight:bold; text-
decoration:underline;">WELCOME TO</td></tr>

Final YearProject Report [75]


Online
School Management System

<tr height="10px"><td></td></tr>
<tr><td width="150px" align="right"><img src="images/logo.jpg"/></td><td
style="color:blue;font-size:20;">The City Public School</td></tr>
<tr><tdcolspan="2" height="10px"></td></tr>
<tr><td colspan="2" align="center"><form
action="list_of_branches.php"><input type="submit" value="Enter
>>"/></form></td></tr>

</table>

Login.php

<?php
function ae_detect_ie()
{
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
{
return true;
}
else
{
return false;
}
}

if(ae_detect_ie())
{
echo "<center><table border=1 width=600 style=border-collapse:collapse><tr><td
align=center
style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This Website Does
Not Support Internet Explorer</b></td></tr>";
echo "<tr align=center><td style=background-color:#AFEEEE><a
href=http://www.mozilla.com/firefox/target=_blank>DownLoad FireFox
</a></td></tr></center>";
exit;
}
else
?>

<html>
<head>
<link rel="stylesheet" type="text/css" href="branch_a.css">
<title>Login Page</title>

Final YearProject Report [76]


Online
School Management System

</head>
<table border=0>
<tr><td colspan="3" width="100%" height="150px"><img
src="images/top_banner.gif"/></td></tr>
<tr><td colspan="3" style="background-color:rgb(0,40,118);"
height="5px"></td></tr>

<tr>

<td><img src="images/left_banner.gif"</td>
<td valign="top" align="center" width="480">

<table border=0 width="480px" cellspacing="4">


<tr><td height="10px"></td></tr>
<tr height="10px"><td></td></tr>
<tr><td width="110px" align="right"><img src="images/logo.jpg"
width="70"/></td><td class="welcome_to">The City Public School</td></tr>
<tr><td colspan="2" height="50" width="50px" align="center">
<form name="admin_form" action="" method="post"/>
<table border=0 cellspacing="12">
<tr><td align="right" style="color:brown;font-size:25;padding-
right:10;">Admin Login</td></tr>
<tr><td align="right">
User Name : <input type="text"
name="user_name" value="anwarhmk"/></td></tr>
<tr><td align="right">Password : <input type="password" name="password"
value="123456"/></td></tr>
<tr><td align="right" style="padding-right:46;"><input type="submit"
value="Login"/></form></td></tr>

</table>
<?php
if(count($_POST)>0)
{
require("functions_page.php");
$username= $_POST['user_name'];
$password = $_POST['password'];
if(!loginCheck($username,$password))
{
echo "<table border=0>
<tr><td width=77></td><td class=invalid_username
align=center>Invalid User Name or Password</td></tr>
</table>";
}
else header("Location:admin_main_page.php");

Final YearProject Report [77]


Online
School Management System

session_start();
$_SESSION['user_name']=$username;
$_SESSION['password']=$password;
}

?>
<!--tr><td <a href=""><img src="images/admin_button.gif"></a>
align="right"><img src="images/admin_icon.gif"></td>
<td><img src="images/admin_button.gif"></td></tr-->
</table>

</td>
<td><img src="images/right_banner.gif"</td>
</tr>
</table>
<!--frameset border="1" rows="150px,*">
<frame src="images/k5.jpg" noresize="noresize"/>
<frameset border="1" cols="20px,30px,20px">
<frame src="images/k6.jpg" noresize="noresize"/>
<frame src="welcome_page.php" noresize="noresize"/>
<frame src="images/k7.jpg" noresize="noresize"/>
<p>adfasdF</p>
</frameset-->

</html>

Main CSS File (main.css)


body {
margin:50px 0px; padding:0px;
text-align:center;
}

td.def_page_welcome
{
font-size:30;
font-weight:bold;
text-decoration:underline;
}
td.welcome_to
{
color:blue;
font-size:28;"
}
input.enter_button
{
color:brown;
font-size:16;
font-weight:bold;
}

Final YearProject Report [78]


Online
School Management System

legend
{
border-style:solid;
border-color:black;
background-color:;
color:black;
padding: 2px 6px
}
fieldset
{
background-color:;
border-color:black;
border-style:solid;
}
#branches_link a:link, a:active, a:hover, a:visited
{
color:black;
text-decoration:none;
}
#select_one td.admin_button
{
background-image:url('images/admin_button.gif');
background-repeat:no-repeat;
}
#select_one td.staff_button
{
background-image:url('images/staff_button.gif');
background-repeat:no-repeat;
}

#select_one td.parents_button
{
background-image:url('images/parents_button.gif');
background-repeat:no-repeat;
}
#select_one td.students_button
{
background-image:url('images/students_button.gif');
background-repeat:no-repeat;
}

#select_one a
{
color:white;
text-decoration:none;
font-weight:bold;
font-size:14px;
}

td.invalid_username
{
font-size:12;
color:red;
width:195px;
padding:3px;
background-color:#FFFFE0;
border:1px solid red;
margin:0px;
}

function_page.php
<?php
require("db_connection.php");

Final YearProject Report [79]


Online
School Management System

function viewStaffLoginDetail()
{
$res = mysql_query("SELECT * FROM staff_table");
echo "<table border=1 style=border-collapse:collapse;><caption
style=color:green;font-weight:bold;font-size:17>Login Detail</vaption>
<th width=180>Staff ID</th><th width=180>Staff Name</th><th
width=180>User Name</th>";
while($row = mysql_fetch_assoc($res))
{
echo "<tr align=center><td>".$row['Staff
ID']."</td><td>".$row['Staff Name']."</td><td>".$row['Required User
Name']."</td></tr>";
}
echo "</table>";
}

function addClass($add_class,$add_section)
{
if($add_class!="select_class"&&$add_section!="select_section")
{
$res = mysql_query("SELECT * FROM class_table");
{
while($row = mysql_fetch_assoc($res))
{

if($add_class==$row['Class']&&$add_section==$row['Section'])
{
echo "Section ".$add_section."
for Class ".$add_class." has allready added...";
return;
}
}
mysql_query("INSERT INTO class_table (Class,
Section) VALUES ('$add_class', '$add_section')");
echo "Section ".$add_section." for Class ".
$add_class ." has been added Successfully...";
return;
}
}
else echo "Please Select Class and Section...";
return;
}

function loginCheck($username,$password)
{
if($username=='anwarhmk'&&$password=="123456")
{
return true;
}
else return false;
}

function viewClass()
{
echo "<table border=1 style=border-collapse:collapse;><th
width=150>Mark</th><th width=150>Class</th><th width=150>Section</th>";
$res = mysql_query("SELECT * FROM class_table ORDER BY Class ASC");
{
while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td
class=edit_and_update_link><input type=radio name=mark_id_for_delete_class
value=".$row['Mark']."></td>

Final YearProject Report [80]


Online
School Management System

<td width=150>".$row['Class']."</td><td
width=150>".$row['Section']."</td><tr>";
}
echo "</table>";
}
}

function deleteClass($delete_class,$delete_section)
{
if($delete_class!="select_class"&&$delete_section!="select_section")
{
$res = mysql_query("SELECT * FROM class_table");

while($row = mysql_fetch_assoc($res))
{

if($delete_class==$row['Class']&&$delete_section==$row['Section'])
{
mysql_query("DELETE FROM
class_table WHERE Class ='$delete_class' AND Section = '$delete_section'");
echo "Section
".$delete_section." for Class ".$delete_class." has Successfully deleted...";
return;exit;

}
}
echo "Section ".$delete_section." for Class ".
$delete_class." is not available for Deleting...";
return;

}
else echo "Please Select Class and Section...";
return;
}

function markDeleteClass($mark_id_for_delete_class)
{
if(!isset($_POST['mark_id_for_delete_class']))
{
header("Location:view_class.php");
}

$res = mysql_query("SELECT * FROM class_table");

while($row = mysql_fetch_assoc($res))
{

if($mark_id_for_delete_class==$row['Mark'])
{
mysql_query("DELETE FROM
class_table WHERE Mark = '$mark_id_for_delete_class'");
return;exit;

}
}
}

function addSubject($add_class,$add_subject)
{
if($add_class!="select_class"&&$add_subject!="Subject
Name"&&$add_subject!='')
{
$res = mysql_query("SELECT * FROM subject_table");

Final YearProject Report [81]


Online
School Management System

{
while($row = mysql_fetch_assoc($res))
{

if($add_class==$row['Class']&&$add_subject==$row['Subject'])
{
echo "Subject ".$add_subject."
for Class ".$add_class." has allready added...";
return;
}
}
mysql_query("INSERT INTO subject_table (Class,
Subject) VALUES ('$add_class', '$add_subject')");
echo "Subject ".$add_subject." for Class ".
$add_class ." has been added Successfully...";
return;
}
}
else echo "Please Select Class and Subject...";
return;
}

function viewSubject()
{
echo "<table border=1 style=border-collapse:collapse;><th
width=150>Mark</th><th width=150>Class</th><th width=150>Subject</th>";
{
$res = mysql_query("SELECT * FROM subject_table ORDER BY Class
ASC");
while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td
class=edit_and_update_link><input type=radio name=mark_id_for_update_subject
value=".$row['Mark']."></td>
<td width=150>".$row['Class']."</td>
<td width=150 align=left style=padding-
left:10;>".$row['Subject']."</td></tr>";

}
echo "</table>";
}
}

function deleteSubject($delete_class,$delete_subject)
{

if($delete_class!="select_class"&&$delete_subject!="Subject Name")
{
$res = mysql_query("SELECT * FROM
subject_table");
while($row = mysql_fetch_assoc($res))
{

if($delete_class==$row['Class']&&$delete_subject==$row['Subject'])
{
mysql_query("DELETE FROM subject_table
WHERE Class = '$delete_class' AND Subject = '$delete_subject'");
echo "Subject ". $delete_subject ." for
Class". $delete_class ."has been deleted Successfully...";
return;
}
}
echo "Subject ". $delete_subject ." for Class ".
$delete_class ." is not available to Delete...";
}

Final YearProject Report [82]


Online
School Management System

else echo "Please select Class and Subject...";

function markDeleteSubject($mark_id_for_update_subject)
{
mysql_query("DELETE FROM subject_table WHERE
Mark='$mark_id_for_update_subject'");
return;
}

function updateSubject($class,$subject,$mark_id_for_update_subject)
{
//if($edit_and_delete!='')
if($subject!='')
{
mysql_query("UPDATE subject_table SET Class = '$class', Subject =
'$subject' WHERE Mark = '$mark_id_for_update_subject'");
echo "Values has beem Updated Successfully...";
return true;exit;
}
else echo "Does not update value for Class ".$class." ...";return false;
}

function
addPeriod($add_period,$start_time,$am_pm_for_start_time,$end_time,$am_pm_for_end
_time)
{

if($add_period!="select-
period"&&$start_time!="00:00"&&$end_time!="00:00")
{
$res = mysql_query("SELECT * FROM period_table");
{
while($row = mysql_fetch_assoc($res))
{
if($add_period==$row['Period'])
{
echo "Time for period
".$add_period." has allready added...";
return;
}
}

mysql_query("INSERT INTO period_table (`Mark`,


`Period`, `StartTime`, `Am Pm ForStartTime`, `EndTime`, `Am Pm ForEndTime`)
VALUES (NULL, '$add_period',
'$start_time', '$am_pm_for_start_time', '$end_time', '$am_pm_for_end_time')");
echo "Time for period ".$add_period." has been
added Successfully...";
return;
}
}
else echo "Please Select and time...";
return;
}

function viewPeriod()
{

Final YearProject Report [83]


Online
School Management System

echo "<table border=1 style=border-collapse:collapse;><th width=150>Mark</th><th


width=150>Period</th><th width=150>Start Time</th>
<th width=150>End Time</th>";
//$res = mysql_query("SELECT subject_table.Mark FROM subject_table");
//$row=mysql_fetch_assoc($res);
//$value=$row['Mark'];
{
$res = mysql_query("SELECT * FROM period_table ORDER BY Period ASC");
while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td><input type=radioname=mark_id_for_edit_period
value=".$row['Mark']."></td><td
width=150>".$row['Period']."</td>
<td width=150 align=center>".$row['StartTime']."
".$row['Am Pm ForStartTime']."</td>
<tdwidth=150 align=center>".$row['EndTime']."
".$row['Am Pm ForEndTime']."</td></tr>";

}
echo "</table>";
}
}

function updatePeriod($period, $start_time, $am_pm_for_start_time, $end_time,


$am_pm_for_end_time, $mark_id_for_edit_period)
{
//if($edit_and_delete!='')
if($start_time!=''&&$end_time!='')
{
mysql_query("UPDATE period_table SET `Period` = '$period', `StartTime` =
'$start_time', `Am Pm ForStartTime` = '$am_pm_for_start_time',
`EndTime` = '$end_time', `Am Pm ForEndTime` =
'$am_pm_for_end_time' WHERE `Mark` = '$mark_id_for_edit_period'");
echo "Values has beem Updated Successfully...";
return true;exit;
}
else echo "Does not update value ...";
}

function deletePeriod($delete_period)
{
$res = mysql_query("SELECT * FROM period_table");
while($row = mysql_fetch_assoc($res))
{
if($delete_period==$row['Period'])
{
mysql_query("DELETE FROM period_tableWHERE Period = '$delete_period'");
echo "Period ". $delete_period ." has been deleted Successfully...";
return;
}
}
echo "Period ". $delete_period ." is not available to Delete...";
}

function
addSyllabus($add_class_for_db,$add_class_for_folder,$add_subject,$syllabus_url)
{

if($add_class_for_db!="select_class"&&$add_subject!="Subject Name")
{

Final YearProject Report [84]


Online
School Management System

if($syllabus_url=='')
{
echo "Please Select Syllabus...";
return;
}

//if(file_exists("syllabus/".$add_class_for_folder."/".$_FILES['add_syllabus']['
name']))
// {
// echo "syllabus for ".$add_class_for_folder."
".$_FILES["add_syllabus"]['name']." already exists";
// }
//else
// {

$res = mysql_query("SELECT * FROM


syllabus_table");
{
while($row =
mysql_fetch_assoc($res))
{

if($add_class_for_db==$row['Class']&&$add_subject==$row['Subject'])
{
echo "Syllabus
for Class ".$add_class_for_db." ".$add_subject." has allready uploaded...";
return;
}
}

move_uploaded_file($_FILES['add_syllabus']['tmp_name'],"syllabus/".$add_class_fo
r_folder."/".$_FILES['add_syllabus']['name']);
mysql_query("INSERT INTO
syllabus_table (`Class`, `Subject`, `Syllabus Url`)
VALUES
('$add_class_for_db', '$add_subject', '$syllabus_url')");
echo "Syllabus for Class
".$add_class_for_db." has been uploaded Successfully...";
return;
}
//}
}
else echo "Please Select Class and Subject...";
return;
}

function viewSyllabus()
{
echo "<table border=1 style=border-collapse:collapse;><th
width=150>Mark</th><th width=150>Class</th><th width=150>Subject</th>
<th width=120>Syllabus</th>";
$res = mysql_query("SELECT * FROM syllabus_table ORDER BY Class
ASC");
while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td><input type=radio
name=mark_id_for_delete_syllabus
value=".$row['Mark']."></td>
<td width=150>".$row['Class']."</td>
<td width=150 align=left style=padding-
left:10;>".$row['Subject']."</td>
<td width=10 height=35 valign=middle align=center>
<a href=".$row['Syllabus Url']."><table border=0
width=105 height=33><tr>

Final YearProject Report [85]


Online
School Management System

<td style=background-
image:url(images/try.gif);background-repeat:no-repeat;>

</td></tr></table></a>";
"</td></tr>";

}
echo "</table>";

function
deleteSyllabus($delete_class_for_db,$delete_class_for_folder,$delete_subject)
{
if($delete_class_for_db!="select_class"&&$delete_subject!="Subject
Name")
{
$res = mysql_query("SELECT * FROM
syllabus_table");
{
while($row =
mysql_fetch_assoc($res))
{

if($delete_class_for_db==$row['Class']&&$delete_subject==$row['Subject'])
{

unlink($row['Syllabus Url']);

mysql_query("DELETE FROM syllabus_table WHERE Class= '$delete_class_for_db' AND


Subject='$delete_subject'");
echo
"Syllabus for Class ".$delete_class_for_db." has been Deleted Successfully...";
return;
}
}
echo "Syllabus for
Class ".$delete_class_for_db." ".$delete_subject." is not available to
Delete...";
return;
}
}
echo "Please Select Class and Subject";
return;
}

function markDeleteSyllabus($mark_id_for_delete_syllabus)
{
$sql = mysql_query("SELECT * FROM
syllabus_table WHERE Mark = '$mark_id_for_delete_syllabus'");
$row = mysql_fetch_assoc($sql);
unlink($row['Syllabus Url']);

Final YearProject Report [86]


Online
School Management System

mysql_query("DELETE FROM
syllabus_table WHERE Mark = '$mark_id_for_delete_syllabus'");
}

function
addStaff($staff_registration_no,$staff_ID,$staff_name,$specilization,$gender

,$experience,$salary,$date_of_join,$perminant_address,$present_address,$phone,$c
ell_no,$city,$required_username,$others)
{

if($staff_name==''||$specilization==''||$experience==''||$salary==''||$date_of_j
oin=='yyyy-mm-dd'||$date_of_join==''

||$perminant_address==''||$present_address==''||$cell_no==''||$city==''||$requir
ed_username=='')
{
echo "<table border=0><tr><td width=337></td><td
class=popup_for_view_time_table>Please Type Above All
Information...</td><td></td></tr></table>";
return false;
}

mysql_query("INSERT INTO staff_table (`Staff


Registration No`,`Staff ID`,`Staff Name`,`Specilization`,`Gender`
,`Experience`,`Salary`,`Date Of Join`,`Perminant Address`,`Present
Address`,`Phone`,`Cell No`,`City`,`Required User Name`,`Others`)
VALUES
('$staff_registration_no','$staff_ID','$staff_name','$specilization','$gender'
,'$experience','$salary','$date_of_join','$perminant_address',

'$present_address','$phone','$cell_no','$city','$required_username','$others')")
;
return true;
}

function viewStaff()
{
echo "<table border=1 style=border-collapse:collapse;><th
width=10>Mark</th>
<th width=100>Staff Reg No</th><th width=100>Staff ID</th><th
width=100>Name</th><th width=100>Specilization</th>
<th width=100>Gender</th><th width=100>Experience</th><th
width=100>DOJ</th>
<th width=100>Cell No</th>";
$res = mysql_query("SELECT * FROM staff_table");
{
while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td><input type=radio
name=mark_id_for_detail_and_delete_staff
value=".$row['Mark']."></td>
<td width=100>".$row['Staff Registration No']."</td>
<td width=100>".$row['Staff ID']."</td>
<td width=100>".$row['Staff Name']."</td>
<td width=100>".$row['Specilization']."</td>
<td width=100>".$row['Gender']."</td>

Final YearProject Report [87]


Online
School Management System

<td width=100>".$row['Experience']."</td>
<td width=100>".$row['Date Of Join']."</td>
<td width=100>".$row['Cell No']."</td>

</tr>

";
}
echo "</table>";
}
}

function deleteStaff($mark_id_for_deteil_and_delete_staff)
{
mysql_query("DELETE FROM staff_table WHERE Mark =
'$mark_id_for_deteil_and_delete_staff'");
return true;
}
function deleteStaffReg($registration_no)
{
$res = mysql_query("SELECT * FROM staff_table");
while($row=mysql_fetch_assoc($res))
{
if($row['Staff Registration No']==$registration_no)
{
mysql_query("DELETE FROM staff_table WHERE `Staff
Registration No` = '$registration_no'");
return true;
}
}
return false;
}

function viewCompleteDetailStaff($mark_id_for_detail_and_delete_staff)
{
$res = mysql_query("SELECT * FROM staff_tableWHERE Mark =
'$mark_id_for_detail_and_delete_staff'");
{
//while($row=mysql_fetch_assoc($res))
//{
$row=mysql_fetch_assoc($res);
//echo $row['Mark']."<br>";
echo "<table border=0 cellpadding=2>";
echo "<tr><td width=200>Registration
No</td><td>".$row['Staff Registration No']."</td></tr>";
echo "<tr><td>Staff ID</td><td>".$row['Staff
ID']."</td></tr>";
echo "<tr><td>Name</td><td>".$row['Staff
Name']."</td></tr>";
echo
"<tr><td>Specialization</td><td>".$row['Specilization']."</td></tr>";
echo
"<tr><td>Gender</td><td>".$row['Gender']."</td></tr>";
echo
"<tr><td>Experience</td><td>".$row['Experience']."</td></tr>";
echo
"<tr><td>Salary</td><td>".$row['Salary']."</td></tr>";
echo "<tr><td>Date Of Join</td><td>".$row['Date Of
Join']."</td></tr>";
echo "<tr><td>Perminant
Address</td><td>".$row['Perminant Address']."</td></tr>";
echo "<tr><td>Present Address</td><td>".$row['Present
Address']."</td></tr>";

Final YearProject Report [88]


Online
School Management System

echo "<tr><td>Phone
No</td><td>".$row['Phone']."</td><tr>";
echo "<tr><td>Cell No</td><td>".$row['Cell
No']."</td></tr>";
echo "<tr><td>City</td><td>".$row['City']."</td></tr>";
echo "<tr><td>User Name</td><td>".$row['Required User
Name']."</td></tr>";
echo
"<tr><td>Others</td><td>".$row['Others']."</td></tr>";
"</table>";
}
}

function
addStudent($student_registration_no,$student_id,$student_name,$date_of_birth,$cl
ass,$section,$gender,$date_of_join,

$father_name,$mother_name,$occupation,$perminant_address,$present_address,$city,
$phone,$email_Id,$others)
{
if($student_name==''||$date_of_birth==''||$date_of_birth=='yyyy-
mm-dd'||$class=='select_class'||$section=='select_section'||$date_of_join==''||
$date_of_join=='yyyy-mm-
dd'||$father_name==''||$occupation==''||$perminant_address==''||$present_address
==''||$phone=='')
{
echo "<table border=0><tr><td width=337></td><td
class=popup_for_view_time_table>Please Type Above All
Information...</td><td></td></tr></table>";
return false;
}
mysql_query("INSERT INTO student_table (`Student
Registration No`,`Student ID`,`Student Name`,`Date Of Birth`,
`Class`,`Section`,`Gender`,`Date Of
Join`,`Father Name`,`Mother Name`,`Occupation`,
`Perminant Address`,`Present
Address`,`City`,`Phone`,`Email ID`,`Others`)
VALUES
('$student_registration_no','$student_id','$student_name','$date_of_birth','$cla
ss',

'$section','$gender','$date_of_join','$father_name',

'$mother_name','$occupation','$perminant_address','$present_address','$city','$p
hone','$email_Id','$others')");
return true;
}

function viewStudent($class,$section)
{
if($class!="select_class"&&$section!="select_section")
{
if($class==''&&$section=='')
{
return;
}
if($class=="all_class"&&$section=="all_section")
{
$res = mysql_query("SELECT * FROM student_table");
}

Final YearProject Report [89]


Online
School Management System

else if($section=="all_section")
{
$res = mysql_query("SELECT * FROM student_table
WHERE Class = '$class'");
}
else{
$res = mysql_query("SELECT * FROM student_table
WHERE Class = '$class' AND Section = '$section'");
}

if(mysql_fetch_assoc($res)=='')
{
echo "<tr><td width=300></td><td
class=popup_for_add_class valign=middle align=center>No Record Found...</td><td
width=300></td></tr>";
return false;
}

if($class=="all_class"&&$section=="all_section")
{
$res = mysql_query("SELECT * FROM student_table");

$male= mysql_query("Select Gender from student_table


where Gender='Male'");
$female= mysql_query("Select Gender from student_table
where Gender='Female'");
$male_count = mysql_num_rows($male);
$female_count = mysql_num_rows($female);
$rows=mysql_num_rows($res);
$srt_for_caption = "All Classes Studens";
}
else if($section=="all_section")
{
$res = mysql_query("SELECT * FROM student_table
WHERE Class = '$class'");
$rows=mysql_num_rows($res);

$male= mysql_query("Select Gender from


student_table where Gender='Male' AND Class='$class'");
$female= mysql_query("Select Gender from
student_table where Gender='Female' AND Class='$class'");
$male_count = mysql_num_rows($male);
$female_count = mysql_num_rows($female);
$srt_for_caption = "Class $class Section All
Students";
}
else
{
$res = mysql_query("SELECT * FROM student_table
WHERE Class = '$class' AND Section = '$section'");
$rows=mysql_num_rows($res);
$male= mysql_query("Select Gender from
student_table where Gender='Male' AND Class = '$class' AND Section =
'$section'");
$female= mysql_query("Select Gender from
student_table where Gender='Female' AND Class = '$class' AND Section =
'$section'");
$male_count = mysql_num_rows($male);
$female_count = mysql_num_rows($female);
$srt_for_caption = "Class $class Section
$section Students";
}

Final YearProject Report [90]


Online
School Management System

echo "<table border=1 style=border-


collapse:collapse;><caption style=font-size:18;font-
weight:bold;color:green;>$srt_for_caption</caption><th width=50>Mark</th>
<th width=110>Student Reg No</th><th
width=80>Student ID</th><th width=130>Student Name</th><th width=130>Father
Name</th>
<th width=40>Class</th>
<th width=60>Section</th>
<th width=60>Gender</th><th width=90>DOB</th>
<th width=100>Phone</th>";

while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td><input
type=radio name=mark_id_for_detail_and_delete_student
value=".$row['Mark']."/></td>
<td width=>".$row['Student Registration
No']."</td>
<td width=>".$row['Student ID']."</td>
<td width=>".$row['Student Name']."</td>
<td width=>".$row['Father Name']."</td>
<td width=>".$row['Class']."</td>
<td width=>".$row['Section']."</td>
<td width=>".$row['Gender']."</td>
<td width=>".$row['Date Of
Birth']."</td>
<td width=>".$row['Phone']."</td>

</tr>";
}
echo "<tr><td colspan=12 style=color:brown;background-
color:;padding-right:10;font-weight:bold align=right>Male Students : $male_count
Female Students : $female_count Total Students : $rows</td></tr></table>";return
true;

}echo "<tr><td width=300></td><td width=500 class=popup_for_add_class


valign=middle align=center>Please Enter Registration /ID Number OR Select
Section And Class...</td><td width=300></td></tr>";
return false;

function viewStudentA($search_reg_id)
{
if($search_reg_id=='')
{
return;
}
$res = mysql_query("SELECT * FROM student_table
WHERE `Student Registration No` = '$search_reg_id' OR `Student ID` =
'$search_reg_id'");
if(mysql_fetch_assoc($res)=='')
{
echo "<tr><td width=300></td><td
class=popup_for_add_class valign=middle align=center>NoRecord Found...</td><td
width=300></td></tr>";
return;
}
$res = mysql_query("SELECT * FROM student_table
WHERE `Student Registration No` = '$search_reg_id' OR `Student ID` =
'$search_reg_id'");
echo "<table border=1 style=border-
collapse:collapse;>

Final YearProject Report [91]


Online
School Management System

<th width=120>Student Reg No</th><th


width=90>Student ID</th><th width=140>Student Name</th><thwidth=140>Father
Name</th>
<th width=50>Class</th>
<th width=60>Section</th>
<th width=60>Gender</th><th width=90>DOB</th>
<thwidth=100>Phone</th>";

while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center>

<td width=>".$row['Student Registration


No']."</td>
<td width=>".$row['Student ID']."</td>
<td width=>".$row['Student Name']."</td>
<td width=>".$row['Father Name']."</td>
<td width=>".$row['Class']."</td>
<td width=>".$row['Section']."</td>
<td width=>".$row['Gender']."</td>
<td width=>".$row['Date Of
Birth']."</td>
<td width=>".$row['Phone']."</td>

</tr>";
}
echo "</table>";
return true;

function viewCompleteDetailStudent($mark_id_for_detail_and_delete_student)
{
$res = mysql_query("SELECT * FROM student_table WHERE Mark =
'$mark_id_for_detail_and_delete_student'");
{
//while($row=mysql_fetch_assoc($res))
//{
$row=mysql_fetch_assoc($res);
//echo $row['Mark']."<br>";
echo "<table border=0 cellpadding=2>";
echo "<tr><td width=200>Student Registration
No</td><td>".$row['Student Registration No']."</td></tr>";
echo "<tr><td>Student ID</td><td>".$row['Student
ID']."</td></tr>";
echo "<tr><td>Student Name</td><td>".$row['Student
Name']."</td></tr>";

echo "<tr><td>Date Of Birth</td><td>".$row['Date Of


Birth']."</td></tr>";
echo
"<tr><td>Class</td><td>".$row['Class']."</td></tr>";
echo
"<tr><td>Section</td><td>".$row['Section']."</td></tr>";
echo
"<tr><td>Gender</td><td>".$row['Gender']."</td></tr>";
echo "<tr><td>Date Of Join</td><td>".$row['Date Of
Join']."</td></tr>";
echo "<tr><td>Father Name</td><td>".$row['Father
Name']."</td></tr>";
echo "<tr><td>Mother Name</td><td>".$row['Mother
Name']."</td></tr>";
echo
"<tr><td>Occupation</td><td>".$row['Occupation']."</td></tr>";
echo "<tr><td>Perminant
Address</td><td>".$row['Perminant Address']."</td></tr>";

Final YearProject Report [92]


Online
School Management System

echo "<tr><td>Present Address</td><td>".$row['Present


Address']."</td></tr>";
echo "<tr><td>City</td><td>".$row['City']."</td></tr>";
echo "<tr><td>Phone
No</td><td>".$row['Phone']."</td><tr>";
echo "<tr><td>Email ID</td><td>".$row['Email
ID']."</td></tr>";
echo
"<tr><td>Others</td><td>".$row['Others']."</td></tr>";
"</table>";
}
}

function viewCompleteDetailStudentA($search_reg_id)
{
$res = mysql_query("SELECT * FROMstudent_table WHERE `Student
Registration No` = '$search_reg_id' OR `Student ID`='$search_reg_id'");
{
//while($row=mysql_fetch_assoc($res))
//{
$row=mysql_fetch_assoc($res);
//echo $row['Mark']."<br>";
echo "<table border=0 cellpadding=2>";
echo "<tr><td width=200>Student Registration
No</td><td>".$row['Student Registration No']."</td></tr>";
echo "<tr><td>Student ID</td><td>".$row['Student
ID']."</td></tr>";
echo "<tr><td>Student Name</td><td>".$row['Student
Name']."</td></tr>";

echo "<tr><td>Date Of Birth</td><td>".$row['Date Of


Birth']."</td></tr>";
echo
"<tr><td>Class</td><td>".$row['Class']."</td></tr>";
echo
"<tr><td>Section</td><td>".$row['Section']."</td></tr>";
echo
"<tr><td>Gender</td><td>".$row['Gender']."</td></tr>";
echo "<tr><td>Date Of Join</td><td>".$row['Date Of
Join']."</td></tr>";
echo "<tr><td>Father Name</td><td>".$row['Father
Name']."</td></tr>";
echo"<tr><td>Mother Name</td><td>".$row['Mother
Name']."</td></tr>";
echo
"<tr><td>Occupation</td><td>".$row['Occupation']."</td></tr>";
echo "<tr><td>Perminant
Address</td><td>".$row['Perminant Address']."</td></tr>";
echo "<tr><td>Present Address</td><td>".$row['Present
Address']."</td></tr>";
echo "<tr><td>City</td><td>".$row['City']."</td></tr>";
echo "<tr><td>Phone
No</td><td>".$row['Phone']."</td><tr>";
echo "<tr><td>Email ID</td><td>".$row['Email
ID']."</td></tr>";
echo
"<tr><td>Others</td><td>".$row['Others']."</td></tr>";
"</table>";
}
}

function deleteStudent($mark_id_for_detail_and_delete_student)
{
mysql_query("DELETE FROM student_table WHERE Mark =
'$mark_id_for_detail_and_delete_student' OR `Student ID` = '$search_reg_id'");
}

Final YearProject Report [93]


Online
School Management System

function deleteStudentA($search_reg_id)
{
mysql_query("DELETE FROM student_table WHERE Mark =
'$mark_id_for_detail_and_delete_student' OR `Student ID` = '$search_reg_id'");
}

function deleteStudentReg($registration_no)
{
$res = mysql_query("SELECT * FROM student_table");
while($row=mysql_fetch_assoc($res))
{
if($row['Student Registration No']==$registration_no)
{
mysql_query("DELETE FROM student_table WHERE `Student
Registration No` = '$registration_no'");
return true;
}
}
return false;
}

function addTimeTable($add_class,$add_section,$teacher_name,$period,$subject)
{

if($add_class=="select_class" || $add_section=="select_section" ||
$teacher_name=='' || $period=="select_period" || $subject == '')
{
echo "Please Enter All Values...";
return;
}

$res = mysql_query("SELECT * FROM time_table");


while($row = mysql_fetch_assoc($res))
{

if($row['Class']==$add_class&&$row['Section']==$add_section&&$row['Subject']==$s
ubject)
{
echo "Time for Class $add_class Section $add_section
Subject $subject is allready set...";
return;
}
}
mysql_query("INSERT INTO time_table (`Class`, `Section`, `Teacher Name`,
`Period`, `Subject`)
VALUES ('$add_class', '$add_section', '$teacher_name',
'$period', '$subject')");
echo "Time Table for Class $add_class Subject $subject has been added
successfully...";
}

function viewTimeTable($class,$section)
{
$available=0;
$res = mysql_query("SELECT * FROM time_table");
while($row = mysql_fetch_assoc($res))
{
if($row['Class']==$class&&$row['Section']==$section)
{
$available = 1;

Final YearProject Report [94]


Online
School Management System

}
if($available==1)
{

echo "<table border=1 style=border-


collapse:collapse;><caption style=color:green;font-weight:bold;font-
size:17>Class $class Section $section Time Table</caption>
<th width=70 height=32 style=background-
image:url('images/time_table_corner.gif');></th><th width=160>Mon</th><th
width=160>Tue</th>
<thwidth=160 >Wed</th><th width=160>Thr</th>
<th width=150>Fri</th>";
$a=1;
$res = mysql_query("SELECT * FROM period_table
INNER JOIN time_table ON period_table.Period=time_table.Period
AND time_table.Class = '$class'
AND time_table.Section = '$section' ORDER BY Class ASC");
while($row = mysql_fetch_assoc($res))
{
if($a==4)
{
echo "<tr><td colspan=6 style=background-
color:yellow;font-size:14; align=center>Break</td></tr>";
}
echo "<tr align=center><td>Period $a</td>
<td><table border=0
width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>
<tr align=center><td
style=font-size:14>".$row['Teacher Name']."</td></tr>
<tr align=center><td
style=font-size:12>$row[StartTime] to $row[EndTime]</td></tr>
</table></td>

<td><table border=0
width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>
<tr align=center><td
style=font-size:14>".$row['Teacher Name']."</td></tr>
<tr align=center><td
style=font-size:12>$row[StartTime] to $row[EndTime]</td></tr></table></td>

<td><table border=0
width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>
<tr align=center><td
style=font-size:14>".$row['Teacher Name']."</td></tr>
<tr align=center><td
style=font-size:12>$row[StartTime] to $row[EndTime]</td></tr></table></td>

<td><table border=0
width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>
<tr align=center><td
style=font-size:14>".$row['Teacher Name']."</td></tr>
<tr align=center><td
style=font-size:12>$row[StartTime] to $row[EndTime]</td></tr></table></td>

<td><table border=0
width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>
<tr align=center><td
style=font-size:14>".$row['Teacher Name']."</td></tr>
<tr align=center><td
style=font-size:12>$row[StartTime] to $row[EndTime]</td></tr></table></td>

Final YearProject Report [95]


Online
School Management System

</tr>";$a++;

}
echo "</table>";
return true;
}
echo "<tr><td width=300></td><td
class=popup_for_view_time_table>No Result Found</td><td width=300></td></tr>";
return false;

function updateTimeTable($add_class,$add_section,$teacher_name,$period,$subject)
{
if($add_class=="select_class" || $add_section=="select_section" ||
$teacher_name=='' || $period=="select_period" || $subject == '')
{
echo "Please Enter All Values";
return;
}

$res = mysql_query("SELECT * FROM time_table");


while($row = mysql_fetch_assoc($res))
{
if($row['Class']==$add_class && $row['Section']==$add_section &&
$row['Period']==$period)
{
mysql_query("UPDATE time_table SET `Teacher
Name`='$teacher_name',
`Subject`='$subject' WHERE
`Period`='$period' AND`Class`='$add_class'
AND `Section` = '$add_section' ;");
echo "Class $add_class Section $add_section Time Table Updated
successfuly...";return;
}
}echo "Time Table for Class $add_class Section $add_section is not
Updated...";
}

function deleteTimeTable($delete_class,$delete_section)
{
if($delete_class=="select_class" || $delete_section=="select_section")
{
echo "Please Select Class and Section";
return;
}

$res = mysql_query("SELECT * FROM time_table");


while($row = mysql_fetch_assoc($res))
{
if($row['Class']==$delete_class &&
$row['Section']==$delete_section)
{
mysql_query("DELETE FROM time_table WHERE Class='$delete_class'
AND Section='$delete_section'");
echo "Time Table for Class $delete_class Section $delete_section
has been Deleted successfuly...";return;
}
}echo "Time Table for Class $delete_class Section $delete_section is not
Available for Deletion";return;
}

Final YearProject Report [96]


Online
School Management System

function addHolidaySchedule($date,$holiday_name,$from_date,$to_date)
{
if($holiday_name==''||$from_date=='yyyy-mm-dd'||$to_date=='yyyy-mm-dd')
{
echo "Please Type All Values...";
return ;
}
mysql_query("INSERT INTO holiday_schedule_table (`Date`, `Holiday Name`,
`From Date`, `To Date`)
VALUES ('$date', '$holiday_name','$from_date',
'$to_date')");
echo "Value has been Inserted Successfullay...";

function viewHolidaySchedule()
{
echo "<table border=1 style=border-collapse:collapse;><th
width=150>Mark</th><th width=150>Date</th>
<th width=150>Holiday Name</th>
<th width=120>From Date</th><th width=120>To Date</th>";
$res = mysql_query("SELECT * FROM holiday_schedule_table");
$row = mysql_fetch_assoc($res);
if($row=='')
{
echo "<tr><td colspan=5 class=popup_for_view_time_table>There
are no any Holiday Schedule</td></tr>";
return;
}
$res = mysql_query("SELECT * FROM holiday_schedule_table");
while($row = mysql_fetch_assoc($res))
{

echo "<tr align=center><td><input type=radio


name=mark_id_for_edit_delete_holiday
value=".$row['Mark']."></td>
<td width=150>".$row['Date']."</td>
<td width=150>".$row['Holiday Name']."</td>
<td width=150>".$row['From Date']."</td>
<td width=150>".$row['To Date']."</td></tr>";

}
echo "</table>";

function markDeleteHolidaySchedule($mark_id_for_edit_delete_holiday)
{

mysql_query("DELETE FROM
holiday_schedule_table WHERE Mark = '$mark_id_for_edit_delete_holiday'");
}

Final YearProject Report [97]


Online
School Management System

function
updateHolidaySchedule($date,$holiday_name,$from_date,$to_date,$hidden_value_for_
update_holiday)
{
if($holiday_name=='' || $from_date=='' || $to_date=='')
{
echo "Please Enter All Values";
return;
}

mysql_query("UPDATE holiday_schedule_table SET `Date`='$date',


`Holiday Name`='$holiday_name', `From
Date`='$from_date', `To Date`='$to_date' WHERE
`Mark`='$hidden_value_for_update_holiday'");
}

function
addExamSchedule($exam_name,$start_time,$am_pm_for_start_time,$end_time,$am_pm_fo
r_end_time,$class,$section,$subject,$date)
{
if($exam_name=='' || $start_time=="00:00"|| $end_time=="00:00" ||
$class=="select_class" || $section=="select_section" || $subject=='' ||
$date=='')
{
echo "Please Type All Values...";
return ;
}
mysql_query("INSERT INTO exam_schedule_table (`Exam Name`, `StartTime`,
`Am Pm ForStartTime`, `EndTime`, `Am Pm ForEndTime`, `Class`, `Section`,
`Subject`, `Date`)
VALUES ('$exam_name', '$start_time','$am_pm_for_start_time',
'$end_time', '$am_pm_for_end_time', '$class', '$section', '$subject',
'$date')");
echo "Value has been Inserted Successfullay...";

function viewExamSchedule($class,$section)
{
if($class=="select_class"||$section=="select_section")
{
echo "<table border=0><tr><td width=600></td><td width=400
class=popup_for_view_time_table>Please Select Class and Section...</td><td
width=600></td></tr></table>";
return false;
}

$res = mysql_query("SELECT * FROM exam_schedule_table WHERE Class =


'$class' AND Section = '$section'");
$row = mysql_fetch_assoc($res);

if($row=='')
{
echo "<table border=0><tr><td widht=200></td><td class =
popup_for_view_time_table widhth=400 >No Result Found...</td><td
widht=400></td></tr></table>";
return false;
}

Final YearProject Report [98]


Online
School Management System

echo "<table border=1 style=border-


collapse:collapse;><caption style=color:green;font-weight:bold;>".$row['Exam
Name']." Exam Schedule For Class $class Section $section</caption>
<th width=180>Time</th>
<th width=210>Subject</th><th width=110>Date</th>";

$res = mysql_query("SELECT * FROM exam_schedule_table WHERE Class =


'$class'AND Section = '$section'");
while($row = mysql_fetch_assoc($res))

{
echo "<tr align=center>
<td>".$row['StartTime']." ".$row['Am Pm ForStartTime']."
to ".$row['EndTime']." ".$row['Am Pm ForEndTime']."</td>
<td>".$row['Subject']."</td>
<td>".$row['Date']."</td>

</tr>";

}
echo "</table>";
return true;
}

function deleteExamSchedule($class,$section)
{
if($class=="select_class" || $section=="select_section")
{
echo "Please Select Class And Section...";
return;
}
$blank=0;//for checking that time table is available or not for
deleteion...
$res = mysql_query("SELECT * FROM exam_schedule_table");
while($row=mysql_fetch_assoc($res))
{
if($row['Class']==$class&&$row['Section']==$section)
{
$blank=1;
}
}
if($blank==0)
{
echo "No Result Found...";
return;
}

mysql_query("DELETE FROM exam_schedule_table WHERE Class


= '$class' AND Section = '$section'");
echo "Time Table for Class $class Section $section has
been Deleted Successfully...";
}

function
addfee($class,$library_fee,$lab_fee,$transport_fee,$no_of_terms,$first_term,$sec
ond_term)

Final YearProject Report [99]


Online
School Management System

if($class==''||$library_fee==''||$lab_fee==''||$transport_fee==''||$no_of_terms=
=''||$first_term==''||$second_term=='')
{
echo "<table border=0><tr><td width=320><td class =
popup_for_view_time_table = >Please Type Above All
Information...</td></tr></table>";
return false;
}
$res = mysql_query("SELECT * FROM fee_table");
while($row = mysql_fetch_assoc($res))
{
if($row['Class']==$class)
{
echo "<table border=0><tr><td width=332><td class =
popup_for_view_time_table = >Fee for Class $class is already
added...</td></tr></table>";
return;
}
}
$res = mysql_query("INSERT INTO fee_table (`Class`,`Library Fee`,`Lab
Fee`,`Transport Fee`,`No of Terms`,`First Term`,`Second Term`)

VALUES('$class','$library_fee','$lab_fee','$transport_fee','$no_of_terms','$firs
t_term','$second_term')");
echo "<table border=0><tr><td width=305><td class =
popup_for_view_time_table = >Fee for Class $class is Added
Successfully...</td></tr></table>";
return;
}

function viewFee()
{
echo "<table border=1 style=border-collapse:collapse;><th
width=20>Mark</th>
<th width=115>Class</th><th width=115>Library Fee</th><th width=115>Lab
Fee</th><th width=115>Transport Fee</th>
<th width=115>No Of Terms</th><th width=115>First Term</th><th
width=115>Second Term</th>";
$res = mysql_query("SELECT * FROM fee_table");
{
while($row=mysql_fetch_assoc($res))
{
echo "<tr align=center><td><input type=radio
name=mark_id_for_delete_update_fee_structure
value=".$row['Mark']."></td>
<td width=100>".$row['Class']."</td>
<tdwidth=100>".$row['Library Fee']."</td>
<td width=100>".$row['Lab Fee']."</td>
<td width=100>".$row['Transport Fee']."</td>
<td width=100>".$row['No Of Terms']."</td>
<td width=100>".$row['First Term']."</td>
<td width=100>".$row['Second Term']."</td>

</tr>

";
}
echo "</table>";
}
}

Final YearProject Report [100]


Online
School Management System

function deleteFee($mark_id_for_delete_update_fee_structure)
{

mysql_query("DELETE FROM fee_table WHERE Mark =


'$mark_id_for_delete_update_fee_structure'");
}

function
updateFee($class,$library_fee,$lab_fee,$transport_fee,$no_of_terms,$first_term,$
second_term,$mark_id_for_delete_update_fee_structure)
{
mysql_query("UPDATE fee_table SET `Class`='$class',`Library
Fee`='$library_fee',`Lab Fee`='$lab_fee',`TransportFee`='$transport_fee',
`No of Terms`='$no_of_terms',`First
Term`='$first_term',`Second Term`='$second_term' WHERE
`Mark`='$mark_id_for_delete_update_fee_structure'");

function
addStaffSalary($staff_ID,$hra,$pf,$ta,$da,$professional_tax,$basic,$no_of_workin
g_days,$no_of_days_present,$total_amount)
{

if($staff_ID==''||$hra==''||$pf==''||$ta==''||$da==''||$professional_tax==''||$b
asic==''||$no_of_working_days==''||$no_of_days_present=='')
{
echo "<table border=0><tr><td width=345><td class =
popup_for_view_time_table = >Please Type Above All
Information...</td></tr></table>";
return;
}
$res = mysql_query("SELECT * FROM staff_salary_table");
while($row = mysql_fetch_assoc($res))
{
if($row['Staff ID']==$staff_ID)
{
echo "<table border=0><tr><td width=330><td class =
popup_for_view_time_table = >Salary for ID No $staff_ID is already
added...</td></tr></table>";
return;
}
}
$res = mysql_query("INSERT INTO staff_salary_table (`Staff
ID`,`HRA`,`PF`,`TA`,`DA`,`Professional Tax`,`Basic`,`No Of Working Days`,`No Of
Days Present`,`Total Amount`)

VALUES('$staff_ID','$hra','$pf','$ta','$da','$professional_tax','$basic','$no_of
_working_days','$no_of_days_present','$total_amount')");
echo "<table border=0><tr><td width=315><td class =
popup_for_view_time_table = >Salary for ID No $staff_ID is added
Successfully...</td></tr></table>";
}

Final YearProject Report [101]


Online
School Management System

function viewStaffSalary($view_salary)
{
if($view_salary=='')
{
return false;
}

$res = mysql_query("SELECT * FROM


staff_salary_table,staff_table WHERE staff_salary_table.`Staff
ID`=staff_table.`Staff ID`
AND staff_salary_table.`Staff
ID` = '$view_salary' OR staff_table.`Staff Registration No` = '$view_salary'");
if(mysql_fetch_assoc($res)=='')
{
echo "<table border=0><tr><td
width=100><td width=300 class = popup_for_view_time_table = >No Record
Found...</td><td width=150></td></tr></table>";
return false;
}
$res = mysql_query("SELECT * FROM
staff_salary_table,staff_table WHERE staff_salary_table.`Staff
ID`=staff_table.`Staff ID`
AND staff_salary_table.`Staff
ID` = '$view_salary' OR staff_table.`Staff Registration No` = '$view_salary'");
$row=mysql_fetch_assoc($res);

echo "<table border=0 cellspacing=5


width=450><tr><td height=10></td></tr>
<tr align=center><td>Staff ID
:</td><td>".$row['Staff ID']."</td><td>Staff Name :</td><td>".$row['Staff
Name']."</td></tr>
<tr align=center><td>Month : </td><td>---
</td><td>Working Days : </td><td>---</td></tr><tr align=center><td>Days Present
: </td><td>---</td></tr>
<tr><td height=5></td></tr></table>";
//echo "<br>";
echo "<table border=1 width=500 style=border-
collapse:collapse><th></th><th>Credit</th><th>Deducation</th>
<tr
align=center><td>Basic</td><td>$row[Basic]</td><td>----</td></tr>
<tr
align=center><td>HR</td><td>$row[HRA]</td><td>----</td></tr>
<tr
align=center><td>PF</td><td>$row[PF]</td><td>----</td></tr>
<tr
align=center><td>TA</td><td>$row[TA]</td><td>----</td></tr>
<tr
align=center><td>DA</td><td>$row[DA]</td><td>----</td></tr>
<tr
align=center><td>Tax</td><td>".$row['Professional Tax']."</td><td>----</td></tr>
<tr align=center><td colspan=3>Total
Amount : ".$row['Total Amount']."</tr></table>";
return true;
}

function deleteStaffSalary($hidden_value_for_edit_staff_salary)
{
mysql_query("DELETE FROM staff_salary_table WHERE `Staff ID` =
'$hidden_value_for_edit_staff_salary'");
}

Final YearProject Report [102]


Online
School Management System

function
updateStaffSalary($staff_ID,$hra,$pf,$ta,$da,$professional_tax,$basic,$no_of_wor
king_days,$no_of_days_present,$total_amount)
{
/*

if($staff_ID==''||$hra==''||$pf==''||$ta==''||$da==''||$professional_tax==''||$b
asic==''||$no_of_working_days==''||$no_of_days_present=='')
{
echo "<table border=0><tr><td width=370><td class =
popup_for_view_time_table = >Please Type Above All
Information...</td></tr></table>";
return;
}*/
mysql_query("UPDATE staff_salary_table SET
`HRA`='$hra',`PF`='$pf',`TA`='$ta',`DA`='$da',
`Professional Tax`='$professional_tax',`Basic`='$basic',`No
Of Working Days`='$no_of_working_days',
`No Of Days Present`='$no_of_days_present',`Total
Amount`='$total_amount' WHERE `Staff ID`='$staff_ID'");
return;
}

function viewStudentsMarks($student_id,$class,$section)
{
if($student_id!='Student ID')
{
$res = mysql_query("SELECT * FROM
students_marks_table,student_table
WHERE students_marks_table.`Student ID` =
student_table.`Student ID`
AND student_table.`Student ID`='$student_id'");

$row=mysql_fetch_assoc($res);
$bb = mysql_num_rows($res);
if($bb=='')
{
return false;
}
echo "<table border=0 width=400 style=border-
collapse:collapse;><tr><td height=30></td></tr><tr align=center><td> Student
Name : ".$row['Student Name']."</td><td> Student ID : ".$row['Student
ID']."</td></tr>
<tr><td style=padding-left:44;>Class : ".$row['Class']."</td><td
style=padding-left:42;> Section : ".$row['Section']."</td></tr><tr><td
height=10></td></tr></table>";

echo "<table border=1 width=400 style=border-


collapse:collapse;><th width=200>Subject</th><th>Marks</th>";
$res1 = mysql_query("SELECT * FROM student_tableWHERE
`Student ID`='$student_id'");
$row1=mysql_fetch_assoc($res1);
$class = $row1['Class'];
$res2 = mysql_query("SELECT * FROM subject_table WHERE
`Class`='$class'");
$a=1;
$b=0;
while($row2=mysql_fetch_assoc($res2))
{
if($row["Marks$a"]<33)
{
echo "<tr style=color:red;><td style=padding-
left:5>".$row2['Subject']."</td><td align=center>".$row["Marks$a"]."</td></tr>";

Final YearProject Report [103]


Online
School Management System

$b=1;
}
else echo "<tr><td style=padding-
left:5>".$row2['Subject']."</td><td align=center>".$row["Marks$a"]."</td></tr>";
$a++;
}
echo "<table>";
if($b==0)
{
$remarks="<td align=center style=padding-
right:15;>Remarks : Pass</td></tr>";
}else $remarks="<td style=color:red;padding-left:44;
>Remarks : Fail</td></tr>";
echo "<table border=0 style=border-collapse:collapse;
width=400><tr><td height=10></td></tr><tr align=center><td width=200>Total Marks
: ".$row['Total Marks']."</td><td>Percentage : ".$row['Percentage']."%</td></tr>
<tr><td style=padding-left:49;>Grade :
".$row['Grade']."</td>$remarks </table>";
//<tr><
return true;
}
if($class=="select_class"||$section=="select_section")
{
return false;
}
echo "<table border=1 style=border-collapse:collapse;><caption
style=font-size:18;font-weight:bold;color:green;>Class $class Section $section
Result</caption><th width=60>Std ID</th><th width=80>Std Name</th>";
$ress = mysql_query("SELECT * FROM subject_table WHERE Class =
'$class'");
while($rows = mysql_fetch_assoc($ress))
{
echo "<th width=100>".$rows['Subject']."</th>";
}
echo "</th><th width=100>Total Marks</th><th
width=65>Percentage</th><th width=60>Grade</th><th width=60>Remarks</th>";

$res = mysql_query("SELECT * FROM


students_marks_table,student_table
WHERE students_marks_table.`Student ID` =
student_table.`Student ID`
AND student_table.`Class`='$class' AND
student_table.`Section`='$section'");
//AND students_marks_table.`Student ID` =
'$student_id'");
$average_pass=0;
$count_students=0;
$count_pass=0;
$count_fail=0;
while($row = mysql_fetch_assoc($res))
{
$count_students++;
$identify_pass_fail=0;

$res1 = mysql_query("SELECT * FROM subject_table WHERE `Class` =


'$class'");
$a = mysql_num_rows($res1);
for($i=1;$i<=$a;$i++)
{
$marks = $row["Marks$i"];
if($marks<33)
{
$identify_pass_fail=1;
$str_for_marks[] = "<td align=center
style=color:red;>".$marks."</td>";
}else $str_for_marks[] = "<td
align=center>".$marks."</td>";
}

Final YearProject Report [104]


Online
School Management System

if($identify_pass_fail==0)
{
$remarks = "Pass";
$str_for_remarks = "<td
align=center>".$remarks."</td>";
$count_pass++;
}
else if($identify_pass_fail==1)
{
$remarks = "Fail";
$str_for_remarks = "<td align=center
style=color:red;>".$remarks."</td>";
$count_fail++;
}

echo "<tr><td align=center>".$row['Student


ID']."</td><td>".$row['Student Name']."</td>";
foreach($str_for_marks as $v)
{
echo $v;
}

echo "<td align=center>".$row['Total Marks']."</td><td


align=center>".$row['Percentage']." %</td>
<td align=center>".$row['Grade']."</td>$str_for_remarks</tr>";
unset($str_for_marks);

$average_pass_students=($count_pass/$count_students)*100;
echo "<tr><td colspan=15 align=right style=color:brown>Pass Students :
$count_pass Fail Students : $count_fail
Passing Average : ".round($average_pass_students,3)." %</td></tr></table>";
return true;
}

/*
function addAttendance($student_id, $class, $section, $present_absent)
{
$ress = mysql_query("SELECT * FROM student_table WHERE `Student
ID`='$student_id'");
$b=mysql_num_rows($ress);
if($b=='')
{
return false;
}
$res = mysql_query("SELECT * FROM attendance_table WHERE `Student
ID`='$student_id' AND `Date`=current_date()");
$b = mysql_num_rows($res);
if($b!='')
{
return true;
}else {

mysql_query("INSERT INTO attendance_table (`Date`, `Student ID`,


`Class`, `Section`, `Status`)
VALUES (current_date(),'$student_id', '$class','$section',
'$present_absent')");
return true;
}
}
*/

Final YearProject Report [105]


Online
School Management System

function viewStudentsAttendance($student_id,$class,$section,$date)
{

if($student_id!="Student ID")
{
$res = mysql_query("SELECT * FROM attendance_table,student_table WHERE
attendance_table.`Student ID`=student_table.`Student ID`
AND attendance_table.`Student ID`='$student_id'");
$row = mysql_fetch_assoc($res);
echo "<table border=1 style=border-collapse:collapse;><caption
style=color:green;font-weight:bold;font-size:17>Attendance Record Of
".$row['Student ID']."</caption><th width=200>Student Name</th><th
width=100>Student ID</th>
<th width=100>Class</th><thwidth=100>Section</th><th
width=100>Status</th><th width=200>Date Of Attendance</th>";
$res = mysql_query("SELECT * FROM attendance_table,student_table
WHERE attendance_table.`Student ID`=student_table.`Student ID`
AND attendance_table.`Student ID`='$student_id'");
$present=0;
$absent=0;
while($row = mysql_fetch_assoc($res))
{
if($row['Status']=='Present')
{
echo "<tr><td align=center style=padding-
left:5>".$row['Student Name']."</td><td align=center>".$row['Student ID']."</td>
<td align=center>".$row['Class']."</td><td
align=center>".$row['Section']."</td><td align=center>".$row['Status']."</td>
<td align=center>".$row['Date']."</td></tr>";
$present++;
}else
{
echo "<tr style=color:red;><td align=center
style=padding-left:5>".$row['Student Name']."</td><td
align=center>".$row['Student ID']."</td>
<td align=center>".$row['Class']."</td><td
align=center>".$row['Section']."</td><td align=center>".$row['Status']."</td>
<td align=center>".$row['Date']."</td></tr>";
$absent++;
}
}
echo "<tr><td align=right style=color:brown;font-
weight:bold;padding-right:10 colspan=6>Present :$present Absent
:$absent</table>";
return true;

}
if($class=='select_class'||$section=='select_section')
{
return false;
}
$res = mysql_query("SELECT * FROM attendance_table,student_table WHERE
attendance_table.`Student ID`=student_table.`Student ID`
AND attendance_table.`Class`='$class' AND
attendance_table.`Section`='$section' AND attendance_table.`Date`='$date'");
$b=mysql_num_rows($res);
if($b=='')
{
return false;
}
$res = mysql_query("SELECT * FROM attendance_table,student_table WHERE
attendance_table.`Student ID`=student_table.`Student ID`
AND attendance_table.`Class`='$class' AND
attendance_table.`Section`='$section' AND attendance_table.`Date`='$date'");
$rowa = mysql_fetch_assoc($res);

Final YearProject Report [106]


Online
School Management System

echo "<tableborder=1 style=border-collapse:collapse;><caption


style=color:green;font-weight:bold;font-size:17>Class ".$rowa['Class']." Section
".$rowa['Section']." Date of ".$rowa['Date']." Attendance</caption><th
width=200>Student Name</th><th width=200>Student ID</th><th
width=200>Status</th>";
$res = mysql_query("SELECT * FROM attendance_table,student_table WHERE
attendance_table.`Student ID`=student_table.`Student ID`
AND attendance_table.`Class`='$class' AND
attendance_table.`Section`='$section' AND attendance_table.`Date`='$date'");
$present=0;
$absent=0;
while($row = mysql_fetch_assoc($res))
{
if($row['Status']=='Present')
{
echo "<tr><td align=center style=padding-left:5>".$row['Student
Name']."</td><td align=center>".$row['Student ID']."</td><td
align=center>".$row['Status']."</td></tr>";
$present++;
}else
{
echo "<tr style=color:red;><td align=center style=padding-
left:5>".$row['Student Name']."</td><td align=center>".$row['Student
ID']."</td><td align=center>".$row['Status']."</td></tr>";
$absent++;
}
}
echo "<tr><td align=right style=color:brown;font-weight:bold;padding-
right:10 colspan=3>Present students : $present Absent students :
$absent</table>";
return true;
}

function viewLeaveApply()
{
echo "<table border=1 style=border-collapse:collapse><th
width=50>Mark</th><th width=80>Staff ID</th><th width=140>Name</th><th
width=90>No Of Days</th>
<th width=100>From Date</th><th width=100>To Date</th>
<th width=140>Reason</th><th width=100>Status</th>";
$res = mysql_query("SELECT * FROM staff_leave_table,staff_table WHERE
staff_leave_table.`Staff ID`=staff_table.`staff ID`");
while($row = mysql_fetch_assoc($res))
{
echo "<tr><td align=center><input type=radio
name=mark_id_for_update_view_leave_apply
value=".$row['Mark1']."></td><td
align=center>".$row['Staff ID']."</td><td align=center>".$row['Staff
Name']."</td><td align=center>".$row['No Of Leave']."</td>
<td align=center>".$row['Start Date']."</td><td
align=center>".$row['To Date']."</td><td align=center>".$row['Reason']."</td><td
align=center>".$row['Status']."</td></tr>";
}
echo "</table>";return;

function updateViewLeaveApply($mark_id_for_update_view_leave_apply,$status)
{
//$c="disApprove";
mysql_query("UPDATE staff_leave_table SET `Status`='$status' WHERE
`Mark1`='$mark_id_for_update_view_leave_apply'");
return true;
}

Final YearProject Report [107]


Online
School Management System

function viewLeaveHistory()
{
echo "<table border=1 style=border-collapse:collapse><caption
style=color:green;font-weight:bold;font-size:17>Staff Leave History</caption><th
width=80>Staff ID</th><th width=140>Name</th><th width=90>No Of Days</th>
<th width=100>From Date</th><th width=100>To Date</th>
<th width=140>Reason</th><th width=100>Status</th>";
$res = mysql_query("SELECT * FROM staff_leave_table,staff_table WHERE
staff_leave_table.`Staff ID`=staff_table.`staff ID`");
while($row = mysql_fetch_assoc($res))
{
echo "<tr><td align=center>".$row['Staff ID']."</td><td
align=center>".$row['Staff Name']."</td><td align=center>".$row['No Of
Leave']."</td>
<td align=center>".$row['Start Date']."</td><td
align=center>".$row['To Date']."</td><td align=center>".$row['Reason']."</td><td
align=center>".$row['Status']."</td></tr>";
}
echo "</table>";return;

?>

db_connection.php

<?php

define("ip","localhost");
define("username","root");
define("password","");

$sql=mysql_connect(ip,username,password);
if(!$sql)
{
echo "Could Connected to the database".mysql_error();
}
mysql_select_db("school_management_branch_a",$sql);

?>

add_staff.php
<?php
function ae_detect_ie()
{
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
{
return true;
}
else
{
return false;
}

Final YearProject Report [108]


Online
School Management System

if(ae_detect_ie())
{
echo "<center><table border=1 width=600 style=border-
collapse:collapse><tr><td align=center
style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This
Website Does Not Support Internet Explorer</b></td></tr>";
echo "<tr align=center><td style=background-color:#AFEEEE><a
href=http://www.mozilla.com/firefox/ target=_blank>DownLoad
FireFox</a></td></tr></center>";
exit;
}
else
session_start();
if(!isset($_SESSION['user_name'])&&!isset($_SESSION['password']))
{
header("Location:login.php");
}
?>

<html>
<head>
<link rel="stylesheet" type="text/css" href="branch_a.css">
<title>Staff Registration</title>
</head>
<div id="navMenueTable">

<table border=0>

<tr><td colspan="3" width="" height="150px"><img


src="images/top_banner.gif"/></td></tr>

<tr><td colspan="3" class="td1" height="5px"></td></tr>


</table>
<table border=1 class="table2">
<tr><td colspan= width="130px" class="td2">Admin Block</td>
<td class="td6" width="130">Staff Registration</td>
<td class="td3">
<a href="#" onClick="history.go(-1);return true;">Back |</a>
<a href="home.php">Home |</a>
<a href="../index.php"> Sign Out</a>
</td></tr>
<tr><td width="200px" height="240px" class="td4" valign="top">

<div id ="menuContainer">
<ul>
<li id="two_step_menue"><a href="#">Login Detail</a>
<ul id>
<li><a href="staff_login_detail.php">Staff</a></li>
</ul>
</li>
<li id="three_step_menue"><a href="">Basic Registration</a>
<ul id="small_bg_menue_link">
<li><a href="">Class</a>
<ul>
<li><a href="add_class.php">Add</a></li>

Final YearProject Report [109]


Online
School Management System

<li><a href="view_class.php">View</a></li>
<li><a href="delete_class.php">Delete</a></li>
</ul>
</li>
<li><a href="">Subject</a>
<ul>
<li><a href="add_subject.php">Add</a></li>
<li><a href="view_subject.php">View</a></li>
<li><a href="delete_subject.php">Delete</a></li>
</ul>
</li>

<li><a href="">Period</a>
<ul>
<li><a href="add_period.php">Add</a></li>
<li><a href="view_period.php">View</a></li>
<li><a href="delete_period.php">Delete</a></li>
</ul>
</li>
<li><a href="">Syllabus</a>
<ul>
<li><a href="add_syllabus.php">Add</a></li>
<li><a href="view_syllabus.php">View</a></li>
<li><a
href="delete_syllabus.php">Delete</a></li>
</ul>
</li>
</ul>
</li>
<li id="three_step_menue"><a href="">Personal
Registration</a>
<ul>
<li><a href="">Staff</a>
<ul>
<li><a href="add_staff.php">Add</a></li>
<li><a href="view_staff.php">View</a></li>
<li><a
href="delete_staff_student.php">Delete</a></li>
</ul>
</li>
<li><a href="">Student</a>
<ul>
<li><a href="add_student.php">Add</a></li>
<li><a href="view_student.php">View</a></li>
<li><a
href="search_student_a.php">Search</a></li>
<li><a
href="delete_staff_student.php">Delete</a></li>
</ul>
</li>
</ul>
</li>
<li id="two_step_menue"><a href="">Time Table</a>
<ul>
<li><a href="add_time_table.php">Add</a></li>
<li><a href="view_time_table.php">View</a></li>
<li><a href="update_time_table.php">Update</a></li>
<li><a href="delete_time_table.php">Delete</a></li>
</ul>
</li>
<li id="three_step_menue"><a href="">Academic Schedule</a>

Final YearProject Report [110]


Online
School Management System

<ul>
<li><a href="">Holiday Schedule</a>
<ul>
<li><a
href="add_holiday_schedule.php">Add</a></li>
<li><a
href="view_holiday_schedule.php">View</a></li>
</ul>
</li>
<li><a href="">Exam Schedule</a>
<ul>
<li><a href="add_exam_schedule.php">Add</a></li>
<li><a
href="view_exam_schedule.php">View</a></li>
<li><a
href="delete_exam_schedule.php">Delete</a></li>
</ul>
</li>
</ul>
</li>
<li id="three_step_menue"><a href="">Payment Management</a>
<ul>
<li><a href="">Fee Structure</a>
<ul>
<li><a href="add_fee.php">Add</a></li>
<li><a href="view_fee.php">View</a></li>
<li><a href="edit_fee.php">Edit</a></li>
</ul>
</li>
<li><a href="">Salary Details</a>
<ul>
<li><a href="add_salary.php">Add</a></li>
<li><a href="view_salary.php">View</a></li>
</ul>
</li>
</ul>
</li>
<li id="one_step_Menue"><a
href="view_attendance.php">Attendance</a></li>
<li id="one_step_Menue"><a href="view_marks.php">Marks
Management</a></li>

<li id="three_step_menue"><a href="">Leave Management</a>


<ul>
<li><a href="">Leave Approvals</a>
<ul>
<li><a
href="view_leave_approvals.php">Staff</a></li>
</ul>
</li>
<li id="one_step_menue"><a
href="leave_history.php">Leave History</a></li>
</ul>
</li>
<li id="two_step_menue"><a href="#">Messages</a>
<ul>
<li><a href="#">Inbox</a></li>
<li><a href="#">Outbox</a></li>
<li><a href="#">Compose</a></li>
</ul>
</li>

Final YearProject Report [111]


Online
School Management System

</ul>
</div>
<?php
require("functions_page.php");
$staff_registration_no = "blank";
$res = mysql_query("SELECT * FROM staff_table");
while($row=mysql_fetch_assoc($res))
{
$staff_registration_no = $row['Staff Registration No'];
$staff_ID = $row['Staff ID'];
}

if($staff_registration_no=="blank")
{
$staff_registration_no = "10STF-1000";
$staff_ID = "1000";
}
$staff_registration_no++;
$staff_ID++;

?>

</td>
<td colspan="3" width="925px" height="500" class="td5" rowspan="2">

<script type="text/javascript">
function formValidation()
{
var sn = document.getElementById("staff_name").value;
if(sn=='')
{
alert ("Please Enter Staff Name");
return false;
}

if(!sn.match(/^[a-zA-Z /]+$/))
{
alert ("Staff Name Field Should Used Only Letters");
return false;
}
if(!sn.match(/^[a-zA-Z ]{5,}$/))
{
alert ("Staff Name Should be Minimum Five letters");
return false;
}
var sp = document.getElementById("specilization").value;
if(sp==='')
{
alert ("Please Enter Staff Specilization");
return false;
}
if(!sp.match(/^[a-zA-Z ]+$/))
{
alert ("Specilization Field Should Used Only Letters");
return false;
}
if(!sp.match(/^[a-zA-Z]{5,}$/))
{

Final YearProject Report [112]


Online
School Management System

alert ("Specilization Should be Minimum Five letters");


return false;
}
var ex = document.getElementById("experience").value;
if(ex=='')
{
alert ("Please Enter Staff Experience");
return false;
}
if(!ex.match(/^[a-zA-Z\/]+$/))
{
alert ("Experience Field Should Used Only Letters");
return false;
}
if(!ex.match(/^[a-zA-Z\]{8,}$/))
{
alert ("Experience Should be Minimum eight letters");
return false;
}
var s = document.getElementById("salary").value;
if(s=='')
{
alert ("Please Enter Staff Salary");
return false;
}
if(!s.match(/^[0-9]+$/))
{
alert ("Staff Salary Field Should Used Only Numbers");
return false;
}

var fd = document.getElementById("date_of_join").value;
if(fd=='yyyy-mm-dd'||fd=='')
{
alert ("Please Enter Start Date");
return false;
}
if(!fd.match(/^[0-9]{4,4}\-(0[0-9]|1[012])\-(0[0-9]|[12][0-
9]|3[01])/))
{
alert ("Date Format Should be YYYY-MM-DD");
return false;
}

var pa = document.getElementById("perminant_address").value;
if(pa=='')
{
alert ("Please Enter Perminant Address");
return false;
}

var a= document.getElementById("present_address").value;
if(a=='')
{
alert ("Please Enter Present Address");
return false;
}

var cp = document.getElementById("cell_no").value;
if(cp=='')

Final YearProject Report [113]


Online
School Management System

{
alert ("Please Enter Cell Phone Number");
return false;
}

if(!cp.match(/^[0-9]{11,11}$/))
{
alert ("Invalid Cell Phone Number");
return false;
}

var c = document.getElementById("city").value;
if(c=='')
{
alert ("Please Enter City");
return false;
}
if(!c.match(/^[a-zA-Z ]+$/))
{
alert ("City Name Field Should Used Only Letters");
return false;
}

var un =
document.getElementById("required_user_name").value;
if(un=='')
{
alert ("Please Enter Required User Name");
return false;
}
if(!un.match(/^[a-zA-Z]+$/))
{
alert ("User Name Field Should Used Only Letters");
return false;
}
if(!un.match(/^[a-zA-Z]{5,}$/))
{
alert ("Required User Name Should be Minimum Five
letters");
return false;
}

return true;
}

</script>

<form name="add_staff" action="" method="post"


onsubmit="return formValidation();">
<center><table border="0" cellspacing="0">
<tr><td align="right">Staff Reg No : <input type="text"
readonly="readonly" name="staff_reg_no" value="<?php echo
$staff_registration_no; ?>"></td></tr>
<tr><td align="right">Staff ID :<input type="text"
readonly="readonly" name="staff_ID" value="<?php echo $staff_ID;
?>"></td></tr>
<tr><td align="right">Staff Name : <input type="text"
id="staff_name" name="staff_name"></td></tr>

Final YearProject Report [114]


Online
School Management System

<tr><td align="right">Specilization : <input type="text"


id="specilization" name="specilization"></td></tr>
<tr><td align="right"> Male : <input type="radio"
name="gender" value="Male" checked="checked">
Female : <input type="radio"
name="gender" value="Female"></td></tr>
<tr><td align="right">Experience : <input type="text"
id="experience" name="experience"></td></tr>
<tr><td align="right">Salary : <input type="text"
id="salary" name="salary"></td></tr>
<tr><td align="right">Date of Join : <input type="text"
id="date_of_join" name="date_of_join" value="yyyy-mm-dd"
onfocus="if(this.value==this.defaultValue) this.value='';"></td></tr>
<tr><td align="right">PerminantAddress : <input
type="text" id="perminant_address" name="perminant_address"></td></tr>
<tr><td align="right">Present Address : <input
type="text" id="present_address" name="present_address"></td></tr>
<tr><td align="right">Phone : <input type="text"
id="phone" name="phone"></td></tr>
<tr><td align="right">Cell No : <input type="text"
id="cell_no" name="cell_no"></td></tr>
<tr><td align="right">City : <input type="text"
id="city" name="city"></td></tr>
<tr><td align="right">Required User Name : <input
type="text" id="required_user_name" name="required_user_name"></td></tr>
<tr><td align="right">Others : <input type="text"
id="others" name="others"></td></tr>
<tr align="right"><td style="padding:15;padding-
right:48;"><input type="submit" name="submit" value="Add"></td></tr>
</table></center>
<?php
if(count($_POST)>0)
{
$staff_registration_no = $_POST['staff_reg_no'];
$staff_ID = $_POST['staff_ID'];
$staff_name = ucwords(strtolower(trim($_POST['staff_name'])));
$specilization = ucwords(strtolower(trim($_POST['specilization'])));
$gender = $_POST['gender'];
$experience = ucwords(strtolower(trim($_POST['experience'])));
$salary = $_POST['salary'];
$date_of_join = trim($_POST['date_of_join']);
$perminant_address =
ucwords(strtolower(trim($_POST['perminant_address'])));
$present_address =
ucwords(strtolower(trim($_POST['present_address'])));
$phone = trim($_POST['phone']);
$cell_no = trim($_POST['cell_no']);
$city = ucwords(strtolower(trim($_POST['city'])));
$required_username = trim($_POST['required_user_name']);
$others = ucwords(strtolower(trim($_POST['others'])));

if(addStaff($staff_registration_no,$staff_ID,$staff_name,$specilization,
$gender

,$experience,$salary,$date_of_join,$perminant_address,$present_address,$
phone,$cell_no,$city,$required_username,$others))
{
header("Location:add_staff.php");
}
}

Final YearProject Report [115]


Online
School Management System

?>

</td></tr>
<tr><td height="0" rowspan="0" class="td4"></td></tr>

<tr><td colspan="3" height="20" align="center" class="copy_wright">©


Copy Right by anwarhmk</td></tr>
<!--tr><td <a href=""><img src="images/admin_button.gif"></a>
align="right"><img src="images/admin_icon.gif"></td>
<td><img src="images/admin_button.gif"></td></tr-->
</table>
</table>
</div>
<!--frameset border="1" rows="150px,*">
<frame src="images/k5.jpg" noresize="noresize"/>
<frameset border="1" cols="20px,30px,20px">
<frame src="images/k6.jpg" noresize="noresize"/>
<frame src="welcome_page.php" noresize="noresize"/>
<frame src="images/k7.jpg" noresize="noresize"/>
<p>adfasdF</p>
</frameset-->

</html>

ADD_SUBJECT.PHP

<?php

function ae_detect_ie()

if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))

return true;

else

return false;

if(ae_detect_ie())

Final YearProject Report [116]


Online
School Management System

echo "<center><table border=1 width=600 style=border-


collapse:collapse><tr><td align=center

style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This
Website Does Not Support Internet Explorer</b></td></tr>";

echo "<tr align=center><td style=background-color:#AFEEEE><a


href=http://www.mozilla.com/firefox/ target=_blank>DownLoad
FireFox</a></td></tr></center>";

exit;

else

session_start();

if(!isset($_SESSION['user_name'])&&!isset($_SESSION['password']))

header("Location:login.php");

?>

<html>

<head>

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

<title>Add Subject</title>

</head>

<div id="navMenueTable">

<table border=0>

<tr><td colspan="3" width="" height="150px"><img


src="images/top_banner.gif"/></td></tr>

<tr><td colspan="3" class="td1" height="5px"></td></tr>

</table>

<table border=1 class="table2">

<tr><td colspan="" width="130px" rowspan="" class="td2">Admin


Block</td>

<td class="td6" width="150">Subject Registration</td>

<td class="td3">

<a href="#" onClick="history.go(-1);return true;">Back |</a>

Final YearProject Report [117]


Online
School Management System

<a href="home.php">Home |</a>

<a href="../index.php"> Sign Out</a>

</td></tr>

<tr><td width="200px" height="240px" class="td4" valign="top">

<div id ="menuContainer">

<ul>

<li id="two_step_menue"><a href="#">Login Detail</a>

<ul id>

<li><a href="staff_login_detail.php">Staff</a></li>

</ul>

</li>

<li id="three_step_menue"><a href="">Basic Registration</a>

<ul id="small_bg_menue_link">

<li><a href="">Class</a>

<ul>

<li><a href="add_class.php">Add</a></li>

<li><a href="view_class.php">View</a></li>

<li><a href="delete_class.php">Delete</a></li>

</ul>

</li>

<li><a href="">Subject</a>

<ul>

<li><a href="add_subject.php">Add</a></li>

<li><a href="view_subject.php">View</a></li>

<li><a href="delete_subject.php">Delete</a></li>

</ul>

</li>

<li><a href="">Period</a>

<ul>

<li><a href="add_period.php">Add</a></li>

<li><a href="view_period.php">View</a></li>

<li><a href="delete_period.php">Delete</a></li>

Final YearProject Report [118]


Online
School Management System

</ul>

</li>

<li><a href="">Syllabus</a>

<ul>

<li><a href="add_syllabus.php">Add</a></li>

<li><a href="view_syllabus.php">View</a></li>

<li><a
href="delete_syllabus.php">Delete</a></li>

</ul>

</li>

</ul>

</li>

<li id="three_step_menue"><a href="">Personal


Registration</a>

<ul>

<li><a href="">Staff</a>

<ul>

<li><a href="add_staff.php">Add</a></li>

<li><a href="view_staff.php">View</a></li>

<li><a
href="delete_staff_student.php">Delete</a></li>

</ul>

</li>

<li><a href="">Student</a>

<ul>

<li><a href="add_student.php">Add</a></li>

<li><a href="view_student.php">View</a></li>

<li><a
href="search_student_a.php">Search</a></li>

<li><a
href="delete_staff_student.php">Delete</a></li>

</ul>

</li>

</ul>

</li>

Final YearProject Report [119]


Online
School Management System

<li id="two_step_menue"><a href="">Time Table</a>

<ul>

<li><a href="add_time_table.php">Add</a></li>

<li><a href="view_time_table.php">View</a></li>

<li><a href="update_time_table.php">Update</a></li>

<li><a href="delete_time_table.php">Delete</a></li>

</ul>

</li>

<li id="three_step_menue"><a href="">Academic Schedule</a>

<ul>

<li><a href="">Holiday Schedule</a>

<ul>

<li><a
href="add_holiday_schedule.php">Add</a></li>

<li><a
href="view_holiday_schedule.php">View</a></li>

</ul>

</li>

<li><a href="">Exam Schedule</a>

<ul>

<li><a href="add_exam_schedule.php">Add</a></li>

<li><a
href="view_exam_schedule.php">View</a></li>

<li><a
href="delete_exam_schedule.php">Delete</a></li>

</ul>

</li>

</ul>

</li>

<li id="three_step_menue"><a href="">Payment Management</a>

<ul>

<li><a href="">Fee Structure</a>

<ul>

<li><a href="add_fee.php">Add</a></li>

<li><a href="view_fee.php">View</a></li>

Final YearProject Report [120]


Online
School Management System

<li><a href="edit_fee.php">Edit</a></li>

</ul>

</li>

<li><a href="">Salary Details</a>

<ul>

<li><a href="add_salary.php">Add</a></li>

<li><a href="view_salary.php">View</a></li>

</ul>

</li>

</ul>

</li>

<li id="one_step_Menue"><a
href="view_attendance.php">Attendance</a></li>

<li id="one_step_Menue"><a href="view_marks.php">Marks


Management</a></li>

<li id="three_step_menue"><a href="">Leave Management</a>

<ul>

<li><a href="">Leave Approvals</a>

<ul>

<li><a
href="view_leave_approvals.php">Staff</a></li>

</ul>

</li>

<li id="one_step_menue"><a
href="leave_history.php">Leave History</a></li>

</ul>

</li>

<li id="two_step_menue"><a href="#">Messages</a>

<ul>

<li><a href="#">Inbox</a></li>

<li><a href="#">Outbox</a></li>

<li><a href="#">Compose</a></li>

</ul>

</li>

Final YearProject Report [121]


Online
School Management System

</ul>

</div>

</td>

<td width="925px" height="500" rowspan="2" colspan="3" align="right"


class="add_class">

<center>

<table border=0 class="tab">

<tr><td width="200px" height="" align="right">

<script type="text/javascript">

function formValidation()

var cl = document.getElementById("class").value;

if(cl=='select_class')

alert ("Please Select Class");

return false;

var sbj = document.getElementById("subject").value;

if(sbj=='')

alert ("Please Enter Subject Name");

return false;

if(!sbj.match(/^[a-zA-Z ]+$/))

alert ("Subject Name Field Should Used Only Letters");

return false;

if(!sbj.match(/^[a-zA-Z ]{4,}$/))

alert ("Subject Name Should be Minimum Four Letters");

return false;

Final YearProject Report [122]


Online
School Management System

return true;

</script>

<form name="add_class" action="" method="post" onsubmit="return


formValidation();">

Class : <select id="class" name="add_class"


style="width:120; text-align:center;">

<option value="select_class">Select-Class</option>

<option value="I">I</option>

<option value="II">II</option>

<option value="III">III</option>

<option value="IV">IV</option>

<option value="V">V</option>

<option value="VI">VI</option>

<option value="VII">VII</option>

<option value="VIII">VIII</option>

<option value="IX">IX</option>

<option value="X">X</option>

</select>

</td><tr><td align="right">

Subject : <input type="text" id="subject" name="add_subject"


size="16" maxlength="30" style="text-align:center;" value="Subject
Name" onfocus="if(this.value==this.defaultValue) this.value='';">

</td></tr>

<tr><td align="center" height="50px" style="padding-


left:81;"><input type="submit" id="submit" class="submit" value=" ADD
Subject ">

</td></tr>

<?php

if(count($_POST) > 0)

require("functions_page.php");

echo "<table border=0 style=padding-left:70 ><tr><td


class=popup_for_add_class>";

$add_class = trim($_POST['add_class']);

Final YearProject Report [123]


Online
School Management System

$add_subject = ucwords(strtolower(trim($_POST['add_subject'])));

addSubject($add_class,$add_subject);

echo "</td></tr>";

?>

</form>

</table>

</center>

</td></tr>

<tr><td height="0" rowspan="0" class="td4"></td></tr>

<tr><td colspan="3" height="20" align="center" class="copy_wright">©


Copy Right by anwarhmk</td></tr>

<!--tr><td <a href=""><img src="images/admin_button.gif"></a>


align="right"><img src="images/admin_icon.gif"></td>

<td><img src="images/admin_button.gif"></td></tr-->

</table>

</table>

</div>

<!--frameset border="1" rows="150px,*">

<frame src="images/k5.jpg" noresize="noresize"/>

<frameset border="1" cols="20px,30px,20px">

<frame src="images/k6.jpg" noresize="noresize"/>

<frame src="welcome_page.php" noresize="noresize"/>

<frame src="images/k7.jpg" noresize="noresize"/>

<p>adfasdF</p>

</frameset-->

</html>

Final YearProject Report [124]


Online
School Management System

staff_login_detail.php
<?php

function ae_detect_ie()

if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))

return true;

else

return false;

if(ae_detect_ie())

echo "<center><table border=1 width=600 style=border-


collapse:collapse><tr><td align=center

style=color:red;background-color:#FFE4C4;letter-spacing:1><b>This
Website Does Not Support Internet Explorer</b></td></tr>";

echo "<tr align=center><td style=background-color:#AFEEEE><a


href=http://www.mozilla.com/firefox/ target=_blank>DownLoad
FireFox</a></td></tr></center>";

exit;

else

session_start();

if(!isset($_SESSION['user_name'])&&!isset($_SESSION['password']))

header("Location:login.php");

?>

Final YearProject Report [125]


Online
School Management System

<html>

<head>

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

<title>Staff Login Detail</title>

</head>

<div id="navMenueTable">

<table border=0>

<tr><td colspan="3" width="" height="150px"><img


src="images/top_banner.gif"/></td></tr>

<tr><td colspan="3" class="td1" height="5px"></td></tr>

</table>

<table border=1 class="table2">

<tr><td colspan= width="130px" class="td2">Admin Block</td>

<td class="td6" width="130">Staff Login Detail</td>

<td class="td3">

<a href="#" onClick="history.go(-1);return true;">Back |</a>

<a href="home.php">Home |</a>

<a href="../index.php"> Sign Out</a>

</td></tr>

<tr><td width="200px" height="240px" class="td4" valign="top">

<div id ="menuContainer">

<ul>

<li id="two_step_menue"><a href="#">Login Detail</a>

<ul id>

<li><a href="staff_login_detail.php">Staff</a></li>

</ul>

</li>

<li id="three_step_menue"><a href="">Basic Registration</a>

Final YearProject Report [126]


Online
School Management System

<ul id="small_bg_menue_link">

<li><a href="">Class</a>

<ul>

<li><a href="add_class.php">Add</a></li>

<li><a href="view_class.php">View</a></li>

<li><a href="delete_class.php">Delete</a></li>

</ul>

</li>

<li><a href="">Subject</a>

<ul>

<li><a href="add_subject.php">Add</a></li>

<li><a href="view_subject.php">View</a></li>

<li><a href="delete_subject.php">Delete</a></li>

</ul>

</li>

<li><a href="">Period</a>

<ul>

<li><a href="add_period.php">Add</a></li>

<li><a href="view_period.php">View</a></li>

<li><a href="delete_period.php">Delete</a></li>

</ul>

</li>

<li><a href="">Syllabus</a>

<ul>

<li><a href="add_syllabus.php">Add</a></li>

<li><a href="view_syllabus.php">View</a></li>

<li><a
href="delete_syllabus.php">Delete</a></li>

</ul>

</li>

</ul>

</li>

<li id="three_step_menue"><a href="">Personal


Registration</a>

Final YearProject Report [127]


Online
School Management System

<ul>

<li><a href="">Staff</a>

<ul>

<li><a href="add_staff.php">Add</a></li>

<li><a href="view_staff.php">View</a></li>

<li><a
href="delete_staff_student.php">Delete</a></li>

</ul>

</li>

<li><a href="">Student</a>

<ul>

<li><a href="add_student.php">Add</a></li>

<li><a href="view_student.php">View</a></li>

<li><a
href="search_student_a.php">Search</a></li>

<li><a
href="delete_staff_student.php">Delete</a></li>

</ul>

</li>

</ul>

</li>

<li id="two_step_menue"><a href="">Time Table</a>

<ul>

<li><a href="add_time_table.php">Add</a></li>

<li><a href="view_time_table.php">View</a></li>

<li><a href="update_time_table.php">Update</a></li>

<li><a href="delete_time_table.php">Delete</a></li>

</ul>

</li>

<li id="three_step_menue"><a href="">Academic Schedule</a>

<ul>

<li><a href="">Holiday Schedule</a>

<ul>

<li><a
href="add_holiday_schedule.php">Add</a></li>

Final YearProject Report [128]


Online
School Management System

<li><a
href="view_holiday_schedule.php">View</a></li>

</ul>

</li>

<li><a href="">Exam Schedule</a>

<ul>

<li><a href="add_exam_schedule.php">Add</a></li>

<li><a
href="view_exam_schedule.php">View</a></li>

<li><a
href="delete_exam_schedule.php">Delete</a></li>

</ul>

</li>

</ul>

</li>

<li id="three_step_menue"><a href="">Payment Management</a>

<ul>

<li><a href="">Fee Structure</a>

<ul>

<li><a href="add_fee.php">Add</a></li>

<li><a href="view_fee.php">View</a></li>

<li><a href="edit_fee.php">Edit</a></li>

</ul>

</li>

<li><a href="">Salary Details</a>

<ul>

<li><a href="add_salary.php">Add</a></li>

<li><a href="view_salary.php">View</a></li>

</ul>

</li>

</ul>

</li>

<li id="one_step_Menue"><a
href="view_attendance.php">Attendance</a></li>

Final YearProject Report [129]


Online
School Management System

<li id="one_step_Menue"><a href="view_marks.php">Marks


Management</a></li>

<li id="three_step_menue"><a href="">Leave Management</a>

<ul>

<li><a href="">Leave Approvals</a>

<ul>

<li><a
href="view_leave_approvals.php">Staff</a></li>

</ul>

</li>

<li id="one_step_menue"><a
href="leave_history.php">Leave History</a></li>

</ul>

</li>

<li id="two_step_menue"><a href="#">Messages</a>

<ul>

<li><a href="#">Inbox</a></li>

<li><a href="#">Outbox</a></li>

<li><a href="#">Compose</a></li>

</ul>

</li>

</ul>

</div>

</td>

<td colspan="3" width="925px" height="500"


class="td5_for_view_staff_login_detail" align="center" rowspan="2">

<?php

require("functions_page.php");

viewStaffLoginDetail();

</td></tr>

<tr><td height="0" rowspan="0" class="td4"></td></tr>

<tr><td colspan="3" height="20" align="center" class="copy_wright">©


CopyRight by anwarhmk</td></tr>

<!--tr><td <a href=""><img src="images/admin_button.gif"></a>


align="right"><img src="images/admin_icon.gif"></td>

Final YearProject Report [130]


Online
School Management System

<td><img src="images/admin_button.gif"></td></tr-->

</table>

</table>

</div>

<!--frameset border="1" rows="150px,*">

<frame src="images/k5.jpg" noresize="noresize"/>

<frameset border="1" cols="20px,30px,20px">

<frame src="images/k6.jpg" noresize="noresize"/>

<frame src="welcome_page.php" noresize="noresize"/>

<frame src="images/k7.jpg" noresize="noresize"/>

<p>adfasdF</p>

</frameset-->

</html>

staff_student_function_page.php
<?php

require("../db_connection.php");

function loginCheck($username,$password)

$res = mysql_query("SELECT * FROM staff_table WHERE `Required User


Name`='$username'");

$b=mysql_num_rows($res);

if($b!='')

return true;

else return false;

function viewSubject()

Final YearProject Report [131]


Online
School Management System

echo "<table border=1 style=border-collapse:collapse;


cellpadding=2><th width=45>Class</th><th width=80>Subject-1</th>

<th width=80>Subject-2</th><th width=80>Subject-3</th><th


width=80>Subject-4</th><th width=80>Subject-5</th>

<th width=80>Subject-6</th><th width=80>Subject-7</th><th


width=80>Subject-8</th><th width=80>Subject-9</th><th width=80>Subject-
10</th>";

$arr =
array('I','II','III','IV','V','VI','VII','VIII','IX','X',"XI");

for($a=0;$a<10;$a++)

$class = $arr[$a];

echo "<tr align=center><td>$class</td>";

$res1 = mysql_query("SELECT * FROM subject_table WHERE `Class`='$class'


ORDER BY Class ASC");

$bb = mysql_num_rows($res1);

while($rowa=mysql_fetch_assoc($res1))

echo "<td align=left style=padding-left:5;>".$rowa['Subject']."</td>";

for($s=$bb;$s<10;$s++)//for completing blank boxes...

echo "<td></td>";

echo "</tr>";

echo "</table>";

Final YearProject Report [132]


Online
School Management System

function viewStudent($class,$section)

if($class!="select_class"&&$section!="select_section")

if($class=="all_class"&&$section=="all_section")

$res = mysql_query("SELECT * FROM


student_table");

else if($section=="all_section")

$res = mysql_query("SELECT * FROM


student_table WHERE Class = '$class'");

else{

$res = mysql_query("SELECT * FROM


student_table WHERE Class = '$class' AND Section = '$section'");

if(mysql_fetch_assoc($res)=='')

echo "<tr><td width=300></td><td


class=popup_for_add_class valign=middle align=center>No Record
Found...</td><td width=300></td></tr>";

return false;

if($class=="all_class"&&$section=="all_section")

$res = mysql_query("SELECT * FROM


student_table");

$male= mysql_query("Select Gender from


student_table where Gender='Male'");

Final YearProject Report [133]


Online
School Management System

$female= mysql_query("Select Gender from


student_table where Gender='Female'");

$male_count = mysql_num_rows($male);

$female_count = mysql_num_rows($female);

$rows=mysql_num_rows($res);

$srt_for_caption = "All ClassesStudens";

else if($section=="all_section")

$res = mysql_query("SELECT * FROM


student_table WHERE Class = '$class'");

$rows=mysql_num_rows($res);

$male= mysql_query("Select Gender from


student_table where Gender='Male' AND Class='$class'");

$female= mysql_query("Select Gender from


student_table where Gender='Female' AND Class='$class'");

$male_count = mysql_num_rows($male);

$female_count = mysql_num_rows($female);

$srt_for_caption= "Class $class Section


All Students";

else

$res = mysql_query("SELECT * FROM


student_table WHERE Class = '$class' AND Section = '$section'");

$rows=mysql_num_rows($res);

$male= mysql_query("Select Gender from


student_table where Gender='Male' AND Class = '$class' AND Section =
'$section'");

$female= mysql_query("Select Gender from


student_table where Gender='Female' AND Class = '$class' AND Section =
'$section'");

$male_count = mysql_num_rows($male);

$female_count = mysql_num_rows($female);

$srt_for_caption = "Class $class Section


$section Students";

Final YearProject Report [134]


Online
School Management System

echo "<table border=1 style=border-


collapse:collapse;><caption style=font-size:18;font-
weight:bold;color:green;>$srt_for_caption</caption>

<th width=120>Student Reg No</th><th


width=80>Student ID</th><th width=140>Student Name</th><th
width=140>Father Name</th>

<th width=50>Class</th>

<th width=60>Section</th>

<th width=60>Gender</th><th
width=90>DOB</th>

<th width=100>Phone</th>";

while($row=mysql_fetch_assoc($res))

echo "<tr align=center>

<td width=>".$row['Student
Registration No']."</td>

<td width=>".$row['Student
ID']."</td>

<td width=>".$row['Student
Name']."</td>

<td width=>".$row['Father
Name']."</td>

<td
width=>".$row['Class']."</td>

<td
width=>".$row['Section']."</td>

<td
width=>".$row['Gender']."</td>

<td width=>".$row['Date Of
Birth']."</td>

<td
width=>".$row['Phone']."</td>

</tr>";

echo "<tr><td colspan=12


style=color:brown;background-color:;padding-right:10;font-weight:bold;
align=right>Male Students : $male_count Female Students : $female_count
Total Students : $rows</td></tr></table>";return true;

Final YearProject Report [135]


Online
School Management System

}echo "<tr><td width=300></td><td width=500


class=popup_for_add_class valign=middle align=center>Please Enter
Registration /ID Number OR Select Section And Class...</td><td
width=300></td></tr>";

return false;

function viewSyllabus($class)

if($class=='select_class')

echo "<tr><td width=300></td><td


class=popup_for_add_class valign=middle align=center>Please Select
Class...</td><td width=300></td></tr>";

return false;

$res = mysql_query("SELECT * FROM syllabus_table WHERE Class =


'$class'");

$row = mysql_fetch_assoc($res);

if($row=='')

echo "<tr><td width=300></td><td


class=popup_for_add_class valign=middle align=center>Class $class
Syllabus is not available</td><td width=300></td></tr>";

return false;

echo "<table border=1 style=border-collapse:collapse;><caption


style=color:green;font-weight:bold;font-size:17><b>Class $row[Class]
Syllabus</b></caption><th width=150>Subject</th>

<th width=120>Syllabus</th>";

$res = mysql_query("SELECT * FROM syllabus_table WHERE


Class = '$class' ORDER BY Class ASC");

while($row=mysql_fetch_assoc($res))

echo "<tr align=center>

Final YearProject Report [136]


Online
School Management System

<td width=150 align=left style=padding-


left:10;>".$row['Subject']."</td>

<td width=10 height=35 valign=middle


align=center>

<a href=../".$row['Syllabus Url']."><table


border=0 width=105 height=33><tr>

<td style=background-
image:url(images/try.gif);background-repeat:no-repeat;>

</td></tr></table></a>";

"</td></tr>";

echo "</table>";

function viewExamSchedule($class,$section)

if($class=="select_class"||$section=="select_section")

echo "<tr><td width=300></td><td class =


popup_for_view_time_table = >Please Select Class and Section...</td><td
width=300></td></tr>";

return false;

$res = mysql_query("SELECT * FROM exam_schedule_table WHERE


Class = '$class' AND Section = '$section'");

$row = mysql_fetch_assoc($res);

if($row=='')

echo "<tr><td width=300></td><td class =


popup_for_view_time_table = >No Result Found...</td><td
width=300></td></tr>";

return false;

echo "<table border=1 style=border-


collapse:collapse;><caption style=color:green;font-

Final YearProject Report [137]


Online
School Management System

weight:bold;>".$row['Exam Name']." Exam Schedule For Class $class


Section $section</caption>

<th width=180>Time</th>

<th width=210>Subject</th><th
width=110>Date</th>";

$res = mysql_query("SELECT * FROM exam_schedule_table WHERE


Class = '$class' AND Section = '$section'");

while($row = mysql_fetch_assoc($res))

echo "<tr align=center>

<td>".$row['StartTime']." ".$row['Am Pm
ForStartTime']." to ".$row['EndTime']." ".$row['Am Pm
ForEndTime']."</td>

<td>".$row['Subject']."</td>

<td>".$row['Date']."</td>

</tr>";

echo "</table>";

return true;

function viewHolidaySchedule()

echo "<table border=1 style=border-collapse:collapse;><caption


style=color:green;font-weight:bold;font-size:17>Holiday
Schedule</caption><th width=150>Date</th>

<th width=150>Holiday Name</th>

<th width=120>From Date</th><th width=120>To Date</th>";

$res = mysql_query("SELECT * FROM holiday_schedule_table");

$row = mysql_fetch_assoc($res);

if($row=='')

echo "<tr><td colspan=5


class=popup_for_view_time_table>There are no any Holiday
Schedule</td></tr>";

return;

Final YearProject Report [138]


Online
School Management System

$res = mysql_query("SELECT * FROM holiday_schedule_table");

while($row = mysql_fetch_assoc($res))

echo "<tr align=center>

<td width=150>".$row['Date']."</td>

<td width=150>".$row['Holiday Name']."</td>

<td width=150>".$row['From Date']."</td>

<td width=150>".$row['To Date']."</td></tr>";

echo "</table>";

function viewPeriodsTime()

echo "<table border=1 style=border-collapse:collapse;>

<caption style=color:green;font-weight:bold;font-size:17>Periods
Time</caption><th width=150>Period</th><th width=150>Start Time</th>

<th width=150>End Time</th>";

$res = mysql_query("SELECT * FROM period_table ORDER BY


Period ASC");

while($row=mysql_fetch_assoc($res))

echo "<tr align=center><td


width=150>".$row['Period']."</td>

<td width=150 align=center>".$row['StartTime']."


".$row['Am Pm ForStartTime']."</td>

<td width=150 align=center>".$row['EndTime']."


".$row['Am Pm ForEndTime']."</td></tr>";

echo "</table>";

Final YearProject Report [139]


Online
School Management System

function viewTimeTable($class,$section)

$available=0;

$res = mysql_query("SELECT * FROM time_table");

while($row = mysql_fetch_assoc($res))

if($row['Class']==$class&&$row['Section']==$section)

$available = 1;

if($available==1)

echo "<table border=1 height=400 style=border-


collapse:collapse;><caption style=color:green;font-weight:bold;font-
size:17>Class $class Section $section Time Table</caption>

<th width=70 height=32 style=background-


image:url('images/time_table_corner.gif');></th><th
width=160>Mon</th><th width=160>Tue</th>

<th width=160 >Wed</th><th


width=160>Thr</th>

<th width=150>Fri</th>";

$a=1;

$res = mysql_query("SELECT * FROM


period_table INNER JOIN time_table ON
period_table.Period=time_table.Period

AND time_table.Class =
'$class' AND time_table.Section = '$section' ORDER BY Class ASC");

while($row = mysql_fetch_assoc($res))

if($a==4)

Final YearProject Report [140]


Online
School Management System

echo "<tr><td colspan=6


style=background-color:yellow;font-size:14;
align=center>Break</td></tr>";

echo "<tr align=center><td>Period


$a</td>

<td><table
border=0 width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>

<tr
align=center><td style=font-size:14>".$row['Teacher Name']."</td></tr>

<tr
align=center><td style=font-size:12>$row[StartTime] to
$row[EndTime]</td></tr>

</table></td>

<td><table
border=0width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>

<tr
align=center><td style=font-size:14>".$row['Teacher Name']."</td></tr>

<tr
align=center><td style=font-size:12>$row[StartTime] to
$row[EndTime]</td></tr></table></td>

<td><table
border=0 width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>

<tr
align=center><td style=font-size:14>".$row['Teacher Name']."</td></tr>

<tr
align=center><td style=font-size:12>$row[StartTime] to
$row[EndTime]</td></tr></table></td>

<td><table
border=0 width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>

<tr
align=center><td style=font-size:14>".$row['Teacher Name']."</td></tr>

<tr
align=center><td style=font-size:12>$row[StartTime] to
$row[EndTime]</td></tr></table></td>

Final YearProject Report [141]


Online
School Management System

<td><table
border=0 width=150 style=border-collapse:collapse;><tr
align=center><td>$row[Subject]</td></tr>

<tr
align=center><td style=font-size:14>".$row['Teacher Name']."</td></tr>

<tr
align=center><td style=font-size:12>$row[StartTime] to
$row[EndTime]</td></tr></table></td>

</tr>";$a++;

echo "</table>";

return true;

echo "<tr><td width=300></td><td


class=popup_for_view_time_table>No Result Found</td><td
width=300></td></tr>";

return false;

function viewStaffSalary($view_salary)

if($view_salary=='')

return false;

$res = mysql_query("SELECT * FROM


staff_salary_table,staff_table WHERE staff_salary_table.`Staff
ID`=staff_table.`Staff ID`

AND
staff_salary_table.`Staff ID` = '$view_salary' OR staff_table.`Staff
Registration No` = '$view_salary'");

if(mysql_fetch_assoc($res)=='')

Final YearProject Report [142]


Online
School Management System

echo "<table border=0><tr><td


width=100><td width=300 class = popup_for_view_time_table = >No Record
Found...</td><td width=150></td></tr></table>";

return false;

$res = mysql_query("SELECT * FROM


staff_salary_table,staff_table WHERE staff_salary_table.`Staff
ID`=staff_table.`Staff ID`

AND
staff_salary_table.`Staff ID` = '$view_salary' OR staff_table.`Staff
Registration No` = '$view_salary'");

$row=mysql_fetch_assoc($res);

echo "<table border=0 cellspacing=5


width=450><tr><td height=10></td></tr>

<tr align=center><td>Staff ID
:</td><td>".$row['Staff ID']."</td><td>Staff Name
:</td><td>".$row['Staff Name']."</td></tr>

<tr align=center><td>Month : </td><td>--


-</td><td>Working Days : </td><td>---</td></tr><tr align=center><td>Days
Present : </td><td>---</td></tr>

<tr><td height=5></td></tr></table>";

//echo "<br>";

echo "<table border=1 width=500


style=border-
collapse:collapse><th></th><th>Credit</th><th>Deducation</th>

<tr
align=center><td>Basic</td><td>$row[Basic]</td><td>----</td></tr>

<tr
align=center><td>HR</td><td>$row[HRA]</td><td>----</td></tr>

<tr
align=center><td>PF</td><td>$row[PF]</td><td>----</td></tr>

<tr
align=center><td>TA</td><td>$row[TA]</td><td>----</td></tr>

<tr
align=center><td>DA</td><td>$row[DA]</td><td>----</td></tr>

<tr
align=center><td>Tax</td><td>".$row['Professional Tax']."</td><td>----
</td></tr>

<tr align=center><td
colspan=3>Total Amount : ".$row['Total Amount']."</tr></table>";

return true;

Final YearProject Report [143]


Online
School Management System

function viewFee()

echo "<table border=1 style=border-collapse:collapse;>

<caption style=color:green;font-weight:bold;font-
size:17>Students Fee Information</caption>

<th width=100>Class</th><th width=100>Library Fee</th><th


width=100>Lab Fee</th><th width=100>Transport Fee</th>

<th width=100>No Of Terms</th><th width=100>First Term</th><th


width=100>Second Term</th>";

$res = mysql_query("SELECT * FROM fee_table");

while($row=mysql_fetch_assoc($res))

echo"<tr align=center>

<td width=100>".$row['Class']."</td>

<td width=100>".$row['Library Fee']."</td>

<td width=100>".$row['Lab Fee']."</td>

<td width=100>".$row['Transport Fee']."</td>

<td width=100>".$row['No Of Terms']."</td>

<td width=100>".$row['First Term']."</td>

<td width=100>".$row['Second Term']."</td>

</tr>

";

echo "</table>";

function addMarks($student_id, $class, $marks0, $marks1,$marks2,$marks3,


$marks4, $marks5, $marks6, $marks7, $marks8,

$marks9, $total_marks,$percentage,$grade)

Final YearProject Report [144]


Online
School Management System

if($student_id=='')

//echo "<table border=0><tr><td width=330><td width=240


class = popup_for_view_time_table = >Please Type Student ID...</td><td
width=150></td></tr></table>";

return false;

$res = mysql_query("SELECT * FROM students_marks_table WHERE


`Student ID` = '$student_id'");

if(mysql_fetch_assoc($res)=='')

$res = mysql_query("SELECT * FROM student_table WHERE


`Student ID`='$student_id' AND `Class`='$class'");

$row = mysql_fetch_assoc($res);

$b = mysql_num_rows($res);

if($b=='')

return false;

$class = $row['Class'];

$section= $row['Section'];

mysql_query("INSERT INTO students_marks_table


(`Student ID`,`Class`,`Section`,`Marks1`,

`Marks2`, `Marks3`,`Marks4`,
`Marks5`, `Marks6`,`Marks7`,`Marks8`,`Marks9`,`Marks10`,`Total
Marks`,Percentage,`Grade`)

VALUES

('$student_id','$class','$section','$marks0','$marks1',

'$marks2','$marks3','$marks4','$marks5','$marks6','$marks7','$marks8','$
marks9','$total_marks','$percentage','$grade')");

echo "<table border=0><tr><td width=305><td


width=300 class = popup_for_view_time_table = >Resulst for ID No
$student_id hasadded successfully...</td><td
width=150></td></tr></table>";

return true;

Final YearProject Report [145]


Online
School Management System

//echo "<table border=0><tr><td width=310><td width=300


class = popup_for_view_time_table = >Result for ID No $student_id has
already added...</td><td width=150></td></tr></table>";

return false;

function viewStudentsMarks($student_id,$class,$section)

if($student_id!='Student ID')

$res = mysql_query("SELECT * FROM


students_marks_table,student_table

WHERE students_marks_table.`Student ID` =


student_table.`Student ID`

AND student_table.`Student
ID`='$student_id'");

$row=mysql_fetch_assoc($res);

$bb = mysql_num_rows($res);

if($bb=='')

return false;

echo "<table border=0 width=400 style=border-


collapse:collapse;><tr><td height=30></td></tr><tr align=center><td>
Student Name : ".$row['Student Name']."</td><td> Student ID :
".$row['Student ID']."</td></tr>

<tr><td style=padding-left:43;>Class :
".$row['Class']."</td><td style=padding-left:48;> Section :
".$row['Section']."</td></tr><tr><td height=10></td></tr></table>";

echo "<table border=1 width=400 style=border-


collapse:collapse;><th width=200>Subject</th><th>Marks</th>";

$res1 = mysql_query("SELECT * FROM student_table


WHERE `Student ID`='$student_id'");

$row1=mysql_fetch_assoc($res1);

$class = $row1['Class'];

Final YearProject Report [146]


Online
School Management System

$res2 = mysql_query("SELECT * FROM subject_table


WHERE `Class`='$class'");

$a=1;

$b=0;

while($row2=mysql_fetch_assoc($res2))

if($row["Marks$a"]<33)

echo "<tr style=color:red;><td


style=padding-left:5>".$row2['Subject']."</td><td
align=center>".$row["Marks$a"]."</td></tr>";

$b=1;

else echo "<tr><td style=padding-


left:5>".$row2['Subject']."</td><td
align=center>".$row["Marks$a"]."</td></tr>";

$a++;

echo "<table>";

if($b==0)

$remarks="<td align=center
style=padding-right:15;>Remarks : Pass</td></tr>";

}else $remarks="<td style=color:red;padding-


left:45; >Remarks : Fail</td></tr>";

echo "<table border=0 style=border-


collapse:collapse; width=400><tr><td height=10></td></tr><tr
align=center><td width=200>Total Marks : ".$row['Total
Marks']."</td><td>Percentage : ".$row['Percentage']."%</td></tr>

<tr><td style=padding-left:50;>Grade :
".$row['Grade']."</td>$remarks </table>";

//<tr><

return true;

if($class=="select_class"||$section=="select_section")

returnfalse;

Final YearProject Report [147]


Online
School Management System

$res = mysql_query("SELECT * FROM students_marks_table WHERE


`Class`='$class' AND `Section`='$section'");

$b = mysql_num_rows($res);

if($b=='')

return false;

echo "<tableborder=1 style=border-collapse:collapse;><caption


style=font-size:18;font-weight:bold;color:green;>Class $class Section
$section Result</caption><th width=60>Std ID</th><th
width=80>Name</th>";

$ress = mysql_query("SELECT * FROM subject_table WHEREClass =


'$class'");

while($rows = mysql_fetch_assoc($ress))

echo "<th width=100>".$rows['Subject']."</th>";

echo "</th><th width=100>T-Marks</th><th


width=65>Percentage</th><th width=60>Grade</th><th
width=60>Remarks</th>";

$res = mysql_query("SELECT * FROM


students_marks_table,student_table

WHERE students_marks_table.`Student ID` =


student_table.`Student ID`

AND student_table.`Class`='$class' AND


student_table.`Section`='$section'");

//AND students_marks_table.`Student ID` =


'$student_id'");

$average_pass=0;

$count_students=0;

$count_pass=0;

$count_fail=0;

while($row = mysql_fetch_assoc($res))

$count_students++;

$identify_pass_fail=0;

Final YearProject Report [148]


Online
School Management System

$res1 = mysql_query("SELECT * FROM subject_table WHERE


`Class` = '$class'");

$a = mysql_num_rows($res1);

for($i=1;$i<=$a;$i++)

$marks = $row["Marks$i"];

if($marks<33)

$identify_pass_fail=1;

$str_for_marks[] = "<td
align=center style=color:red;>".$marks."</td>";

}else $str_for_marks[] = "<td


align=center>".$marks."</td>";

if($identify_pass_fail==0)

$remarks = "Pass";

$str_for_remarks = "<td
align=center>".$remarks."</td>";

$count_pass++;

else if($identify_pass_fail==1)

$remarks = "Fail";

$str_for_remarks = "<td align=center


style=color:red;>".$remarks."</td>";

$count_fail++;

echo "<tr><td align=center>".$row['Student


ID']."</td><td>".$row['Student Name']."</td>";

foreach($str_for_marks as $m)

Final YearProject Report [149]


Online
School Management System

echo $m;

echo "<td align=center>".$row['Total Marks']."</td><td


align=center>".$row['Percentage']." %</td>

<td
align=center>".$row['Grade']."</td>$str_for_remarks</tr>";

unset($str_for_marks);

$average_pass_students=($count_pass/$count_students)*100;

echo "<tr><td colspan=14 align=right style=color:brown>Pass Students :


$count_pass Fail Students : $count_fail

Passing Average : ".round($average_pass_students,3)."


%</td></tr></table>";

return true;

function deleteResults($class,$section)

if($class=="select_class"||$section=="select_section")

return false;

mysql_query("DELETE FROM students_marks_table WHERE


`Class`='$class' AND `Section`='$section'");

return true;

Final YearProject Report [150]


Online
School Management System

function addAttendance($student_id, $class, $section, $present_absent)

$ress = mysql_query("SELECT * FROMstudent_table WHERE


`Class`='$class' AND `Section`='$section' AND `Student
ID`='$student_id'");

$b=mysql_num_rows($ress);

if($b=='')

return false;

$res = mysql_query("SELECT * FROM attendance_table WHERE


`Student ID`='$student_id' AND `Date`=current_date()");

$b = mysql_num_rows($res);

if($b!='')

return true;

}else {

mysql_query("INSERT INTO attendance_table (`Date`, `Student ID`,


`Class`, `Section`, `Status`)

VALUES (current_date(),'$student_id',
'$class','$section', '$present_absent')");

return true;

function viewStudentsAttendance($student_id,$class,$section,$date)

if($student_id!="Student ID")

$res = mysql_query("SELECT * FROM


attendance_table,student_table WHERE attendance_table.`Student
ID`=student_table.`Student ID`

Final YearProject Report [151]


Online
School Management System

AND attendance_table.`Student
ID`='$student_id'");

$b=mysql_num_rows($res);

if($b=='')

return false;

$res = mysql_query("SELECT * FROM


attendance_table,student_table WHERE attendance_table.`Student
ID`=student_table.`Student ID`

AND attendance_table.`Student
ID`='$student_id'");

$row = mysql_fetch_assoc($res);

echo "<table border=1 style=border-collapse:collapse;><caption


style=color:green;font-weight:bold;font-size:17>Attendance Record Of
".$row['Student ID']."</caption><th width=200>Student Name</th><th
width=100>Student ID</th>

<th width=100>Class</th><th width=100>Section</th><th


width=100>Status</th><th width=200>Date OfAttendance</th>";

$res = mysql_query("SELECT * FROM


attendance_table,student_table WHERE attendance_table.`Student
ID`=student_table.`Student ID`

AND attendance_table.`Student
ID`='$student_id'");

$present=0;

$absent=0;

while($row = mysql_fetch_assoc($res))

if($row['Status']=='Present')

echo "<tr><td align=center


style=padding-left:5>".$row['Student Name']."</td><td
align=center>".$row['Student ID']."</td>

<td
align=center>".$row['Class']."</td><td
align=center>".$row['Section']."</td><td
align=center>".$row['Status']."</td>

Final YearProject Report [152]


Online
School Management System

<td
align=center>".$row['Date']."</td></tr>";

$present++;

}else

echo "<tr style=color:red;><td


align=center style=padding-left:5>".$row['Student Name']."</td><td
align=center>".$row['Student ID']."</td>

<td
align=center>".$row['Class']."</td><td
align=center>".$row['Section']."</td><td
align=center>".$row['Status']."</td>

<td
align=center>".$row['Date']."</td></tr>";

$absent++;

echo "<tr><td align=right style=color:brown;font-


weight:bold;padding-right:10colspan=6>Present :$present Absent
:$absent</table>";

return true;

if($class=='select_class'||$section=='select_section')

return false;

$res = mysql_query("SELECT * FROM attendance_table,student_table


WHERE attendance_table.`Student ID`=student_table.`Student ID`

AND attendance_table.`Class`='$class' AND


attendance_table.`Section`='$section' AND
attendance_table.`Date`='$date'");

$b=mysql_num_rows($res);

if($b=='')

return false;

$res = mysql_query("SELECT * FROM attendance_table,student_table


WHERE attendance_table.`Student ID`=student_table.`Student ID`

Final YearProject Report [153]


Online
School Management System

AND attendance_table.`Class`='$class' AND


attendance_table.`Section`='$section' AND
attendance_table.`Date`='$date'");

$rowa = mysql_fetch_assoc($res);

echo "<table border=1 style=border-collapse:collapse;><caption


style=color:green;font-weight:bold;font-size:17>Class ".$rowa['Class']."
Section ".$rowa['Section']." Date of ".$rowa['Date']."
Attendance</caption><th width=200>Student Name</th><th width=200>Student
ID</th><th width=200>Status</th>";

$res = mysql_query("SELECT * FROM attendance_table,student_table


WHERE attendance_table.`Student ID`=student_table.`Student ID`

AND attendance_table.`Class`='$class' AND


attendance_table.`Section`='$section' AND
attendance_table.`Date`='$date'");

$present=0;

$absent=0;

while($row = mysql_fetch_assoc($res))

if($row['Status']=='Present')

echo "<tr><td align=center style=padding-


left:5>".$row['Student Name']."</td><td align=center>".$row['Student
ID']."</td><td align=center>".$row['Status']."</td></tr>";

$present++;

}else

echo "<tr style=color:red;><td align=center


style=padding-left:5>".$row['Student Name']."</td><td
align=center>".$row['Student ID']."</td><td
align=center>".$row['Status']."</td></tr>";

$absent++;

echo "<tr><td align=right style=color:brown;font-


weight:bold;padding-right:10 colspan=3>Present students : $present
Absent students : $absent</table>";

return true;

function leaveApply($staff_id,$no_of_leave,$start_date,$to_date,$reason)

Final YearProject Report [154]


Online
School Management System

if($staff_id==''||$no_of_leave==''||$start_date==''||$to_date==''||$reas
on=='')

echo "<table border=0><tr><td width=320></td><td


class=popup_for_view_time_table>Please Type Above All
Information...</td><td></td></tr></table>";

return false;

$date=date("Y-m-d");

$approval="Pending";

$res = mysql_query("SELECT * FROM staff_leave_table WHERE `Staff


ID`='$staff_id' AND `Start Date`>CURRENT_DATE()");

$b=mysql_num_rows($res);

if($b!='')

echo "<table border=0><tr><td width=326></td><td


class=popup_for_view_time_table>You are already Apply for
Leave...</td><td></td></tr></table>";

return false;

mysql_query("INSERT INTO staff_leave_table (`Staff


ID`,`No Of Leave`,`Start Date`,`To Date`,`Reason`,`Status`)

VALUES('$staff_id','$no_of_leave','$start_date','$to_date','$reason','$a
pproval')");

echo "<table border=0><tr><td width=320></td><td


class=popup_for_view_time_table>Apply Successfully For
Leave...</td><td></td></tr></table>";

return true;

function viewLeaveHistory()

echo "<table border=1 style=border-collapse:collapse><caption


style=color:green;font-weight:bold;font-size:17>Staff Leave
History</caption><th width=80>Staff ID</th><th width=140>Name</th><th
width=90>No Of Days</th>

Final YearProject Report [155]


Online
School Management System

<th width=100>From Date</th><th width=100>To Date</th>

<th width=140>Reason</th><th width=100>Status</th>";

$res = mysql_query("SELECT * FROM staff_leave_table,staff_table


WHERE staff_leave_table.`Staff ID`=staff_table.`staff ID`");

while($row = mysql_fetch_assoc($res))

echo "<tr><td align=center>".$row['Staff ID']."</td><td


align=center>".$row['Staff Name']."</td><td align=center>".$row['No Of
Leave']."</td>

<td align=center>".$row['Start Date']."</td><td


align=center>".$row['To Date']."</td><td
align=center>".$row['Reason']."</td><td
align=center>".$row['Status']."</td></tr>";

echo "</table>";return;

?>

Final YearProject Report [156]


Online
School Management System

CHAPTER 7
SYSTEM TESTING

The testing process focuses on the logical intervals of the software

ensuring that all statements have been tested and onfunctional interval is

conducting tests to uncover errors and ensure that defined input will

produce actual results that agree with the required results.

A formal test plan is a document that provides and records

important information about a test project, for example:

• Project and quality assumptions


• Project background information
• Resources
• Schedule & timeline
• Entry and exit criteria
• Test milestones
• Tests to be performed
• Use cases and/or test cases

Software testing is a critical element of qualityassurance and represents

the ultimate review of specification, design plus coding. Following is a

testing strategy as laid out for testing of “OnlineSchool Management

System “.

Final YearProject Report [157]


Online
School Management System

Testing Configuration

Testing was done in various phases. A “Bottom Up”testing methodology

was followed where all modules tested before proceeding to integrating

them as a whole.

Testing was done in following phases:-

1. Unit Testing

2. Integration Testing

(1) UNIT TESTING

Unit testing is a white box testing. The goal is toverify a unit of

design i.e. module. Unit testing is done to ensure 100% codes

coverage and all modules are tested exhaustively. After this

phase the code is frozen so that further testing is executed

without changing the code. Unit test cases are writtenfor each

module before commencement of coding are carried out in

parallel with development. These cases are designed to cover

instance such as module interface, local data structure,

boundary condition and basic error handling path through this

control structure. We designed different modules for different

purposes. We tested each modules and its each method

individually for its proper functionality.

Final YearProject Report [158]


Online
School Management System

(2) INTEGRATION TESTING

Integration testing is the phase of software testing in which

individual softwaremodules are combined and tested as a group. It

follows unit testing and precedes system testing.

Integration testing takes as its input modules that have been

checked out by unit testing, groups them in larger aggregates,

applies tests defined in an Integration test plan to those

aggregates, and delivers as its output the integrated system ready

for system testing.

In integration testing, the units validated during unit testing are

combined into successively larger components and programs and

are tested.

7.1 Preparation Of Test Data

Test data has been prepared for each and every module and for

every process. Test data for whole integrated system is also

prepared and system has been tested for different errors.

System Security Measures

The measures taken for the security of the software is

authentication by password. There are different kinds of security

Final YearProject Report [159]


Online
School Management System

levels in the project. First level security is mandatory and second

level security is optional. The security level based on password

based authentication system.

Log In As:

Whenever a user wants to access the software first he/she has to

authenticate himself/herself. The first interface of software is login

form. In this form the person has to authenticate him/her by filling

login id &login password.

When the login id & password matches with the stored one then

only he/she can move to next interface. The new system user can

be added by filling the “Add Student/Staff” form. The administrator

can delete/update the existing user information.

This option used for log in for different users. In this option if

Administrator has logged, then he has all rights for fully used this

software and also has rights for any Transaction.

If any end user has logged, he will get right only for used this

software efficiently but can not has any right to modification or

transaction.

Final YearProject Report [160]


Online
School Management System

CHAPTER 8
SYSTEM IMPLEMENTATION

Implementation is the stage in the project where the theoretical design is

turned into a working system. The implementation phaseconstructs,

installs and operates the new system. The most crucial stage in achieving

a new successful system is that it will work efficiently and effectively.

The transition or changeover from the old system to the new and the

preparation for this such as making sure the hardware and network

infrastructure for a new system are in place; testing of the system and

also human issues of how best to educate and train staff who will be

using or will be affected by the new system.

Final YearProject Report [161]


Online
School Management System

CHAPTER 9
CONCLUSION

After proper analyzing feasibility reports and using the current manual

system as well as automated system, we conclude that the automated

system is best and highly efficient GUI based component. This software is

going to serve the long-term needs of “OnlineSchool management

System". This software is working properly and meeting to user`s all

requirements.

This software will increase the goodwill of the “Online School

managementSystem". It also reduces the burden of work on part of data

entry operator and makes the whole system efficient and fast. Now by

introducing this system the transactions and reports becomes

instantaneous. As a result administrator of “OnlineSchool management

System“ will be handling their administrative work more accuratelyand

efficiently.

Final YearProject Report [162]


Online
School Management System

CHAPTER 10
SCOPE OF THE PROJECT

10.1Deficiencies/Limitations

Each system has its own measures of successes and failures, as well

as its critics. However, we must realize that there is no perfect

system.

Since I just want to try to build software that describes me how the

data/information in Online School management Systemis

managed, I have included fewmodules in my project.

So, this project has limited in some areas. Major limitations and

challenges in front of the school to implement a School

Management Software.

• Our teachers and other users are no techno savvy.

• Not all the parents are IT enabled so what's the point.

• Staff members would require a proper training to operate this

software

Final YearProject Report [163]


Online
School Management System

10.2Future Enhancement and scope

Present System is a combination of various modules. We can

introduce various new activities and specifications to make our

system more and more effective and productive and also goal

oriented.

The project has very many usefulaspects as in the present scenario

each and every area of work is adopting technology up gradations

for making the efficient faster reducing manual burden of

managing information and retrieving it whenever required. As the

system is able to do lot of work automatically it helps the

department on concentrating on other thing in spite of managing

the facility.

In spite of our rigorous effort we had not been able to assimilate all

the features of an ideal a SCHOOL MANAGEMENT SYSTEM ,Since we

have not includeevery area, which comes in SCHOOL MANAGEMENT

SYSTEM, the project can be further enhanced to include more

modules.

Proposed System is very suitable for proposed Institution. It will be

very useful ,so users can do their work very smoothly.

Final YearProject Report [164]


Online
School Management System

This projectwill produce various reports which are also useful for

user. This project have very much flexibility and according to time

and need we can modify data and facility also. We can add more

features in this project in future as well as can remove the

limitation from the next version. So, this project has a great future

scope.

Final YearProject Report [165]


Online
School Management System

Bibliography/References

1. System Analysis and Design (E.M.Awad)

2. Software Engineering (R.S.Pressman)

3. www.homeandlearn.co.uk

4. www.Learn-sql-tutorial.com

5. Apress.HTML5 and JavaScriptProjects(Jeanine Meyer)

6. JavaScript Programming for the Absolute Beginner (Andy

Harris)

Final YearProject Report [166]

You might also like