0% found this document useful (0 votes)
1 views89 pages

Student Information Management System

The document is a dissertation by Vaibhav Tiwari submitted for a Bachelor of Computer Applications degree, focusing on a Student Management System designed to streamline student information management in educational institutions. It outlines the system's architecture, modules for administrators, faculty, and students, and includes feasibility analysis, system analysis, and technology overview. The proposed system aims to replace manual processes with a user-friendly online interface for efficient record-keeping and management of student data.

Uploaded by

Deadd Rox
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views89 pages

Student Information Management System

The document is a dissertation by Vaibhav Tiwari submitted for a Bachelor of Computer Applications degree, focusing on a Student Management System designed to streamline student information management in educational institutions. It outlines the system's architecture, modules for administrators, faculty, and students, and includes feasibility analysis, system analysis, and technology overview. The proposed system aims to replace manual processes with a user-friendly online interface for efficient record-keeping and management of student data.

Uploaded by

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

“STUDENT MANAGEMENT SYSTEM”

DISSERTATION
SUBMITTED IN PARTIAL FULFILLMENT OF THE
REQUIREMENTS FOR THE AWARD OF THE DEGREE OF

Bachelor of Computer Applications

By

Name: Vaibhav Tiwari


Roll No: 2004088
Enroll No: A- 4663

Under the Supervision of

Dr. MAZHAR KHALIQ

Department of Computer Science and Information Technology

KhwajaMoinuddinChishtiLanguage University, Lucknow

2023

1
TABLE OF CONTENTS

DECLEARATION

…………………………………………………………………………………1
ACKNOWLEDGEMENT……………………………………………………………………
…….2ABSTRACT……………………………………………………………………………
……………3

CHAPTER

1: INTRODUCTION................................................................................................................7

1.1 Purpose:............................................................................................................7

1.2 Scope :..............................................................................................................8

CHAPTER 2: SYSTEM ANALYSIS......................................................................................9

2. Existing System: Student Information Management System:-.........................9

2.2 Proposed System - Student Information Management System.....................10

2.3 Feasibility Analysis - Student Information Management System................10

2.3. Technical Feasibility:...................................................................................10

2.3.2 Economical Feasibility...............................................................................11

CHAPTER 3: SYSTEM ARCHITECTURE........................................................................12

3.1 Admin Module:-............................................................................................12

3.2 Faculty Module:-...........................................................................................12

3.3 Student Module:-..........................................................................................13

3.4 Services Diagram of Modules.......................................................................13

3.5 Data Flow Diagram:-....................................................................................14

3.6 ER-DIAGRAM.............................................................................................18

CHAPTER 4: OVERALL DESCRIPTION.........................................................................21

4.1 Product Perspective :......................................................................................21

4.2 Product Functions :........................................................................................21

4.3 User Classes and Characteristics :.................................................................23

4.4 Operating Environment :................................................................................23

4.5 Constraints :...................................................................................................23

2
4.6 Use Case Model :...........................................................................................24

CHAPTER 5: TECHNOLOGY OVERVIEW.....................................................................33

5.1 PHP................................................................................................................33

5.2 MySQL..........................................................................................................33

5.3 Apache...........................................................................................................34

5.4 XAMPP..........................................................................................................34

5.4.1 Obtaining and Installing XAMPP..............................................................34

5.4.2 Creating a Database and Inserting Data......................................................36

CHAPTER 6: PROJECT DESCRIPTION..........................................................................38

6.1 Introduction....................................................................................................38

6.2 Description Of Root Directory Contents.......................................................39

6.3 Description of Database tables:.....................................................................41

CHAPTER 7: CODING.........................................................Error! Bookmark not defined.

CHAPTER 8: SCREENSHOTS............................................Error! Bookmark not defined.

CHAPTER 9: REFERENCE.................................................Error! Bookmark not defined.

3
DECLARATION

I hereby certify that the project entitled “STUDENT MANAGEMENT SYSTEM”


submitted by Vaibhav Tiwari in partial fulfillment of the requirement for the award of
degree of the Bachelor of Computer Application submitted in Khwaja Moinuddin
Chishti Language University, Lucknow is an authentic record of my own work carried
out in the Semester VI under the guidance of Dr. Mazhar Khaliq, Head of
Department, Department of Computer Science and Information Technology. The
matter presented in this project has not formed the basis for the award of any other
degree, diploma, fellowship or any other similar titles.

Vaibhav Tiwari

Place: Lucknow

Date: 31 May
2023

4
ACKNOWLEDGEMENTS

We are pleased to acknowledge Dr. Mazhar Khaliq for their invaluableguidance


during the course of this project work.

We extend our sincere thanks to Mr Aman Ansari who continuously helped us


throughout the projectand without his guidance, this project would have been an
uphill task.

We would also like to thank ‘Software Farm’ (www.Javapoint.com) for writing the
very useful MicaGraphics Framework Toolkit for Java under the Open-Source banner
which greatly helped us in writingthe visualization part.

June, 2023 Vaibhav Tiwari

5
Abstract

Student Information System (SIS) provides a simple interface for maintenance of


student information. It can be used by college to maintain the records of students
easily. It tracks all the details of a student from the day one to the end of the course
which can be used for all reporting purpose, tracking of attendance, progress in the
course, semesters, years and all these will be available through a secure, online
interface embedded in the college’s website. 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. In the Software we can register as
a faculty as well as a student for every student the authentication code and the roll no
is provided by the head of the department faculty and for the registration of a faculty
the Registration ID and the authentication code is provided by the administrator the
institute.

6
CHAPTER: 1

1. INTRODUCTION

Student Management System is software which is helpful for students as well as the
school authorities. In the current system all the activities are done manually. It is very
time consuming and costly. Our Student Management System deals with the various
activities related to the students.

There are mainly 3 modules in this software

 Administrator Module

 Faculty Module

 Student Module.

In the Software we can register as a faculty as well as a student for every student the
authentication code and the roll no is provided by the head of the department faculty
and for the registration of a faculty the Registration ID and the authentication code is
provided by the administrator the institute.

In this project an admin can manage the faculty and take decision about the students
like deletion of any student admin is authorized to create the token for the registration
of the faculty as same as a faculty is authorized for creating token for the registration
of a student.

1.1 Purpose:

7
The objective of Student information System is to allow the administrator of
any organization to edit and find out the personal details of a student and
allows the student to keep up to date his profile .It’ll also facilitate keeping all
the records of students, such as their id, name, mailing address, phone number,
DOB etc. So all the information about an student will be available in a few
seconds.

Overall, it’ll make Student Information Management an easier job for the
administrator and the student of any organization.
The main purpose of this SRS document is to illustrate the requirements of the
project Student information System and is intended to help any organization
to maintain and manage its student’s personal data.

1.2 Scope :

Without a Student information System, managing and maintaining the


details of the student is a tedious job for any organization.
Student Information system will store all the details of the students including
their background information, educational qualifications, personal details and
all the information related to their resume .

8
CHAPTER: 2

2. SYSTEM ANALYSIS

2.1Existing System: Student Information Management System:-

System Analysis is a detailed study of the various operations performed by a system


