0% found this document useful (0 votes)
86 views

Vidya

Uploaded by

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

Vidya

Uploaded by

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

STUDENT MANAGEMENT SYSTEM Page |1

CHAPTER 1

INTRODUCTION

1.1 Project overview

Student Management System is software which is helpful for students as well as


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.
The two main users involved in this system are

1. User (Students)

2. Admin (Authorities)

In this Software we can register a student by the authentication code i.e., student id and
password. With help of student id and password student can login his/her account and
view all the notices which is announced by admin.
The objective of Student Management System is to allow the administrator of
organization to edit and find out the personal details of a student and allows the student
to keep up to date his profile.
It will also facilitate keeping all the records of students, such as their id, name, mailing
address, phone number, DOB etc. So all the information about a student will be
available in a few seconds. Overall, it will make Student Information Management an
easier job for the administrator and the student of any organization.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |2

1.2 Objective:
• It helps the educational administrator to handle and manage student’s record.

• It helps educational administrator to generate report.

• It brings transparency and efficiency in the working of educational system.

• The website Student Management System is aimed towards recording a


considerable number of student records and needs online assistance for
managing records of students.
• Website should be user-friendly, ‘quick to learn’ and reliable website for the above
purpose.
• Student Management 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.

1.3 Scope :

The system works and fulfil all the functionalities as per the proposed system. It will provide
reduced response time against the queries made by different users. This project is based on
PHP language with MYSQL database which manage the details of the student because it is a
tedious job for any organization. Student Information system will store all the details of the
students including their background information. All possible features such as verification,
validation, security, user friendliness etc. have been considered.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |3

CHAPTER 2
SYSTEM REQUIREMENTS AND SPECIFICATION

2.1 REQUIREMENTS

Hardware Requirements

• Processor : Intel CORE i3

• Processor speed : 2.0 GHz

• RAM : 2 GB or above

• Hard disk: 40GB to 80 GB

• Keyboard : Standard Keyboard

Software Requirements

• Frontend : HTML

• Backend : PHP,MY SQL

• Other Tools : CSS, JavaScript

• Platform : Windows 7 or higher version with Web Browser

• Server : XAMPP Server

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |4

2.2 FUNCTIONAL REQUIREMENTS

• Username are valid email addresses of respective user

• Administrator has the authority to add/delete student level accounts.

2.3 NON-FUNCTIONAL REQUIREMENTS

• System should be able handle multiple users

• Database updating should follow transaction processing to avoid data


inconsistency

2.4 FEASIBILITY STUDY


Whenever we design a new system, normally the management will ask for a feasibility
report of the new system. The management wants to know the technicalities and cost
involved in creation of new system.
- Technical feasibility

- Economic feasibility

- Physical feasibility

Technical feasibility:

Technical feasibility involves study to establish the technical capability of the


system being created to accomplish all requirements to the user. The system should be
capable of handling the proposed volume of data and provide users and operating
environment to increase their efficiency.
For example, system should be capable of handling the proposed volume of data and
provide users.

Economic feasibility:

Economic feasibility involves study to establish the cost benefit analysis.

Money spent on the system must be recorded in the form of benefit from the system.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |5

The benefits are of two types:

Tangible benefits:

- Saving man labour to do tedious tasks saves time.

Intangible benefits:

- Improves the quality of organization.

Physical feasibility:

It involves study to establish the time responses of the new system being created.
For e.g., if the new system takes more than one day to prepare crucial finance statement
for the management, wherever it was required in an hour, the system fails to provide the
same.
It should be clearly established that the new system requirements in the form of time
responses would be completely met with. It may call for increase in cost. If the required
cost is sacrificed then the purpose of the new system may not be achieved even if it was
found to be technically feasible.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |6

2.5 Brief Explanation on Tools used PHP


What is PHP?

• PHP is an acronym for "PHP: Hypertext Preprocessor"

• PHP is a widely-used, open source scripting language

• PHP scripts are executed on the server PHP is free to download and use.

What is a PHP File?

• PHP files can contain text, HTML, CSS, JavaScript, and PHP code

• PHP code are executed on the server, and the result is returned to the browser as
plain HTML

• PHP files have extension “.php" .

What Can PHP Do?

• PHP can generate dynamic page content

• PHP can create, open, read, write, delete, and close files on the server • PHP can
collect form data
• PHP can send and receive cookies

• PHP can add, delete, modify data in your database

• PHP can be used to control user-access PHP can encrypt data

Why PHP?

• PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) PHP
started out as a small open source project that evolved as more and more people
found out how useful it was.
• Rasmus Lerdorf unleashed the first version of PHP way back in 1994 PHP is
a recursive acronym for "PHP: Hypertext Preprocessor".

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |7

• PHP is a server side scripting language that is embedded in HTML. It is used to


manage dynamic content, databases, session tracking, even build entire
ecommerce sites.
• It is integrated with a number of popular databases, including MySQL,
PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.
• PHP is pleasingly zippy in its execution, especially when compiled as an Apache
module on the UNIX side. The MySQL server, once started, executes even very
complex queries with huge result sets in record-setting time.
• PHP supports a large number of major protocols such as POP3, IMAP, and
LDAP. PHP4 added support for Java and distributed object architectures (COM
and CORBA), making n-tier development a possibility for the first time.
• PHP is forgiving: PHP language tries to be as forgiving as possible. PHP Syntax
is C-Like.

Common uses of PHP

• PHP performs system functions, i.e. from files on a system it can create, open,
read, write, and close them
• .PHP can handle forms, i.e. gather data from files, save data to a file, through
email you can send data, return data to the user.
• You add, delete, modify elements within your database through PHP Access
cookies variables and set cookies.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |8

HTML

The Hyper Text Mark up Language or HTML is the standard markup


language for documents designed to be displayed in a web browser.

It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting
languages such as JavaScript.

Web browsers receive HTML documents from a web server or from local storage and
render the documents into multimedia web pages. HTML describes the structure of a
web page semantically and originally included cues for the appearance of the document.

HTML is a markup language that web browsers use to interpret and compose text,
images, and other material into visual or audible web pages. Default characteristics for
every item of HTML markup are defined in the browser, and these characteristics can
be altered or enhanced by the web page designer's additional use of CSS.

