Академический Документы
Профессиональный Документы
Культура Документы
PROJECT REPORT
ON
Student Information Management System
Submitted in partial fulfilment for the
Award of degree of
Submitted by:
Manav Khullar
Tinku Sharma
Submitted to:
Throughout the project the focus has been on presenting information in an easy and
intelligible manner. The project is very useful for those who want to know about
Student Information Management Systems and want to develop softwares/websites
based on the same concept.
The project provides facilities like profile creation of students thus reducing
paperwork and automating the record generation process in an educational
institution.
ACKNOWLEDGEMENT
We take this opportunity to express our sincere gratitude to all those who helped us
in various capacities in undertaking this project and devising the report.
We take this opportunity also to thank our friends and contemporaries for their
co-operation and compliance.
Manav Khullar
Tinku Sharma
TABLE OF CONTENTS
1. Declaration
2. Synopsis of project
4. Technology overview
5. Project description
6. Snapshots
7. Scope of project
8. Contribution in project
9. Bibliography
DECLARATION
CERTIFICATE
This is to certify that the project titled
Abstract
Objectives:
Users Views:
Administrator
Platform
Technologies Used:
Front End: HTML, Javascript,Jquery,Bootstrap
Software Requirements:
PHP 5.0
Hardware Requirements:
Intel Pentium IV processor or equivalent or higher
Network Connectivity
SOFTWARE REQUIRMENT SPECIFICATION
1. Introduction
1.1 Purpose:
1.2 Scope :
Student id(Auto
Generated)
Student password
Student name
Student Course
Contact no
PHP.
MYSQLI
JAVASCRIPT
HTML
CSS
JQuery
1.5 Overview:
2. OVERALL DESCRIPTION
Till Now There is Only One user who will be using this product:
Administrator who can view and edit the details of any students.
2.5 Constraints :
Every user must be comfortable using computer.
All operations are in English so user must have basic knowledge of
English.
3 Specific Requirements :
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 users authorization.
Alternative Flow:
The administrator enters invalid username and password then he
Preconditions:
The Administrator must be logged into the system in order for this use
case to begin
Basic Flow:
o Student id
o First/last name
o Their Class
o E-Mail
Phone Number
The System prompts for the student detail from one of the above keys.
Alternative Flow:
Post conditions:
The student details are displayed on the screen already existing in the
system. The state of the system remains unchanged.
Use Case : Edit student details
Preconditions:
The Administrator must be logged into the system in order for this use
case to begin.
Basic Flow:
The Administrator logs onto the System.
The Administrator can edit following keys:-
o First/last name
o Gender
o Contact no
o Email1
o Course
o Address
o Year
Alternative Flow:
<?php
session_start();
include("link.php");
$email=$password=$user="";
$emailerr=$passerr=$usererr="";
$no_signinerr="";
$allerr="<div class=\"alert alert-
danger\"><strong><p align=\"center\">*
Invalid E-Mail Or
Password</p></strong></div>";
$allcorr="<div class=\"alert alert-
success\"><strong><p
align=\"center\">*Success Login
</p></strong></div>";
if($_SERVER["REQUEST_METHOD"]=="
POST")
{
if(empty($_POST['email']))
{
$emailerr="<div class=\"alert alert-
danger\"><strong> * Please Enter Your E-
Mail</strong></div>";
}
else
{
$email=$_POST['email'];
}
if(empty($_POST['password']))
{
$passerr="<div class=\"alert alert-
danger\"><strong> * Please Enter Your
Password</strong></div>";
}
else if($_POST['password']>6)
{
$passerr="Password Must Be Greater
Than Six";
}
else
{
$password=$_POST['password'];
}
if(empty($_POST['user']))
{
$usererr="<div class=\"alert alert-
danger\"><strong> * Please Select A
User</strong></div>";
}
else
{
$user=$_POST['user'];
}
}
?>
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet"
href="css/bootstrap.css">
<link rel="stylesheet"
href="css/index.css">
<script type="text/javascript"
src="http://ajax.aspnetcdn.com/ajax/jQuery/jq
uery-3.1.0.js"></script>
<script type="text/javascript"
src="js/index.js"></script>
<style type="text/css">
span.error {
color: red;
}
</style>
</head>
<body background="background.jpg">
<p align="center"><img src="logo.png
"alt="logo"></p>
<p align="center"
class="title_college_management">College
Management <br>System</p>
<form method="post"
action="attempt.php"class="form-
horizontal">
<div class="container">
<div class="form-group">
<div class="col-xs-4 col-
sm-4 col-md-1 col-lg-1 col-xl-1">
<label
for="email">Email:-</label>
</div>
<div class="col-xs-7 col-
sm-7 col-md-3 col-lg-3 col-xl-3">
<input type="email"
class="form-control" id="email"
name="email" placeholder="Enter Your
Email"><br><span class="error"><?php
echo $emailerr?></span>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-
sm-4 col-md-1 col-lg-1 col-xl-1">
<label
for="password">Password:-</label>
</div>
<div class="col-xs-7 col-
sm-7 col-md-3 col-lg-3 col-xl-3">
<input
type="password" class="form-control"
id="password" name="password"
placeholder="Enter Your
Password"><br><span class="error"><?php
echo $passerr ?></span>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-
sm-4 col-md-1 col-lg-1 col-xl-1">
<label
for="user">Select User</label>
</div>
<div class="col-xs-7 col-
sm-7 col-md-3 col-lg-3 col-xl-3">
<select
value="user" name="user" id="user"
class="form-control">
<?php
$sql="SELECT * FROM `user`";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option
value="<?php echo $row['user']?>"><?php
echo $row['user']?></option>
<?php
}
?>
</select><span
class="error"><br><?php echo $usererr ?
></span>
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-
sm-4 col-md-1 col-lg-1 col-xl-1">
</div>
<div class="col-xs-7 col-
sm-7 col-md-3 col-lg-3 col-xl-3">
<input type="submit"
value="Submit" class="btn btn-success btn-
block" value="submit" name="submit"
id="mybutton">
</div>
</div>
<div class="form-group">
<div class="col-xs-4 col-
sm-4 col-md-1 col-lg-1 col-xl-1">
</div>
<div class="col-xs-7 col-
sm-7 col-md-3 col-lg-3 col-lg-3">
<input type="reset"
value="Reset" name="reset" class="btn btn-
default btn-block">
</div>
</div>
<div class="form-group">
<div class="col-xs-5 col-
sm-5 col-md-2 col-lg-2 col-xl-2">
</div>
</div>
</div>
</form>
<!--script-->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
<?php
if(isset($_POST['submit']))
{
$email=$_POST['email'];
$password=$_POST['password'];
$user=$_POST['user'];
if($user=="Teacher")
{
$sql="select * from `teacher` where
email='$email' && password='$password'";
if($result=mysqli_query($link,$sql))
{
if(mysqli_num_rows($result)>0)
{
echo $allcorr;
}
else
{
echo $allerr;
}
}
}
}
?>
<?php
include("link.php");
session_start();
if(isset($_SESSION['email']))
{
echo "<div class='alert alert-
warning'><strong><p align='center'>Welcome ".
$_SESSION['email']." </p></strong></div>";
?>
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="sidebar.css">
<link rel="stylesheet" href="css/bootstrap.css">
<style type="text/css">
.color{
color:red;
}
.total_student
{
font-size:25px;
}
.total_teacher{
font-size:25px;
}
.Color
{
color:blue;
}
.classdata
{
font-family:sans-serif;
padding:20px;
font-size:18px;
}
</style>
<script type="text/javascript"
src="js/cdnjquery.js"></script>
<script type="text/javascript">
$(function(){
$
("#ba,#bba,#bcom,#bca,#biotech,#pgdca1,#ba1,#ba2,
#ba3,#bba1,#bba2,#bba3,#bcom1,#bcom2,#bcom3,#bc
a1,#bca2,#bca3,#biotech1,#biotech2,#biotech3,#pgdca
,#pgdcadata2,#badata,#bbadata,#bcomdata,#bcadata,
#biotechdata,#pgdcadata").hide();
$("#data_show").click(function(){
$
("#badata,#bbadata,#bcomdata,#bcadata,#biotechdat,
#pgdcadata").slideToggle("slow");
})
$("#class").click(function(){
$
("#ba,#bba,#bcom,#bca,#biotech,#pgdca").slideToggl
e("show");
})
$("#badata").click(function(){
$
("#ba1,#ba2,#ba3").slideToggle("slow");
$
("#bba1,#bba2,#bba3,#bcom1,#bcom2,#bcom3,#bca1,
#bca2,#bca3,#biotech1,#biotech2,#biotech3,#pgdcadat
a2").hide("slow");
})
$("#bbadata").click(function(){
$
("#bba1,#bba2,#bba3").slideToggle("slow");
$
("#ba1,#ba2,#ba3,#bcom1,#bcom2,#bcom3,#bca1,#bc
a2,#bca3,#biotech1,#biotech2,#biotech3,#pgdcadata2"
).hide("slow");
})
$
$("#bcomdata").click(function(){
$
("#bcom1,#bcom2,#bcom3").slideToggle("slow");
$
("#ba1,#ba2,#ba3,#bba1,#bba2,#bba3,#bca1,#bca2,#b
ca3,#biotech1,#biotech2,#biotech3,#pgdcadata2").hid
e("slow");
})
$("#bcadata").click(function(){
$
("#bca1,#bca2,#bca3").slideToggle("slow");
$
("#ba1,#ba2,#ba3,#bba1,#bba2,#bba3,#bcom1,#bcom
2,#bcom3,#biotech1,#biotech2,#biotech3,#pgdcadata2
").hide("slow");
})
$("#biotechdata").click(function(){
$
("#biotech1,#biotech2,#biotech3").slideToggle("slow"
);
$
("#ba1,#ba2,#ba3,#bba1,#bba2,#bba3,#bcom1,#bcom
2,#bcom3,#bca1,#bca2,#bca3,#pgdcadata2").hide("sl
ow");
})
$("#pgdcadata").click(function(){
$
("#pgdcadata2").slideToggle("slow");
$
("#ba1,#ba2,#ba3,#bba1,#bba2,#bba3,#bcom1,#bcom
2,#bcom3,#bca1,#bca2,#bca3,#biotech1,#biotech2,#bi
otech3").hide("slow");
})
})
</script>
</head>
<div id="wrapper">
<div class="overlay"></div>
<!--BCOm-->
<li id="bcom"><a
href="full_bcom_data.php">B.Com</a></li>
<!--B.C.A-->
<li id="bca"><a
href="full_bca_data.php">B.C.A</a></li>
<!--Bio.Tech-->
<li id="biotech"><a
href="full_biotech_data.php">Bio.Tech</a></li>
<li id="pgdca"><a
href="full_pgdca_data.php">P.G.D.C.A</a></li>
<!--P.G.D.C.A-->
<?php
$sql="select * from
`student` where course='P.G.D.C.A' && year=1";
$result=mysqli_query($link,$sql);
$row=mysqli_num_rows($result);
?>
<p class="total_student"
id="pgdcadata2">Total Number Of Student In
P.G.D.C.A:- <span class="color"><?php echo $row?
></span></p>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<body>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/sidebar.js"></script>
</body>
</html>
<?php
}
else
{
echo "<div class='alert alert-
warning'><strong><p align='center'>Failed To
Login<a href='index.php'>Click Here</a>To Sign
in</p></strong></div><p align='center'><img
src='oops.jpg'></p>";
}
?>
Insert_student.php
<?php
include("link.php");
$allerr="<div class=\"container\"><div class=\"alert
alert-danger\"><p align=\"center\"><strong> Please
Fullfill All Credentials</strong></p></div></div>";
$allpass="<div class=\"container\"><div
class=\"alert alert-success\"><p
align=\"center\"><strong> Record Successfully
Inserted Check Data</strong></p></div></div>";
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="css/bootstrap.css">
<link rel="stylesheet" href="css/index.css">
<script type="text/javascript"
src="js/cdnjquery.js"></script>
<script type="text/javascript"
src="index.js"></script>
<style type="text/css">
.modal_text{
font-size:20px;
font-family:monospace,sans-serif;
}
textarea{
resize:none;
}
</style>
</head>
<body>
<div class="modal fade"
id="modal_student">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<p><span
class="modal_text">Please Insert Student
Info</span>
<button type="button"
data-dismiss="modal"
class="close">×</button></p>
</div>
<form method="post"
action="add_delete_student.php?page=1"
class="form-horizontal">
<div class="modal-body">
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="name">Name</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<input
type="text" name="name" class="form-control"
placeholder="Enter Your Name" id="name"/>
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="lastname">Lastname</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<input
type="text" name="lastname" class="form-control"
id="lastname" placeholder="Enter Your Latname">
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="roll">Roll No:-</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<input
type="text" name="roll" class="form-control"
placeholder="Enter Student Roll No" id="roll">
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="email">E-Mail</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<input
type="email" name="email" id="email"
placeholder="Enter An E-Mail" class="form-
control"/>
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="phone">Mobile No</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<label>+91</label><input type="tel"
pattern="^\d{10}$" class="form-control"
name="phone" id="phone" required >
<label>(format:xxxxxxxxxxx):</label>
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="gender">Gender</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<select
value="" name="gender" id="gender" class="form-
control">
<?php
$sql="SELECT * FROM `gender`";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option
value="<?php echo $row['gender']?>"><?php echo
$row['gender']?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="course">Course</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<select
value="" name="course" id="course" class="form-
control">
<?php
$sql="SELECT course FROM `course_year`";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option
value="<?php echo $row['course']?>"><?php echo
$row['course']?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="year">Year</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<select
value="" id="year" name="year" class="form-
control">
<?php
$sql="select * from `year`";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option value="<?php echo $row['year']?>"><?
php echo $row['year']?></option>
<?php
}?>
</select>
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="user">User</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<input
type="text" value="Student" readonly="readonly"
name="user" id="user" class="form-control">
</div>
</div>
<div class="form-
group">
<div class="col-xs-
4 col-sm-4 col-md-3 col-lg-3 col-xl-3">
<label
for="address">Address</label>
</div>
<div class="col-xs-
8 col-sm-8 col-md-6 col-lg-6 col-xl-6">
<textarea
class="form-control" id="address" name="address"
placeholder="Enter Your Password"
rows=6></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<input type="submit"
value="submit" name="submit" class="btn btn-
primary"/>
<button type="button"
class="btn btn-warning" name="reset"
value="reset"/>Reset</button>
<input type="button"
class="btn btn-danger " name="close"
value="close" data-dismiss="modal" class="close"/>
</div>
</form>
</div>
</div>
</div>
</body>
<!--script-->
<script src="js/bootstrap.js"></script>
<script src="js/jquery.js"></script>
</html>
<?php
if(isset($_POST['submit']))
{
$name=$_POST['name'];
$lastname=$_POST['lastname'];
$roll=$_POST['roll'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$course=$_POST['course'];
$year=$_POST['year'];
$user=$_POST['user'];
$gender=$_POST['gender'];
$address=$_POST['address'];
$sql_query="select email from student where
email='$email'";
$result_query=mysqli_query($link,$sql_query);
$exsist=mysqli_num_rows($result_query);
$sql_roll_query="select roll from student where
roll='$roll' ";
$result_roll_query=mysqli_query($link,
$sql_roll_query);
$exsist_roll_query=mysqli_num_rows($result_roll_qu
ery);
if(!$name |!$lastname |!$roll |!$email |!$phone |!
$course |!$year |!$user |!$gender |!$address)
{
echo $allerr;
}
else if($exsist>0)
{
$emailerr="<div class=\"container\"><div
class=\"alert alert-danger\"><p
align=\"center\"><strong> Student With Same Email-
Id Already Created</strong></p></div></div>";
echo $emailerr;
}
else if($exsist_roll_query>0)
{
$rollerr="<div class=\"container\"><div
class=\"alert alert-danger\"><p
align=\"center\"><strong> A Roll Number Has Been
Allocated To Student </strong></p></div></div>";
echo $rollerr;
sleep(3);
}
else{
$sql="INSERT INTO `student`(`name`,
`lastname`, `roll`, `email`, `phone`, `gender`,
`course`,`year`,`user`,`address`) VALUES
('$name','$lastname','$roll','$email','$phone','$gende
r','$course','$year','$user','$address')";
if($result=mysqli_query($link,$sql))
{
echo $allpass;
sleep(3);
}
}
}
?>
Search.php
<?php
session_start();
if(isset($_SESSION['email']))
{
include("link.php");
$allerr="<div class=\"alert alert-danger\"><p
align=\"center\"><strong> Make Sure To Enter Into
Search Textbox</strong></p></div>";
$recorderror="<div class=\"alert alert-danger\"><p
align=\"center\"><strong> No Record Exsist
</strong></p></div>";
$recorderr="<div class=\"alert alert-danger\"><p
align=\"center\"><strong> Make Sure To Enter Full
Name or Latname or email or Phone Number or
CourseName </strong></p></div>";
?>
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="sidebar.css">
<link rel="stylesheet" href="css/bootstrap.css">
<script type="text/javascript"
src="js/cdnjquery.js"></script>
<script type="text/javascript">
$(function(){
$
("#ba,#bba,#bcom,#bca,#biotech,#pgdca").hide();
$("#class").click(function(){
$
("#ba,#bba,#bcom,#bca,#biotech,#pgdca").slideToggl
e("slow");
})
})
</script>
<style>
.blue{
color:blue;
font-size:20px;
}
.blue {
color: #0589ca;
text-decoration: none;
font-size: 15px;
}
.blue:hover
{
color: #005779;
}
.green
{
color:#08d808;
text-decoration:none;
font-size:15px;
}
.green:hover
{
color: #0d560d;
}
.red
{
color:red;
text-decoration:none;
font-size:15px;
}
.red:hover
{
color: darkred;
}
</style>
</head>
<div id="wrapper">
<div class="overlay"></div>
<!--BCOm-->
<li id="bcom"><a
href="full_bcom_data.php">B.Com</a></li>
<!--B.C.A-->
<li id="bca"><a
href="full_bca_data.php">B.C.A</a></li>
<!--Bio.Tech-->
<li id="biotech"><a
href="full_biotech_data.php">Bio.Tech</a></li>
<li id="pgdca"><a
href="full_pgdca_data.php">P.G.D.C.A</a></li>
<div class="form-
group">
</div>
</form>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<body>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/sidebar.js"></script>
</body>
</html>
<?php
if(isset($_POST['submit']))
{
$keyword=$_POST['keyword'];
$user=$_POST['sel_user'];
if(!$keyword)
{
echo $allerr;
}
else
{
if(strlen($keyword)>2)
{
if($user=="Student")
{
$sql="select * from student WHERE
name LIKE '%".$keyword."%' OR lastname LIKE
'%".$keyword."%' OR CONCAT(`name`,'
',`lastname`) LIKE '%".$keyword."%'OR course
LIKE '%".$keyword."%' OR phone LIKE '%".
$keyword."%' OR roll LIKE '%".$keyword."%' OR
email LIKE '%".$keyword."%'";
}
else if($user=="Teacher")
{
$sql="select * from teacher WHERE
name LIKE '%".$keyword."%' || lastname LIKE '%".
$keyword."%' || CONCAT(`name`,' ',`lastname`)
LIKE '%".$keyword."%'|| course LIKE '%".
$keyword."%' || phone LIKE '%".$keyword."%' ||
email LIKE '%".$keyword."%' ";
}
$result=mysqli_query($link,$sql);
?>
<?php
$exsist=mysqli_num_rows($result);
if($exsist>0)
{
$recordsuccess="<div class=\"alert
alert-success\"><p align=\"center\"><strong>About
<span class=\"blue\">".$exsist."</span> Results
Were Found </strong></p></div>";
echo $recordsuccess;
?>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>LastName</th>
<th>Course</th>
<th>Phone Number</th>
<th>E-Mail</th>
<th>Details</th>
<th>Update</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<?php
while($row=mysqli_fetch_assoc($result))
{
?>
<tr>
<td><?php echo $row['id']?
></td>
<td><?php echo
$row['name']?></td>
<td><?php echo
$row['lastname']?></td>
<td><?php echo
$row['course']?></td>
<td><?php echo
$row['phone']?></td>
<td><?php echo
$row['email']?></td>
<?php
if($user=="Student")
{
echo" <td><a
href=\"detail_student.php?id=".$row['id']."\"
class=\"Blue\">Details</a></td>
<td><a
href=\"update_student.php?id=".$row['id']."\"
class=\"green\">Update</a></td>
<td><a
href=\"delete_student.php?id=".$row['id']."\"
class=\"red\">Delete</a></td>";
}
else
{
echo" <td><a
href=\"detail_teacher.php?id=".$row['id']."\"
class=\"blue\">Details</a></td>
<td><a
href=\"update_teacher.php?id=".$row['id']."\"
class=\"green\">Update</a></td>
<td><a
href=\"delete_teacher.php?id=".$row['id']."\"
class=\"red\">Delete</a></td>";
}
?>
</tr>
<?php
}
}
else
{
echo $recorderror;
}
?>
</tbody>
</table>
<?php
}
else
{
echo $recorderr;
}
}
}
?>
<?php
}
else
{
echo "<div class='alert alert-
warning'><strong><p align='center'>Failed To
Login<a href='index.php'>Click Here</a>To Sign
in</p></strong></div><p align='center'><img
src='oops.jpg'></p>";
}
?>
5.Update.php
<?php
session_start();
if(isset($_SESSION['email']))
{
include("link.php");
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="css/bootstrap.css">
<link rel="stylesheet" href="css/index.css">
<script type="text/javascript"
src="js/cdnjquery.js"></script>
<script type="text/javascript"
src="index.js"></script>
<style type="text/css">
.modal_text{
font-size:20px;
font-family:sans-serif;
}
.modal-header {
padding: 15px;
border-bottom: 1px solid #e5e5e5;
background-color: rgb(59, 129, 162);
color: white;
/* font-family: sans-serif; */
}
</style>
</head>
<body>
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="sidebar.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet"
href="css/add_delete_student.css">
<script type="text/javascript"
src="js/cdnjquery.js"></script>
<script type="text/javascript"
src="js/index.js"></script>
<script type="text/javascript">
$(function(){
$
("#ba,#bba,#bcom,#bca,#biotech,#pgdca").hide();
$("#class").click(function(){
$
("#ba,#bba,#bcom,#bca,#biotech,#pgdca").slideToggl
e("slow");
})
})
</script>
</head>
<body background="background.jpg">
<div id="wrapper">
<div class="overlay"></div>
<!--B.C.A-->
<li id="bca"><a
href="full_bca_data.php">B.C.A</a></li>
<!--Bio.Tech-->
<li id="biotech"><a
href="full_biotech_data.php">Bio.Tech</a></li>
<li id="pgdca"><a
href="full_pgdca_data.php">P.G.D.C.A</a></li>
<div
class="form-group">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6
col-xl-6">
<select value="" name="course" id="course"
class="form-control">
<?php
$sql="SELECT course FROM `course_year`
where course='B.A' OR course='B.C.A' OR
course='B.B.A' OR course='B.Com' OR
course='Bio.Tech'";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option value="<?php echo $row['course']?
>"><?php echo $row['course']?></option>
<?php
}
?>
</select>
</div>
<?php
$sql="select * from `year` where
year='1' OR year='2'";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option value="<?php echo
$row['year']?>"><?php echo $row['year']?
></option>
<?php
}?>
</select>
</div>
</div>
<div class="form-group">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-
12 col-xl-12">
<p align="center"><b>Promote To</b></p>
</div>
</div>
<div
class="form-group">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-
12 col-xl-12">
<select value="" id="year" name="newyear"
class="form-control">
<?php
$sql="select * from `year` where
year='2' OR year='3'";
$result=mysqli_query($link,$sql);
while($row=mysqli_fetch_array($result))
{
?>
<option value="<?php echo
$row['year']?>"><?php echo $row['year']?
></option>
<?php
}?>
</select>
</div>
</div>
</div>
<div
class="modal-footer">
<input
type="submit" value="submit" name="submit"
class="btn btn-primary"/>
<input
type="button" class="btn btn-danger "
name="close" value="close" data-dismiss="modal"
class="close"/>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<!--script-->
<script src="js/bootstrap.js"></script>
<script src="js/jquery.js"></script>
<script src="js/sidebar.js"></script>
</html>
<?php
if(isset($_POST['submit']))
{
$course=$_POST['course'];
$year=$_POST['year'];
$newyear=$_POST['newyear'];
if($year==1 && $newyear==3)
{
$not="<div class=\"container\"><div
class=\"alert alert-danger\"><p
align=\"center\"><strong> $course from $year
Cannot Be Directly Promoted To
$newyear</strong></p></div></div>";
echo $not;
}
else if($year==2 && $newyear==2 )
{
$comm="<div class=\"container\"><div
class=\"alert alert-danger\"><p
align=\"center\"><strong> Record from $course
Class Cannot Be Promoted To Same
Year</strong></p></div></div>";
echo $comm;
}
else
{
$sql="UPDATE student set year='$newyear'
where course='$course' AND year='$year'";
$result=mysqli_query($link,$sql);
$exsist=mysqli_affected_rows($link);
$sql_query="SELECT * from student where
course='$course' AND year='$year'";
$result_query=mysqli_query($link,$sql_query);
$count=mysqli_num_rows($result_query);
if($result)
{
if($count>0)
{
if($exsist>0)
{
$allpass="<div class=\"container\"><div
class=\"alert alert-success\"><p
align=\"center\"><strong> $exsist Record from
$course Class Successfully Promoted From $year
Year To $newyear Year</strong></p></div></div>";
echo $allpass;
}
}
else
{
$counterr="<div
class=\"container\"><div class=\"alert alert-
danger\"><p align=\"center\"><strong> No Record
Of $course $year Exsist</strong></p></div></div>";
echo $counterr;
}
}
else
{
$allerr="<div class=\"container\"><div
class=\"alert alert-danger\"><p
align=\"center\"><strong> Promotion Was Not
SuccessFull</strong></p></div></div>";
echo $allerr;
}
}
}
?>
<?php
}
else
{
echo "<div class='alert alert-
warning'><strong><p align='center'>Failed To
Login<a href='index.php'>Click Here</a>To Sign
in</p></strong></div><p align='center'><img
src='oops.jpg'></p>";
}
?>
3.3 Non- Functional Requirement :
3.4 Conclusion :
This SRS has given all the details of the application need to be built.
DESIGN PHASE
1. Introduction
The Design Document will verify that the current design meets all of the
explicit requirements contained in the system model as well as the implicit
requirements desired by the customer.
The SIMS is a system which contain major part which include: student
Detail, Student image and resume.
The user selects one of the available options as an input to the system.
According to the input by the user the system acts and the rest of the
functions are performed accordingly.The administartor can operate on any
student details.But the normal student or users can only access their
details of all the functionalities.
3. Data Design
Hence we can conclude that the design phase of the SIMS give us the
information of all the processes used in the project and their relation.
TECHNOLOGY OVERVIEW
PHP
MySQLI
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.
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.
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.
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.
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 student with two tables in it.The
tabels are admin_login and student_information.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.
PROJECT DESCRIPTION
Introduction
admin_login :
Student Information
`
o gender : Stores the gender of the student(s).
Features
Administrator :
o Login/Logout
Success Dialog Box Will Be Displayed At The Top If All Fields Are
Filled Correctly
From Navbar We Can Also Select Class And Can Select Whose Class Info
We Want To See/
The Above Box Shows The Search Box Through Which Result Was Found.
Through This We Can Also Find Teacher Record Seperately By Selecting
Teacher From Dropdown Menu.
This Page Can Be Used To Promote
Student From One Year To next Year
www.google.com.
www.wikipedia.com
www.w3schools.com
Head First PHP & MySQL by Lynn Beighley and Michael Morrison(OReilly)