and their relationships within and outside of the system. Here the key question is-
what all problems exist in the present system? What must be done to solve the
problem? Analysis begins when a user or manager begins a study of the program
using existing system.

During analysis, data collected on the various files, decision points and transactions
handled by the present system. The commonly used tools in the system are Data Flow
Diagram, interviews, etc. Training, experience and common sense are required for
collection of relevant information needed to develop the system. The success of the
system depends largely on how clearly the problem is defined, thoroughly
investigated and properly carried out through the choice of solution. A good analysis
model should provide not only the mechanisms of problem understanding but also the
frame work of the solution. Thus it should be studied thoroughly by collecting data
about the system. Then the proposed system should be analyzed thoroughly in
accordance with the needs.

System analysis can be categorized into four parts.

 System planning and initial investigation

9
 Information Gathering
 Applying analysis tools for structured analysis
 Feasibility study
 Cost/ Benefit analysis.

In the current system we need to keep a number of records related to the student and
want to enter the details of the student and the marks manually. In this system only
the teacher or the school authority views the mark of the student and they want to
enter the details of the student. This is time consuming and has much cost.

2.2Proposed System - Student Information Management System


In our proposed system we have the provision for adding the details of the students by
themselves. So the overhead of the school authorities and the teachers is become less.
Another advantage of the system is that it is very easy to edit the details of the student
and delete a student when it found unnecessary. The marks of the student are added in
the database and so students can also view the marks whenever they want.

Our proposed system has several advantages

 User friendly interface


 Fast access to database
 Less error
 More Storage Capacity
 Search facility
 Look and Feel Environment
 Quick transaction

All the manual difficulties in managing the student details in a school or college have
been rectified by implementing computerization.

2.3Feasibility Analysis - Student Information Management System


Whatever we think need not be feasible .It is wise to think about the feasibility
of any problem we undertake. Feasibility is the study of impact, which
happens in the organization by the development of a system. The impact can
be either positive or negative. When the positives nominate the negatives, then

10
the system is considered feasible. Here the feasibility study can be performed
in two ways such as technical feasibility and Economical Feasibility.

2.3.1 Technical Feasibility:


We can strongly says that it is technically feasible, since there will not be
much difficulty in getting required resources for the development and
maintaining the system as well. All the resources needed for the
development of the software as well as the maintenance of the same is
available in the organization here we are utilizing the resources which are
available already.

2.3.2 Economical Feasibility


Development of this application is highly economically feasible .The
organization needed not spend much money for the development of the
system already available. The only thing is to be done is making an
environment for the development with an effective supervision. If we are
doing so, we can attain the maximum usability of the corresponding
resources .Even after the development, the organization will not be in
condition to invest more in the organization .Therefore, the system is
economically feasible

11
CHAPTER: 3

3. SYSTEM ARCHITECTURE

In this chapter, modules of the website are described. It includes software


interfaces, hardware interfaces, software requirements, hardware requirements
etc.

This project is made under an online project which is works as a website also
it also use for the advertisement of the institute it also include the information
pages of the institute like vision, about us, history, student information page,
syllabus for the students, admission information and a notice board for the
student of institute and as well as a guest user.

3.1 Admin Module:-

This is the first and the base module of the project by this module a admin is
provided to the project to manage the faculty and student module. An admin
have the authority to add and remove the faculty, Add and delete the
Notification, view progress and attendance status of the students, update
academic calendar etc.

3.2 Faculty Module:-

This module is for the faculty members of the institute all faculty are get a
unique token no and a pin for registration by the administrator of the institute
by using the registration id and pin the faculty will get registration page after
filling that form the faculty will get registered in the institute database and
they choose a password for login to their profile. After login the faculty have
authorized to services for the student like submit attendance of students,

12
submit marks of their subjects, make result, add notification for a particular
department, send mail to individual or a group of student, allot assignments
and project to the students.

3.3 Student Module:-

As like faculty registration same the student will get a roll no and a pin to
registered themselves. After enter the roll no and pin students are redirect
to the registration page after submitting their general details student will
get a roll no and a password to login their profile. After login the student is
able to view and update their updatable information like mobile no, email,
address and profile pictures but students are restricted to update their key
details like Name, Father Name, Date of birth in such a case in student is
able to write a online application to their head of department for approving
to update these details. Students are able to view other information related
to their class like notification of their departments, own attendance in
individual subjects, previous test marks, and send message to other
students.

3.4Services Diagram of Modules.

ADMIN MODULE

Add/Update Add/Delete Delete View Students Allot Subjects


Notification Faculty Student Data to Faculty

13
Figure 1 ( Admin module services)
FACULTY MODULE

Add Dept. Add Submit Submit Allot


Notification Students Attendance Result Data Assignments

Figure 2 (Faculty Module Services)

STUDENT MODULE

View Update Contact View Message to View/Submit


Attendance Details Marksheet Classmates Assigments

14

Figure 3 (Student Module Services)


3.5Data Flow Diagram:-

Registration Form

Student

Student_registration_ system

Confirmed Letter

Figure 4 ( O Level DFD)

15
Administrator

Database Request to
Request to Login
view
Request to edit

Admin Module

Student module process

Request to edit
Faculty module
Request to Request to
Request to
view Login
Login

Login granted
Request to edit
Faculty

Faculty

Request to
view

Figure 5 : (1 Level DFD)

16
Student 1.0
Reg_form

Verify _availabilty

2.0
Course_info

Student_registration_ system Course


Confirmed_letter
Course_enrolled
St
ude
nt
_in
fo
o

3.0
inf
e_
at
d
Up

Student_registration_ system
Stud_database

Figure 6: (2 Level DFD)

17
3.6ER-DIAGRAM

3.6.1 INTRODUCTION:

An entity–relationship model (ER model) describes inter-related things of


interest in a specific domain of knowledge. An ER model is composed of
entity types (which classify the things of interest) and specifies relationships
that can exist between instances of those entity types. In software engineering
an ER model is commonly formed to represent things that a business needs to
remember in order to perform business processes. Consequently, the ER
model becomes an abstract data model that defines a data or information
structure that can be implemented in a database, typically a relational
database.

Entity–relationship modeling was developed for database design by Peter


Chen and published in a 1976 paper. However, variants of the idea existed
previously, some ER modelers show super and subtype entities connected by
generalization-specialization relationships, and an ER model can be used also
in the specification of domain-specific ontology.

An ER model is typically implemented as a database. In a simple relational


database implementation, each row of a table represents one instance of an
entity type, and each field in a table represents an attribute type. In a relational
database a relationship between entities is implemented by storing the primary
key of one entity as a pointer or "foreign key" in the table of another entity
There is a tradition for ER/data models to be built at two or three levels of
abstraction. Note that the conceptual-logical-physical hierarchy below is used
in other kinds of specification, and is different from the three schema approach
to software engineering.

18
3.6.2 Conceptual data model:

This is the highest level ER model in that it contains the least granular detail
but establishes the overall scope of what is to be included within the model
set. The conceptual ER model normally defines master reference data entities
that are commonly used by the organization. Developing an enterprise-wide
conceptual ER model is useful to support documenting the data architecture
for an organization.