Many of the text elements are found in the 1988 ISO technical report TR 9537
Techniques for using SGML, which in turn covers the features of early text formatting
languages such as that used by the RUNOFF command developed in the early 1960s
for the CTSS (Compatible Time-Sharing System) operating system: these formatting
commands were derived from the commands used by typesetters to manually format
documents. However, the SGML concept of generalized markup is based on elements
(nested annotated ranges with attributes) rather than merely print effects, with also the
separation of structure and markup; HTML has been progressively moved in this
direction with CSS.

A few of the basic tags that can be seen in almost all the HTML documents are
<HTML>, <! Doctype html>, <head>, <span>, <body>, <p>, <div>, <u>, <sub>,
<sup>, <strong>, <em>, <hr>, <br>, <li>, <ol>, <ul>, <a href =…>, header tags like
h1, h2, h3, .., <img src=””/>, etc.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM Page |9

CSS
Cascading Style Sheets, fondly referred to as CSS, is a simple design language
intended to simplify the process of making web pages presentable. CSS handles the
look and feel part of a web page. Using CSS, you can control the color of the text,
the style of fonts, the spacing between paragraphs, how columns are sized and laid
out, what background images or colors are used, layout designs, variations in display
for different devices and screen sizes as well as a variety of other effects. CSS is
easy to learn and understand but it provides powerful control over the presentation
of an HTML document. Most commonly, CSS is combined with the markup
languages HTML or XHTML.
Advantages of CSS

• CSS saves time − You can write CSS once and then reuse same sheet in multiple
HTML pages. You can define a style for each HTML element and apply it to as
many Web pages as you want.
• Pages load faster − If you are using CSS, you do not need to write HTML tag
attributes every time. Just write one CSS rule of a tag and apply it to all the
occurrences of that tag. So less code means faster download times.

• Easy maintenance − To make a global change, simply change the style, and all
elements in all the web pages will be updated automatically.

• Superior styles to HTML − CSS has a much wider array of attributes than
HTML, so you can give a far better look to your HTML page in comparison to
HTML attributes.
• Multiple Device Compatibility − Style sheets allow content to be optimized for
more than one type of device. By using the same HTML document, different
versions of a website can be presented for handheld devices such as PDAs and
cell phones or for printing.
• Global web standards − Now HTML attributes are being deprecated and it is
being recommended to use CSS. So it is a good idea to start using CSS in all the
HTML pages to make them compatible to future browsers.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 10

JAVA SCRIPT

What is JavaScript?

• JavaScript is a dynamic computer programming language. It is lightweight and


most commonly used as a part of web pages, whose implementations allow
client-side script to interact with the user and make dynamic pages. It is an
interpreted programming language with object-oriented capabilities.
• JavaScript was first known as Live Script, but Netscape changed its name to
JavaScript, possibly because of the excitement being generated by Java.
JavaScript made its first appearance in Netscape 2.0 in 1995 with the name
Live Script. The general-purpose core of the language has been embedded in
Netscape, Internet Explorer, and other web browsers.
• The ECMA-262 Specification defined a standard version of the core JavaScript
language.
• JavaScript is a lightweight, interpreted programming language

• Designed for creating network-centric applications.

• Complementary to and integrated with Java.

• Complementary to and integrated with HTML

• Open and cross-platform

• Advantages of JavaScript

• Less server interaction − you can validate user input before sending the page
off to the server. This saves server traffic, which means less load on your server.

• Immediate feedback to the visitors − they don't have to wait for a page reload
to see if they have forgotten to enter something
• Increased interactivity − you can create interfaces that react when the user
hovers over them with a mouse or activates them via the keyboard.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 11

MY SQL

MySQL Database- MySQL is a fast, easy-to-use RDBMS being used for many
small and big businesses. MySQL is developed, marketed and supported by
MySQL AB, which is a Swedish company.

MySQL is becoming so popular because of many good reasons –

• MySQL is released under an open-source license. So you have nothing to pay


to use it.
• MySQL is a very powerful program in its own right. It handles a large subset
of the functionality of the most expensive and powerful database packages.
• MySQL uses a standard form of the well-known SQL data language.

• MySQL works on many operating systems and with many languages including
PHP, PERL, C, C++, JAVA, etc.
• MySQL works very quickly and works well even with large data sets.

• MySQL is very friendly to PHP, the most appreciated language for web
development.
• MySQL supports large databases, up to 50 million rows or more in a table. The
default file size limit for a table is 4GB, but you can increase this (if your
operating system can handle it) to a theoretical limit of 8 million terabytes (TB).
• MySQL has received positive reviews, and reviewers noticed it "performs
extremely well in the average case" and that the "developer interfaces are there,
and the documentation (not to mention feedback in the real world via Web sites
and the like) is very, very good".
• .It has also been tested to be a "fast, stable and true multi-user, multi-threaded
SQL database server".

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 12

Xampp

• Xampp Server are packages of independently created programs installed


on computers that use a Microsoft windows operating system. The
interaction of these programs enables dynamic web pages to be served over
a computer network, such as the internet or a private network.

• “Xampp” package’s principle components: Apache, MYSQL and PHP(or


Perl or Python).
• Apache is a web server, which allows people with web browsers like
Internet Explorer or Chrome to connect to a computer and see information
there as web pages.
• MYSQL is a database manager

• PHP is a scripting language which can manipulate information held in a


database and generate web pages afresh each time an element of content is
requested from a browser.
• Other program may also be included in a packages, such as phpMyAdmin
which provides a graphical interface for the MYSQL database manager, or
the alternative scripting languages like Python.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 13

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 14

CHAPTER 3
MODULES

3.1 ADMIN MODULE

• Dashboard: In this section, admin can see all detail in brief like Total Classes, Total
Students, Total Class Notices and Total Public Notices.

• Class: In this section admin can manage class (Add/Update/Delete).

• Students: In this section admin can manage the students (Add/Update/Delete).

• Notices: In this section the admin can manage notices (Add/Update/Delete).

• Public Notices: In this section the admin can manage public notices.

• Pages: In this section admin can manage about us and contact us page of
administration
• Search: In this section admin can search students by their student id.

• Reports: In this section admin can view how much students has been register in
particular dates.
• Admin can also update his profile, change the password and recover the password.

3.2 STUDENT MODULE

• Dashboard: It is welcome page for students.

• View Notices: In this section, user (students) can view notices which are announced
by administrator.
• Student can also view his profile, change the password and recover the password.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 15

USER (Non-Register):

• Home: It is welcome page for user.

• About: User can view about us page.

• Contact: User can view contact us page .

3.3 OTHER MODULES

• User Registration Module: User can register with username and password.

• User Login Module: Student users registered can Login to view information and
notices.

