Micro-Project Report ON ": "Student Information Management System

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 46

A

Micro-Project Report
ON
“Student Information
Management System”

Partial Fulfillment of the Requirement for the Diploma in Computer Engineering,

By
1)Kadam Priti [2014660140]
2)Shaikh Suhana [2014660141]
3)Tarate Gayatri [2114660126]
4)Pacharne Gayatri [2114660128]

Guided By
Prof. Hole.P. P

Shree Samarth Academy’s


Shree Samarth Polytechnic
Mhasane Phata, Ahmednagar
Maharashtra State Board of Technical Education
(2020-2021)

1
Shree Samarth Academy’s
Shree Samarth Polytechnic
Department of Computer Engineering.

CERTIFICATE
This is to certify that the project work entitled
“Student Information
Management
System’’

Is
Submitted by
1)Kadam Priti [2014660140]
5)Shaikh Suhana [2014660141]
6)Tarate Gayatri [2114660126]
7)Pacharne Gayatri [2114660128]
in the partial fulfillment of Diploma in Computer Engineering has been
Satisfactory carried out under my guidance as per the requirement of Maharashtra
State Board of Technical Education, Mumbai during the academic year 2020-2021
Date:
Place:

GUIDE HOD PRINCIPAL


(Prof. Hole.P.P ) (Prof. Chaure S. M) (Prof. Anarse B.V.)
Micro-Project Proposal

“Student Information
Management System”

1.0 Brief Introduction:

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.
3.0 Action plan:

Planned Planned Name of Responsible


Sr.no. Details of activity
start date Finish date Team Member
SEARCHING
1. INFORMATION KADAM PRITI
ABOUT TOPIC
FINDING PACHARNE
2.
INFORMATION GAYATRI
DISCUS WITH
3. TARATE GAYATRI
SUBJECT TEACHER
4. MAKING PROPOSAL SHAIKH SUHANA
5. MAKING REPORT KADAM PRITI
SUBMIT TO SUBJECT ALL GROUP
6.0
TEACHER. MEMBERS

4.0 Actual Resources Used:

S.NO Name of Resource/material Specifications Qty Remarks


1 MS OFFICE 2013 Application 1 -

2 Google Search engine 1 -


Format for Micro-Project Report

“Student Information
Management System”
Brief Description:

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 . Login
module: Login module will help in authentication of user accounts .Users who have
valid login id and password can only login into their respective accounts.

Search module: Suppose there are hundreds of students and from this we have to search
a particular student and we know the name of the student .In manual system it is a
tedious task though we know the name of the student, but using this module we can
easily search the student by specifying the name of the student in the search criteria.
Thus this module will help the administrator in searching the student with various
criteria easily.
Registration Module and Account Management: This module will help the student get
registered from anywhere if internet is present .This module will really simplify the
task of on paper registration. Also after successful registration the user can update
information and change their password as and when required.
User Management: This module will help the administrator in enabling/disabling a user
account and updating user information as required.
Purpose of project is to maintain details of the students such as storing information
about:

OVERALL DESCRIPTION

Product Perspective :
The website Student Information 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.

USE CASE MODEL :


Use Case Model

1. Administrator: Responsible for managing student


records.

• Login into the website

• Update student details

• Search student details

• Display student details


• Enable/Disable student

2. Student: Has the access rights to view and edit their


personal details.

• Login into the website

• Display student details

• Edit their details

• Upload their images

• Upload their resumes

Student_information :
Source Code

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;&nbsp;&nbsp;
<a href="Admin_login.php" class="stylelink" 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"/>
<script type="text/javascript"> function validate()
{
if(document.form1.st_id.value=="")
{
alert("Please enter your login Id.");
document.form1.st_id.focus(); return false;
}
if(document.form1.st_pass.value=="")
{
alert("Please enter your password.");
document.form1.st_pass.focus(); return false;
}
}
</script>
</head>
<body onLoad="javascript:document.form1.st_id.focus()">
<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>
<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>
<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;
<?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

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($query,$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());
}
header("location:Student_Home.php"); die();
}
else