3.6.3 Logical data model:

A logical ER model does not require a conceptual ER model, especially if the


scope of the logical ER model includes only the development of a distinct
information system. The logical ER model contains more detail than the
conceptual ER model. In addition to master data entities, operational and
transactional data entities are now defined. The details of each data entity are
developed and the relationships between these data entities are established.
The logical ER model is however developed independent of technology into
which it can be implemented.

3.6.4 Physical data model:

One or more physical ER models may be developed from each logical ER


model. The physical ER model is normally developed to be instantiated as a
database. Therefore, each physical ER model must contain enough detail to
produce a database and each physical ER model is technology dependent since
each database management system is somewhat different.

19
User_id
Admin_name
Password

Admin

Manage
s
Faculty_name
Qualification

Faculty
Contact_No Faculty_ID

Email Profile_pic

Manage
s
Manage
Stud_name Roll_No s
Submit
Attendance
Profile_pic
Password
Student

Date_of_birth Course_ID

Have Course_ID

Subject_name Stud_roll
Course_name
Course

Temp_roll_no
Subject

Duration
Attendace_date
Attendace_Status

20
Have
CHAPTER: 4

4. OVERALL DESCRIPTION

4.1Product Perspective :

The website Student Information Management System is aimed towards


recording a considerable number of student records and needs online
assistance for managing records of students. Website should be user-friendly,
‘quick to learn’ and reliable website for the above purpose.

Student Information System is intended to be a stand-alone product


and should not depend on the availability of other website. The system
will also have an administrator who has full-fledged rights with regards
to performing all actions related to control and management of the
website.

4.2 Product Functions :

There are three different users who will be using this product:
 Administrator who can view and edit the details of any students
& faculty.
 Faculty who can view and edit the details of students.
 Students who can view their details as well as they can edit
their details.

The features that are available to the Administrator are:

21
 An Administrator can login into the system and perform any of
the available operations.
 Can enable/disable student.
 Can add & remove front page notifications.
 Can add & remove the faculty as well as student.
 Can edit student information to the database. Can make search
for a specific student.
 Add & Update Academic calendar.
 Allocate the subjects to the faculty.
 Can access all the details of the student.

The features that are available to the faculty are:-

 Can submit attendance of the students.


 Can upload his/her image.
 Can Submit students exam or Test marks.
 Can Approve their leave application
 Can Add & Remove Departmental Notifications.
 Update self Profile Details

The features that are available to the Students are:-

 Can view their profile.


 View their attendance in individual subjects.
 View their test or exam marks.
 Update their basic contact details.
 Send or view the message to the classmates.
 View the departmental notification which they are belongs to.
 Submit Leave application or other application.

22
4.3User Classes and Characteristics :

There are mainly three kinds of users for the product.

The users include:


 Administrator
 Faculty
 Student

4.4 Operating Environment :

The product can run on any browser (preferable to use Chrome browser).

4.5 Constraints :

Every user must be comfortable using computer.

All operations are in English so user must have basic knowledge of


English.

23
4.6Use case model :

24
Use Case Model

1. Administrator: Responsible for managing faculty records.

 Login into the website


 Add / Remove Notification
 Add / Remove faculty
 Allocate Subjects to faculty.
 Update Academic Calendar
 View progress of the students.
 Search student details
o Display student details
o Enable/Disable student

2. Faculty : Responsible for managing Students records.


 Submit attendance of the students.
 Submit Marks of the students.
 Add/Remove departmental notifications.
 Approve leave applications of the students.
 view & update profile of self.

3. Student: Has the access rights to view and edit their personal details.

 Login into the website .


 Display student details
 Edit their details .
 View their attendance .
 View their results .
 Message to classmates.
 View departmental notifications.
 Upload their images.

25
 Upload their resumes.

 Assumptions & dependencies

· Administrator is created in the system already.

· Roles and tasks are predefined.

 Specific Requirements :

Use Case Reports

Administrator: Responsible for managing student details.

Use-case: Login into the website

Goal in context: Gain access to the website

Brief Description: This use case is used when the administrator wants to access
the website to enable/disable/update the personal details of the student.

Preconditions: The Administrator must be logged onto the website in order for this
use case to begin.

Basic Flow:

The Website prompts the administrator for the user name and password. The
Administrator enters the user name and password. The Website verifies the password
and sets the user’s authorization. The Administrator is given access to the Website to
perform his tasks.

Alternative Flow:

26
The administrator enters invalid username and password then he will not be allowed
to enter the website.

Post conditions: The website state is unchanged by this use case.

Use Case Report- Login into the website

Use Case : Display student details

Goal in context: View the details of a student

Brief Description: This use case is used when the administrator wants to
view the facilitate the services to the faculty and view the status of the
students.

Preconditions: The Administrator must be logged into the system in order


for this use case to begin The details of the student must pre-exist in the
database The student id must be entered correctly.

Basic Flow:

The Administrator logs onto the System.

27
 Notification Service :-

o Admin can add the notification by the help of notification add


page in this page the admin just add the title of the notification
and the upload the related pdf or document file of that
notification.

o This notification is visible on the homepage.

o These notifications are accessible by all the user who visited on


the website.

o Admin can easily delete the notification.

 Faculty management :-

o In this section an admin can manages the faculty .

o After login admin can generate token for the faculty. In tis
token the admin allot a registration id and the pin related with
the faculty name.

o After generation of the token page is redirect to the admin page.

 Update Academic Calendar:-

o In this section admin can update the academic calendar he can


add any holiday and the other events to the calendar which is
accessible by the students and the faculty of the institute.

Post conditions:

The token is generated for the faculty signup and the updated calneder is
visible to the students as well

as the faculty members.

28
Case Diagrams.

Login fails

Login to website

Add/remove Notification

Databse updated

29
. Faculty : Responsible for managing student details.

Use-case: Login into the website

Goal in context: Gain access to the website

Brief Description: This use case is used when the faculty wants to access the website
to enable/disable/update the personal details of the student.

Preconditions: The faculty must be logged onto the website in order for this use case
to begin.

Basic Flow:

The Website prompts the faculty for the user name and password. The faculty enters
the user name and password. The Website verifies the password and sets the user’s
authorization. The faculty is given access to the Website to perform his tasks.

Alternative Flow:

The faculty enters invalid username and password then he will not be allowed to enter
the website.

Post conditions: The website state is unchanged by this use ca

30
Use Case Report- Login into the website

Use Case : Display Faculty services page

Goal in context: View the details of a student

Brief Description: This use case is used when the faculty wants to view the
facilitate the services to the faculty and view the status of the students.

Preconditions: The faculty must be logged into the system in order for this
use case to begin The details of the student must pre-exist in the database The
student id must be entered correctly.

Basic Flow:

The faculty logs onto the System.

 Submit Attendance :-

o Faculty can submit the attendance for every student in subject


who is allotted by the administrator.

o For submit attendance faclty has to navigate the submit


attendance page.

o There is two way available to submit the attendance.

 Submit attendance in list view.

 Quick attendance submit mode.

o To submit attendance in list view faculty have to select the


class and then the subject.