• Administrator Module: New admin accounts cannot be made manually for


security reasons. Admin account has authority to edit the contents of the
Website.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 16

CHAPTER 4
SYSTEM DESIGN

Design is the first step in the development phase for any techniques and principles
for the purpose of defining a device, a process or system in sufficient detail to
permit its physical realization.
Once the software requirements have been analysed and specified the software design
involves three technical activities - design, coding, implementation and testing that
are required to build and verify the software.
The design activities are of main importance in this phase, because in this activity,
decisions ultimately affecting the success of the software implementation and its ease
of maintenance are made.
These decisions have the final bearing upon reliability and maintainability of the
system. Design is the only way to accurately translate the customer’s requirements
into finished software or a system.
Design is the place where quality is fostered in development. Software design is a
process through which requirements are translated into a representation of software.
Software design is conducted in two steps. Preliminary design is concerned with the
transformation of requirements into data

Unified Modelling Language Diagrams (UML)

UML stands for Unified Modeling Language is the successor to the wave of
Object-Oriented Analysis and Design (OOA&D) methods that appeared in the late
80's. It most directly unifies the methods of Brooch, Rumbaugh (OMT) and Jacobson.
The UML is called a modeling language, not a method. Most methods consist at least
in principle, of both a modeling language and a process. The Modeling language is
that notation that methods used to express design.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 17

• The unified modelling language allows the software engineer to express an


analysis model using the modelling notation that is governed by a set of
syntactic semantic and pragmatic rules.
• A UML system is represented using five different views that describe the
system from distinctly different perspective. Each view is defined by a set of
diagrams, which is as follows.

UML is specifically constructed through two different domains they are

• UML Analysis modelling, which focuses on the user model and structural
model views of the system?

• UML design modelling, which focuses on the behavioural modelling,


implementation modelling and environmental model views.

User Model View

• This view represents the system from the user’s perspective.

• The analysis representation describes a usage scenario from the end-user’s


perspective.

Structural model view

• In this model the data and functionality are arrived from inside the system.

• This model view models the static structures.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 18

Behavioural Model View

It represents the dynamic of behavioural as parts of the system, depicting the


interactions of collection between various structural elements described in the
user model and structural model view.

Implementation Model View

In this the structural and behavioural as parts of the system are represented as
they are to be built.

Environmental Model View

In these the structural and behavioural aspects of the environment in which the
system is to be implemented are represented.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 19

4.1 USE CASE DIAGRAM: USER

Sign In

Dashboard

USER
View Notice

Update Own Profile

Change Password

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 20

4.2 USE CASE DIAGRAM : ADMIN

Sign In

Dashboard

Manage Class
( Add/Update/Delete )

Manage Students
( Add/Update/Delete )

Manage Notice
( Add/Update/Delete )

ADMIN Manage Public Notices


( Add/Update/Delete )

Pages (Update)

Search St udents

Report

Update Own Profile

Change Password

Password Recovery

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 21

4.3 ENTITY RELATIONSHIP DIAGRAM

E-R (Entity-Relationship) Diagram is used to represents the relationship between


entities in the table.

ER DIAGRAM OF STUDENT MANAGEMENT SYSTEM

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 22

4.4 DATABASE DESIGN

The data in the system has to be stored and retrieved from database. Designing the
database is part of system design. Data elements and data structures to be stored have
been identified at analysis stage. They are structured and put together to design the
data storage and retrieval system.
A database is a collection of interrelated data stored with minimum redundancy to
serve many users quickly and efficiently. The general objective is to make database
access easy, quick, inexpensive and flexible for the user. Relationships are established
between the data items and unnecessary data items are removed. Normalization is done
to get an internal consistency of data and to have minimum redundancy and maximum
stability. This ensures minimizing data storage required, minimizing chances of data
inconsistencies and optimizing for updates. The MySQL database has been chosen for
developing the relevant databases.

Student Management System (SMS) contains 6 MySQL tables :

tbladmin table Structure : This table store the admin login and personal
Details.
NAME TYPE
ID int(10)
AdminName varchar(120)
UserName varchar(120)
MobileNumber int(10)
Email varchar(120)
Password varchar(120)
AdminRegdate timestamp

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 23

tblclass table Structure : This table store the class and section.

NAME TYPE
ID int(5)
ClassName varchar(50)

Section varchar(20)

CreationDate timestamp

tblnotice table Structure : This table store the notices detail which is announced by
admin.

NAME TYPE
ID int(5)
Notice Title mediumtext
ClassID Int(10)
NoticeMsg mediumtext
CreationDate timestamp

tblpublicnotice table Structure : This table store the public notices detail which is
announced by admin.

NAME TYPE
ID int(5)
Notice Title Varchar(200)
NoticeMessage mediumtext
CreationDate timestamp

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 24

tblpage table Structure : This table store the details of about us and contact us pages.
NAME TYPE
ID int(10)
Page Type Varchar(200)
PageTitle mediumtext
PageDescription mediumtext
Email Varchar(200)
MobileNumber bigint(10)
UpdationDate date

tblstudent table Structure : This table store the students details of educational
organization.
NAME TYPE
ID int(10)
StudentName Varchar(200)
StudentEmail Varchar(200)
StudentClass Varchar(100)
Gender Varchar(50)
DOB date
StuID Varchar(200)
FatherName mediumtext
MotherName mediumtext
ContactNumber bigint(10)
AlternateNumber bigint(10)
Address Mediumtext
UserName Varchar(200)
Password Varchar(200)
image Varchar(200)
DateofAdmission timestamp

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 25

4.5 Class Diagram

The class diagram shows a set of classes, interfaces, collaborations and their
relationships.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 26

CHAPTER 5
EXECUTABLE CODE

5.1 Admin Login Page

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.p
hp');