{
$flag = "invalid"; header("location:Student_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>
<script type="text/javascript"> function validation()
{
if(document.form1.first_name.value=="")
{
alert("Please enter your first name.");
document.form1.first_name.focus(); return false;
}
if(document.form1.last_name.value=="")
{
alert("Please enter your last name.");
document.form1.last_name.focus(); return false;
}
if(document.form1.dob.value=="")
{
alert("Please enter your date of birth.");
document.form1.dob.focus();
return false;
}
else
{
var date = document.form1.dob.value; var yes =
checkDate(date);
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.value); if(!isEmail)
{
alert("Please enter a valid primary email.");
document.form1.email1.focus();
return false;
}
}
if(document.form1.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 != "" &&
document.form1.description.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;
}
if(document.form1.st_pass.value=="")
{
alert("Please enter your desired password.");
document.form1.st_pass.focus();
return false;
}
if(document.form1.retype.value=="")
{
alert("Please enter retype password.");
document.form1.retype.focus();
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.retype.value = "";
document.form1.st_pass.focus(); return false;

}
}
</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>
</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>

<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">
<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>
<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;&nbsp;<
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;&nbsp;<
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>

<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.php'"></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

<?ph
include 'Connect.php';
$flag = "success"; function rollbackData(){
mysql_query(" ROLLBACK "); global $flag;
$flag = "error"; 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)){
$flag="exists"; header("location: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,email1,email2,
address,descriptio n)";
$query .= "
values('$student_id','$student_pass','$first_name','$last_nam
e',now(),'$gender ','$dobdate','Disable','$contact_no',";
$query .=
"'$qualification','$city','$email1','$email2','$address','$descri
ption')";

$result = mysql_query($query,$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['resume']['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.
*/
if image is successfully
mysql_query("update student_information set
resume='$resumename' where student_id='$student_id'",
$link_id);
if(mysql_error() != null){ die(mysql_error());

}
else{

}else{

}
$flag = "success"; rollbackData();

size only. Please, try again.");


}
}
else{

rollbackData();
die("You can upload resume of 1 MB

rollbackData();
die("You can upload resume of .txt, .pdf,
.doc extensions only. Please, try again.");
}
}
if($_FILES['image']['name'] != ""){
$filename = $_FILES['image']['name'];
$ext = strrchr($filename,".");
$imagename = $student_id;
$imagename .="_". $filename;
if($ext ==".jpg" || $ext ==".jpeg" || $ext ==".JPG" ||
$ext ==".JPEG" || $ext ==".gif" || $ext ==".GIF"){

$_FILES['image']['tmp_name'];

$size = $_FILES['image']['size']; if($size > 0 && $size <


1000000){
$archive_dir = "images";
$userfile_tmp_name =

if(move_uploaded_file($userfile_tmp_name, "$archive_dir/
$imagename")){

/*
uploaded then imagename is stored in database.
*/

if image is successfully

mysql_query("update student_information set


image='$imagename' where student_id='$student_id'",
$link_id);
$flag = "success"; if(mysql_error()!=null){
die(mysql_error());

$resumename)) {

$resumename);
}
else{
}

if(file_exists('resumes/' . unlink('resumes/' .
}
rollbackData();
$resumename)) {

$resumename);

if(file_exists('resumes/' . unlink('resumes/' .

size only. Please, try again.");


}
}
else{

}
rollbackData();
die("You can upload image of 1 MB

if(file_exists('resumes/' . $resumename)) { unlink('resumes/'


. $resumename);
}
rollbackData();
die("You can upload images of .jpg, .jpeg,
.gif extensions only. Please, try again. ");
}

}
else{

$flag="error";

if($flag == "success"){
mysql_query(" COMMIT ");
$flag="success"; if(mysql_error() != null){
die(mysql_error());
}
/*
This block is used to send email to the
successfully registered users.
*/
/*
$to = $email1;
$subject = 'Congratulations';
$message = 'Congratulations you are registered in our
site.\r\n\r\n';

$student_pass";
}

$message .= "Your Login Id : $student_id \r\n Password :

$headers = "From: [email protected]\r\n";


$headers .= 'X-Mailer: PHP' . phpversion(); mail($to,
$subject, $message, $headers);
*/

header("location:Student_login.php?flag=$flag"); die();
}
?>
Admin_Edit_Student_Info.php

<?php

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>
<script type="text/javascript"> function validation()
{
if(document.form1.first_name.value=="")
{
alert("Please enter your first name.");
document.form1.first_name.focus(); return false;
}
if(document.form1.last_name.value=="")
{
alert("Please enter your last name.");
document.form1.last_name.focus(); return false;
}
if(document.form1.dob.value=="")
{
alert("Please enter your date of birth.");
document.form1.dob.focus();
return false;
}
else
{
var date = document.form1.dob.value; var yes =
checkDate(date);
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.value); if(!isEmail)
{
alert("Please enter a valid primary email.");
document.form1.email1.focus();
return false;
}
}
if(document.form1.email2.value != "")
{
var isEmail =
emailValidator(document.form1.email2.value); if(!isEmail)
{
alert("Please enter a valid secondary email.");
document.form1.email2.focus();
return false;
}
}
if(document.form1.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 != "" &&
document.form1.description.value.length > 200){
alert("You can enter description upto 200 characters only.")

document.form1.description.focus(); return false;


}

}
function SetAll()
{
document.form1.qualification.value="<?php echo
$data['qualification'];?>"; var gen = "<?php echo
$data['gender'];?>";
var gend = document.form1.gender.length; for(var i =0;
i<gend; i++)
{
if(document.form1.gender[i].value == gen)
document.form1.gender[i].checked=true;
}
}
</script>
</head>

<body onLoad="javascript:SetAll()">
<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">
<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>
</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 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

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',em
ail1='$email1',email
2='$email2',city='$city',address='$address',description='$de
scription' ";
$query .= " where student_id='$student_id'";
$result = mysql_query($query, $link_id); if(mysql_error() !
= null){
die(mysql_error());
}
if($result)
{

}
else
{
}

$flag = "success";
$flag = "error";

header("location:Admin_Edit_Student_Info.php?
flag=$flag&student_id=$student_id");
?>

Validation.js
function checkDate(dobStr)
{
var arr = dobStr.split(/-/); if(arr.length != 3){
return false;
}
var ddStr = arr[0]; var mmStr = arr[1]; var yyStr = arr[2];
if(isNaN(ddStr)){
return false;
}
if(isNaN(mmStr)){
return false;
}
if(isNaN(yyStr)){
return false;
}
dd=parseInt(ddStr,10); mm=parseInt(mmStr,10);
yy=parseInt(yyStr,10);

if(dd < 1 || dd > 31){


return false;
}
if(mm < 1 || mm > 12){

return false;
}
if(yy < 1900){
return false;
}
if(yy > 3000){
return false;
}
switch (mm){
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return true; case 4:
case 6:
case 9:
case 11:
if(dd<=30)
return true
else
case 2:

return false;
if(yy%100==0)
{ if(yy%400==0)
{
if(dd<=29)
return true;

else

return false;

}
else
{ if(yy%4==0){ if(dd<=29)
return true;

else

}
return false;

if(dd<=28)
{ return true;
}
else
{ return false;
}
default :
return false;
}
}
function emailValidator(elem)
{
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-
9]{2,4}$/; if(elem.match(emailExp))
{

}
else
{

}
}

return true;

return false;

SNAPSHOTS
SCOPE OF THE PROJECT

 The Student Information Management System(SIMS) can be


enhanced to include some other functionality like
marks,attendance management.
 Talent management of students based on their performance
evaluation can be added.
 Social networking can also be added wherein students can
interact with each other.
 Online class functionality can be added.
 Can evolve as an online institution.
 Functionality of chat and messages can be added.
 Online exam functionality can be added.
 Online resume builder functionality can also be added.
Teacher Evaluation Sheet
Name of Student………………………………………………………………………………………
Enrollment No………………………………………………...….………...….………...….………...
Name of Program…………………………………………………….….....….………...….………...
Semester……………………………………………………………….…....….………...….………..
Course Title…………………………………………………………….…...….………...….………..
Code………………………………………………………………………...….………...….………...
Title of the Micro-Project……………………………………………………………………………...
Course Outcomes Achieved
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………

Evaluation as per suggested Rubric for Assessment of Micro-Project


Sr. Characteristic to be Poor Average Good Excellent
No. assessed (Marks 1-3) (Marks 4- (Marks 6- (Marks 9-10)
5) 8)
1 Relevance to the course
2 Literature survey/
Information Collection
3 Project Proposal
4 Completion of the
Target as per project
proposal
5 Analysis of Data &
Representation
6 Quality of
Prototype/Model
7 Report Preparation
8 Presentation

Micro-Project Evaluation Sheet


Process Assessment Product Assessment Total
Part A- Project Part B-Project Individual Marks
Project Methodology Report/Working Model Presentation/Viva 10
Proposal (2 mark) (2 marks) (4 mark)
(2 marks)
Note:
Every course teacher is expected to assign marks for group evolution in first 3 columns & individual
evaluation in 4th columns for each group of students as per rubrics

Comments/Suggestions about team work/leadership/inter-personal communication (if any).


.................................................................................................................................................
.................................................................................................................................................
.........................................................................

Any other comment:


......................................................................................................................................
.................................................................................................................................................
.................................................................................................................................................
.........................................................................

Name and designation of the faculty member........................................................


Signature...................................................................

*****************

You might also like