o Then page is navigated to submit attendance page in this page


the list of the student is visible which are belongings to
selected subject.

o To save a student as a present just tick the checkbox and to


absent the student just uncheck the checkbox.
31
 Submit marks:

o To submit the marks for student faculty has to navigate the


page by choosing submit marks option of menu from the
faculty page.

o There are two way to submit marks of students.

 Submit marks to each student in list mode.

 Submit marks by uploading the excel file.

 Add/Remove Notification.

o Faculty can add the notification by the help of notification add


page in this page the faculty just add the title of the notification
and the upload the related pdf or document file of that
notification.

o This notification is visible on the homepage.

o These notifications are accessible by all the user who visited on


the website.

o Faculty can easily delete the notification.

 Student management :-

o In this section an admin can manages the Student.

o After login admin can generate token for the student. In tis
token the faculty allot a Roll No and the pin related with the
student name.

o After generation of the token page is redirect to the faculty


page.

Post conditions:

The token is generated by the faculty is used by students to signup the


students. And the databse of the marks table and attendance table is updated.

32
CHAPTER: 5

5. TECHNOLOGY OVERVIEW

The technology selected for implementing Student Information Management System


is PHP/MYSQL.Apache is used as the HTTP server.The development was done in a
‘windows’ environment using adobe dreamweaver CS5.

5.1 PHP

PHP is a general-purpose scripting language that is especially suited to server-side


web development where PHP generally runs on a web server.PHP code is embedded
into the HTML source document.Any PHP code in a requested file is executed by the
PHP runtime, usually to create dynamic web page content.It can also be used for
command-line scripting and client-side GUI applications. PHP can be deployed on
many web servers and operating systems, and can be used with many relational
database management systems (RDBMS). It is available free of charge, and the PHP
Group provides the complete source code for users to build, customize and extend for
their own use.

5.2 MySQL

MySQL is a relational database management system (RDBMS) [1] that runs as a server
providing multi-user access to a number of databases. MySQL is a popular choice of
database for use in web applications and is an open source product. The process of
setting up a MySQL database varies from host to host, however we will end up with a
database name, a user name and a password. Before using our database, we must
create a table. A table is a section of the database for storing related information. In a

33
table we will set up the different fields which will be used in that table. Creating a
table in phpMyAdmin is simple, we just type the name, select the number of fields
and click the ‘go’ button. we will then be taken to a setup screen where you must
create the fields for the database.Another way of creating databases and tables in
phpMyAdmin is by executing simple SQL statements.We have used this method in
order to create our database and tables.

5.3 Apache

The Apache HTTP Server is a web server software notable for playing a key role in
the initial growth of the World Wide Web. In 2009 it became the first web server
software to surpass the 100 million web site milestone. Apache is developed and
maintained by an open community of developers under the auspices of the Apache
Software Foundation. Since April 1996 Apache has been the most popular HTTP
server software in use. As of November 2010 Apache served over 59.36% of all
websites and over 66.56% of the first one million busiest websites.

5.4 XAMPP

XAMPP is a small and light Apache distribution containing the most common web
development technologies in a single package. Its contents, small size, and portability
make it the ideal tool for students developing and testing applications in PHP and
MySQL. XAMPP is available as a free download in two specific packages: full and
lite. While the full package download provides a wide array of development tools,
XAMPP Lite contains the necessary technologies that meet the Ontario Skills
Competition standards.The light version is a small package containing Apache HTTP
Server, PHP, MySQL, phpMyAdmin, Openssl, and SQLite.

5.4.1 Obtaining and Installing XAMPP

34
As previously mentioned, XAMPP is a free package available for download and use
for various web development tasks. All XAMPP packages and add-ons are
distributed through the Apache Friends website at the address:
http://www.apachefriends.org/. Once on the website, navigate and find the Windows
version of XAMPP and download the self-extracting ZIP archive. After downloading
the archive, run and extract its contents into the root path of a hard disk or USB drive.
For example, the extract path for a local Windows installation would simply be C:\. If
extracted properly we will notice a new xampp directory in the root of your
installation disk. In order to test that everything has been installed correctly, first start
the Apache HTTP Server by navigating to the xampp directory and clicking on the
apache_start.bat batch file.
Next we will test if the server is running correctly by opening an internet browser and
typing http://localhost/ into the address bar. If configured correctly, we will be
presented with a screen similar to that of the one below.

Figure 2 (XAMPP Splash Screenshot)

In order to stop all Apache processes we do not close the running terminal
application, but instead run another batch file in the xampplite directory called
apache_stop.bat.

35
5.4.2 Creating a Database and Inserting Data

Now that we have run and tested Apache and PHP, the next step is running MySQL
and creating a database and table which will hold information to be used by our
website. In order to start MySQL, navigate to the xampp directory and run the
mysql_start.bat batch file.The XAMPP package contains an application called
phpMyAdmin which allows developers to administer and maintain MySQL
databases.We will be using phpMyAdmin to create a database and table, and enter test
data. Before testing phpMyAdmin, make sure that both Apache and MySQL are
running by opening their respective batch files: apache_start.bat and mysql_start.bat.
Along with Apache and MySQL running in the background, we type
http://localhost/phpMyAdmin/ into our web browser. If successful we will be
presented with a phpMyAdmin start page similar to the one shown below.

Figure 3 (PhpMyAdmin Start Page)

The first step with phpMyAdmin running is creating a new database.We create a new
database by directly executing SQL statements as shown below.The successful
execution of the sql querry creates a database ‘sims’ with tables in it.The tabels are

36
admin_login and student_info. We also inserted values in the admin table.The
screenshot below shows the successful execution of the query thus creation of a
database named student.

37
CHAPTER: 6

6. PROJECT DESCRIPTION

6.1 Introduction

Student Information Management System can be used by education institutes to


maintain the records of students easily. 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

The directory structure of the project is as follows:

38
6.2Description Of Root Directory Contents

css:-it contains the all css code for the pages of the website.

Data1: it contains the data files which helps to slide show of home page.

Docs: it contains all the documents which are related to the notification uploaded by
the admin or faculty.

Engine1: it contains the css and JavaScript code which helps to running the
slideshow of homepage.

Images: it contains all the images like logo, menu_icon, and the profile picture
uploaded by the students or faculty.

Add_faculty.php: this page contains the code which helps which navigate the
token generation page.

Add_notes.php : it this page code containing the information which is used to


upload the notification for home page.

Add_student_excel.php: this page contains the code for the uploading token
excel file for the student registration.

Add_stud.php : in this page the code is available which show the option for
choosing the option for which mode is selected for token generation.

Atten_indi.php : In this page code contain the token generation for any single
student.

Connection.php : this php file contain the connection page which contains the
caonnection code for connecting the database.

Faculty_home.php: this page shows the services which is available for the
faculty.

39
Login_handler.php : this page is used to authenticate the user id and password
for admin, student and faculty it redirect the page according to the user type.

Logout.php: this file contains the code for closing the session and disconnect the
database.

Main.php: this is the main home page of website this page contains title bar, menu
bar, notification area, picture gallery, login area.

Notes_delete: this file is used to delete the notification which is uploaded by the
admin.

Notify.php: this page shows all the notification which is acces by the admin to view
and update the notification.

Signup_handler: this file used to save the registration data on Databse.

Stud_page: this page show all the services available for the students.

Stud_signup.php : this page contains the registration form for the students.\

Stud_signup_handler: this file is used to save the student information to


stud_info table.

Stud_token_gen.php: this file contains the code for generation the token for
students.

Token_handler.php : this page contains the code for save the tokens data on
databse.

40
6.3Description of Database tables:

Table1: Admin table

Admin:

Name: name of the admin

User_id: user id for login the admin page.

Password: password for authenticate and redirect the admin page.

Table2: faculty_details

Faculty_details:

Reg_id: id for login the faculty.

Fname: first name of faculty

Lname: Last Name of faculty.


41
Sex: Specify the gender of faculty.

Mobile: mobile no of the faculty.

Email: email id of the faculty.

Address: address of the faculty.

City: city of the faculty.

Qualification: highest qualification of the faculty.

Father_name: father name of the faculty.

Password: password contains the password for the login to faculty.

Sec_ques: it contains the question which is selected by the faculty while


signup.

Sec_ans: in caontains the answer of security question which again help to


recover the password

Table3:faculty_token

Faculty_token:

Faculty-name: name of the faculty and automatically fetched into signup page.

Pin: 4 digit pin to authenticate token.

F_id: registration id for then faculty.

42
Table4: images:

Images:

Reg_id: reg-id is the id of student or faculty which is related to the student’s images.

Passport: name of profile pic.

Sign: file name of student’s signature.

Doc1: file name of student’s doc.

Doc2: file name of student’s doc.

Table5: mca11(subject table)

Subject table:

This table automatically inserted into databse by the name of subject whenever the
admin allocate a new subject.and after it is used to save the attendance of the student.

Reg_id: reg_id of the student referenced to stud_info table’s primary key.

Sr_no: temporary roll no od students.

Date: date of attendance.

Status: status of student’s attendace saves “Y” for present “N” for absent.

43
Table6: stud_info

Stud_info :

Reg_id: primary key and the regid is also used by the student to login into website.

Fname: first name of student.

Lname: last name of the student.

Dob: date of birth of the student


Mobile: mobile no of the student

Email: email of the student.

Address; address of the student.

Course: course of the student .

Year: year of course.

Father_name: father’s name of the student.

City: city of the student.

Sex: specify the gender of student.

Password: password for login into website.

Sec_ques: question choosed by the student while signup.

44
Sec_ans: answer of security question.

Table8: Stud_token

Stud_token:

Stud_name: name of the student which is automatically into signup page.

Pin: 4 digit pin code to authenticate the token.

S_id: roll no of the student.

Table9: uploaded_files

Uploaded_files:

File_name: name of the file uploaded for the notification.

User_id: user_id of the user who upload the notification.

Title: title of the notification.

CHAPTER :7
45
SOURCE CODE AND OUTPUT
Index.php

<html>

<head>

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


charset=iso-8859-1">

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

<title>Home Page</title>

</head>

<body>

<table width="100%" height="100%" >

<tr height="15%">

<td><?php include 'Header.php';?></td>

</tr>

<tr height="80%">

<td align="center" valign="baseline"><table


width="70%">

<tr height="10%">

<td align="center"><a href="index.php"


class="stylelink" style="text-
decoration:none">Home</a></td>
<td align="right"><a
href="Student_login.php" class="stylelink"
style="text-decoration:none">Student Login</a>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;

<a href="Admin_login.php"
class="stylelink"

46
style="text-
decoration:none">Administrator Login</a></td>
</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

</table></td>

</tr>

<tr height="5%">

<td><?php include 'Footer.php';?></td>

</tr>

</table>

</body>

</html>

Student_login.php

<html>

<head>

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


charset=iso-8859-1">

<title>Login Page</title>

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

<scri
pt
type=
"text
/java