if(isset($_POST['login']))
{
$username=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT ID FROM tbladmin WHERE UserName=:username and
Password=:password";
$query=$dbh->prepare($sql);
$query-> bindParam(':username', $username, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ); if($query-
>rowCount() > 0)
{
foreach ($results as $result) {
$_SESSION['sturecmsaid']=$result->ID;
}
if(!empty($_POST["remember"])
) { //COOKIES for username
setcookie ("user_login",$_POST["username"],time()+ (10 * 365 * 24 * 60 * 60));

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 27

//COOKIES for password setcookie


("userpassword",$_POST["password"],time()+ (10 * 365 * 24 * 60 * 60));
} else {
if(isset($_COOKIE["user_login"])) {
setcookie ("user_login","");
if(isset($_COOKIE["userpassword"])) {
setcookie ("userpassword","");
}
}
}
$_SESSION['login']=$_POST['username']; echo "<script type='text/javascript'>
document.location ='dashboard.php'; </script>";
} else{ echo "<script>alert('Invalid
Details');</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Student Management System|| Login Page</title>
<!-- plugins:css -->
<link rel="stylesheet" href="vendors/simple-line-icons/css/simple-line-
icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
<!-- End plugin css for this page -->
<!-- inject:css -->

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 28

<!-- endinject -->


<!-- Layout styles -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container-scroller">
<div class="container-fluid page-body-wrapper full-page-wrapper">
<div class="content-wrapper d-flex align-items-center auth">
<div class="row flex-grow">
<div class="col-lg-4 mx-auto">
<div class="auth-form-light text-left p-5">
<div class="brand-logo">
<img src="images/logo.svg">
</div>
<h4>Hello! let's get started</h4>
<h6 class="font-weight-light">Sign in to continue.</h6>
<form class="pt-3" id="login" method="post" name="login">
<div class="form-group">
<input type="text" class="form-control form-control-lg"
placeholder="enter your username" required="true" name="username"
value="<?php if(isset($_COOKIE["user_login"])) { echo
$_COOKIE["user_login"]; } ?>" >
</div>
<div class="form-group">
<input type="password" class="form-control form-control-lg"
placeholder="enter your password" name="password" required="true"
value="<?php if(isset($_COOKIE["userpassword"])) { echo
$_COOKIE["userpassword"]; } ?>">
</div>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 29

<div class="mt-3">
<button class="btn btn-success btn-block loginbtn" name="login"
type="submit">Login</button>
</div>
<div class="my-2 d-flex justify-content-between align-items-center">
<div class="form-check">
<label class="form-check-label text-muted">
<input type="checkbox" id="remember" class="form-check-input"
name="remember" <?php if(isset($_COOKIE["user_login"])) { ?> checked <?php }
?> /> Keep me signed in </label>
</div>
<a href="forgot-password.php" class="auth-link text-black">Forgot
password?</a>
</div>
<div class="mb-2">
<a href="../index.php" class="btn btn-block btn-facebook auth-form-
btn"> <i class="icon-social-home mr-2"></i>Back Home </a>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
</div>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 30

<!-- page-body-wrapper ends -->


</div>
<!-- container-scroller -->
<!-- plugins:js -->
<script src="vendors/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page -->
<!-- End plugin js for this page -->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>
<!-- endinject -->
</body>
</html>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 31

