Student Information Management System
Student Information Management System
DISSERTATION
SUBMITTED IN PARTIAL FULFILLMENT OF THE
REQUIREMENTS FOR THE AWARD OF THE DEGREE OF
By
2023
1
TABLE OF CONTENTS
DECLEARATION
…………………………………………………………………………………1
ACKNOWLEDGEMENT……………………………………………………………………
…….2ABSTRACT……………………………………………………………………………
……………3
CHAPTER
1: INTRODUCTION................................................................................................................7
1.1 Purpose:............................................................................................................7
3.6 ER-DIAGRAM.............................................................................................18
2
4.6 Use Case Model :...........................................................................................24
5.1 PHP................................................................................................................33
5.2 MySQL..........................................................................................................33
5.3 Apache...........................................................................................................34
5.4 XAMPP..........................................................................................................34
6.1 Introduction....................................................................................................38
3
DECLARATION
Vaibhav Tiwari
Place: Lucknow
Date: 31 May
2023
4
ACKNOWLEDGEMENTS
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.
5
Abstract
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.
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 :
8
CHAPTER: 2
2. SYSTEM ANALYSIS
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.
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.
All the manual difficulties in managing the student details in a school or college have
been rectified by implementing computerization.
10
the system is considered feasible. Here the feasibility study can be performed
in two ways such as technical feasibility and Economical Feasibility.
11
CHAPTER: 3
3. SYSTEM ARCHITECTURE
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.
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.
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.
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.
ADMIN MODULE
13
Figure 1 ( Admin module services)
FACULTY MODULE
STUDENT MODULE
14
Registration Form
Student
Student_registration_ system
Confirmed Letter
15
Administrator
Database Request to
Request to Login
view
Request to edit
Admin Module
Request to edit
Faculty module
Request to Request to
Request to
view Login
Login
Login granted
Request to edit
Faculty
Faculty
Request to
view
16
Student 1.0
Reg_form
Verify _availabilty
2.0
Course_info
3.0
inf
e_
at
d
Up
Student_registration_ system
Stud_database
17
3.6ER-DIAGRAM
3.6.1 INTRODUCTION:
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.
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 :
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.
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.
22
4.3User Classes and Characteristics :
The product can run on any browser (preferable to use Chrome browser).
4.5 Constraints :
23
4.6Use case model :
24
Use Case Model
3. Student: Has the access rights to view and edit their personal details.
25
Upload their resumes.
Specific Requirements :
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.
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.
Basic Flow:
27
Notification Service :-
Faculty management :-
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.
Post conditions:
The token is generated for the faculty signup and the updated calneder is
visible to the students as well
28
Case Diagrams.
Login fails
Login to website
Add/remove Notification
Databse updated
29
. Faculty : Responsible for managing student details.
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.
30
Use Case Report- Login into the website
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:
Submit Attendance :-
Add/Remove Notification.
Student management :-
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.
Post conditions:
32
CHAPTER: 5
5. TECHNOLOGY OVERVIEW
5.1 PHP
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.
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.
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.
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
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_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.
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_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:
Admin:
Table2: faculty_details
Faculty_details:
Table3:faculty_token
Faculty_token:
Faculty-name: name of the faculty and automatically fetched into signup page.
42
Table4: images:
Images:
Reg_id: reg-id is the id of student or faculty which is related to the student’s images.
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.
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.
44
Sec_ans: answer of security question.
Table8: Stud_token
Stud_token:
Table9: uploaded_files
Uploaded_files:
CHAPTER :7
45
SOURCE CODE AND OUTPUT
Index.php
<html>
<head>
<title>Home Page</title>
</head>
<body>
<tr height="15%">
</tr>
<tr height="80%">
<tr height="10%">
&nb
sp;
<a href="Admin_login.php"
class="stylelink"
46
style="text-
decoration:none">Administrator Login</a></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr height="5%">
</tr>
</table>
</body>
</html>
Student_login.php
<html>
<head>
<title>Login Page</title>
<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>
</tr>
<tr>
<td width="27%"> </td>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
49
<td> </td>
</tr>
<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
<tr>
<?php
<tr>
</tr>
<?php
?>
<tr>
<td> </td>
50
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
</tr>
<tr bgcolor="#E1E1E1">
51
<?php if($_GET['flag'] ==
"invalid") { ?>
<?php }?>
</td>
</tr>
<tr bgcolor="#E1E1E1">
</table></td>
</tr>
</table></td>
</tr>
<tr>
</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'];
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'];
$_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>
<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)
58
}
</script>
</head>
<body
onLoad="javascript:document.form1.first_name.focus()">
<tr>
<tr>
<tr class="stylesmall">
<td><input name="first_name"
type="text" id="first_name"
maxlength="50"></td>
<td>Last Name <span class="stylered">*</span> </td>
59
</tr>
<tr class="stylesmall">
<td>Gender</td>
</tr>
<tr class="stylesmall">
<td><select name="qualification"
id="qualification">
<option
value="Graduate">Graduate</option>
<option value="MCA">MCA</option>
<option value="BCA">BCA</option>
</select></td>
<td>Contact No</td>
60
<tr class="stylesmall">
<td> City</td>
<td> </td>
<td> </td>
</tr>
<tr class="stylesmall">
<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>
<tr bgcolor="#EEEEEE">
61
<td colspan="4" align="center"
class="stylemedium">Login
Information</td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<tr class="stylesmall">
<td> </td>
<td> </td>
</tr>
<tr class="stylesmall">
</td>
maxlength="20"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
62
<tr bgcolor="#EEEEEE">
<tr class="stylesmall">
</tr>
<tr>
<td colspan="4"> </td>
</tr>
</tr>
<tr class="stylesmall">
<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>
</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']));
/*
in database.
*/
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());
$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;
$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")){
/*
67
*/
session_start();
$session_id =
$_SESSION['userid'];
if($session_id == null){
header("location:index.php"
); die();
}
include 'Connect.php';
$student_id = $_REQUEST['student_id'];
$data = mysql_fetch_array($result);
?>
<html>
<head>
<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; ?
>;">
<tr bgcolor="#E1E1E1">
<tr>
<td colspan="4"
align="center" bgcolor="#EEEEEE"
class="stylebig">Edit Student
Information</td>
</tr>
<tr>
<span class="stylered">Student
Information updated successfully.</span>
<?php } else if($_GET['flag'] == "error") { ?>
</tr>
<tr class="stylesmall">
73
<td width="19%" align="left">First Name : </td>
<tr class="stylesmall">
</tr>
<tr class="stylesmall">
<option
value="Graduate">Graduate</option>
<option value="MCA">MCA</option>
<option value="BCA">BCA</option>
74
</select></td>
<tr class="stylesmall">
<tr class="stylesmall">
<tr class="stylesmall">
<td colspan="3"
align="left"><textarea name="address"
rows="2" cols="40"><?php echo
$data['address'];?></textarea></td>
</tr>
<tr class="stylesmall">
75
name="description" rows="3" cols="40"><?php
echo $data['description'];?></textarea></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<tr>
</table></td>
</tr>
<tr bgcolor="#E1E1E1">
</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 = "";
$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;
font-size: 12px;
font-family: "Times
78
New Roman", Times,
serif; color:
#FF0000;
font-weight: bold;
Connect.php
<?php
$host = "localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "student";
else{
}
$db = mysql_select_db($dbname, $link_id);
if(!$db){
79
die(mysql_error("Can`t select database"));
return;
?>
80
CHAPTER :8
Screenshots
81
This is the student login page.
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.
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.
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
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
www.Stackoverflow.com
www.ietlucknow.edu
www.w3schools.com
89