47
scrip
t">
funct
ion
valid
ate()
{

if(document.form1.st_id.value=="")

alert("Pl
ease
enter
your
login
Id.");
document.
form1.st_
id.focus(
); return
false;
}

if(document.form1.st_pass.value=="")

alert("Pleas
e enter your
password.");
document.for
m1.st_pass.f
ocus();
return
false;
}

</script>

</head>

<body onLoad="javascript:document.form1.st_id.focus()">

48
<form name="form1" method="post"
action="Student_login_handler.php"
onSubmit="return validate();">
<table width="100%" height="100%" >

<tr>

<td height="15%"><?php include 'Header.php';?></td>

</tr>

<tr>

<td width="100%" height="80%"


align="center" valign="baseline"><table
width="90%" >
<tr>

<td width="8%"><a href="index.php"


class="stylelink" style="text- decoration:none;
font-family: &quot;Times New Roman&quot;, Times,
serif;">Home</a></td>
<td width="35%" align="center">&nbsp;</td>

<td width="27%">&nbsp;</td>

<td width="30%" align="right"><a


href="Student_Registration.php"
class="stylelink" style="text-
decoration:none ; font-weight: bold;">New
Student Click Here</a></td>
</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

49
<td>&nbsp;</td>

</tr>

<?php if($_GET['flag'] == "success") { ?>

<tr>

<td class="stylegreen"
colspan="4" align="center">Congratulations! You
Are successfully registered. You can use your
Login Id and Password to login to your
account.</td>
</tr>

<?php

else if($_GET['flag'] == "exists") { ?>

<tr>

<td class="stylered" colspan="4"


align="center">This Login Id( <?
=$_GET['student_id']?>) already exists.Please,
try again with another Login Id</td>
</tr>

<?php

}else if($_GET['flag'] == "error") {

<tr>

?><td class="stylered" colspan="4" align="center">Error while

inserting data. Please, try again.</td>

</tr>

<?php

?>

<tr>

<td>&nbsp;</td>

50
<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td colspan="4"><table width="30%"


border="1" align="center" cellpadding="3"
cellspacing="0" bordercolor="#CCCCCC"
bgcolor="#CCCCCC">
<tr align="center" bgcolor="#999999">

<td colspan="2" class="stylebig">Student Login


Here</td>

</tr>

<tr bgcolor="#E1E1E1" class="stylesmall">

<td width="35%" align="left" class="style7">Login


Id : </td>

<td width="65%" align="left"><input


name="st_id" type="text" id="st_id"></td>
</tr>

<tr bgcolor="#E1E1E1" class="stylesmall">

<td align="left" class="style7">Password:</td>

<td align="left"><input name="st_pass"


type="password" id="st_pass"></td>
</tr>

<tr bgcolor="#E1E1E1">

<td colspan="2" align="center">&nbsp;

51
<?php if($_GET['flag'] ==
"invalid") { ?>

<span class="stylered">Invalid Login Id or


Password</span>

<?php }?>

</td>

</tr>

<tr bgcolor="#E1E1E1">

<td colspan="2" align="center"><input


name="login" class="style10" type="submit"
id="login" value="Login">
<input name="close" type="button"
id="close" class="style10" value="Close"
onClick="self.location='index.php'"> </td>
</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td height="5%" align="center"><?php include


'Footer.php';?></td>

</tr>

</table>

</form>

</body>

</html>

Student_login_handler

<?php

52
session_start(); include 'Connect.php';
$flag = "";

$student_id = $_POST['st_id'];

$st_pass = $_POST['st_pass'];

$query = "select last_login_date from student_information where

student_id='$student_id' and
student_password='$st_pass' and
student_status ='Enable'";
$result =
mysql_query($q
uery,
$link_id);
if(mysql_error
() != null){
die(mysql_error());

if($date = mysql_fetch_array($result))

$lastdate = $date['last_login_date'];

$date2 = date("d-m-Y h:i


A",strtotime($lastdate));

$_SESSION['userid'] = $_POST['st_id'];

$_SESSION['lastlogin'] =$date2;

$_SESSION['type'] =
"Student";
mysql_query("update
student_information
set
last_login_date=now() where
student_id='$student_id
'",$link_id);
if(mysql_error() !=
null){
die(mysql_error());

53
header("locati
on:Student_Hom
e.php");
die();
}

else

$flag = "invalid";
header("location:Studen
t_login.php?
flag=$flag"); die();
}

?>

Student_Registration.php

<html>

<head>

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

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


charset=iso-8859-1">

<title>Student Registration Page</title>

<script src="Validation.js"></script>

<scri
pt
type=
"text
/java
scrip
t">
funct
ion
valid
ation
()
{

54
if(document.form1.first_name.value=="")

alert("Pleas
e enter your
first
name.");
document.for
m1.first_nam
e.focus();
return
false;
}

if(document.form1.last_name.value=="")

alert("Pleas
e enter your
last
name.");
document.for
m1.last_name
.focus();
return
false;
}

if(document.form1.dob.value=="")

alert("Please
enter your
date of
birth.");
document.form1
.dob.focus();
return false;

else

55
var date =
document.form
1.dob.value;
var yes =
checkDate(dat
e);
if(!yes)

alert("Please
Enter a valid
date of
birth.");
document.form1.
dob.focus();
return false;

if(document.form1.email1.value=="")

alert("Please
enter your
primary
email.");
document.form1.
email1.focus();
return false;

else

var isEmail =
emailValidator(document.form1.email1.valu
e); if(!isEmail)
{

alert("Please
enter a valid
primary email.");

56
document.form1.em
ail1.focus();
return false;}

if(document.form
1.address.value != ""
&&
document.form1.address
.value.length > 100){
alert("You can enter address upto 100
characters only.");

document.for
m1.address.f
ocus();
return
false;
}

if(document.form1.
description.value != ""
&&
document.form1.descripti
on.value.length > 200){
alert("You can enter description upto 200
characters only.");
document.form1.description.focus();
return false;

if(document.form1.st_id.value=="")

alert("Please enter
your desired
student id.");
document.form1
.st_id.focus()
;
return false;

57
if(document.form1.st_pass.value=="")

alert("Please enter
your desired
password.");
document.form1.st_p
ass.focus();
return false;

if(document.form1.retype.value=="")

alert("Please
enter retype
password.");
document.form
1.retype.focu
s();
return false;

if(document.form1.st_pass.value !=
document.form1.retype.value)

alert("Password and retype


password are not
same.");
document.form1.st_pass.
value = "";
document.
form1.ret
ype.value
= "";
document.
form1.st_
pass.focu
s();
return
false;

58
}

</script>

</head>

<body
onLoad="javascript:document.form1.first_name.focus()">

<form name="form1" method="post"


action="Student_Registration_handler.php"
onSubmit="return validation()"
enctype="multipart/form-data">
<table width="100%">

<tr>

<td width="100%" height="15%"


align="center"><?php include
'Header.php';?></td>
</tr>

<tr>

<td width="100%" height="80%"


align="center"><table width="80%" border="1"
cellpadding="2" cellspacing="0"
bordercolor="#CCCCCC">
<tr bgcolor="#EEEEEE">

<td colspan="4" align="center"


class="stylemedium">Student Information</td>
</tr>

<tr class="stylesmall">

<td>First Name <span class="stylered">*</span>


</td>

<td><input name="first_name"
type="text" id="first_name"
maxlength="50"></td>
<td>Last Name <span class="stylered">*</span> </td>

<td><input name="last_name" type="text"


id="last_name" maxlength="30"></td>

59
</tr>

<tr class="stylesmall">

<td>Gender</td>

<td><input name="gender" type="radio"


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

<td>Date Of Birth <span class="stylered">*</span>


</td>

<td><input name="dob" type="text"


id="dob" size="10" maxlength="10">
DD-MM-YYYY</td>

</tr>

<tr class="stylesmall">

<td>Qualification <span class="stylered">*</span>


</td>

<td><select name="qualification"
id="qualification">

<option value="">-----select </option>

<option value="High School">High


School</option>

<option
value="Graduate">Graduate</option>

<option value="MCA">MCA</option>

<option value="BCA">BCA</option>

<option value="Master Degree">Master


Degree</option>

</select></td>

<td>Contact No</td>

<td><input name="contact_no" type="text"


id="contact_no" maxlength="20"></td>
</tr>

60
<tr class="stylesmall">

<td> City</td>

<td><input name="city" type="text" id="city"


maxlength="30"></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr class="stylesmall">

<td>Primary Email <span class="stylered">*</span>


</td>

<td><input
name="email1" type="text"
id="email1"
maxlength="100"></td>
<td>Secondary Email</td>

<td><input
name="email2" type="text"
id="email2"
maxlength="100"></td>

</tr>

<tr class="stylesmall">

<td>Address</td>

<td colspan="3"><textarea
name="address" cols="45" rows="2"
id="address"></textarea></td>
</tr>

<tr class="stylesmall">

<td> Description</td>

<td colspan="3"><textarea name="description"


cols="45" rows="3" id="description"></textarea></td>
</tr>

<tr bgcolor="#EEEEEE">

61
<td colspan="4" align="center"
class="stylemedium">Login
Information</td>
</tr>

<tr>

<td colspan="4">&nbsp;</td>

</tr>

<tr class="stylesmall">

<td>Desired ID <span class="stylered">*</span>


</td>

<td><input name="st_id" type="text" id="st_id"


maxlength="20"></td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr class="stylesmall">

<td>Password <span class="stylered">*</span> </td>

<td><input name="st_pass" type="password"


id="st_pass" maxlength="20"></td>
<td align="right">Retype Password<span
class="stylered"> *</span>

</td>

<td><input name="retype" type="password"


id="retype"

maxlength="20"></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

62
<tr bgcolor="#EEEEEE">

<td colspan="4" align="center"


class="stylemedium"> Resume Information</td>
</tr>

<tr class="stylesmall">

<td>Upload Resume </td>

<td colspan="3"><input name="resume"


type="file" >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;<span
class="stylered">.doc , .txt, .pdf file only</span></td>

</tr>

<tr>

<td colspan="4">&nbsp;</td>

</tr>

<tr align="center" class="stylemedium"


bgcolor="#EEEEEE">

<td colspan="4">Image Information</td>

</tr>

<tr class="stylesmall">

<td>Upload Image </td>

<td colspan="3"><input type="file"


name="image">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;<span
class="stylered"><span
class="stylered">.jpg file
And .gif file only</span></td>
</tr>

<tr>

<td colspan="4"><span class="stylered">* <em>means


fields are compulsory</em> </span></td>
</tr>

<tr>

63
<td colspan="4" align="center"><input
name="register" type="submit" id="register"
value="Register">
<input name="reset" type="reset" id="reset"
value="Reset">

<input name="close"
type="button" id="close" value="Close"
onClick="self.location='Student_login.p
hp'"></td>
</tr>

</table></td>

</tr>

<tr>

<td width="100%" height="5%"


align="center"><?php include
'Footer.php';?></td>
</tr>

</table>

</form>

</body>

</html>

Student_Registration_handler.php

<?php

include 'Connect.php';

$flag =
"success";
function
rollbackData(){
mysql_query(" ROLLBACK
"); global $flag;
$flag = "error";

64
if(mysql_error() !
= null){
die(mysql_error());

$student_id = $_POST['st_id'];

$student_pass = $_POST['st_pass'];

$first_name = $_POST['first_name'];

$last_name = $_POST['last_name'];

$gender = $_POST['gender'];

$contact_no = $_POST['contact_no'];

$qualification = $_POST['qualification'];

$city = $_POST['city'];

$email1 = $_POST['email1'];

$email2 = $_POST['email2'];

$address = $_POST['address'];

$description = $_POST['description'];

$resumename = "";

$imagename = "";

$dobdate = date("Y-m-d",strtotime($_POST['dob']));

/*

This block is used to check whether the


student_id already exits

in database.

*/

$select_query="select student_id from


student_information where student_id =
'$student_id'";
$result_set = mysql_query($select_query,$link_id);

if($row = mysql_fetch_array($result_set)){

65
$flag="exist
s";
header("loca
tion:Student
_login.php?
flag=$flag&student_id=$student_id");

die();

else{

/*

*/
This block is used to insert the student record in database if the
student_id is already not present in the database.

mysql_query("SET
AUTOCOMMIT = 0
");
if(mysql_error()
!= null){
die(mysql_error());

$query = "insert into


student_information(student_id,student_password,first_nam
e,last_name,regis tration_date,gender,date_of_birth,";
$query .=
"student_status,contact_no,qualification,city,ema
il1,email2,address,descriptio n)";
$query .= "
values('$student_id','$student_pass','$first_name','$last
_name',now(),'$gender
','$dobdate','Disable','$contact_no',";
$query .=
"'$qualification','$city','$email1','$email2','$address',
'$description')";

$result =
mysql_query($q
uery,

66
$link_id);
if(mysql_error
() != null){
die(mysql_error());

if($result){

if($_FILES['resume']['name'] != ""){

$filename = $_FILES['resume']
['name'];

$ext = strrchr($filename,".");

$resumename = $student_id;

$resumename .= "_".$filename;

if($ext ==".txt" || $ext ==".doc"


|| $ext ==".TXT" ||

$ext ==".DOC" || $ext ==".pdf" || $ext ==".PDF"){

$size =
$_FILES['resum
e']['size'];
if($size > 0
&& $size <
1000000){
$archive_dir =
"resumes";

$userfile_tmp_name =

$_FILES['resume']['tmp_name'];

if(move_uploaded_file($userfile_tmp_name,
"$archive_dir/

$resumename")){

/*

uploaded then resumename is stored in database.

67
*/

session_start();

$session_id =
$_SESSION['userid'];
if($session_id == null){
header("location:index.php"
); die();
}

include 'Connect.php';

$student_id = $_REQUEST['student_id'];

$query = "select * from


student_information where
student_id='$student_id'"
;
$result = mysql_query($query, $link_id);

$data = mysql_fetch_array($result);

?>

<html>

<head>

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

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


charset=iso-8859-1">

<title>Edit Student Information By Admin</title>

<script src="Validation.js"></script>

<scri
pt
type=
"text
/java
scrip
t">
funct
ion
valid

68
ation
()
{

if(document.form1.first_name.value=="")

alert("Pleas
e enter your
first
name.");
document.for
m1.first_nam
e.focus();
return
false;
}

if(document.form1.last_name.value=="")

alert("Pleas
e enter your
last
name.");
document.for
m1.last_name
.focus();
return
false;
}

if(document.form1.dob.value=="")

alert("Please
enter your
date of
birth.");
document.form1
.dob.focus();
return false;

69
else

var date =
document.form
1.dob.value;
var yes =
checkDate(dat
e);
if(!yes)

alert("Please
Enter a valid
date of
birth.");
document.form1.
dob.focus();
return false;

if(document.form1.email1.value=="")

alert("Please
enter your
primary
email.");
document.form1.
email1.focus();
return false;

else

var isEmail =
emailValidator(document.form1.email1.valu
e); if(!isEmail)
{

70
alert("Please
enter a valid
primary email.");
document.form1.em
ail1.focus();
return false;

if(document.form1.email2.value != "")

var isEmail =
emailValidator(document.form1.email2.valu
e); if(!isEmail)
{

alert("Please enter
a valid secondary
email.");
document.form1.emai
l2.focus();
return false;

if(document.form
1.address.value != ""
&&
document.form1.address
.value.length > 100){
alert("You can enter address
upto 100 characters only.")
document.form1.address.focus(
);
return false;

if(document.form1.
description.value != ""
&&

71
document.form1.descripti
on.value.length > 200){
alert("You can enter description upto 200
characters only.")

document.for
m1.descripti
on.focus();
return
false;
}

function SetAll()

document.form1.qualification.value="<?php
echo $data['qualification'];?>"; var gen =
"<?php echo $data['gender'];?>";
var gend =
document.form1.ge
nder.length;
for(var i =0;
i<gend; i++)
{

if(document.form
1.gender[i].val
ue == gen)
document.form1.
gender[i].check
ed=true;
}

</script>

</head>

<body onLoad="javascript:SetAll()">

72
<form name="form1" method="post"
action="Admin_Edit_Student_Info_Handler.php"
onSubmit="return validation()">
<input type="hidden" name="student_id" value="<?php echo
$student_id; ?

>;">

<table width="100%" height="100%" >

<tr bgcolor="#E1E1E1">

<td width="100%" height="15%"


align="center"><?php include
'Admin_Header.php';?></td>
</tr>

<tr>

<td width="100%" height="80%"


align="center"><table width="80%" border="1"
cellpadding="2" cellspacing="0"
bordercolor="#EEEEEE">
<tr>

<td colspan="4"
align="center" bgcolor="#EEEEEE"
class="stylebig">Edit Student
Information</td>
</tr>

<tr>

<td colspan="4" align="center">&nbsp;

<?php if($_GET['flag'] == "success") { ?>

<span class="stylered">Student
Information updated successfully.</span>
<?php } else if($_GET['flag'] == "error") { ?>

<span class="stylered">Error while


updating student information.Please, try
again</span>
<?php } ?> </td>

</tr>

<tr class="stylesmall">

73
<td width="19%" align="left">First Name : </td>

<td width="30%" align="left"><input


name="first_name" type="text" id="first_name"
value="<?php echo $data['first_name']; ?>"
size="25"maxlength="50"></td>
<td width="17%" align="left">Last name</td>

<td width="34%" align="left"><input


name="last_name" type="text" id="last_name"
value="<?php echo $data['last_name'];?>"
size="25" maxlength="30"></td>
</tr>

<tr class="stylesmall">

<td height="29" align="left">Gender : </td>

<td align="left"><input name="gender"


type="radio" value="Male"> Male<input
name="gender" type="radio"
value="Female"> Female</td>
<td align="left">Date Of Birth</td>

<td align="left"><input name="dob"


type="text" id="dob" size="10"
maxlength="10" value="<?php echo date("d-m-
Y",strtotime($data['date_of_birth']));?>">
DD-MM-YYYY</td>

</tr>

<tr class="stylesmall">

<td align="left">Qualification : </td>

<td align="left"><select name="qualification"


id="qualification">

<option value="High School">High School</option>

<option
value="Graduate">Graduate</option>

<option value="MCA">MCA</option>

<option value="BCA">BCA</option>

<option value="Master Degree">Master


Degree</option>

74
</select></td>

<td align="left">Contact No</td>

<td align="left"><input name="contact_no"


type="text" id="contact_no" value="<?php echo
$data[$contact_no];?>" size="25" maxlength="20"></td>
</tr>

<tr class="stylesmall">

<td align="left">Primary Email : </td>

<td align="left"><input name="email1"


type="text" id="email1" value="<?php echo
$data['email1'];?>" size="25"
maxlength="100"></td>
<td align="left">Secondary Email</td>

<td align="left"><input name="email2"


type="text" id="email2" value="<?php echo
$data['email2'];?>" size="25"
maxlength="100"></td>
</tr>

<tr class="stylesmall">

<td align="left">City : </td>

<td colspan="3" align="left"><input


name="city" type="text" id="city" value="<?
php echo $data['city'];?>" size="25"
maxlength="30"></td>
</tr>

<tr class="stylesmall">

<td align="left">Address : </td>

<td colspan="3"
align="left"><textarea name="address"
rows="2" cols="40"><?php echo
$data['address'];?></textarea></td>
</tr>

<tr class="stylesmall">

<td align="left">Description : </td>

<td colspan="3" align="left"><textarea

75
name="description" rows="3" cols="40"><?php
echo $data['description'];?></textarea></td>
</tr>

<tr>

<td colspan="4">&nbsp;</td>

</tr>

<tr>

<td colspan="4" align="center"><input


name="update" type="submit" id="update"
value="Update">
<input name="close"
type="button" id="close" value="Close"
onClick="self.location='DisplayAll.php'
"></td>
</tr>

</table></td>

</tr>

<tr bgcolor="#E1E1E1">

<td width="100%" height="5%"


align="center"><?php include
'Footer.php';?></td>
</tr>

</table>

</form>

</body>

</html>

Admin_Edit_Student_Info_Handler

<?php

76
session_start();

$session_id =
$_SESSION['userid'];
if($session_id == null){
header("location:index.php"
); die();
}

include 'Connect.php';

$student_id = $_POST['student_id'];

$first_name = $_POST['first_name'];

$last_name = $_POST['last_name'];

$gender = $_POST['gender'];

$contact_no = $_POST['contact_no'];

$qualification = $_POST['qualification'];

$city = $_POST['city'];

$email1 = $_POST['email1'];

$email2 = $_POST['email2'];

$address = $_POST['address'];

$description = $_POST['description'];

$dateofbirth = date("Y-m-
d",strtotime($_POST['dob']));

$flag = "";

$query = "update student_information set


first_name='$first_name',last_name='$last_name',gender='$
gender',date_of_ birth='$dateofbirth',";
$query .=
"qualification='$qualification',contact_no='$contact_no',
email1='$email1',email
2='$email2',city='$city',address='$address',description='
$description' ";
$query .= " where student_id='$student_id'";

$result =
mysql_query($qu
ery, $link_id);

77
if(mysql_error(
) !=

margin-left:
0px; margin-
top: 0px;
margin-right:
0px; margin-
bottom: 0px;

.stylebig {

font-size: 18px;

font-family: "Times
New Roman", Times,
serif; font-weight:
bold;
}

.stylemedium {

font-size: 14px;

font-family: "Times
New Roman", Times,
serif; font-weight:
bold;
}

.stylesmall {

font-family: "Times
New Roman", Times,
serif; font-size:
12px;
font-weight: bold;

.stylegreen {font-family: "Times New Roman",


Times, serif; font-size: 12px; font-weight:
bold; color: #007F00; }
.stylered {

font-size: 12px;

font-family: "Times

78
New Roman", Times,
serif; color:
#FF0000;
font-weight: bold;

.stylegrey {font-family: "Times New Roman",


Times, serif; font-size: 12px; font-weight:
bold; color: #550055; }

.stylegreyre {font-family: "Times New Roman",


Times, serif; font-size: 12px; font-weight:
bold; color: #CCC; }
.stylelink {font-family: "Times New Roman",
Times, serif; font-size: 12px; font- weight:
bold; color: #AA0000; }
.stylelink2 {font-family: "Times New Roman",
Times, serif; font-size: 12px; font-weight:
bold; color: #999; }

Connect.php

<?php
$host = "localhost";

$dbusername = "root";

$dbpassword = "";

$dbname = "student";

$link_id = mysql_connect($host, $dbusername, $dbpassword);


if(!$link_id){
die(mysql_error("Can`t Connect To database"));

else{

}
$db = mysql_select_db($dbname, $link_id);

if(!$db){

79
die(mysql_error("Can`t select database"));

return;

?>

80
CHAPTER :8

Screenshots

This is the homepage/indexpage of the site.

81
This is the student login page.

This is the registration page where students can register online.

82
After successful registration the user account needs to be first enabled by
the administrator.The students can then login into their accounts with the
id and password they choose during registration.The above page shows
student login page.

After logging in the student home page is opened as shown above.

83
The student can view their profile.The above page shows the user
profile.The link to the resume is shown if a resume was uploaded
during registration otherwise its not shown.

Students can edit their profiles by using the edit profile option on

84
their homepage.the above page is used for editing student
information.

The students have the option to change their password.They need


their old password in order to change the password.

After successful operation a password change notification is displayed to the


user.

85
The above page is the administrator login page. It requires the
administrator username and password.

86
This is the homepage of administrator.

This is the displayall page wherein the administrator can see all the

registered students.He can enable/disable their accounts as well as


view/edit students information.

This page shows the change in account status.after successful


change a message is displayed to the administrator.

87
This is the search page and it provides search function to the
administrator.here we search for all the students with theirs
accounts enabled.

88
CHAPTER :9

9. REFERENCES

 PHP Ebook by Robin Nixon

 www.Stackoverflow.com

 www.ietlucknow.edu

 www.w3schools.com

 Head First PHP & MySQL by Lynn Beighley and Michael


Morrison(O’Reilly)

89

You might also like