5.2 ADD STUDENTS PAGE

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['sturecmsaid']==0))
{ header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$stuname=$_POST['stuname'];
$stuemail=$_POST['stuemail'];
$stuclass=$_POST['stuclass'];
$gender=$_POST['gender'];
$dob=$_POST['dob'];
$stuid=$_POST['stuid'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$connum=$_POST['connum'];
$altconnum=$_POST['altconnum'];
$address=$_POST['address'];
$uname=$_POST['uname'];
$password=md5($_POST['password']);
$image=$_FILES["image"]["name"];
$ret="select UserName from tblstudent where UserName=:uname || StuID=:stuid";
$query= $dbh -> prepare($ret);
$query->bindParam(':uname',$uname,PDO::PARAM_STR);
$query->bindParam(':stuid',$stuid,PDO::PARAM_STR);
$query-> execute();
Department of Computer Science, Bangalore University
STUDENT MANAGEMENT SYSTEM P a g e | 32

$results = $query -> fetchAll(PDO::FETCH_OBJ);


if($query -> rowCount() == 0)
{
$extension = substr($image,strlen($image)-4,strlen($image));
$allowed_extensions = array(".jpg","jpeg",".png",".gif");
if(!in_array($extension,$allowed_extensions))
{ echo "<script>alert('Logo has Invalid format. Only jpg / jpeg/ png /gif
format allowed');</script>";
}
el
s
e
{
$image=md5($image).time().$extension;
move_uploaded_file($_FILES["image"]["tmp_name"],"images/".$image);
$sql="insert into
tblstudent(StudentName,StudentEmail,StudentClass,Gender,DOB,StuID,FatherNam
e,
MotherName,ContactNumber,AltenateNumber,Address,UserName,Password,Image
)va
lues(:stuname,:stuemail,:stuclass,:gender,:dob,:stuid,:fname,:mname,:connum,:altco
nn um,:address,:uname,:password,:image)";
$query=$dbh->prepare($sql);
$query->bindParam(':stuname',$stuname,PDO::PARAM_STR);
$query->bindParam(':stuemail',$stuemail,PDO::PARAM_STR);
$query->bindParam(':stuclass',$stuclass,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);
$query->bindParam(':dob',$dob,PDO::PARAM_STR);
$query->bindParam(':stuid',$stuid,PDO::PARAM_STR);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 33

$query->bindParam(':mname',$mname,PDO::PARAM_STR);
$query->bindParam(':connum',$connum,PDO::PARAM_STR);
$query->bindParam(':altconnum',$altconnum,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
$query->bindParam(':uname',$uname,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->bindParam(':image',$image,PDO::PARAM_STR);
$query->execute();
$LastInsertId=$dbh-
>lastInsertId(); if
($LastInsertId>0) {
echo '<script>alert("Student has been added.")</script>';
echo "<script>window.location.href ='add-
students.php'</script>";
}
els
e
{
echo '<script>alert("Something Went Wrong. Please try again")</script>';
}
}}

else
{ echo "<script>alert('Username or Student Id already exist.
Please try again');</script>";
}
}
?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 34

<!DOCTYPE html>
<html lang="en">
<head>
<title>Student ERP system|| Add Students</title>
<!-- plugins:css -->
<link rel="stylesheet" href="vendors/simple-line-icons/css/simple-line-
icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
<link rel="stylesheet" href="vendors/select2/select2.min.css">
<link rel="stylesheet" href="vendors/select2-bootstrap-
theme/select2bootstrap.min.css">
<!-- End plugin css for this page -->
<!-- inject:css -->
<!-- endinject -->
<!-- Layout styles -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="container-scroller">
<!-- partial:partials/_navbar.html -->
<?php include_once('includes/header.php');?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:partials/_sidebar.html -->

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 35

<?php include_once('includes/sidebar.php');?>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title"> Add Students </h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"> Add
Students</li>
</ol>
</nav>
</div>
<div class="row">
<div class="col-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<h4 class="card-title" style="text-align: center;">Add Students</h4>

<form class="forms-sample" method="post"


enctype="multipart/formdata">

<div class="form-group">
<label for="exampleInputName1">Student Name</label>
<input type="text" name="stuname" value="" class="form-control"
required='true'>
</div>
<div class="form-group">

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 36

<label for="exampleInputName1">Student Email</label>


<input type="text" name="stuemail" value="" class="form-control"
required='true'>
</div>
<div class="form-group">
<label for="exampleInputEmail3">Student Class</label>
<select name="stuclass" class="form-control" required='true'>
<option value="">Select Class</option>
<?php
$sql2 = "SELECT * from tblclass ";
$query2 = $dbh -> prepare($sql2);
$query2->execute();
$result2=$query2->fetchAll(PDO::FETCH_OBJ);
foreach($result2 as $row1)
{
?>
<option value="<?php echo htmlentities($row1->ID);?>"><?php echo
htmlentities($row1->ClassName);?> <?php echo htmlentities($row1-
>Section);?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="exampleInputName1">Gender</label>
<select name="gender" value="" class="form-control"
required='true'>
<option value="">Choose Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 37

</div>
<div class="form-group">
<label for="exampleInputName1">Date of Birth</label>
<input type="date" name="dob" value="" class="form-control"
required='true'>
</div>
<div class="form-group">
<label for="exampleInputName1">Student ID</label>
<input type="text" name="stuid" value="" class="form-control"
required='true'>
</div>
<div class="form-group">
<label for="exampleInputName1">Student Photo</label>
<input type="file" name="image" value="" class="form-control"
required='true'>
</div>
<h3>Parents/Guardian's details</h3>
<div class="form-group">
<label for="exampleInputName1">Father's Name</label>
<input type="text" name="fname" value="" class="form-control"
required='true'>
</div>
<div class="form-group">
<label for="exampleInputName1">Mother's Name</label>
<input type="text" name="mname" value="" class="form-control"
required='true'>
</div>
<div class="form-group">
<label for="exampleInputName1">Contact Number</label>
<input type="text" name="connum" value="" class="form-control"
required='true' maxlength="10" pattern="[0-9]+">

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 38

</div>
<div class="form-group">
<label for="exampleInputName1">Alternate Contact
Number</label> <input type="text" name="altconnum" value=""
class="form-control" required='true' maxlength="10" pattern="[0-9]+">
</div>
<div class="form-group">
<label for="exampleInputName1">Address</label>
<textarea name="address" class="form-control"
required='true'></textarea>
</div>
<h3>Login details</h3>
<div class="form-group">
<label for="exampleInputName1">User Name</label>
<input type="text" name="uname" value="" class="form-control"
required='true'>
</div>
<div class="form-group">
<label for="exampleInputName1">Password</label>
<input type="Password" name="password" value=""
class="formcontrol" required='true'>
</div>
<button type="submit" class="btn btn-primary mr-2"
name="submit">Add</button>

</form>
</div>
</div>
</div>
</div>
</div>
Department of Computer Science, Bangalore University
STUDENT MANAGEMENT SYSTEM P a g e | 39

<!-- content-wrapper ends -->


<!-- partial:partials/_footer.html -->
<?php include_once('includes/footer.php');?>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- plugins:js -->
<script src="vendors/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page -->
<script src="vendors/select2/select2.min.js"></script>
<script src="vendors/typeahead.js/typeahead.bundle.min.js"></script>
<!-- End plugin js for this page -->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>
<!-- endinject -->
<!-- Custom js for this page -->
<script src="js/typeahead.js"></script>
<script src="js/select2.js"></script>
<!-- End custom js for this page -->
</body>
</html><?php } ?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 40

5.3 USER/STUDENT PROFILE PAGE


<?php
session_start(); //error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['sturecmsstuid']==0))
{ header('location:logout.php');
} else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Student Management system|| View Students Profile</title>
<!-- plugins:css -->
<link rel="stylesheet" href="vendors/simple-line-icons/css/simple-line-
icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
<link rel="stylesheet" href="vendors/select2/select2.min.css">
<link rel="stylesheet" href="vendors/select2-bootstrap-
theme/select2bootstrap.min.css">
<!-- End plugin css for this page -->
<!-- inject:css -->
<!-- endinject -->
<!-- Layout styles -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 41

<div class="container-scroller">

<!-- partial:partials/_navbar.html -->


<?php include_once('includes/header.php');?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:partials/_sidebar.html -->
<?php include_once('includes/sidebar.php');?>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title"> View Students Profile </h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"> View Students
Profile</li>
</ol>
</nav>
</div>
<div class="row">

<div class="col-12 grid-margin stretch-card">


<div class="card">
<div class="card-body">
<table border="1" class="table table-bordered mg-b-0">
<?php
$sid=$_SESSION['sturecmsstuid'];
Department of Computer Science, Bangalore University
STUDENT MANAGEMENT SYSTEM P a g e | 42

$sql="SELECT

tblstudent.StudentName,tblstudent.StudentEmail,tblstudent.StudentClass,tblstudent.
Ge
nder,tblstudent.DOB,tblstudent.StuID,tblstudent.FatherName,tblstudent.MotherNam
e,t
blstudent.ContactNumber,tblstudent.AltenateNumber,tblstudent.Address,tblstudent.
Us
erName,tblstudent.Password,tblstudent.Image,tblstudent.DateofAdmission,tblclass.
Cla ssName,tblclass.Section from tblstudent join tblclass on
tblclass.ID=tblstudent.StudentClass where tblstudent.StuID=:sid";
$query = $dbh -> prepare($sql);
$query->bindParam(':sid',$sid,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1; if($query-
>rowCount() > 0)
{ foreach($results as
$row)
{ ?>
<tr align="center" class="table-warning">
<td colspan="4" style="font-size:20px;color:blue">
Students Details</td></tr>

<tr class="table-info">
<th>Student Name</th>
<td><?php echo $row->StudentName;?></td>
<th>Student Email</th>
<td><?php echo $row->StudentEmail;?></td>
</tr>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 43

<tr class="table-warning">
<th>Student Class</th>
<td><?php echo $row->ClassName;?> <?php echo $row->Section;?></td>
<th>Gender</th>
<td><?php echo $row->Gender;?></td>
</tr>
<tr class="table-danger">
<th>Date of Birth</th>
<td><?php echo $row->DOB;?></td>
<th>Student ID</th>
<td><?php echo $row->StuID;?></td>
</tr>
<tr class="table-success">
<th>Father Name</th>
<td><?php echo $row->FatherName;?></td>
<th>Mother Name</th>
<td><?php echo $row->MotherName;?></td>
</tr>
<tr class="table-primary">
<th>Contact Number</th>
<td><?php echo $row->ContactNumber;?></td>
<th>Altenate Number</th>
<td><?php echo $row->AltenateNumber;?></td>
</tr>
<tr class="table-progress">
<th>Address</th>
<td><?php echo $row->Address;?></td>
<th>User Name</th>
<td><?php echo $row->UserName;?></td>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 44

</tr>
<tr class="table-info">
<th>Profile Pics</th>
<td><img src="../admin/images/<?php echo $row->Image;?>"></td>
<th>Date of Admission</th>
<td><?php echo $row->DateofAdmission;?></td>
</tr>
<?php $cnt=$cnt+1;}} ?>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- partial:partials/_footer.html -->
<?php include_once('includes/footer.php');?>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- plugins:js -->
<script src="vendors/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page -->
<script src="vendors/select2/select2.min.js"></script>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 45

<script src="vendors/typeahead.js/typeahead.bundle.min.js"></script>
<!-- End plugin js for this page -->

<!-- inject:js -->


<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>
<!-- endinject -->
<!-- Custom js for this page -->
<script src="js/typeahead.js"></script>
<script src="js/select2.js"></script>
<!-- End custom js for this page -->
</body>
</html><?php } ?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 46

5.4 STUDENT VIEW NOTICE PAGE

<?php
session_start(); //error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['sturecmsstuid']==0))
{ header('location:logout.php');
} else{
?>
<!DOCTYPE html>
<html lang="en">
<head
<title>Student Management System|| View Notice</title>
<!-- plugins:css -->
<link rel="stylesheet" href="vendors/simple-line-icons/css/simple-line-
icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
<link rel="stylesheet" href="vendors/select2/select2.min.css">
<link rel="stylesheet" href="vendors/select2-bootstrap-
theme/select2bootstrap.min.css">
<!-- End plugin css for this page -->
<!-- inject:css -->
<!-- endinject -->
<!-- Layout styles -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 47

<div class="container-scroller">
<!-- partial:partials/_navbar.html -->
<?php include_once('includes/header.php');?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:partials/_sidebar.html -->
<?php include_once('includes/sidebar.php');?>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title"> View Notice </h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"> View
Notice</li>
</ol>
</nav>
</div>
<div class="row">
<div class="col-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<table border="1" class="table table-bordered mg-b-0">
<?php
$stuclass=$_SESSION['stuclass'];
$sql="SELECT

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 48

tblclass.ID,tblclass.ClassName,tblclass.Section,tblnotice.NoticeTitle,tblnotice.Creati
on Date,tblnotice.ClassId,tblnotice.NoticeMsg,tblnotice.ID as nid from tblnotice
join tblclass on tblclass.ID=tblnotice.ClassId where tblnotice.ClassId=:stuclass";
$query = $dbh -> prepare($sql);
$query->bindParam(':stuclass',$stuclass,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1; if($query-
>rowCount() > 0) {
foreach($results as $row)
{ ?>
<tr align="center" class="table-warning">
<td colspan="4" style="font-size:20px;color:blue">
Notice</td></tr>
<tr class="table-info">
<th>Notice Announced Date</th>
<td><?php echo $row->CreationDate;?></td>
</tr>
<tr class="table-info">
<th>Noitice Title</th>
<td><?php echo $row->NoticeTitle;?></td>
</tr>
<tr class="table-info">
<th>Message</th>
<td><?php echo $row->NoticeMsg;?></td>
</tr>
<?php $cnt=$cnt+1;}} else { ?>
<tr>
<th colspan="2" style="color:red;">No Notice Found</th>
</tr>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 49

<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- partial:partials/_footer.html -->
<?php include_once('includes/footer.php');?>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- plugins:js -->
<script src="vendors/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page -->
<script src="vendors/select2/select2.min.js"></script>
<script src="vendors/typeahead.js/typeahead.bundle.min.js"></script>
<!-- End plugin js for this page -->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>
<!-- endinject -->
<!-- Custom js for this page -->

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 50

<script src="js/typeahead.js"></script>
<script src="js/select2.js"></script>
<!-- End custom js for this page -->
</body>
</html><?php } ?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 51

5.5 REPORT PAGE


<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['sturecmsaid']==0))
{ header('location:logout.php');
} else{

?>
<!DOCTYPE html>
<html lang="en">
<head>

<title>Student Management System|| Between Dates Reports</title>


<!-- plugins:css -->
<link rel="stylesheet" href="vendors/simple-line-icons/css/simple-line-
icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
<link rel="stylesheet" href="vendors/select2/select2.min.css">
<link rel="stylesheet" href="vendors/select2-bootstrap-
theme/select2bootstrap.min.css">
<!-- End plugin css for this page -->
<!-- inject:css -->
<!-- endinject -->
<!-- Layout styles -->
<link rel="stylesheet" href="css/style.css" />
</head>
Department of Computer Science, Bangalore University
STUDENT MANAGEMENT SYSTEM P a g e | 52

<body>
<div class="container-scroller">
<!-- partial:partials/_navbar.html -->
<?php include_once('includes/header.php');?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:partials/_sidebar.html -->
<?php include_once('includes/sidebar.php');?>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title"> Between Dates Reports </h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"> Between Dates
Reports</li>
</ol>
</nav>
</div>
<div class="row">

<div class="col-12 grid-margin stretch-card">


<div class="card">
<div class="card-body">
<h4 class="card-title" style="text-align: center;">Between Dates
Reports</h4>
Department of Computer Science, Bangalore University
STUDENT MANAGEMENT SYSTEM P a g e | 53

<form class="forms-sample" method="post" action="between-


datereprtsdetails.php">
<div class="form-group">
<label for="exampleInputName1">From Date:</label>
<input type="date" class="form-control" id="fromdate"
name="fromdate" value="" required='true'>
</div>
<div class="form-group">
<label for="exampleInputName1">To Date:</label>
<input type="date" class="form-control" id="todate" name="todate"
value="" required='true'>
</div>
<button type="submit" class="btn btn-primary mr-2"
name="submit">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
<!-- partial:partials/_footer.html -->
<?php include_once('includes/footer.php');?>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 54

<!-- plugins:js -->


<script src="vendors/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page -->
<script src="vendors/select2/select2.min.js"></script>
<script src="vendors/typeahead.js/typeahead.bundle.min.js"></script>
<!-- End plugin js for this page -->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>
<!-- endinject -->
<!-- Custom js for this page -->
<script src="js/typeahead.js"></script>
<script src="js/select2.js"></script>
<!-- End custom js for this page -->
</body>
</html><?php } ?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 55

5.6 MANAGE PUBLIC NOTICE

<?php
session_start(); error_reporting(0);
include('includes/dbconnection.php'); if
(strlen($_SESSION['sturecmsaid']==0))
{ header('location:logout.php');
} else{
// Code for deletion
if(isset($_GET['delid']))
{
$rid=intval($_GET['delid']);
$sql="delete from tblpublicnotice where ID=:rid";
$query=$dbh->prepare($sql);
$query->bindParam(':rid',$rid,PDO::PARAM_STR);
$query->execute(); echo "<script>alert('Data deleted');</script>"; echo
"<script>window.location.href = 'manage-public-notice.php'</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Student Management System|||Manage Public Notice</title>
<!-- plugins:css -->
<link rel="stylesheet" href="vendors/simple-line-icons/css/simple-line-
icons.css">
<link rel="stylesheet" href="vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
Department of Computer Science, Bangalore University
STUDENT MANAGEMENT SYSTEM P a g e | 56

<link rel="stylesheet" href="./vendors/daterangepicker/daterangepicker.css">


<link rel="stylesheet" href="./vendors/chartist/chartist.min.css">
<!-- End plugin css for this page -->
<!-- inject:css -->
<!-- endinject -->
<!-- Layout styles -->
<link rel="stylesheet" href="./css/style.css">
<!-- End layout styles -->
</head>
<body>
<div class="container-scroller">
<!-- partial:partials/_navbar.html -->
<?php include_once('includes/header.php');?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:partials/_sidebar.html -->
<?php include_once('includes/sidebar.php');?>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title"> Manage Public Notice </h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"> Manage Public
Notice</li>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 57

</ol>
</nav>
</div>
<div class="row">
<div class="col-md-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<div class="d-sm-flex align-items-center mb-4">
<h4 class="card-title mb-sm-0">Manage Public Notice</h4>
<a href="#" class="text-dark ml-auto mb-3 mb-sm-0"> View all
Public
Notice</a>
</div>
<div class="table-responsive border rounded p-1">
<table class="table">
<thead>
<tr>
<th class="font-weight-bold">S.No</th>
<th class="font-weight-bold">Notice Title</th>
<th class="font-weight-bold">Notice Date</th>
<th class="font-weight-bold">Action</th>
</tr>

</thead>
<tbody>
<?php if
(isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 58

$pageno = 1;
}

// Formula for pagination


$no_of_records_per_page =15;
$offset = ($pageno-1) * $no_of_records_per_page;
$ret = "SELECT ID FROM tblpublicnotice";
$query1 = $dbh -> prepare($ret);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);
$total_rows=$query1->rowCount();
$total_pages = ceil($total_rows / $no_of_records_per_page);
$sql="SELECT * from tblpublicnotice";
$query = $dbh -> prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1; if($query-
>rowCount() > 0)
{ foreach($results as
$row)
{ ?>

<tr>
<td><?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($row->NoticeTitle);?></td>
<td><?php echo htmlentities($row->CreationDate);?></td>
<td>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 59

<div><a href="edit-public-notice-detail.php?editid=<?php echo


htmlentities ($row->ID);?>"><i class="icon-eye"></i></a>

|| <a href="manage-public-notice.php?delid=<?php echo ($row->ID);?>"


onclick="return confirm('Do you really want to Delete ?');"> <i class="icon-
trash"></i></a></div>
</td>
</tr><?php $cnt=$cnt+1;}} ?>
</tbody>

</table>
</div>
<div align="left">
<ul class="pagination" >
<li><a href="?pageno=1"><strong>First></strong></a></li>
<li class="<?php if($pageno <= 1){ echo 'disabled'; } ?>">
<a href="<?php if($pageno <= 1){ echo '#'; } else { echo
"?pageno=".($pageno
- 1); } ?>"><strong style="padding-left: 10px">Prev></strong></a>
</li>
<li class="<?php if($pageno >= $total_pages){ echo 'disabled'; } ?>">
<a href="<?php if($pageno >= $total_pages){ echo '#'; } else { echo
"?pageno=".($pageno + 1); } ?>"><strong style="padding-left:
10px">Next></strong></a>
</li>
<li><a href="?pageno=<?php echo $total_pages; ?>"><strong
style="paddingleft: 10px">Last</strong></a></li>
</ul>
</div>
</div>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 60

</div>
</div>
</div>
</div>

<!-- content-wrapper ends -->


<!-- partial:partials/_footer.html -->
<?php include_once('includes/footer.php');?>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- plugins:js -->

<script src="vendors/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page -->
<script src="./vendors/chart.js/Chart.min.js"></script>
<script src="./vendors/moment/moment.min.js"></script>
<script src="./vendors/daterangepicker/daterangepicker.js"></script>
<script src="./vendors/chartist/chartist.min.js"></script>
<!-- End plugin js for this page -->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 61

<!-- endinject -->


<!-- Custom js for this page -->
<script src="./js/dashboard.js"></script>
<!-- End custom js for this page -->
</body>
</html><?php } ?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 62

5.7 LOGOUT PAGE


<?php
session_start();
session_unset();
session_destroy();
header('location:login.php');
?>

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 63

CHAPTER 6
SCREENSHOTS

6.1 HOME SCREEN

6.2 ABOUT US PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 64

6.3 CONTACT US PAGE

6.4 ADMNIN LOGIN PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 65

6.5 FORGOT PASSWORD PAGE

6.6 ADMIN DASHBOARD

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 66

6.7 ADMIN PROFILE

6.8 ADD CLASS PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 67

6.9 MANAGE CLASS PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 68

6.10 ADD STUDENT PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 69

6.11 MANAGE STUDENT PAGE

6.12 ADD NOTICE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 70

6.13 MANAGE NOTICE

6.14 ADD PUBLIC NOTICE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 71

6.15 MANAGE PUBLIC NOTICE PAGE

6.16 ABOUT US PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 72

6.17 CONTACT US

6.16 VIEW BETWEEN DATE REPORT

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 73

6.17 SEARCH

6.18 STUDENT LOGIN PAGE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 74

6.19 STUDENT DASHBOARD

6.20 VIEW NOTICE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 75

6.21 STUDENT PROFILE

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 76

CHAPTER 7
TESTING

INTRODUCTION

Testing is the process of executing a program with the intent of finding


errors. It is a major quality measure employed during software development.
During testing, the program is executed with a set of conditions known as test
cases, and the output is evaluated to determine whether the program is performing
as expectation the programmer. Testing is the process of executing a program with
the intent of finding errors.

TESTING OBJECTIVES
• Testing is the process of executing a program with the intent of finding an
error.

• A successful test uncovers a yet undiscovered error.

• A good test case has a high probability of finding errors if it exists.

• The tests are inadequate to detect possibly present errors.

• The software more or less confirms different perspectives on the quality


and reliability standards.

LEVELS OF TESTING

To uncover the errors, present in different phases we have the concept of


levels of things. The basic levels of testing are

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 77

TESTING TECHNIQUE USED (TYPES OF TESTING)

1. UNIT TESTING
• Unit Testing is done on individual modules as they are completed and
become executable.

• It is confined only to the designer’s requirements.

• Each module can be tested using the following two strategies.

2. BLACK BOX TESTING


• In this strategy some test cases are generated as the input conditions that
fully execute all the functional requirements for the program. This testing
has been used to find errors in the following categories:
• Incorrect or missing function

• Interface errors

• Errors in a data structure or external database access

• Performance errors

• Initialization and termination errors.

• In this testing only output is checked for correctness. The logical flow of
data is not checked.

3. WHITE BOX TESTING


• In this the test cases are generated on the logic of each module by drawing
flow graphs of that module and logical decisions are tested on all the cases.
• It has been used to generate the test cases in the following cases:

• Guarantee that all independent paths have been executed.

• Execute all logical decisions on their true and false sides.

• Execute all loops at their boundaries and within their operational bounds.

• Execute internal data structure to ensure their validity.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 78

4. INTEGRATION TESTING
Integration testing ensures that the software and the subsystems work together as a
whole. It tests the interface of the entire module to make sure that the modules
behave properly when integrated.

5. SYSTEM TESTING
System testing involves in-house testing of the entire system before delivery to the
user .It aims to satisfy the user that the system meets all requirements of the client’s
specifications.

6. USER ACCEPTANCE TESTING


User acceptance of a system is the key factor to the success of any system. The
system under study is tested for user acceptance by constantly keeping in touch
with the prospective system users at the time of developing and making changes
whenever required.
It is pre-delivery testing in which the entire system is tested at the client’s site on
real-world data to find errors.

7. VALIDATION TESTING
The system has been tested and implemented successfully and thus ensured that all
the requirements as listed in the software required specification are completely
fulfilled. In case of erroneous input, corresponding error messages are displayed.

8. OUTPUT TESTING
After performing validation testing, the next step is output testing of the proposed
system since no system could be useful if it does not produce the required specified
format. Asking the users about the format required by the tests and the output generated
by the system under consideration. Here the output format is considered in two ways,
one is on the screen and the other is in printed format. The output format on the screen
is found to be correct as the format was designed in the system design phase according
to the user’s needs. For the hard copy also output comes as the specified requirements
by the users. Hence output testing does not result in any corrections in the system.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 79

7.1 TEST CASE FOR LOGIN:

Project :- Student Management System.


Objective : - To check whether user name & Password valid or invalid.

SL Steps Data Excepted Data Actual Status


No. result

1 Add admin to website in Should navigate to Pass


last admin’s page

2 Enter User name and press Should Display Pass


submit button. message box ‘please
fill out this fields’

3 Enter password and press Should Display Pass


submit button message box ‘please
fill out this fields’

4 Enter blank user name and Should display a Pass


blank password and press message box ‘please
submit button. fill out this fields’

5 Enter wrong user and Should display a Pass


password.
message box ‘Invalid
details’

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 80

7.2 TEST CASE FOR NAVIGATION:

Project :- Student Management System.


Objective : - To check whether different hyperlinks are working properly or not.

SL Steps Data Excepted Data Actual Status


No. Result
1 Click on Home page Should display home Pass
hyperlink menu page

2 Click on new About Should display About Pass


hyperlink menu page

3 Click on Contact Should display Contact Pass


hyperlink menu page

4 Click on Admin Should display Pass


hyperlink menu respective login page

5 Click on Student Should display Pass


hyperlink menu respective login page

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 81

CHAPTER 8
CONCLUSION

The project titled as Student Management System was deeply studied and
analysed to design the code and implement. It was done under the guidance of the
experienced project guide. All the current requirements and possibilities have been
taken care during the project time.
Student Management System can be used by education institutes to
maintain the records of students easily. Achieving this objective is difficult using a
manual system as the information is scattered, can be redundant and collecting
relevant information may be very time consuming. All these problems are solved
using this project.
I was not familiar with the PHP language or Visual Studio development environment.
So, I had to learn PHP and JavaScript to complete this project. I found some great
video tutorials and some example, and view them and follow examples to grab
lessons. As we are unexperienced students this is the first time to experience to do
the projects which took more time and efforts to understand the concepts of the
programming languages used in this project. In this path we took more reference and
help from our guide and the college management staffs who helped us during the
course of project. Finally we thank our college for providing us this opportunity to
learn and experience the project work which really important for our career.

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 82

FUTURE ENHANCEMENT

This project deals with the various functioning in Student management process. The
main idea is to implement a proper process to system . In our existing system contains
a many operations student and admin login and registration, notices, reports etc.

While the software makes the job of faculty and administrators easy, it also helps the
students in many ways. Students can check notices of different classes without
hovering over the notice board. Also, the students also get the boost in productivity
and efficiency as they can save more time.
The main objective of the Student Management System is to manage the details of

Profiles, Logins, Notices ,Reports. It manages all the information about Profiles,
Student, Fees, Profiles. The project is totally built at administrative end and thus only
the administrator is guaranteed the access.
From the above project we can make future enhancements as mentioned below :

• Adding online test module to students.

• Adding attendance module to students

• Adding payment of fee

• Adding respective subject notes

Department of Computer Science, Bangalore University


STUDENT MANAGEMENT SYSTEM P a g e | 83

BIBLIOGRAPHY

For PHP

• https://www.w3schools.com/php/default.asp

• https://www.sitepoint.com/php/

• https://www.php.net/

For MySQL

• https://www.mysql.com/

• http://www.mysqltutorial.org

For XAMPP

• https://www.apachefriends.org/download.html

Department of Computer Science, Bangalore University

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy