You are on page 1of 130

University Management System

V. K. KRISHNA MENON COLLEGE OF


COMMERCE & SCIENCE
BHANDUP(E), MUMBAI-400002

DEPARTMENT OF COMPUTER SCIENCE


A
PROJECT REPORT ON
“UNIVERSITY MANAGEMENT SYSTEM”

SUBMITTED BY
Neha Lalmani Yadav

ACADEMIC YEAR 2022-2023


UNDER GUIDANCE BY

MR. RAJESH YADAV

SUBMITTED FOR PARTIAL FULFILMENT


OF B.Sc. DEGREE COURSE IN
COMPUTER SCIENCE OF UNIVERSITY OF
MUMBAI

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:1


University Management System

CERTIFICATE

V.K KRISHNA MENON COLLEGE OF COMMERCE AND


ECONOMICS AND
SHARAD SHANKAR DIGHE COLLEGE OF SCIENCE
BHANDUP EAST, MUMBAI - 400042

This is to certify that Miss Neha Lalmani Yadav Roll No 63 has successfully completed
the PROJECT titled “University Management System” of Sem V for partial fulfillment
of Bachelor of Science in Computer Science of University of Mumbai in academic year
2022 -2023 under the guidance of

DATE: HEAD OF THE DEPARTMENT

PROJECT GUIDE EXAMINER

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:2


University Management System

INDEX

Sr No. Topic Page No.


1 ACKNOWLEDGEMENT 4

2 OVERVIEW 5 - 10

2.1 ABSTRACT
2.2 UNDERTAKING
2.4 OBJECTIVE
2.4 INTRODUCTION
2.5 REQUIREMENT SPECIFICATION

3 GANTT CHART 11

4 SYSTEM DESIGN DETAILS 12 - 17

4.1 E-R DIAGRAM


4.2 ACTIVITY DIAGRAM
4.3 DATA FLOW DIAGRAM
4.4 CLASS DIAGRAM
4.5 USE CASE DIAGRAM

5 CODE IMPLEMENTATION 18 - 116

6 DATABASE TABLE 117 - 119

7 SCREENSHOTS 120 - 128

8 FUTURE SCOPE & CONCLUSIONS 129

9 REFERENCES 130
9.1 WEBSITES
9.2 BOOKS

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:3


University Management System

1. Acknowledgement

I like to extend my gratitude to Ms. SALONI BHUSHAN, our Head Of


Department and all staff of Krishna Menon College of Commerce for providing
us moral support, Conducive work environment and the much needed
inspiration to complete this project on time.

I wish to extend my deepest gratitude and special thanks to my project guide


Prof. Mr. RAJESH YADAV, for giving their generous support, necessary
inputs and companionship during my project work.

I would like to convey my special thanks to the Management and all the staff of
the college for providing the required infrastructure and resources to enable the
completion and enrichment of my project.

I am extremely grateful to the University of Mumbai for having prescribed this


project work to me as a part of the academic requirement in the Final year of
Bachelor of Science in Computer Science.

Finally I thank all my fellow friends who have directly or indirectly helped me
in completing my project.

Miss Neha Yadav

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:4


University Management System

2. Overview

2.1. Abstract
University management system project is a web-based solution for colleges, universities, and
schools. It was created for the university and its affiliated institutions to conduct, monitor,
and analyze complicated activities such as student admission, examinations, and much more.
It is a program that manages the complete student life cycle up to degree completion.

UMS helps make important tasks like admission, results processing, registration, and fee
management more efficient, so they can be done faster. All users, including students, college
and university personnel, paper valuers, setters, and moderators, are given a role-based
login/password to complete their tasks. Each student has access to an online tool through the
university’s examination management system to complete the following Student Lifecycle
tasks. This is available to all students.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:5


University Management System

2.2. Undertaking

I Miss Neha Yadav Student of TYBSC – Computer Science hereby declare that
I have Completed the project on “University Management System ''.
The Information Submitted is True and Original to the best of Knowledge.

SIGNATURE OF STUDENT
Neha Yadav

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:6


University Management System

2.3. Objective

The university management system improves the institution’s work organization


and decreases the amount of paperwork that wastes time. If you
wish to enroll in a university, you must first register in the system and obtain all o
f the essential information.

The goal of this research was to create a university management project system
that would aid in the maintenance of university records. Creating strategies for
efficient management and handling of a task in every university. The university
management system project includes features that allow for quick access to donor
records gathered across the country.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:7


University Management System

2.4. Introduction

2.4.1. Objective of the project

The university management system improves the institution’s work organization and
decreases the amount of paperwork that wastes time. If you
wish to enroll in a university, you must first register in the system and obtain all of th
e essential information.

The goal of this research was to create a university management project system that
would aid in the maintenance of university records. Creating strategies for efficient
management and handling of a task in every university. The university management
system project includes features that allow for quick access to donor records
gathered across the country.

2.4.2. Description of the current system:

University Management System is a clever, versatile, and cost-effective solution for


universities, colleges, and schools. It's a whole end-to-end system that takes care of
every detail of a university workflow, which is exactly what we needed.

The University Management System (UMS) is a cloud-based university management


system that addresses all elements of colleges, universities, and schools. It offers an
easy-to-use interface for managing university workflow and integrating all university
procedures.

2.4.3. Limitations of the current system:

 No User Friendly
 Manual Operation
 No Security Features
 HIGHER education is characterized by “the tension between the offered quality
and the drive to provide affordable higher education to more and more people
 Also, SOA and Grid solutions, as with many other computing technologies, require
certain hardware and software infrastructure to be setup before they can be used for
lab assignments. This demands specialized technical skills from both professors
and students to set up the experimental environment. These tasks often distract
students from the real goals of the course since they are focusing their effort on
peripheral tasks more related to system administration than to the course topics.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:8


University Management System

2.4.4. Description of proposed system:

This is a web-related application that permits us to approach the entire knowledge


regarding the college, employees, students, faculties etc. This application is also
called as College management system. It offers an actual trip of the college campus.
Here we would gain the recent knowledge regarding the students and employees.
This general application planned for aiding the students of an organization about
details on the courses, subjects, classes, assignments, grades and time-table. It also
allows the faculty to know his time-table, upload assignments and issue circulars to
the pupil. The administrator would maintain the accounts of the pupil and staff,
prepares the time-table and upload the current information regarding the campus.

In order to solve these problems, a new system has been created, that attempts to
operate the whole procedure considering the database integration approach.

2.4.5. Advantages of the proposed system:

 Several controls help the application to be friendly to the users.


 The entire project maintenance is made simpler and more adaptable.
 Internet access is possible.
 Several tiers have been employed to offer file upload and mail characteristics.
 During the process of project progression, there is no chance of data mishandling.
 It offers great degree of security employing various protocols.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:9


University Management System

2.5. Requirement Specification

2.5.1 Software Requirement:


▪ Front-end – HTML, CSS,BOOTSTRAP,JQUERY
▪ Backend – Mysql,PHP
2.5.2 Hardware Requirement:
Developer Side:
● Processor – 2.10 GHz
● RAM – 512gb or more
● Disk Space – 10GB or more

Student Side:
● Browser

2.5.3 Data Requirement:


● admin_id(varchar)
● Admin_name(varchar)
● Admin_Password(varchar)
● ID(vachar)
● Firstname(text)
● Lastname(text)
● password(varchar)
● d_id(int)
● fname(text)
● lname(text)
● id(int)
● first_name(text)
● last_name(text)

2.5.4 Fact Finding questions:


● Why do you need University Management System?
● What are the features that you need in the University Management System?
● What is the scope of this system in the future?
● What are the software and hardware requirements of the system?
● Will the system be helpful?
● Can the system be upgraded if developed?
● Are there technical guarantees of accuracy, reliability, ease of access and data
security?
● Will the system be used and work properly if it is being developed and implemented?

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:10


University Management System

3. Gantt Chart

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:11


University Management System

4.System Design Details


4.1. E-R Diagram

Figure 4.2.1: E-R Diagram for University Management System

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:12


University Management System

4.2. Activity Diagram


4.2.1 Admin’s Side

Figure 4.2.1: Activity Diagram(Admin Side) for University Management System

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:13


University Management System

4.2.2 Student and Faculty Side

Figure 4.2.2: Activity Diagram(Student and Faculty Side) for University Management
System

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:14


University Management System

4.3 Data Flow Diagram

Figure 4.2.1: Data Flow Diagram for University Management System

University Management System Data Flow Diagram - represents the flow of data and their
transformations within the university management system. The input, processing, and output are used to
represent and define the overall university management system. The data flow diagram comes with three
levels which will elaborate the system's concept from a single node up to specific.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:15


University Management System

4.4 Class Diagram

Figure 4.3: Class Diagram for University Management System

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:16


University Management System

4.5 Use Case Diagram

Figure 4.4: Use Case Diagram for University Management System

University Management System Use Case Diagram - A university management system use case diagram
is a visual representation of how the user interacts with the system. It depicts the system’s numerous use
cases and different sorts of users. The circles or ellipses are used to depict the use cases. The use case
diagram for the university management system comes with several diagrams that describe the function of
various use cases from the general use case. It uses the labels <> and <>to know the structure and behavior
of the system at the same time.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:17


University Management System

5. Code Implementation
Main CSS
html {
color: #222;
font-size: 1em;
line-height: 1.4;
}

/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* These selection rule sets have to be separate.
* Customize the background color to match your design.
*/

::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}

::selection {
background: #b3d4fc;
text-shadow: none;
}

/*
* A better looking default horizontal rule
*/

hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:18


University Management System

video {
vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/

fieldset {
border: 0;
margin: 0;
padding: 0;
}

/*
* Allow only vertical resizing of textareas.
*/

textarea {
resize: vertical;
}

/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */

.browserupgrade {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}

/* ==========================================================================
Author's custom styles
========================================================================== */
a{
text-decoration:none;
}
.fix{
overflow:hidden;
}
body{
font-family:roboto !important;
background:url(../img/ptrn.png) repeat fixed;
}

.container {
/* width:1000px; */
display:block;
margin:0 auto;
background:#FFFFFF;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:19


University Management System

border-left:1px solid #FFFFFF;


}
.header_area{
height:80px;
background:#2A2B3C;
}

.head {
float:left;
width:400px;

.logo {
width:100px;
margin-left:20px;
float:left;
}
.logo img{
width:75px;
height:80px;
}
.uniname {
width:280px;
float:left;
padding-top: 10px;
}
.uniname h2{
font-size:22px;
font-weight:normal;
color:#E3E3E5;
margin-top: 20;
padding: 0;
margin: 0;
}
.uniname h5{
font-size: 13px;
font-style: italic;
margin: 0;
color: #ffffff;
font-weight: normal;
}
.dateshow p{
color: #fff;
text-align: right;
margin: 0;
margin-top: 5px;
margin-right: 20px;
padding: 0;
font-size: 14px;
font-style: italic;
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:20


University Management System

.menu {
width:600px;
float:right;
}
.menu ul {
color: #e3e3e5;
list-style: outside none none;
margin: 20px 20px 0 0;
padding: 0;
}
.menu>ul>li{
float:right;
display:block;
}
.menu>ul>li a {
color: #e3e3e5;
font-size: 16px;
padding: 3px 6px;

}
.menu>ul>li a:hover {
color:#0BB69F;
}

.sidebar {
float:left;
padding:10px;
width:180px;
background:#2A2B3C;
}
.sidebar ul{
margin-top:30;
padding:0;
list-style:none;
}
.sidebar>ul>li{
font-size:18px;
background:#0CC2AA;
color: #e3e3e5;
padding:5px 5px;
border-radius:5px;

}
.spcl{

}
.sidebar ul ul li {
padding-left:15px;
padding-top:6px;
padding-bottom:6px;
margin:5px 0 0 1px;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:21


University Management System

}
.sidebar ul ul li:hover{
background:#3a3b4c;
}
.sidebar ul ul li a {
color: #e3e3e5;
padding: 8px;
}
.maincontent{
min-height:580px;
}
.content {
float: right;
padding: 10px 170px;
width: 780px;
}

.cpright{
position: relative;
bottom: 0;

/*login form desing start*/


.loginform{
padding: 10px;
background: #DDD;
width: 350px;
border-radius: 5px;
padding-top: 5px;
margin-top: 145px;
margin-left: 215px;
}
}

.msg{

}
.msg h3{
text-align: center;
}
.access {

.loginform p{
text-align: center;
}
.loginform a{
color:#0ea17f;
}
.loginform input[type="text"], .loginform input[type="password"] {

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:22


University Management System

padding: 7px 5px;


margin: 20px 0;
width: 96%;
display: block;
font-size: 18px;
border-radius: 5px;
border: none;
-webkit-transition: 0.3s linear;
-moz-transition: 0.3s linear;
-o-transition: 0.3s linear;
transition: 0.3s linear;
}
.loginform input[type="text"]:focus, .loginform input[type="password"]:focus {
outline: none;
box-shadow: 0 0 1px 1px #1abc9c;
}
.loginform input[type="submit"] {
background: #1abc9c;
padding: 10px;
font-size: 20px;
display: block;
width: 100%;
border: none;
color: #fff;
border-radius: 5px;
}
.loginform input[type="submit"]:hover {
background: #1bc6a4;
}
/*login form ends*/

/*student registration form desing*/


.st_reg{

}
#st_form{
width:370px;
margin:0 auto;
}

.st_reg h2{
margin:0;
margin-bottom:20px;
padding:10px 0;
background:#1abc9c;
font-weight:normal;
font-family:consolas, arial;
text-align:center;
color:#fff;
}
.st_reg th, td {
padding: 8px;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:23


University Management System

}
.st_reg select{
width:80px;
padding:2px;
border: 1px solid #1abc9c;
border-radius: 5px;

}
.birthday{
width:48px;
padding:2px;
border: 1px solid #1abc9c;
border-radius: 5px;
}
.birthyear{
width:70px;
padding:2px;
border: 1px solid #1abc9c;
border-radius: 5px;
}
.st_reg input[type="text"], .st_reg input[type="password"], .st_reg input[type="email"] {
padding: 2px 5px;
margin-bottom: 4px 0;
width: 96%;
display: block;
font-size: 16px;
border-radius: 5px;
border: 1px solid #1abc9c;
-webkit-transition: 0.3s linear;
-moz-transition: 0.3s linear;
-o-transition: 0.3s linear;
transition: 0.3s linear;
}
.st_reg input[type="text"]:focus, .st_reg input[type="password"]:focus, .st_reg input[type="email"]:focus {
outline: none;
box-shadow: 0 0 1px 1px #1abc9c;
}
.st_reg input[type="submit"] {
background: #1abc9c;
padding: 8px;
font-size: 16px;
display: block;
width: 100%;
border: none;
color: #fff;
border-radius: 5px;
}
.st_reg input[type="submit"]:hover {
background: #1bc6a4;
}
/*Table desing for view info*/

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:24


University Management System

/*page desing*/

table.tab_one{
width:100%;
}
table.tab_one th{
background:#1abc9c;
padding:10px;
font-weight:bold;
text-align:left;
}
table.tab_one td{
border:1px solid #ddd;
padding:8px;

}
table.tab_one td a{
text-decoration:none;
}
table.tab_one tr:nth-child(odd){
background:#ddd;
}
table.tab_one tr:nth-child(even){
background:#ecf0f1;
}
/*edit button*/
.editbtn {
background-color: #01C3AA;
border: none;
border-radius:5px;
color: white;
padding: 5px 18px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 15px;
margin: 2px 1px;
cursor: pointer;
}
/*admin Page*/
.admin_profile{
min-height:450px;
padding:20px;
}
.section{
width:48.3%;
float:left;
margin:10px;
}
.section h3{
text-align:center;
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:25


University Management System

/*
table.tab_two{
width:100%;
border-collapse:collapse;
}
table.tab_two tr {
border:1px solid #ddd;
border-collapse:collapse;
}
table.tab_two td{
text-align:center;
padding:20px;
}
table.tab_two td a{
padding: 5px;
color: #00C2A9;
}
table.tab_one tr:hover{
background-color:#f5f5f5;

}
*/
.section ul{
margin:0;
padding:0;
border:1px solid #ddd;
list-style:none;
}
.section ul li{
border:1px solid #ddd;
}
.section ul li a{
display:block;
padding:20px;
color:#006f61;
text-align:center;
text-decoration:none;

}
.section ul li a:hover{
background:#ddd;
}
/*search student*/
.all_student{
min-height:450px;
}

.search_st{
background:#9b59b6;
height:45px;
}
.search{

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:26


University Management System

float:right;
}
.hdinfo{
float:left;
width:500px;
}
.hdinfo h3{
font-size:18px;
color:#fff;
padding:10px;
margin:0;
font-weight:normal;

}
.search input[type=text] {
line-height: normal;
padding: 5px;
margin: 3px;
border-radius:5px;
width:125px;
}
.search input[type=submit] {
padding:6px;
margin-right:15px;
border:none;
background:#E8E8FF;
border-radius:5px;
}

/*prfile photo css*/


.profile_photo{
background:#2c3e50;
float:left;
}
.profile_photo img{
height:180px;
width:180px;
display:block;
border-radius:90px;
margin:0 auto;
margin-top:30px;
margin-bottom:20px;
}

/*faculty option desing*/


.facultyoption{}
.attn{
margin-bottom:20px;
}
hr{<height:3></height:3>px;color:#ddd;margin:0;}
table.att_tab{
border:3px solid #ddd;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:27


University Management System

}
table.att_tab tr,td,th{
border:2px solid #ddd;
border-collapse:collapse;
padding:8px;
}
.attn select{
width:176px;
}
.attmanage{
float:left;
width:499px;
}
.attmanage form{
padding-left:110px;
}

input[type=radio]:checked ~ .atd {
border: 5px solid #0DFF92;
}

input[type=radio]:checked ~ .atd::before{
background: #0DFF92;
}

/*end admin page style*/


/* ==========================================================================
Helper classes
========================================================================== */

/*
* Hide visually and from screen readers
*/
/*stick a div*/
#sticker {
background:#2A2B3C;
}
.stick {
position:fixed;
top:0px;
}
#stickerside {
background:#2A2B3C;
}
.stickside {
position:fixed;
left:175px;
}

.hidden {
display: none !important;
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:28


University Management System

/*
* Hide only visually, but have it available for screen readers:
* http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*/

.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:29


University Management System

.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}

.clearfix:after {
clear: both;
}

/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */

@media only screen and (min-width: 35em) {


/* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}

/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
http://www.phpied.com/delay-loading-your-print-css/
========================================================================== */

@media print {
*,
*:before,
*:after,
*:first-letter,
*:first-line {
background: transparent !important;
color: #000 !important; /* Black prints faster:
http://www.sanbeiji.com/archives/953 */
box-shadow: none !important;
text-shadow: none !important;
}

a,
a:visited {
text-decoration: underline;
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:30


University Management System

a[href]:after {
content: " (" attr(href) ")";
}

abbr[title]:after {
content: " (" attr(title) ")";
}

/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/

a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}

pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}

/*
* Printing Tables:
* http://css-discuss.incutio.com/wiki/Printing_Tables
*/

thead {
display: table-header-group;
}

tr,
img {
page-break-inside: avoid;
}

img {
max-width: 100% !important;
}

p,
h2,
h3 {
orphans: 3;
widows: 3;
}

h2,
h3 {
page-break-after: avoid;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:31


University Management System

}
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:32


University Management System

Normalize CSS
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}

/**
* Remove default margin.
*/

body {
margin: 0;
}

/* HTML5 display definitions


========================================================================== */

/**
* Correct `block` display not defined for any HTML5 element in IE 8/9.
* Correct `block` display not defined for `details` or `summary` in IE 10/11
* and Firefox.
* Correct `block` display not defined for `main` in IE 11.
*/

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}

/**
* 1. Correct `inline-block` display not defined in IE 8/9.
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
*/

audio,
canvas,
progress,
video {
display: inline-block; /* 1 */
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:33
University Management System

vertical-align: baseline; /* 2 */
}

/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/

audio:not([controls]) {
display: none;
height: 0;
}

/**
* Address `[hidden]` styling not present in IE 8/9/10.
* Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
*/

[hidden],
template {
display: none;
}

/* Links
========================================================================== */

/**
* Remove the gray background color from active links in IE 10.
*/

a{
background-color: transparent;
}

/**
* Improve readability of focused elements when they are also in an
* active/hover state.
*/

a:active,
a:hover {
outline: 0;
}

/* Text-level semantics
========================================================================== */

/**
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
*/

abbr[title] {

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:34


University Management System

border-bottom: 1px dotted;


}

/**
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
*/

b,
strong {
font-weight: bold;
}

/**
* Address styling not present in Safari and Chrome.
*/

dfn {
font-style: italic;
}

/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari, and Chrome.
*/

h1 {
font-size: 2em;
margin: 0.67em 0;
}

/**
* Address styling not present in IE 8/9.
*/

mark {
background: #ff0;
color: #000;
}

/**
* Address inconsistent and variable font size in all browsers.
*/

small {
font-size: 80%;
}

/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/

sub,

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:35


University Management System

sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}

sup {
top: -0.5em;
}

sub {
bottom: -0.25em;
}

/* Embedded content
========================================================================== */

/**
* Remove border when inside `a` element in IE 8/9/10.
*/

img {
border: 0;
}

/**
* Correct overflow not hidden in IE 9/10/11.
*/

svg:not(:root) {
overflow: hidden;
}

/* Grouping content
========================================================================== */

/**
* Address margin not present in IE 8/9 and Safari.
*/

figure {
margin: 1em 40px;
}

/**
* Address differences between Firefox and other browsers.
*/

hr {
box-sizing: content-box;
height: 0;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:36


University Management System

/**
* Contain overflow in all browsers.
*/

pre {
overflow: auto;
}

/**
* Address odd `em`-unit font size rendering in all browsers.
*/

code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}

/* Forms
========================================================================== */

/**
* Known limitation: by default, Chrome and Safari on OS X allow very limited
* styling of `select`, unless a `border` property is set.
*/

/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/

button,
input,
optgroup,
select,
textarea {
color: inherit; /* 1 */
font: inherit; /* 2 */
margin: 0; /* 3 */
}

/**
* Address `overflow` set to `hidden` in IE 8/9/10/11.
*/

button {

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:37


University Management System

overflow: visible;
}

/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
* Correct `select` style inheritance in Firefox.
*/

button,
select {
text-transform: none;
}

/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}

/**
* Re-set default cursor for disabled elements.
*/

button[disabled],
html input[disabled] {
cursor: default;
}

/**
* Remove inner padding and border in Firefox 4+.
*/

button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}

/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:38


University Management System

* the UA stylesheet.
*/

input {
line-height: normal;
}

/**
* It's recommended that you don't attempt to style these elements.
* Firefox's implementation doesn't respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/

input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}

/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}

/**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
*/

input[type="search"] {
-webkit-appearance: textfield; /* 1 */
box-sizing: content-box; /* 2 */
}

/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:39


University Management System

/**
* Define consistent border, margin, and padding.
*/

fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}

/**
* 1. Correct `color` not being inherited in IE 8/9/10/11.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/

legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}

/**
* Remove default vertical scrollbar in IE 8/9/10/11.
*/

textarea {
overflow: auto;
}

/**
* Don't inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/

optgroup {
font-weight: bold;
}

/* Tables
========================================================================== */

/**
* Remove most spacing between table cells.
*/

table {
border-collapse: collapse;
border-spacing: 0;
}

td,
th {

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:40


University Management System

padding: 0;
}

Plugins JS
(function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
];
var length = methods.length;
var console = (window.console = window.console || {});

while (length--) {
method = methods[length];

// Only stub undefined methods.


if (!console[method]) {
console[method] = noop;
}
}
}());

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:41


University Management System

Configuration PHP
<?php
class databaseConnection{
public function __construct(){
global $conn;
$conn = new mysqli("localhost", "root", "" , "uni");
//check error
if(!$conn){
die("Database cannot established connection properly: " . $conn->connect_error());
}

}
}

?>

Functions PHP

<?php
class login_registration_class{
public function __construct(){
$db = new databaseConnection();
}

//All function for Student

//function for student registration


public function
st_registration($st_id,$st_name,$st_pass,$st_email,$bday,$st_dept,$st_contact,$st_gender,$st_add){
global $conn;
$query = $conn->query("select st_id from st_info where st_id='$st_id' or email ='$st_email' ");

$num = $query->num_rows;
$in_sql = "INSERT INTO st_info (st_id,name,password,email,bday,program,contact,gender,address)
VALUES ('$st_id','$st_name','$st_pass','$st_email','$bday','$st_dept','$st_contact','$st_gender','$st_add') ";
if($num == 0){
$conn->query($in_sql);
return true;
}else{
return false;
}
}

//function for student login


public function st_userlogin($st_id, $st_pass){
global $conn;
$sql = "SELECT st_id,name FROM st_info WHERE st_id='$st_id' and password='$st_pass'";
$result = $conn->query($sql);
$userdata = $result->fetch_assoc();
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:42
University Management System

$count = $result->num_rows;
if($count == 1){
session_start();
$_SESSION['st_login'] = true;
$_SESSION['sid'] = $userdata['st_id'];
$_SESSION['sname'] = $userdata['name'];
//$_SESSION['login_msg'] = "Login Success";
return true;
}else{
return false;
}

//function for get student Name


public function getusername($sid){
global $conn;
$query = $conn->query("select name from st_info where st_id='$sid'");
$result = $query->fetch_assoc();
echo $result['name'];
}
// Get all info of a specific student by Student ID
public function getuserbyid($st_id){
global $conn;
$query = $conn->query("select * from st_info where st_id='$st_id'");
return $query;
}
//Update Student Profile
public function updateprofile($sid,$st_name,$st_email,$st_dept,$st_gender,$st_contact,$st_add,$file){
global $conn;
$query = $conn->query("update st_info set
name='$st_name',email='$st_email',program='$st_dept',gender='$st_gender',contact='$st_contact',
address='$st_add',img='$file' where st_id='$sid'");
return true;
}

//Change Student Password


public function updatePassword($sid, $newpass, $oldpass){
global $conn;
$query = $conn->query("select st_id from st_info where st_id='$sid' and password='$oldpass' ");
$count = $query->num_rows;
if($count == 0){
return print("<p style='color:red;text-align:center'>old password not exist.</p>");
}else{
$update = $conn->query("update st_info set password='$newpass' where st_id='$sid' ");
return print("<p style='color:green;text-align:center'>Password changed successfully.</p>");
}
}
//Session Unset for Student info //Log out option
public function st_logout(){
$_SESSION['st_login'] = false;
unset($_SESSION['sid']);

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:43


University Management System

unset($_SESSION['sname']);
unset($_SESSION['st_login']);

//session_destroy();
}
public function getsession(){
return @$_SESSION['st_login'];
}

//Ends student releted function

/**
---------------------------------
All functions for faculty section
---------------------------------
**/
public function fct_registration($name,$uname, $pass,$email, $bday,$gender,$edu,$contact,$address){
global $conn;
$fct = $conn->query("select id from faculty where username='$uname' ");
$count = $fct->num_rows;
if($count == 0){
$sql = "insert into faculty(name,username,password,email,birthday,gender,education,contact,address)
values('$name','$uname','$pass','$email','$bday','$gender','$edu','$contact','$address')";
$result = $conn->query($sql);
return true;
}else{
return false;
}
}
//get faculty
public function get_faculty_by_username($uname){
global $conn;
$sql = "select * from faculty where username='$uname'";
$result = $conn->query($sql);
return $result;
}
public function get_faculty(){
global $conn;
$sql = "select * from faculty order by id ASC";
$result = $conn->query($sql);
return $result;
}
//login for faculty
public function fct_login($uname, $pass){
global $conn;
$sql = "select id,username,name from faculty where username='$uname' and password='$pass' ";
$result = $conn->query($sql);
$count = $result->num_rows;
$fctinfo = $result->fetch_assoc();
if($count == 1){
session_start();
$_SESSION['fct_login'] = true;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:44


University Management System

$_SESSION['f_id'] = $fctinfo['id'];
$_SESSION['f_uname'] = $fctinfo['username'];
$_SESSION['f_name'] = $fctinfo['name'];
return true;
}else{
return false;
}
}
public function faculty_logout(){
$_SESSION['fct_login'] = false;
unset($_SESSION['f_id']);
unset($_SESSION['f_uname']);
unset($_SESSION['f_name']);
unset($_SESSION['fct_login']);
}
public function get_faculty_session(){
return @$_SESSION['fct_login'];
}

/*
**********************
----------------------
All functions for Admin
----------------------
**********************
*/

//for getting All student infomation


public function get_all_student(){
global $conn;
$sql = "select * from st_info order by st_id ASC";
$query = $conn->query($sql);
return $query;
}
//search student
//Search Query
public function search($query){
global $conn;
$result = $conn->query("SELECT * FROM st_info WHERE (st_id LIKE '%".$query."%'
OR name LIKE '%".$query."%'
OR contact LIKE '%".$query."%'
OR email LIKE '%".$query."%') order by st_id");
return $result;
}

//Admin log in function


public function admin_userlogin($username, $password){
global $conn;
$sql = "select id,username from admin where username='$username' and password='$password'";
$result = $conn->query($sql);
$admin_info = $result->fetch_assoc();
$count = $result->num_rows;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:45


University Management System

if($count == 1){
session_start();
$_SESSION['admin_login'] = true;
$_SESSION['admin_id'] = $admin_info['id'];
$_SESSION['admin_name'] = $admin_info['username'];
return true;
}else{
return false;
}

}
public function get_admin_session(){
return @$_SESSION['admin_login'];
}
//admin logout
public function admin_logout(){
$_SESSION['admin_login'] = false;
unset($_SESSION['admin_id']);
unset($_SESSION['admin_name']);
unset($_SESSION['admin_login']);
}
//delete student
public function delete_student($st_id){
global $conn;
$sql = "delete from st_info where st_id='$st_id' ";
$result = $conn->query($sql);
if($result){
return true;
}else{
return false;
}
}
//attendance system

public function attn_student(){


global $conn;
$sql = "select * from at_student";
$result = $conn->query($sql);
return $result;
}
public function add_attn_student($name,$stid){
global $conn;
$sql = "insert into at_student(name,st_id) values('$name','$stid')";
$result = $conn->query($sql);

$sql2 = "insert into attn(st_id) values('$stid')";


$result = $conn->query($sql2);
return $result;
}
public function insertattn($cur_date,$atten = array()){
global $conn;
$sql = "select distinct at_date from attn";

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:46


University Management System

$result = $conn->query($sql);
while($row = $result->fetch_assoc()){
$db_date = $row['at_date'];
if($cur_date == $db_date){
return false;
}
}
foreach($atten as $key =>$attn_value ){
if($attn_value == "present"){
$sql = "insert into attn(st_id,atten,at_date) values('$key','present','$cur_date')";
$att_res = $conn->query($sql);
}elseif($attn_value == "absent"){
$sql = "insert into attn(st_id,atten,at_date) values('$key','absent','$cur_date')";
$att_res = $conn->query($sql);
}
}
if($att_res){
return true;
}else{
return false;
}

}
public function delete_atn_student($at_id){
global $conn;
$res = $conn->query("delete from at_student where id = '$at_id' ");
return $res;
}
public function get_attn_date(){
global $conn;
$res = $conn->query("select distinct at_date from attn ");
return $res;

}
public function attn_all_student($date){
global $conn;
$res = $conn->query("select at_student.name, attn.*
from at_student
inner join attn
on at_student.st_id = attn.st_id
where at_date = '$date' ");
return $res;
}
public function update_attn($date,$atten){
global $conn;
foreach($atten as $key =>$attn_value ){
if($attn_value == "present"){
$sql = "update attn set atten='present' where st_id='$key' and at_date='$date' ";
$att_res = $conn->query($sql);
}elseif($attn_value == "absent"){
$sql = "update attn set atten='absent' where st_id='$key' and at_date='$date' ";
$att_res = $conn->query($sql);

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:47


University Management System

}
}
if($att_res){
return true;
}else{
return false;
}
}
//grading system
public function add_marks($stid,$subject,$semester,$marks){
global $conn;
$qry = "select * from result where st_id='$stid' and sub='$subject' and semester='$semester' ";
$query = $conn->query($qry);
$count = $query->num_rows;
if($count>0){
return false;
}else{
$sql = "insert into result(st_id,marks,sub,semester) values('$stid','$marks','$subject','$semester')";
$result = $conn->query($sql);
return $result;
}
}
//show marks
public function show_marks($stid,$semester){
global $conn;
$result = $conn->query("select * from result where st_id='$stid' and semester='$semester' ");
$count = $result->num_rows;
if($count>0){
return $result;
}else{
return false;
}

}
//update student result
public function update_result($stid,$subject = array(),$semester){
global $conn;
foreach($subject as $key =>$mark ){
$sql = "update result set marks='$mark' where st_id='$stid' and semester='$semester' and sub='$key'
";
$result = $conn->query($sql);
}
if($result){
return true;
}else{
return false;
}
}
public function view_cgpa($stid){
global $conn;
$sql = "select * from result where st_id='$stid'";
$result = $conn->query($sql);

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:48


University Management System

return $result;
}

/* Total average marks


public function sgpa(){
global $conn;
$sql = "SELECT avg(marks) as sgpa from result where st_id=12103072 and semester='1st'";
$result = $conn->query($sql);
return $result;
}
*/

//end class
};

?>

Headertop Admin PHP

<!Doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php echo $pageTitle; ?></title>
<meta name="description" content="University Management system">
<meta name="author" content="Md Abul Kalam">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">


<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="fonts/stylesheet.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="plugins/file-uploader/css/jquery.fileupload.css">
<link rel="stylesheet" href="plugins/file-uploader/css/jquery.fileupload-ui.css">
<script src="js/vendor/jquery-1.12.0.min.js"></script>
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a
href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:49
University Management System

<!-- Add your site or application content here -->


<header class="container header_area" style="background-color: skyblue">
<div id="sticker">
<div class="head">
<!-- <a href="# "><div class="logo fix">
<img src="img/logo.png" alt="" />
</div></a> -->
<div style="color: white;margin-left: 20px">
<h2>University Management System</h2>
</div>
</div>
<div class="menu ">
<div class="dateshow fix"><p><?php echo "Date : ".date("d M Y"); ?></p></div>
<ul>
<?php if($user->get_admin_session()){ ?>
<li><a href="admin_logout.php"><i class="fa fa-sign-out" aria-hidden="true"></i>
Logout</a></li>
<li><a href="admin.php"><i class="fa fa-cog" aria-hidden="true"></i> Options</a></li>
<li><a href="admin.php"><i class="fa fa-user" aria-hidden="true"></i>
<?php echo $admin_name; ?>
</a></li>

<?php } ?>
</ul>

</div>
</div>
</header>
<div class="info container fix">

Headertop Faculty PHP

<!Doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php echo $pageTitle; ?></title>
<meta name="description" content="University Management system">
<meta name="author" content="Md Abul Kalam">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">


<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="fonts/stylesheet.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:50
University Management System

<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a
href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->


<header class="container header_area" >
<div id="sticker">
<div class="head">
<a href="# "><div class="logo fix">
<img src="img/logo.png" alt="" />
</div></a>
<div class="uniname fix">
<h2>University Management System</h2>
</div>
</div>
<div class="menu ">
<div class="dateshow fix"><p><?php echo "Date : ".date("d M Y"); ?></p></div>
<ul>
<?php if($user->getsession()){ ?>
<li><a href="st_logout.php"><i class="fa fa-sign-out" aria-hidden="true"></i>
Logout</a></li>
<li><a href="st_change_pass.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Change
Password</a></li>
<li><a href="st_result.php"><i class="fa fa-sign-out" aria-hidden="true"></i>
Result</a></li>
<li><a href="st_profile.php"><i class="fa fa-user" aria-hidden="true"></i>
<?php echo $sid; ?>
</a></li>

<?php } ?>
</ul>

</div>
</div>
</header>
<div class="info container fix">

Headertop PHP

<!Doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php echo $pageTitle; ?></title>
<meta name="description" content="University Management system">
<meta name="author" content="Md Abul Kalam">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:51


University Management System

<link rel="stylesheet" href="css/normalize.css">


<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="fonts/stylesheet.css">
<link rel="stylesheet" href="css/main.css">

<link rel="stylesheet" href="plugins/file-uploader/css/jquery.fileupload.css">


<link rel="stylesheet" href="plugins/file-uploader/css/jquery.fileupload-ui.css">
<script src="js/vendor/jquery-1.12.0.min.js"></script>
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a
href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->


<header class="container header_area" style="background-color:skyblue">
<div id="sticker">
<div class="head">
<!-- <a href="#"><div class="logo fix">
<img src="img/logo.png" alt="" />
</div></a> -->
<div style="color: white;margin-left: 20px">
<h2>University Management System</h2>
</div>
</div>
<div class="menu ">
<div class="dateshow fix"><p><?php echo "Date : ".date("d M Y"); ?></p></div>
<ul>
<?php if($user->getsession()){ ?>
<li><a href="st_logout.php"><i class="fa fa-sign-out" aria-hidden="true"></i>
Logout</a></li>
<li><a href="st_change_pass.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Change
Password</a></li>
<li><a href="view_single_result.php?vr=<?php echo $sid?>&vn=<?php echo $sname?>"><i
class="fa fa-sign-out" aria-hidden="true"></i> Result</a></li>
<li><a href="st_profile.php"><i class="fa fa-user" aria-hidden="true"></i> <?php echo $sid;
?></a></li>
<?php } ?>
<?php if($user->get_faculty_session()){ ?>
<li><a href="facultylogout.php"><i class="fa fa-sign-out" aria-hidden="true"></i>
Logout</a></li>
<li><a href="class_att_fc.php"><i class="fa fa-cog" aria-hidden="true"></i>
Options</a></li>
<li><a href="fct_single_profile.php"><i class="fa fa-user" aria-hidden="true"></i>
<?php echo $fname;
?></a></li>

<?php } ?>
</ul>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:52


University Management System

</div>
</div>
</header>
<div class="info container fix">

Add Result PHP

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
if(isset($_REQUEST['ar'])){
$stid = $_REQUEST['ar'];
$name = $_REQUEST['vn'];
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop_admin.php";
?>
<div class="all_student fix">

<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$subject = $_POST['subject'];
$semester = $_POST['semester'];
$marks = $_POST['marks'];
$res = $user->add_marks($stid,$subject,$semester,$marks);
if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Marks successfully
inserted!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed to insert data</p>";
}
}

//SELECT avg(marks) as sgpa from result where st_id=10 and semester="1sr"


?>
<div>
<p style="text-align:center;color:#fff;background:purple;margin:0;padding:8px;"><?php echo "Name:
".$name."<br>Student ID: " . $stid; ?></p>
</div>
<div style="width:40%;margin:50px auto">

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:53


University Management System

<table class="tab_one" style="text-align:center;">


<form action="" method="post">
<table>
<tr>
<td>Select Subject: </td>
<td>
<select name="subject" id="">
<option value="DBMS">Database management</option>
<option value="DBMS Lab">DBMS Lab</option>
<option value="Mathematics">Mathematics</option>
<option value="Programming">Programming</option>
<option value="Programming Lab">Programming Lab</option>
<option value="English">English</option>
<option value="Physics">Physics</option>
<option value="Chemistry">Chemistry</option>
<option value="Psychology">Psychology</option>

</select>
</td>
</tr>
<tr>
<td>Select Semester: </td>
<td>
<select name="semester" id="">
<option value="1st">1st semester</option>
<option value="2nd">2nd semester</option>
<option value="3rd">3rd semester</option>
</select>
</td>
</tr>
<tr>
<td>Input marks: </td>
<td><input type="text" name="marks" placeholder="enter marks" required /></td>
</tr>
<tr>
<td><input type="submit" name="sub" value="Add marks" /></td>
<td><input type="reset" /></td>
</tr>
</table>

</form>
</table>

</div>
<div class="back fix">
<p style="text-align:center"><a href="st_result.php"><button class="editbtn">Back to
list</button></a></p>
</div>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:54


University Management System

Admin all faculty PHP

<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}

?>
<?php
$pageTitle = "All Faculty details";
include "php/headertop_admin.php";
?>
<div class="all_student">
<div class="search_st">
<div class="hdinfo"><h3>All Registered Faculty List</h3></div>

</div>

<table class="tab_one">
<tr>
<th>SL</th>
<th>Name</th>
<th>Email</th>
<th>Contact</th>
<th>Education</th>
<th>Address</th>
<th>Birthday</th>
</tr>
<?php
$i=0;
$alluser =$user->get_faculty();

while($rows = $alluser->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['email'];?></td>
<td><?php echo $rows['contact'];?></td>
<td><?php echo $rows['education'];?></td>
<td><?php echo $rows['address'];?></td>
<td><?php echo $rows['birthday'];?></td>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:55
University Management System

</tr>
<?php } ?>
</table>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Admin all Students PHP

<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}

?>
<?php
$pageTitle = "All student details";
include "php/headertop_admin.php";
?>
<div class="all_student">
<div class="search_st">
<div class="hdinfo"><h3>All Registered Student List</h3></div>

<div class="search">
<form action="admin_search_student.php" method="GET">
<input type="text" name="src_student" placeholder="search student" />
<input type="submit" value="Search" />
</form>
</div>
</div>
<?php
if(isset($_REQUEST['res'])){
if($_REQUEST['res']==1){
echo "<h3 style='color:green;text-align:center;margin:0;padding:10px;'>Data deleted
successfully</h3>";
}
}

?>
<table class="tab_one">
<tr>
<th>SL</th>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:56
University Management System

<th>Name</th>
<th>ID</th>
<th>Show Profile</th>
<th>Edit</th>
<th>Delete</th>
<th>Photo</th>
</tr>
<?php
$i=0;
$alluser = $user->get_all_student();

while($rows = $alluser->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td><a href="admin_single_student.php?id=<?php echo $rows['st_id'];?>">View
Details</a></td>
<td><a href="admin_single_student_update.php?id=<?php echo $rows['st_id'];?>">Edit</a></td>
<td><a href="admin_delete_student.php?id=<?php echo $rows['st_id'];?>">Delete</a></td>
<td><img src="img/student/<?php echo $rows['img'];?>" width="50px" height="50px"
title="<?php echo $rows['name'];?>" /></td>
</tr>
<?php } ?>
</table>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Admin delete student PHP

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(isset($_REQUEST['id'])){
$st_id = $_REQUEST['id'];
}

if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}

$delete =$user->delete_student($st_id);
if($delete){
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:57
University Management System

header('Location: admin_all_student.php?res=1');
exit();
}
?>

Admin logout

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$user->admin_logout();
header('Location: index.php');
exit();
?>

Admin search student

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}

?>
<?php
$pageTitle = "All student details";
include "php/headertop_admin.php";
?>
<div class="search_result">

<table class="tab_one">

<?php
$key = $_GET['src_student'];
$min_length = 1;
if(strlen($key) >= $min_length){
$key = htmlspecialchars($key);
$src_result = $user->search($key);
$count = $src_result->num_rows;
if($count>0){
?>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:58
University Management System

<tr>
<th>Name</th>
<th>ID</th>
<th>Show Profile</th>
<th>Edit</th>
<th>Delete</th>
<th>Photo</th>
</tr>
<?php
while($rows = $src_result->fetch_assoc()){
?>

<tr>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td><a href="admin_single_student.php?id=<?php echo $rows['st_id'];?>">View
Details</a></td>
<td><a href="admin_single_student_update.php?id=<?php echo $rows['st_id'];?>">Edit</a></td>
<td><a href="admin_delete_student.php?id=<?php echo $rows['st_id'];?>">Delete</a></td>
<td><img src="img/student/<?php echo $rows['img'];?>" width="50px" height="50px"
title="<?php echo $rows['name'];?>" /></td>
</tr>

<?php } ?>
</table>
<?php
}else{
echo "<h2 style='font-size:45px;text-align:center;color:#ddd;'>Opps....No result found !</h2>";
}

}else{
echo "<h2 style='font-size:45px;text-align:center;color:#ddd;'>Opps....No result found !</h2>";
}
?>
<div class="back fix">
<p style="text-align:center"><a href="admin_all_student.php"><button class="editbtn">Back to
student list</button></a></p>
</div>
</div>
<?php include "php/footerbottom.php";?>

Admin single student

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(isset($_REQUEST['id'])){
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:59
University Management System

$st_id = $_REQUEST['id'];
}else{
header('Location: admin.php');
exit();
}

if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "Student Details";
include "php/headertop_admin.php";
?>
<script>
function PreviewImage(upname, prv_id) {
var oFReader = new FileReader();
oFReader.readAsDataURL(document.getElementsByName(upname)[0].files[0]);

oFReader.onload = function (oFREvent) {


document.getElementById(prv_id).src = oFREvent.target.result;
};
};

</script>

<div class="profile">
<h3 style="font-size:18px;text-
align:center;background:#1abc9c;color:#fff;padding:10px;margin:0">Update Profile</h3>
<?php
$qry=$user->getuserbyid($st_id);
$pic=$qry->fetch_assoc();
$piclocation=$pic['img'];

if($_SERVER['REQUEST_METHOD'] == "POST"){
//code for img
function guid() {
if (function_exists('com_create_guid')) {
return com_create_guid();
} else {
mt_srand((double) microtime() * 10000); //optional for php 4.2.0 and up.
$charid = strtoupper(md5(uniqid(rand(), true)));
$hyphen = chr(45); // "-"
$uuid = chr(123)// "{"
. substr($charid, 0, 8) . $hyphen
. substr($charid, 8, 4) . $hyphen
. substr($charid, 12, 4) . $hyphen
. substr($charid, 16, 4) . $hyphen
. substr($charid, 20, 12)
. chr(125); // "}"
return $uuid;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:60


University Management System

}
}
if($_FILES["personal_image"]["name"])
{
$path_parts = pathinfo($_FILES["personal_image"]["name"]);
$ext = $path_parts['extension'];
$fileName = trim(guid(), '{}') . '.' . $ext;
}
else{
$fileName = $piclocation;
}

move_uploaded_file($_FILES['personal_image']['tmp_name'], "img/student/$fileName");

//end img
$st_name = $_POST['st_name'];
$st_email = $_POST['st_email'];
$st_dept = $_POST['st_dept'];
$st_contact = $_POST['st_contact'];
$st_gender = $_POST['st_gender'];
$st_add = $_POST['st_add'];
if(empty($st_name) or empty($st_email) or empty($st_contact) or empty($st_dept) or
empty($st_gender) or empty($st_add)){
echo "<p style='color:red;text-align:center'>Field must not be empty.</p>";
}else{
$update = $user-
>updateprofile($st_id,$st_name,$st_email,$st_dept,$st_gender,$st_contact,$st_add,$fileName);
if($update){
echo "<h4 style='color:green;text-align:center'>Information Updated
successfully</h4>";
}else{
echo "<h4 style='color:red;text-align:center;text-align:center'>Failed to update</h4>";
}
}
}
?>

<div class="st_update fix">


<form action="" method="post" enctype="multipart/form-data">
<?php
$result = $user->getuserbyid($st_id);
while($row = $result->fetch_assoc()){
?>
<table class="tab_one" >
<tr>
<td style="width:250px;"></td>
<td>Photo</td>
<td>
<img id="logo_preview" src="img/student/<?php echo $row['img']?>"
style="height:150px; width:150px; border:1px green solid;"><br><br>
<input type="file" name="personal_image" id="spic"

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:61


University Management System

onchange="PreviewImage('personal_image', 'logo_preview')" />


</td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Name:</td>
<td><input type="text" name="st_name" value="<?php echo $row['name'];?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>E-mail:</td>
<td><input type="email" name="st_email" value="<?php echo $row['email']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Program:</td>
<td><input type="text" name="st_dept" value="<?php echo $row['program']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Contact:</td>
<td><input type="text" name="st_contact" value="<?php echo $row['contact']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Gender:</td>
<td><input type="text" name="st_gender" value="<?php echo $row['gender']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Address:</td>
<td><input type="text" name="st_add" value="<?php echo $row['address']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td></td>
<td colspan="2">
<input style="background:#3498db;color:#fff;width:168px;border-radius:5px;"
type="submit" name="Update" value="Update">
</td>
</tr>
</table>
<?php } ?>
</form>
</div>
<div class="back fix">
<p style="text-align:center"><a href="admin_all_student.php"><button class="editbtn">Back to
student Profile</button></a></p>
</div>
</div>

<?php include "php/footerbottom.php";?>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:62


University Management System

Admin single student update

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(isset($_REQUEST['id'])){
$st_id = $_REQUEST['id'];
}else{
header('Location: admin.php');
exit();
}

if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "Student Details";
include "php/headertop_admin.php";
?>
<div class="profile">
<p style="font-size:18px;text-
align:center;background:#1abc9c;color:#fff;padding:10px;margin:0"><?php $user->getusername($st_id); ?>
<i class="fa fa-check-circle" aria-hidden="true"></i></p>
<table class="tab_one">
<?php
$getuser = $user->getuserbyid($st_id);
while($row = $getuser->fetch_assoc()){
?>
<tr>
<td></td>
<?php if(empty($row['img'])){?>
<td><img src="img/default.png" style="height:180px; width:180px; border:1px #1ABC9C
solid;border-radius:90px" alt="" /></td>
<?php }else{ ?>
<td><img src="img/student/<?php echo $row['img']; ?>" style="height:180px; width:180px;
border:1px #1ABC9C solid;border-radius:90px" alt="" /></td>
<?php }?>
</tr>
<tr>
<td>Student ID: </td>
<td><?php echo $row['st_id']; ?></td>
</tr>
<tr>
<td>Name: </td>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:63
University Management System

<td><?php echo $row['name']; ?></td>


</tr>
<tr>
<td>E-mail: </td>
<td><?php echo $row['email']; ?></td>
</tr>
<tr>
<td>Birthday: </td>
<td><?php echo $row['bday']; ?></td>
</tr>
<tr>
<td>Program: </td>
<td><?php echo $row['program']; ?></td>
</tr>
<tr>
<td>Contact: </td>
<td><?php echo $row['contact']; ?></td>
</tr>
<tr>
<td>Gender: </td>
<td><?php echo $row['gender']; ?></td>
</tr>
<tr>
<td>Address: </td>
<td><?php echo $row['address']; ?></td>
</tr>
<tr>
<td>Update Profile: </td>
<td><a href="admin_single_student_update.php?id=<?php echo $row['st_id'];?>"><button
class="editbtn">Edit Profile</button></a></td>
</tr>
<?php } ?>
</table>
<div class="back fix">
<p style="text-align:center"><a href="admin_all_student.php"><button class="editbtn">Back to
student list</button></a></p>
</div>

</div>

<?php include "php/footerbottom.php";?>

Att add

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:64
University Management System

$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "All student details";
include "php/headertop_admin.php";
?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c">Attendance
Management</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="float:left;"><button
style="background:#58A85D;border:none;color:#fff;padding:10px;"><a style="color:#fff;"
href="att_add.php">Add student</a></button></span>
<span style="float:right;"> <button
style="background:#58A85D;border:none;color:#fff;padding:10px;"><a style="color:#fff;"
href="class_att.php">Back</a></button></span>
</div>
<?php
if(isset($_POST['sub'])){
$name = $_POST['name'];
$stid = $_POST['stid'];

$add = $user->add_attn_student($name,$stid);
if($add){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Successfull!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed</p>";
}
}

?>
<div style="margin-left:330px;padding-top:30px;">
<table>
<form action="" method="post">
<table>
<tr>
<td>Student Name: </td>
<td><input type="text" name="name" required/></td>
</tr>
<tr>
<td>Student Id: </td>
<td><input type="text" name="stid" required /></td>
</tr>
<tr>
<td><input type="submit" name="sub" value="Add student" /></td>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:65


University Management System

<td><input type="reset" /></td>


</tr>
</table>

</form>

</div>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Att del

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
if(isset($_REQUEST['dl'])){
$at_id = $_REQUEST['dl'];
}

$delete =$user->delete_atn_student($at_id);
if($delete){
header('Location: class_att.php?res=1');
exit();
}
?>

Att single view

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:66


University Management System

if(isset($_REQUEST['dt'])){
$date = $_REQUEST['dt'];
}
?>
<?php
$pageTitle = "All student details";
include "php/headertop_admin.php";
?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c">Attendance
Management</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="float:left;"><a style="color:#fff;" href="class_att.php"><button
style="background:#58A85D;border:none;color:#fff;padding:10px;">Take
Attendance</button></a></span>
<span style="float:right;"><a style="color:#fff;" href="att_view.php"> <button
style="background:#58A85D;border:none;color:#fff;padding:10px;">View
Attendance</button></a></span>
</div>
<p style="text-align:center;color:#34495e;margin:0;padding-top:8px;color:red;font-size:22px;">
<?php echo "Attendance of: ".$date;?>
</p>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$atten = $_POST['attn'];
$res = $user->update_attn($date,$atten);
if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Attendance Updated
successfully!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed to update data</p>";
}
}

?>

<form action="" method="post">

<table class="tab_one" style="text-align:center;">


<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;">Name</th>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">Attendance</th>

</tr>
<?php
$i=0;
$std = $user->attn_all_student($date);
//var_dump($std);
if($std){

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:67


University Management System

while($rows = $std->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td>
<label style="color:red;font-size:20px"><input type="radio" name="attn[<?php echo
$rows['st_id'];?>]" value="absent" <?php if($rows['atten'] == "absent") echo "checked";?>/>Absent</label>

<label style="color:green;font-size:20px"> <input type="radio" name="attn[<?php echo


$rows['st_id'];?>]" value="present" <?php if($rows['atten'] == "present") echo
"checked";?>/>Present</label>
</td>
</tr>
<?php

} }else echo "failed";


?>

</table>

<center>
<span><input style="<text-align:right></text-
align:right>;background:#58A85D;border:none;color:#fff;padding:8px 100px;" type="submit"
name="submit" value="Update" /></span>
</center>

</form>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Att single view fc

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$fid = $_SESSION['f_id'];
$funame = $_SESSION['f_uname'];
$fname = $_SESSION['f_name'];
if(!$user->get_faculty_session()){
header('Location: facultylogin.php');
exit();
}
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:68
University Management System

if(isset($_REQUEST['dt'])){
$date = $_REQUEST['dt'];
}
?>
<?php
$pageTitle = "Attendance details";
include "php/headertop.php";
?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c">View Attendance
Details</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="float:left;"><a style="color:#fff;" href="class_att_fc.php"><button
style="background:#58A85D;border:none;color:#fff;padding:10px;">Take Attendance</button></a></span>
<span style="float:right;"><a style="color:#fff;" href="att_view_fc.php"> <button
style="background:#58A85D;border:none;color:#fff;padding:10px;">View Attendance</button></a></span>
</div>
<p style="text-align:center;color:#34495e;margin:0;padding-top:8px;color:red;font-size:22px;">
<?php echo "Attendance of: ".$date;?>
</p>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$atten = $_POST['attn'];
$res = $user->update_attn($date,$atten);
if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Attendance Updated
successfully!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed to update data</p>";
}
}

?>

<form action="" method="post">

<table class="tab_one" style="text-align:center;">


<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;">Name</th>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">Attendance</th>

</tr>
<?php
$i=0;
$std = $user->attn_all_student($date);
//var_dump($std);
if($std){

while($rows = $std->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:69
University Management System

<td><?php echo $rows['st_id'];?></td>


<td>
<label style="color:red;font-size:20px"><input type="radio" name="attn[<?php echo $rows['st_id'];?>]"
value="absent" <?php if($rows['atten'] == "absent") echo "checked";?>/>Absent</label>

<label style="color:green;font-size:20px"> <input type="radio" name="attn[<?php echo


$rows['st_id'];?>]" value="present" <?php if($rows['atten'] == "present") echo "checked";?>/>Present</label>
</td>
</tr>
<?php

} }else echo "failed";


?>

</table>
<span style="margin-left:360px;"><input style="<text-align:right></text-
align:right>;background:#58A85D;border:none;color:#fff;padding:8px 100px;" type="submit" name="submit"
value="Update" /></span>

</form>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Att view

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "All student details";
include "php/headertop_admin.php";
?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c">Attendance
Management</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="float:left;"><button
style="background:#58A85D;border:none;color:#fff;padding:10px;"><a style="color:#fff;"
href="att_add.php">Add student</a></button></span>
<span style="float:right;"> <button
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:70
University Management System

style="background:#58A85D;border:none;color:#fff;padding:10px;"><a style="color:#fff;"
href="class_att.php">Take Attendance</a></button></span>
</div>

<table class="tab_one" style="text-align:center;">


<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;"> Attendance Date</th>
<th style="text-align:center;">Action</th>

</tr>
<?php
$i=0;
$get_date = $user->get_attn_date();

while($rows = $get_date->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['at_date'];?></td>
<td><a href="att_single_view.php?dt=<?php echo $rows['at_date']; ?>">View
Attendance</a></td>

</tr>
<?php } ?>

</table>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Att view fc

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$fid = $_SESSION['f_id'];
$funame = $_SESSION['f_uname'];
$fname = $_SESSION['f_name'];
if(!$user->get_faculty_session()){
header('Location: facultylogin.php');
exit();
}
?>
<?php
$pageTitle = "All student details";
include "php/headertop.php";
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:71
University Management System

?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c">View
Attendance</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="float:right;"> <button
style="background:#58A85D;border:none;color:#fff;padding:10px;"><a style="color:#fff;"
href="class_att_fc.php">Take Attendance</a></button></span>
</div>

<table class="tab_one" style="text-align:center;">


<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;"> Attendance Date</th>
<th style="text-align:center;">Action</th>

</tr>
<?php
$i=0;
$get_date = $user->get_attn_date();

while($rows = $get_date->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['at_date'];?></td>
<td><a href="att_single_view_fc.php?dt=<?php echo $rows['at_date']; ?>">View
Attendance</a></td>

</tr>
<?php } ?>

</table>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Class att

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:72
University Management System

}
?>
<?php
$pageTitle = "All student details";
include "php/headertop_admin.php";
?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c">Attendance
Management</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="float:left;"><a style="color:#fff;" href="att_add.php"><button
style="background:#58A85D;border:none;color:#fff;padding:10px;">Add student</button></a></span>
<span style="float:right;"><a style="color:#fff;" href="att_view.php"> <button
style="background:#58A85D;border:none;color:#fff;padding:10px;">View
Attendance</button></a></span>
</div>
<?php
if(isset($_REQUEST['res'])){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Data deleted successfully
!</h3>";
}
?>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$cur_date = $_POST['attndate'];
$atten = $_POST['attn'];
$res = $user->insertattn($cur_date,$atten);
if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Attendance data
successfully inserted!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed to insert data</p>";
}
}

?>

<form action="" method="post">


<p style="text-align:center;color:#34495e;">
<mark>Select date: <input type="date" name="attndate" required/></mark>
</p>
<table class="tab_one" style="text-align:center;">
<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;">Name</th>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">Attendance</th>
<th style="text-align:center;">Delete student</th>

</tr>
<?php
$i=0;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:73


University Management System

$alluser = $user->attn_student();

while($rows = $alluser->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td>
<label style="color:red;font-size:20px"><input type="radio" name="attn[<?php echo
$rows['st_id'];?>]" value="absent" checked/>Absent</label>

<label style="color:green;font-size:20px"> <input type="radio" name="attn[<?php echo


$rows['st_id'];?>]" value="present" />Present</label>
</td>
<td><a href="att_del.php?dl=<?php echo $rows['id']; ?>">Delete</a></td>
</tr>
<?php } ?>

</table>
<center>
<span><input style="<text-align:right></text-
align:right>;background:#58A85D;border:none;color:#fff;padding:8px 100px;" type="submit"
name="submit" value="Submit" /></span> <br>
</center>

</form>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Class att fc

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$fid = $_SESSION['f_id'];
$funame = $_SESSION['f_uname'];
$fname = $_SESSION['f_name'];
if(!$user->get_faculty_session()){
header('Location: facultylogin.php');
exit();
}
?>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:74
University Management System

<?php
$pageTitle = "All student details";
include "php/headertop.php";
?>
<div class="all_student fix">
<h3 style="text-align:center;color:#fff;margin:0;padding:5px;background:#1abc9c"> Take
Attendance</h3>
<div class="fix" style="background:#ddd;padding:20px;">
<span style="text-align:center;"><a style="color:#fff;" href="att_view_fc.php"> <button
style="background:#58A85D;border:none;color:#fff;padding:10px;">View
Attendance</button></a></span>
</div>
<?php
if(isset($_REQUEST['res'])){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Data deleted successfully
!</h3>";
}
?>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$cur_date = $_POST['attndate'];
$atten = $_POST['attn'];
$res = $user->insertattn($cur_date,$atten);
if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Attendance data
successfully inserted!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed to insert data</p>";
}
}

?>

<form action="" method="post">


<p style="text-align:center;color:#34495e;">
<mark>Select date: <input type="date" name="attndate" required/></mark>
</p>
<table class="tab_one" style="text-align:center;">
<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;">Name</th>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">Attendance</th>

</tr>
<?php
$i=0;
$alluser = $user->attn_student();

while($rows = $alluser->fetch_assoc()){
$i++;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:75


University Management System

?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td>
<label style="color:red;font-size:20px"><input type="radio" name="attn[<?php echo
$rows['st_id'];?>]" value="absent" checked/>Absent</label>

<label style="color:green;font-size:20px"> <input type="radio" name="attn[<?php echo


$rows['st_id'];?>]" value="present" />Present</label>
</td>
</tr>
<?php } ?>

</table>
<span style="margin-left:360px;"><input style="<text-align:right></text-
align:right>;background:#58A85D;border:none;color:#fff;padding:8px 100px;" type="submit"
name="submit" value="Submit" /></span>

</form>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

Faculty list

<?php
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();

require('plugins/fpdf/fpdf.php');
require('plugins/fpdf/rotation.php');

class PDF extends PDF_Rotate


{
function Header()
{
//Put the watermark
//$this->SetFont('Arial','B',50);
//$this->SetTextColor(255,192,203);
//$this->RotatedText(65,190,'A p p r o v e d',45);
}
function RotatedText($x, $y, $txt, $angle)
{
//Text rotated around its origin
$this->Rotate($angle,$x,$y);
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:76
University Management System

$this->Text($x,$y,$txt);
$this->Rotate(0);
}
}

//$pdf = new FPDF();


$pdf=new PDF();
$pdf->AddPage();

$iubat='University Management System' ;

$pdf->Image('img/logo.png',10,9,17);
$pdf->Ln();
$pdf-> Cell(20);
$pdf->SetFont('Times','',14);
$pdf->Write(5, $iubat);
$pdf->Ln();
$pdf-> Cell(22);
$pdf->SetFont('Times','',10);
$pdf->Write(4,'Developed by Md Abul Kalam');

$pdf-> Cell(20);
$pdf->SetFont('Times','',8);
$pdf->Write(5,
'_______________________________________________________________________________________
___________________________________________');
$pdf->Ln();
$pdf->Ln();

$pdf-> Cell(85);
$pdf->SetFont('Times','U',10);
$pdf->Write(5, 'Faculty List');
$pdf->Ln();

$pdf->Ln(2);

$pdf-> Cell(5);
$pdf->SetFont('Times','B',8);
$pdf->Cell(8,6,'SL',1);
$pdf->Cell(40,6,'Faculty Name',1);
$pdf->Cell(40,6,'Contact',1);
$pdf->Cell(40,6,'Email',1);
$pdf->Cell(40,6,'Education',1);
$pdf->Ln();

$qry = $user->get_faculty();

$sl=1;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:77


University Management System

while($rec = $qry->fetch_assoc())
{
$pdf-> Cell(5);
$pdf->SetFont('Times','',8);
$pdf->Cell(8,20,$sl,1);
$pdf->Cell(40,20,$rec['name'],1);
$pdf->Cell(40,20,$rec['contact'],1);
$pdf->Cell(40,20,$rec['email'],1);
$pdf->Cell(40,20,$rec['education'],1);

$sl++;
$pdf->Ln();
}

$pdf->Ln();
$pdf->Ln();

$pdf->Output();

?>

Faculty login

<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
if($user->get_faculty_session()){
header('Location: class_att_fc.php');
exit();
}
?>

<?php
$pageTitle = "Faculty login";
include "header.php";
?>
<div class="loginform fix">
<div class="msg "><h3><i class="fa fa-user" aria-hidden="true"></i> Faculty login</h3></div>
<div class="access">

<?php
//php for faculty login
if($_SERVER['REQUEST_METHOD'] == "POST"){
$username = $_POST['user'];
$psw = $_POST['psw'];
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:78
University Management System

if(empty($username) or empty($psw)){
echo "<p style='color:red;text-align:center;'>Field must not be empty.</p>";
}else{
$psw = md5($psw);
$login = $user->fct_login($username, $psw);
if($login){
header('Location: class_att_fc.php');
}else{
echo "<p style='color:red;text-align:center'>Incorrect Username or password</p>";
}
}
}
?>

<form action="" method="post">


<input type="text" name="user" placeholder="Username" />
<input type="password" name="psw" placeholder="Password" />
<input style="color:#ddd;background:#3498db" type="submit" value="Login" />
</form>
</div>
<p >Not Registered? <a href="fct_reg.php">Create an account</a></p>
</div>

<?php
include "footer.php";
ob_end_flush() ;
?>

Faculty logout

<?php
ob_start();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$user->faculty_logout();
header('Location: facultylogin.php');
exit();
ob_end_flush();
?>

Fct reg

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:79


University Management System

$user = new login_registration_class();


if($user->getsession()){
header('Location: fct_profile.php');
}
?>
<?php
$pageTitle = "Faculty Registration";
include "header.php";
?>
<div class="st_reg fix">
<h2 style="color:#ddd;background:#3498db">Faculty Registration</h2>
<p class="msg">
<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
$st_name = $_POST['st_name'];
$uname = $_POST['uname'];
$st_pass = $_POST['st_pass'];
$st_email = $_POST['st_email'];

$BirthMonth = $_POST['BirthMonth'];
$BirthDay = $_POST['BirthDay'];
$BirthYear = $_POST['BirthYear'];
$bday = "{$BirthYear}-{$BirthMonth}-{$BirthDay}";
$st_gender = $_POST['gender'];

$degree = $_POST['degree'];
$subject = $_POST['subject'];
$inst = $_POST['inst'];
$edu = "{$degree} in {$subject} from {$inst}";
$st_contact = $_POST['st_contact'];
$st_add = $_POST['st_add'];

if(empty($st_name) or empty($uname) or empty($st_pass ) or empty($st_email) or


empty($BirthMonth) or empty($BirthDay) or empty($BirthYear)or empty($degree) or empty($subject) or
empty($inst) or empty($st_contact) or empty($st_gender) or empty($st_add)){
echo "<p style='color:red;text-align:center'>**Field must not be empty**</p>";
}else{
$st_pass = md5($st_pass);
$fct_register = $user-
>fct_registration($st_name,$uname,$st_pass,$st_email,$bday,$st_gender,$edu,$st_contact,$st_add);
if($fct_register){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Registration
Complete !! <a style='font-size:20px;color:#8e44ad' href='facultylogin.php'>Login</a></h3>";
}else{
echo "<p style='color:red;text-align:center'>Error..username Already exists</p>";
}
}
}
?>

</p>
<form action="" method="post" id="st_form">

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:80


University Management System

<table>
<tr>
<th>Name: </th>
<td><input type="text" name="st_name" placeholder="Full Name" required /></td>
</tr>
<tr>
<tr>
<th>Username: </th>
<td><input type="text" name="uname" placeholder="username" required /></td>
</tr>
<tr>
<th>Password: </th>
<td><input type="password" name="st_pass" placeholder="password" required /></td>
</tr>
<tr>
<th>E-mail: </th>
<td><input type="email" name="st_email" placeholder="example@email.com" required
/></td>
</tr>
<tr>
<th>Date of Birth: </th>
<td>
<fieldset>

<select class="select-style" name="BirthMonth">


<option value="01">Jan</option>

<option value="02">Feb</option>

<option value="03" >March</option>

<option value="04">April</option>

<option value="05">May</option>

<option value="06">June</option>

<option value="07">July</option>

<option value="08">Aug</option>

<option value="09">Sep</option>

<option value="10">Oct</option>

<option value="11">Nov</option>
<option value="12" >Dec</option>
</label>

</select>

<label><input class="birthday" maxlength="2" name="BirthDay" placeholder="Day"

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:81


University Management System

required=""></label>

<label><input class="birthyear" maxlength="4" name="BirthYear" placeholder="Year"


required=""></label>

</fieldset>
</td>
</tr>

<tr>
<th>Gender:</th>
<td><label><input type="radio" name="gender" value="Male" checked/> Male</label>
<label><input type="radio" name="gender" value="Female"/> Female</label>
</td>
</tr>
<tr>
<th>Education: </th>
<td>
<fieldset>
<select class="select-style" name="degree">
<option value="BSc">BSc</option>
<option value="MSc">MSc</option>
<option value="Phd" >Phd</option>
</select>
<label><input class="birthyear" name="subject" placeholder="Subject"
required=""></label>
<label><input class="birthyear" name="inst" placeholder="Institute" required=""></label>

</fieldset>
</td>
</tr>
<tr>
<th>Contact:</th>
<td><input type="text" name="st_contact" placeholder="phone" required /></td>
</tr>
<tr>
<th>Address:</th>
<td><input type="text" name="st_add" placeholder="Address" required /></td>
</tr>
<tr>
<td colspan="2"><input style="color:#ddd;background:#3498db" type="submit" name="sub"
value="Register" /></td>
</tr>
</table>
</form>

</div>

<?php include "footer.php"; ?>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:82


University Management System

Fct single profile

<?php
ob_start();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$fid = $_SESSION['f_id'];
$funame = $_SESSION['f_uname'];
$fname = $_SESSION['f_name'];
if(!$user->get_faculty_session()){
header('Location: facultylogin.php');
exit();
}
?>
<?php
$pageTitle = "Student Profile";
include "php/headertop.php";
?>
<div class="faculty">
<p style="font-size:18px;text-
align:center;background:#1abc9c;color:#fff;padding:10px;margin:0">Welcome : <?php echo $funame; ?> <i
class="fa fa-check-circle" aria-hidden="true"></i></p>

<table class="tab_one">
<?php
$getuser = $user->get_faculty_by_username($funame);
while($row = $getuser->fetch_assoc()){
?>
<tr>
<td style="text-align:center">Name: </td>
<td><?php echo $row['name']; ?></td>
</tr>
<tr>
<td style="text-align:center">Username: </td>
<td><?php echo $row['username']; ?></td>
</tr>
<tr>
<td style="text-align:center">E-mail: </td>
<td><?php echo $row['email']; ?></td>
</tr>
<tr>
<td style="text-align:center">Birthday: </td>
<td><?php echo $row['birthday']; ?></td>
</tr>
<tr>
<td style="text-align:center">Education: </td>
<td><?php echo $row['education']; ?></td>
</tr>
<tr>
<td style="text-align:center">Contact: </td>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:83
University Management System

<td><?php echo $row['contact']; ?></td>


</tr>
<tr>
<td style="text-align:center">Gender: </td>
<td><?php echo $row['gender']; ?></td>
</tr>
<tr>
<td style="text-align:center">Address: </td>
<td><?php echo $row['address']; ?></td>
</tr>
<?php if($row['username'] == $funame){ ?>

<?php } } ?>
</table>

</div>

<?php
include "php/footerbottom.php";
ob_end_flush();
?>

Footer

</div>
</div>

<script>window.jQuery || document.write('<script src="js/vendor/jquery-


1.12.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var s = $("#sticker");
var pos = s.position();
$(window).scroll(function() {
var windowpos = $(window).scrollTop();
if (windowpos >= pos.top) {
s.addClass("stick");
} else {
s.removeClass("stick");
}
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
var s = $("#stickerside");
var pos = s.position();
$(window).scroll(function() {
var windowpos = $(window).scrollTop();
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:84
University Management System

if (windowpos >= pos.top) {


s.addClass("stickside");
} else {
s.removeClass("stickside");
}
});
});
</script>
</body>
</html>

Header

<!Doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php echo $pageTitle; ?></title>
<meta name="description" content="University Management system">
<meta name="author" content="Md Abul Kalam">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">


<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="fonts/stylesheet.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a
href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->


<header class="container header_area fix" style="background-color: skyblue">
<div id="sticker" style="background-color: skyblue">
<div class="head">
<a href="#"><div class="logo fix">
<!-- <img src="img/logo.png" alt="" /> -->
</div></a></div>
<div style="color: white;margin-left: 20px">
<h2>University Management System</h2>
</div>
</div>
<div class="menu fix">
<div class="dateshow fix"><p><?php echo "Date : ".date("d M Y"); ?></p></div>
<!-- <ul>
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:85
University Management System

<li><a href="#"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>

<li><a href="#"><i class="fa fa-user" aria-hidden="true"></i> User</a></li>


</ul>
-->
</div>
</div>
</header>
<div class="maincontent container fix">
<div id="stickerside" style="background-color: skyblue">
<div class="sidebar fix" style="background-color: skyblue">
<ul style="margin-right: 20px;">
<li><span class="spcl"><i class="fa fa-server" aria-hidden="true"></i>
Administrator</span></li>
<ul>
<li><a href="index.php"><i class="fa fa-sign-in" aria-hidden="true"></i>
Login</a></li>
</ul>

<li><span class="spcl"><i class="fa fa-male" aria-hidden="true"></i> Faculty


Area</span></li>
<ul>
<li><a href="facultylogin.php"><i class="fa fa-sign-in" aria-hidden="true"></i>
Login</a></li>
<li><a href="fct_single_profile.php"><i class="fa fa-user" aria-hidden="true"></i>
Profile</a></li>
<li><a href="class_att.php"><i class="fa fa-database" aria-hidden="true"></i> Class
Attendance</a></li>
</ul>

<li><span class="spcl"><i class="fa fa-graduation-cap" aria-hidden="true"></i> Student


Area</span></li>
<ul>
<li><a href="st_login.php"><i class="fa fa-sign-in" aria-hidden="true"></i>
Login</a></li>
<li><a href="st_reg.php"><i class="fa fa-user-plus" aria-hidden="true"></i>
Register</a></li>
<li><a href="st_profile.php"><i class="fa fa-user" aria-hidden="true"></i>
Profile</a></li>
<li><a href="#"><i class="fa fa-outdent" aria-hidden="true"></i> Result</a></li>
</ul>

</ul>

</div>
</div>
<div class="content fix">

Index

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:86


University Management System

<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
if($user->get_admin_session()){
header('Location: admin.php');
exit();
}
?>

<?php
$pageTitle = "Admin Login";
?>
<?php include "header.php"; ?>

<div class="loginform fix">


<div class="msg "><h3><i class="fa fa-user" aria-hidden="true"></i> Admin login</h3></div>
<div class="access">
<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
$username = $_POST['username'];
$password = $_POST['password'];

if(empty($username) or empty($password)){
echo "<p style='color:red;text-align:center;'>Field must not be empty.</p>";
}else{
$password = md5($password);
$login = $user->admin_userlogin($username, $password);
if($login){
header('Location: admin.php');
}else{
echo "<p style='color:red;text-align:center'>Incorrect username or password</p>";
}
}
}
?>
<form action="" method="post">
<input type="text" name="username" placeholder="Username" />
<input type="password" name="password" placeholder="Password" />
<input type="submit" value="Login" />
</form>
</div>
</div>

<?php include "footer.php"; ?>

St change pass

<?php
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:87
University Management System

session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$sid = $_SESSION['sid'];
$sname = $_SESSION['sname'];

if(!$user->getsession()){
header('Location: st_login.php');
exit();
}
?>

<?php
$pageTitle = "Change Password";
include "php/headertop.php";
?>
<div class="profile">
<h3 style="font-size:18px;text-
align:center;background:#1abc9c;color:#fff;padding:10px;margin:0">Update Your
Profile</h3>
<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
$oldpass = $_POST['oldpass'];
$newpass = $_POST['newpass'];
$confirmpass = $_POST['confirmpass'];
if(empty($newpass) or empty($oldpass) or empty($confirmpass)){
echo "<p style='color:red;text-align:center'>Field must not be empty.</p>";
}elseif($newpass != $confirmpass){
echo "<p style='color:red;text-align:center'>Password not matched.</p>";
}else{
$oldpass = md5($oldpass);
$newpass = md5($newpass);
$user->updatePassword($sid, $newpass, $oldpass);
}
}
?>

<div class="changepass fix">


<form action="" method="post">
<?php
$result = $user->getuserbyid($sid);
while($row = $result->fetch_assoc()){
?>
<table class="tab_one" >
<tr>
<td style="width:125px;"></td>
<td width="26%">Old Password:</td>
<td><input type="text" name="oldpass" placeholder="old password" /></td>
</tr>
<tr>
<td style="width:125px;"></td>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:88


University Management System

<td>New Password:</td>
<td><input type="text" name="newpass" placeholder="New password" /></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Confirm Password:</td>
<td><input type="text" name="confirmpass" placeholder="Confirm password" /></td>
</tr>

<tr>
<td style="width:125px;"></td>
<td></td>
<td colspan="2">
<input style="background:#3498db;color:#fff;width:168px;border-radius:5px;"
type="submit" name="Update" value="Update">
</td>
</tr>
</table>
<?php } ?>
</form>
</div>
<div class="back fix">
<p style="text-align:center"><a href="st_profile.php"><button class="editbtn">Back to your
Profile</button></a></p>
</div>
</div>

<?php include "php/footerbottom.php";?>

St login

<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
if($user->getsession()){
header('Location: st_profile.php');
exit();
}
?>
<?php
$pageTitle = "Student login";
include "header.php";
?>
<div class="loginform fix">
<div class="msg"><h3><i class="fa fa-graduation-cap" aria-hidden="true"></i>Student
login</h3></div>
<div class="access">

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:89


University Management System

<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
$st_id = $_POST['st_id'];
$st_pass = $_POST['st_pass'];

if(empty($st_id) or empty($st_pass)){
echo "<p style='color:red;text-align:center;'>Field must not be empty.</p>";
}else{
$st_pass = md5($st_pass);
$login = $user->st_userlogin($st_id, $st_pass);
if($login){
header('Location: st_profile.php');
}else{
echo "<p style='color:red;text-align:center'>Incorrect Student ID or password</p>";
}
}
}
?>

<form action="" method="post">


<input type="text" name="st_id" placeholder="Student ID" />
<input type="password" name="st_pass" placeholder="password" />
<input type="submit" value="Login" />
</form>
</div>
<p>Not Registered? <a href="st_reg.php">Create an account</a></p>
</div>

<?php include "footer.php"; ?>


<?php ob_end_flush() ; ?>

St logout

<?php
ob_start();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$user->st_logout();
header('Location: st_login.php');
exit();
ob_end_flush();
?>

St profile

<?php
session_start();

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:90


University Management System

require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$sid = $_SESSION['sid'];
$sname = $_SESSION['sname'];
if(!$user->getsession()){
header('Location: st_login.php');
exit();
}
?>
<?php
$pageTitle = "Student Profile";
include "php/headertop.php";
?>
<div class="profile">
<p style="font-size:18px;text-
align:center;background:#1abc9c;color:#fff;padding:10px;margin:0">Welcome : <?php $user-
>getusername($sid); ?> <i class="fa fa-check-circle" aria-hidden="true"></i></p>
<table class="tab_one">
<?php
$getuser = $user->getuserbyid($sid);
while($row = $getuser->fetch_assoc()){
?>
<tr>
<td></td>
<?php if(empty($row['img'])){?>
<td><img src="img/default.png" style="height:180px; width:180px; border:1px #1ABC9C
solid;border-radius:90px" alt="" /></td>
<?php }else{ ?>
<td><img src="img/student/<?php echo $row['img']; ?>" style="height:180px; width:180px;
border:1px #1ABC9C solid;border-radius:90px" alt="" /></td>
<?php }?>
</tr>
<tr >
<td><b>Student ID:</b> </td>
<td><?php echo $row['st_id']; ?></td>
</tr>
<tr>
<td><b>Name:</b> </td>
<td><?php echo $row['name']; ?></td>
</tr>
<tr>
<td><b>E-mail:</b> </td>
<td><?php echo $row['email']; ?></td>
</tr>
<tr>
<td><b>Birthday:</b> </td>
<td><?php echo $row['bday']; ?></td>
</tr>
<tr>
<td><b>Program:</b> </td>
<td><?php echo $row['program']; ?></td>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:91


University Management System

</tr>
<tr>
<td><b>Contact:</b> </td>
<td><?php echo $row['contact']; ?></td>
</tr>
<tr>
<td><b>Gender:</b> </td>
<td><?php echo $row['gender']; ?></td>
</tr>
<tr>
<td><b>Address:</b> </td>
<td><?php echo $row['address']; ?></td>
</tr>
<?php if($row['st_id'] == $sid){ ?>
<tr>
<td><b>Update Profile:</b> </td>
<td><a href="st_update.php?id=<?php echo $row['st_id'];?>"><button class="editbtn">Edit
Profile</button></a></td>
</tr>
<?php } } ?>
</table>

</div>

<?php include "php/footerbottom.php";?>

St reg

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
if($user->getsession()){
header('Location: st_profile.php');
}
?>
<?php
$pageTitle = "Student Registration";
include "header.php";
?>
<div class="st_reg fix">
<h2>Student Registration Form</h2>
<p class="msg">
<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
$st_id = $_POST['st_id'];
$st_name = $_POST['st_name'];
$st_pass = $_POST['st_pass'];
$st_email = $_POST['st_email'];

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:92


University Management System

$BirthMonth = $_POST['BirthMonth'];
$BirthDay = $_POST['BirthDay'];
$BirthYear = $_POST['BirthYear'];
$bday = "{$BirthYear}-{$BirthMonth}-{$BirthDay}";

$st_dept = $_POST['st_dept'];
$st_contact = $_POST['st_contact'];
$st_gender = $_POST['gender'];
$st_add = $_POST['st_add'];

if(empty($st_id) or empty($st_name) or empty($st_pass ) or empty($st_email) or


empty($BirthMonth) or empty($BirthDay) or empty($BirthYear) or empty($st_dept) or empty($st_contact)
or empty($st_gender) or empty($st_add)){
echo "<p style='color:red;text-align:center'>**Field must not be empty**</p>";
}else{
$st_pass = md5($st_pass);
$st_register = $user-
>st_registration($st_id,$st_name,$st_pass,$st_email,$bday,$st_dept,$st_contact,$st_gender,$st_add);
if($st_register){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Registration
Complete !! <a style='font-size:20px;color:#8e44ad' href='st_login.php'>Login</a></h3>";
}else{
echo "<p style='color:red;text-align:center'>Error..Student ID or email Already
exists</p>";
}
}
}
?>

</p>
<form action="" method="post" id="st_form">
<table>
<tr>
<th>Name: </th>
<td><input type="text" name="st_name" placeholder="Full Name" required /></td>
</tr>
<tr>
<tr>
<th>Student ID: </th>
<td><input type="text" name="st_id" placeholder="Student Id" required /></td>
</tr>
<tr>
<th>Password: </th>
<td><input type="password" name="st_pass" placeholder="password" required /></td>
</tr>
<tr>
<th>E-mail: </th>
<td><input type="email" name="st_email" placeholder="example@email.com" required
/></td>
</tr>
<tr>
<th>Date of Birth: </th>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:93


University Management System

<td>
<fieldset>

<select class="select-style" name="BirthMonth">


<option value="01">Jan</option>

<option value="02">Feb</option>

<option value="03" >March</option>

<option value="04">April</option>

<option value="05">May</option>

<option value="06">June</option>

<option value="07">July</option>

<option value="08">Aug</option>

<option value="09">Sep</option>

<option value="10">Oct</option>

<option value="11">Nov</option>
<option value="12" >Dec</option>
</label>

</select>

<label><input class="birthday" maxlength="2" name="BirthDay" placeholder="Day"


required=""></label>

<label><input class="birthyear" maxlength="4" name="BirthYear" placeholder="Year"


required=""></label>

</fieldset>
</td>
</tr>
<tr>
<th>Program:</th>
<td><input type="text" name="st_dept" placeholder="BCSE,BSEEE, BBA..." required /></td>
</tr>
<tr>
<th>Contact:</th>
<td><input type="text" name="st_contact" placeholder="phone" required /></td>
</tr>
<tr>
<th>Gender:</th>
<td><label><input type="radio" name="gender" value="Male" checked/> Male</label>
<label><input type="radio" name="gender" value="Female"/> Female</label>
<label><input type="radio" name="gender" value="Other"/> Other</label>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:94


University Management System

</td>
</tr>
<tr>
<th>Address:</th>
<td><input type="text" name="st_add" placeholder="Address" required /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="sub" value="Register" /></td>
</tr>
</table>
</form>

</div>

<?php include "footer.php"; ?>

St result

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
if(isset($_REQUEST['ar'])){
$stid = $_REQUEST['ar'];
$name = $_REQUEST['vn'];
$semester = $_REQUEST['seme'];
}
?>
<?php
$pageTitle = "update Student Result";
include "php/headertop_admin.php";
?>
<div class="all_student fix">
<div>
<p style="text-align:center;color:#fff;background:purple;margin:0;padding:8px;"><?php echo "Name:
".$name."<br>ID: ".$stid."<br>Semester: " . $semester; ?></p>
</div>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$subject = $_POST['umark'];
$res = $user->update_result($stid,$subject,$semester);
//var_dump($res);
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:95
University Management System

if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-align:center'>Marks successfully
updated!</h3>";
}else{
echo "<p style='color:red;text-align:center'>Failed to update data</p>";
}
}

?>

<form action="" method="post">


<table class="tab_one" style="text-align:center;">
<tr>
<th style="text-align:center;">Subject</th>
<th style="text-align:center;">Marks</th>

</tr>
<?php
$i=0;

$get_result = $user->show_marks($stid,$semester);

while($rows = $get_result->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $rows['sub'];?></td>
<td><input type="text" name="umark[<?php echo $rows['sub'];?>]" value="<?php echo
$rows['marks'];?>"/></td>

</tr>
<?php } ?>
<tr><td colspan="2"><input type="submit" value="Update Result" /></td></tr>
</table>
</form>
<div class="back fix">
<p style="text-align:center"><a href="view_result.php?vr=<?php echo $stid?>&vn=<?php echo
$name?>"><button class="editbtn">go to result page</button></a></p>
</div>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

St result update
<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:96
University Management System

$user = new login_registration_class();


$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop_admin.php";
?>
<div class="all_student fix">

<table class="tab_one" style="text-align:center;">


<tr>
<th style="text-align:center;">SL</th>
<th style="text-align:center;">Name</th>
<th style="text-align:center;">ID</th>
<th style="text-align:center;">Add Result</th>
<th style="text-align:center;">view Result</th>

</tr>
<?php
$i=0;
$alluser = $user->get_all_student();

while($rows = $alluser->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td><a href="add_result.php?ar=<?php echo $rows['st_id']; ?>&vn=<?php echo
$rows['name'];?>">Add Result</a></td>
<td><a href="view_result.php?vr=<?php echo $rows['st_id']; ?>&vn=<?php echo
$rows['name'];?>">View Result</a></td>
</tr>
<?php } ?>

</table>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

St update

<?php
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:97
University Management System

session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$sid = $_SESSION['sid'];
$sname = $_SESSION['sname'];
/*
if(isset($_REQUEST['id'])){
$id = $_REQUEST['id'];
}else{
header('Location: index.php');
exit();
}
*/
if(!$user->getsession()){
header('Location: st_login.php');
exit();
}

?>

<?php
$pageTitle = "Update Profile";
include "php/headertop.php";
?>
<script>
function PreviewImage(upname, prv_id) {
var oFReader = new FileReader();
oFReader.readAsDataURL(document.getElementsByName(upname)[0].files[0]);

oFReader.onload = function (oFREvent) {


document.getElementById(prv_id).src = oFREvent.target.result;
};
};

</script>

<div class="profile">
<h3 style="font-size:18px;text-
align:center;background:#1abc9c;color:#fff;padding:10px;margin:0">Update Your
Profile</h3>
<?php
$qry=$user->getuserbyid($sid);
$pic=$qry->fetch_assoc();
$piclocation=$pic['img'];

if($_SERVER['REQUEST_METHOD'] == "POST"){
//code for img
function guid() {
if (function_exists('com_create_guid')) {
return com_create_guid();
} else {

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:98


University Management System

mt_srand((double) microtime() * 10000); //optional for php 4.2.0 and up.


$charid = strtoupper(md5(uniqid(rand(), true)));
$hyphen = chr(45); // "-"
$uuid = chr(123)// "{"
. substr($charid, 0, 8) . $hyphen
. substr($charid, 8, 4) . $hyphen
. substr($charid, 12, 4) . $hyphen
. substr($charid, 16, 4) . $hyphen
. substr($charid, 20, 12)
. chr(125); // "}"
return $uuid;
}
}

if($_FILES["personal_image"]["name"])
{
$path_parts = pathinfo($_FILES["personal_image"]["name"]);
$ext = $path_parts['extension'];
$fileName = trim(guid(), '{}') . '.' . $ext;
}
else{
$fileName = $piclocation;
}

move_uploaded_file($_FILES['personal_image']['tmp_name'], "img/student/$fileName");

//end img
$st_name = $_POST['st_name'];
$st_email = $_POST['st_email'];
$st_dept = $_POST['st_dept'];
$st_contact = $_POST['st_contact'];
$st_gender = $_POST['st_gender'];
$st_add = $_POST['st_add'];
if(empty($st_name) or empty($st_email) or empty($st_contact) or empty($st_dept) or
empty($st_gender) or empty($st_add)){
echo "<p style='color:red;text-align:center'>Field must not be empty.</p>";
}else{
$update = $user-
>updateprofile($sid,$st_name,$st_email,$st_dept,$st_gender,$st_contact,$st_add,$fileName);
if($update){
echo "<h4 style='color:green;text-align:center'>Information Updated
successfully</h4>";
}else{
echo "<h4 style='color:red;text-align:center;text-align:center'>Failed to update</h4>";
}
}
}
?>

<div class="st_update fix">

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:99


University Management System

<form action="" method="post" enctype="multipart/form-data">


<?php
$result = $user->getuserbyid($sid);
while($row = $result->fetch_assoc()){
?>
<table class="tab_one" >
<tr>
<td style="width:250px;"></td>
<td>Photo</td>
<td>
<img id="logo_preview" src="img/student/<?php echo $row['img']?>"
style="height:150px; width:150px; border:1px green solid;"><br><br>
<input type="file" name="personal_image" id="spic"
onchange="PreviewImage('personal_image', 'logo_preview')" />
</td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Name:</td>
<td><input type="text" name="st_name" value="<?php echo $row['name'];?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>E-mail:</td>
<td><input type="email" name="st_email" value="<?php echo $row['email']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Program:</td>
<td><input type="text" name="st_dept" value="<?php echo $row['program']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Contact:</td>
<td><input type="text" name="st_contact" value="<?php echo $row['contact']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Gender:</td>
<td><input type="text" name="st_gender" value="<?php echo $row['gender']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td>Address:</td>
<td><input type="text" name="st_add" value="<?php echo $row['address']; ?>"></td>
</tr>
<tr>
<td style="width:125px;"></td>
<td></td>
<td colspan="2">
<input style="background:#3498db;color:#fff;width:168px;border-radius:5px;"
type="submit" name="Update" value="Update">

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:100


University Management System

</td>
</tr>
</table>
<?php } ?>
</form>
</div>
<div class="back fix">
<p style="text-align:center"><a href="st_profile.php"><button class="editbtn">Back to your
Profile</button></a></p>
</div>
</div>

<?php include "php/footerbottom.php";?>

Student list pdf

<?php
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();

require('plugins/fpdf/fpdf.php');
require('plugins/fpdf/rotation.php');

class PDF extends PDF_Rotate


{
function Header()
{
//Put the watermark
//$this->SetFont('Arial','B',50);
//$this->SetTextColor(255,192,203);
//$this->RotatedText(65,190,'A p p r o v e d',45);
}
function RotatedText($x, $y, $txt, $angle)
{
//Text rotated around its origin
$this->Rotate($angle,$x,$y);
$this->Text($x,$y,$txt);
$this->Rotate(0);
}
}

//$pdf = new FPDF();


$pdf=new PDF();
$pdf->AddPage();

$iubat='University Management System' ;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:101


University Management System

$pdf->Image('img/logo.png',10,9,17);
$pdf->Ln();
$pdf-> Cell(20);
$pdf->SetFont('Times','',14);
$pdf->Write(5, $iubat);
$pdf->Ln();
$pdf-> Cell(22);
$pdf->SetFont('Times','',10);
$pdf->Write(4,'Developed by Md Abul Kalam');
$pdf-> Cell(20);
$pdf->SetFont('Times','',8);
$pdf->Write(5,
'_______________________________________________________________________________________
___________________________________________');
$pdf->Ln();
$pdf->Ln();

$pdf-> Cell(85);
$pdf->SetFont('Times','U',10);
$pdf->Write(5, 'Student List');
$pdf->Ln();

$pdf->Ln(2);

$pdf-> Cell(5);
$pdf->SetFont('Times','B',8);
$pdf->Cell(8,6,'SL',1);
$pdf->Cell(20,6,'Student ID',1);
$pdf->Cell(40,6,'Student Name',1);
$pdf->Cell(40,6,'Contact',1);
$pdf->Cell(40,6,'Email',1);
$pdf->Cell(22,6,'Picture',1);
$pdf->Ln();

$qry = $user->get_all_student();

$sl=1;
while($rec = $qry->fetch_assoc())
{
$pdf-> Cell(5);
$pdf->SetFont('Times','',8);
$pdf->Cell(8,20,$sl,1);
$pdf->Cell(20,20,$rec['st_id'],1);
$pdf->Cell(40,20,$rec['name'],1);
$pdf->Cell(40,20,$rec['contact'],1);
$pdf->Cell(40,20,$rec['email'],1);
$image1='img/student/'.$rec['img'];
$pdf->Cell( 22, 20, $pdf->Image($image1, $pdf->GetX(), $pdf->GetY(),22, 20), 1, 0, 'L',
false);

$sl++;

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:102


University Management System

$pdf->Ln();
}

$pdf->Ln();
$pdf->Ln();

$pdf->Output();

?>

View cgpa

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];

if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
if(isset($_REQUEST['vr'])){
$stid = $_REQUEST['vr'];
$name = $_REQUEST['vn'];
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop_admin.php";
?>
<div class="all_student fix">

<?php

//custom function check credit hour and grade point


function credit_hour($x){
if($x=="DBMS") return 3;
elseif($x == "DBMS Lab") return 1;
elseif($x == "Mathematics") return 4;
elseif($x == "Programming") return 3;
elseif($x == "Programming Lab") return 1;
elseif($x == "English") return 4;
elseif($x == "Physics") return 3;
elseif($x == "Chemistry") return 3;
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:103
University Management System

elseif($x == "Psychology") return 3;


}
function grade_point($gd){
if($gd<60) return 0;
elseif($gd>=60 && $gd<70) return 1;
elseif($gd>=70 && $gd<80) return 2;
elseif($gd>=80 && $gd<90) return 3;
elseif($gd>=90 && $gd<=100) return 4;
}
?>
<!--Infomation of student-->
<div>
<p style="text-align:center;color:#fff;background:purple;margin:0;padding:8px;"><?php echo "Name:
".$name."<br>Student ID: " . $stid; ?></p>
</div>
<p style='text-align:center;background:#ddd;color:#01C3AA;padding:5px;width:84%;margin:0 auto'>All
Completed Course & Grade</p>
<?php
//select semester
$i=0;
$ch = 0;
$gp = 0;

//$get_result = $user->show_marks();

$get_result = $user->view_cgpa($stid);
//var_dump($get_result);
if($get_result && ($get_result->num_rows)>0){
?>

<table class="tab_two" style="text-align:center;width:85%;margin:0 auto">


<th>Subject</th>
<th>Marks</th>
<th>Grade</th>
<th>Credit hr.</th>
<th>Status</th>
<?php
while($rows = $get_result->fetch_assoc()){
$i++;
//count total credit hour;
$ch = $ch + credit_hour($rows['sub']);

?>
<tr>
<td><?php echo $rows['sub']; ?></td>
<td><?php echo $rows['marks']; ?></td>
<td>
<?php
//set grade for individual subject
$mark = $rows['marks'];
if($mark<60){echo "F";}

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:104


University Management System

elseif($mark>=60 && $mark<70){echo "D";}


elseif($mark>=70 && $mark<80){echo "C";}
elseif($mark>=80 && $mark<90){echo "B";}
elseif($mark>=90 && $mark<=100){echo "A";}

//total grade point


$gp = $gp + (credit_hour($rows['sub']) * grade_point($rows['marks']));

?>
</td>
<td><?php echo credit_hour($rows['sub']); ?></td>
<td>
<?php
$stat = $rows['marks'];
if($stat<60){
echo "<span style='background:red;padding:3px 11px;color:#fff;'>Fail</span>";
}elseif($stat>=60 && $stat<70){
echo "<span style='background:yellow'>Retake</span>";
}else{
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Pass</span>";
}
?>
</td>

</tr>
<?php } ?>
<tr>
<td><?php echo "Total Course: <span style='color:#800080;padding:3px 6px;font-
size:22px'>".$i."</span>"; ?></td>
<td colspan="1">Total CGPA : </td>
<td colspan="2">
<?php
$sg = $gp/$ch;
echo "<span style='color:green;padding:3px 6px;font-size:22px'>" . round($sg,2) . "</span>"; ?>
</td>
<td>
<?php
if($sg>=3.5){
echo "<span style='background:purple;padding:3px 6px;color:#fff;'>Excellent";
}elseif($sg>=3.0 && $sg<3.5){
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Good";
}elseif($sg>=2.5 && $sg<3.0){
echo "<span style='background:gray;padding:3px 6px;color:#fff;'>Average";
}else{
echo "<span style='background:red;padding:3px 6px;color:#fff;'>Probation";
}
?>
</td>
</tr>
</table>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:105


University Management System

<?php
}
else{
echo "<p style='color:red;text-align:center'>Nothing Found</p>";
}
?>

<div class="back fix">


<p style="text-align:center"><a href="view_result.php?vr=<?php echo $stid?>&vn=<?php echo
$name?>"><button class="editbtn">go to result page</button></a></p>
</div>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

View result

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];

if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
if(isset($_REQUEST['vr'])){
$stid = $_REQUEST['vr'];
$name = $_REQUEST['vn'];
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop_admin.php";
?>
<div class="all_student fix">

<?php

//custom function check credit hour and grade point


function credit_hour($x){
if($x=="DBMS") return 3;
elseif($x == "DBMS Lab") return 1;
elseif($x == "Mathematics") return 4;
elseif($x == "Programming") return 3;
elseif($x == "Programming Lab") return 1;
elseif($x == "English") return 4;
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:106
University Management System

elseif($x == "Physics") return 3;


elseif($x == "Chemistry") return 3;
elseif($x == "Psychology") return 3;
}
function grade_point($gd){
if($gd<60) return 0;
elseif($gd>=60 && $gd<70) return 1;
elseif($gd>=70 && $gd<80) return 2;
elseif($gd>=80 && $gd<90) return 3;
elseif($gd>=90 && $gd<=100) return 4;
}
?>
<!--Infomation of student-->
<div>
<p style="text-align:center;color:#fff;background:purple;margin:0;padding:8px;"><?php echo "Name:
".$name."<br>Student ID: " . $stid; ?></p>
</div>
<div>
<p style="float:left;margin:0 0 5px 0;width:100%;text-align:center;"><a href="view_cgpa.php?vr=<?php
echo $stid; ?>&vn=<?php echo $name; ?>"><button class="editbtn">View cgpa & completed
course</button></a></p>
</div>

<form action="" method="post" style="width:23%;margin:0 auto;padding-bottom:5px;">


<select name="seme" id="">
<option value="1st">1st semester</option>
<option value="2nd">2nd semester</option>
<option value="3rd">3rd semester</option>
</select>
<input type="submit" value="view Result" />

</form>
<?php
//select semester
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$semester = $_POST['seme'];

$i=0;
$ch = 0;
$gp = 0;

//$get_result = $user->show_marks();

$get_result = $user->show_marks($stid,$semester);
if($get_result){
?>
<p><?php echo "<p style='text-
align:center;background:#ddd;color:#01C3AA;padding:5px;width:84%;margin:0 auto'>".$semester."
Semester Result"?></p>
<table class="tab_two" style="text-align:center;width:85%;margin:0 auto">
<th>Subject</th>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:107


University Management System

<th>Marks</th>
<th>Grade</th>
<th>Credit hr.</th>
<th>Status</th>
<?php
while($rows = $get_result->fetch_assoc()){
$i++;
//count total credit hour;
$ch = $ch + credit_hour($rows['sub']);

?>
<tr>
<td><?php echo $rows['sub'];?></td>
<td><?php echo $rows['marks'];?></td>
<td>
<?php
//set grade for individual subject
$mark = $rows['marks'];
if($mark<60){echo "F";}
elseif($mark>=60 && $mark<70){echo "D";}
elseif($mark>=70 && $mark<80){echo "C";}
elseif($mark>=80 && $mark<90){echo "B";}
elseif($mark>=90 && $mark<=100){echo "A";}

//total grade point


$gp = $gp + (credit_hour($rows['sub']) * grade_point($rows['marks']));

?>
</td>
<td><?php echo credit_hour($rows['sub']); ?></td>
<td>
<?php
$stat = $rows['marks'];
if($stat<60){
echo "<span style='background:red;padding:3px 11px;color:#fff;'>Fail</span>";
}elseif($stat>=60 && $stat<70){
echo "<span style='background:yellow'>Retake</span>";
}else{
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Pass</span>";
}
?>
</td>

</tr>
<?php } ?>
<tr>
<td colspan="2">SGPA : </td>
<td colspan="2">
<?php
$sg = $gp/$ch;
echo "<span style='color:green;padding:3px 6px;font-size:20px'>" . round($sg,2) . "</span>"; ?>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:108


University Management System

</td>
<td>
<?php
if($sg>=3.5){
echo "<span style='background:purple;padding:3px 6px;color:#fff;'>Excellent";
}elseif($sg>=3.0 && $sg<3.5){
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Good";
}elseif($sg>=2.5 && $sg<3.0){
echo "<span style='background:gray;padding:3px 6px;color:#fff;'>Average";
}else{
echo "<span style='background:red;padding:3px 6px;color:#fff;'>Probation";
}
?>
</td>
</tr>
</table>

<?php
}
else{
echo "<p style='color:red;text-align:center'>Nothing Found</p>";
}
?>
<p style="float:left; text-align:right;margin:20px 0;width:49%"><a
href="st_result_update.php?ar=<?php echo $stid?>&seme=<?php echo $semester?>&vn=<?php echo
$name?>"><button class="editbtn">Edit Result</button></a></p>
<?php
}
?>

<p style="float:right;text-align:left;margin:20px 0;width:49%"><a href="st_result.php"><button


class="editbtn">Back to list</button></a></p>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

View single cgpa

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$sid = $_SESSION['sid'];
$sname = $_SESSION['sname'];
if(!$user->getsession()){
header('Location: st_login.php');
exit();
}
if(isset($_REQUEST['vr'])){
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:109
University Management System

$stid = $_REQUEST['vr'];
$name = $_REQUEST['vn'];
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop.php";
?>
<div class="all_student fix">

<?php

//custom function check credit hour and grade point


function credit_hour($x){
if($x=="DBMS") return 3;
elseif($x == "DBMS Lab") return 1;
elseif($x == "Mathematics") return 4;
elseif($x == "Programming") return 3;
elseif($x == "Programming Lab") return 1;
elseif($x == "English") return 4;
elseif($x == "Physics") return 3;
elseif($x == "Chemistry") return 3;
elseif($x == "Psychology") return 3;
}
function grade_point($gd){
if($gd<60) return 0;
elseif($gd>=60 && $gd<70) return 1;
elseif($gd>=70 && $gd<80) return 2;
elseif($gd>=80 && $gd<90) return 3;
elseif($gd>=90 && $gd<=100) return 4;
}
?>
<!--Infomation of student-->
<div class="fix">
<p style="text-align:center;color:#fff;background:purple;margin:0;padding:8px;"><?php echo "Name:
".$name."<br>Student ID: " . $stid; ?></p>
</div>
<div class="fix">
<p style='text-align:center;background:#ddd;color:#01C3AA;padding:5px;width:84%;margin:0 auto'>All
Completed Course & Grade</p>
</div>
<?php
//select semester
$i=0;
$ch = 0;
$gp = 0;

//$get_result = $user->show_marks();

$get_result = $user->view_cgpa($stid);
//var_dump($get_result);

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:110


University Management System

if($get_result && ($get_result->num_rows)>0){


?>

<table class="tab_two" style="text-align:center;width:85%;margin:0 auto">


<th>Subject</th>
<th>Marks</th>
<th>Grade</th>
<th>Credit hr.</th>
<th>Status</th>
<?php
while($rows = $get_result->fetch_assoc()){
$i++;
//count total credit hour;
$ch = $ch + credit_hour($rows['sub']);

?>
<tr>
<td><?php echo $rows['sub']; ?></td>
<td><?php echo $rows['marks']; ?></td>
<td>
<?php
//set grade for individual subject
$mark = $rows['marks'];
if($mark<60){echo "F";}
elseif($mark>=60 && $mark<70){echo "D";}
elseif($mark>=70 && $mark<80){echo "C";}
elseif($mark>=80 && $mark<90){echo "B";}
elseif($mark>=90 && $mark<=100){echo "A";}

//total grade point


$gp = $gp + (credit_hour($rows['sub']) * grade_point($rows['marks']));

?>
</td>
<td><?php echo credit_hour($rows['sub']); ?></td>
<td>
<?php
$stat = $rows['marks'];
if($stat<60){
echo "<span style='background:red;padding:3px 11px;color:#fff;'>Fail</span>";
}elseif($stat>=60 && $stat<70){
echo "<span style='background:yellow'>Retake</span>";
}else{
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Pass</span>";
}
?>
</td>

</tr>
<?php } ?>
<tr>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:111


University Management System

<td><?php echo "Total Course: <span style='color:#800080;padding:3px 6px;font-


size:22px'>".$i."</span>"; ?></td>
<td colspan="1">Total CGPA : </td>
<td colspan="2">
<?php
$sg = $gp/$ch;
echo "<span style='color:green;padding:3px 6px;font-size:22px'>" . round($sg,2) . "</span>"; ?>
</td>
<td>
<?php
if($sg>=3.5){
echo "<span style='background:purple;padding:3px 6px;color:#fff;'>Excellent";
}elseif($sg>=3.0 && $sg<3.5){
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Good";
}elseif($sg>=2.5 && $sg<3.0){
echo "<span style='background:gray;padding:3px 6px;color:#fff;'>Average";
}else{
echo "<span style='background:red;padding:3px 6px;color:#fff;'>Probation";
}
?>
</td>
</tr>
</table>

<?php
}
else{
echo "<p style='color:red;text-align:center'>Nothing Found</p>";
}
?>

<div class="back fix">


<p style="text-align:center"><a href="view_single_result.php?vr=<?php echo $stid?>&vn=<?php
echo $name?>"><button class="editbtn">go to result page</button></a></p>
</div>

</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>

View single result

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$sid = $_SESSION['sid'];
$sname = $_SESSION['sname'];
if(!$user->getsession()){
header('Location: st_login.php');
Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:112
University Management System

exit();
}
if(isset($_REQUEST['vr'])){
$stid = $_REQUEST['vr'];
$name = $_REQUEST['vn'];
}
?>
<?php
$pageTitle = "Student Result";
include "php/headertop.php";
?>
<div class="all_student fix">

<?php

//custom function check credit hour and grade point


function credit_hour($x){
if($x=="DBMS") return 3;
elseif($x == "DBMS Lab") return 1;
elseif($x == "Mathematics") return 4;
elseif($x == "Programming") return 3;
elseif($x == "Programming Lab") return 1;
elseif($x == "English") return 4;
elseif($x == "Physics") return 3;
elseif($x == "Chemistry") return 3;
elseif($x == "Psychology") return 3;
}
function grade_point($gd){
if($gd<60) return 0;
elseif($gd>=60 && $gd<70) return 1;
elseif($gd>=70 && $gd<80) return 2;
elseif($gd>=80 && $gd<90) return 3;
elseif($gd>=90 && $gd<=100) return 4;
}
?>
<!--Infomation of student-->
<div>
<p style="text-align:center;color:#fff;background:purple;margin:0;padding:8px;"><?php echo "Name:
".$name."<br>Student ID: " . $stid; ?></p>
</div>
<form action="" method="post" style="width:25%;margin:0 auto;padding-bottom:5px;">
<select name="seme" id="">
<option value="1st">1st Semester</option>
<option value="2nd">2nd Semester</option>
<option value="3rd">3rd Semester</option>
</select>
<input type="submit" value="View Result" />

</form>
<div class="fix">
<p style="float:left;margin:0 0 3px 0;width:100%;text-align:center;"><a
href="view_single_cgpa.php?vr=<?php echo $stid; ?>&vn=<?php echo $name; ?>"><button

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:113


University Management System

class="editbtn">View CGPA & Complete Course</button></a></p>


</div>
<?php
//select semester
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$semester = $_POST['seme'];

$i=0;
$ch = 0;
$gp = 0;

//$get_result = $user->show_marks();

$get_result = $user->show_marks($stid,$semester);
if($get_result){
?>
<p><?php echo "<p style='text-
align:center;background:#ddd;color:#01C3AA;padding:5px;width:84%;margin:0 auto'>".$semester."
Semester Result"?></p>
<table class="tab_two" style="text-align:center;width:85%;margin:0 auto">
<th>Subjects</th>
<th>Marks</th>
<th>Grade</th>
<th>Credit hr.</th>
<th>Status</th>
<?php
while($rows = $get_result->fetch_assoc()){
$i++;
//count total credit hour;
$ch = $ch + credit_hour($rows['sub']);

?>
<tr>
<td><?php echo $rows['sub'];?></td>
<td><?php echo $rows['marks'];?></td>
<td>
<?php
//set grade for individual subject
$mark = $rows['marks'];
if($mark<60){echo "F";}
elseif($mark>=60 && $mark<70){echo "D";}
elseif($mark>=70 && $mark<80){echo "C";}
elseif($mark>=80 && $mark<90){echo "B";}
elseif($mark>=90 && $mark<=100){echo "A";}

//total grade point


$gp = $gp + (credit_hour($rows['sub']) * grade_point($rows['marks']));

?>
</td>
<td><?php echo credit_hour($rows['sub']); ?></td>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:114


University Management System

<td>
<?php
$stat = $rows['marks'];
if($stat<60){
echo "<span style='background:red;padding:3px 11px;color:#fff;'>Fail</span>";
}elseif($stat>=60 && $stat<70){
echo "<span style='background:yellow'>Retake</span>";
}else{
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Pass</span>";
}
?>
</td>

</tr>
<?php } ?>
<tr>
<td colspan="2">SGPA : </td>
<td colspan="2">
<?php
$sg = $gp/$ch;
echo "<span style='color:green;padding:3px 6px;font-size:20px'>" . round($sg,2) . "</span>"; ?>
</td>
<td>
<?php
if($sg>=3.5){
echo "<span style='background:purple;padding:3px 6px;color:#fff;'>Excellent";
}elseif($sg>=3.0 && $sg<3.5){
echo "<span style='background:green;padding:3px 6px;color:#fff;'>Good";
}elseif($sg>=2.5 && $sg<3.0){
echo "<span style='background:gray;padding:3px 6px;color:#fff;'>Average";
}else{
echo "<span style='background:red;padding:3px 6px;color:#fff;'>Probation";
}
?>
</td>
</tr>
</table>

<?php
}
else{
echo "<p style='color:red;text-align:center'>Nothing Found</p>";
}

}
?>

<p style="float:right;text-align:left;margin:20px 0;width:58%"><a href="st_profile.php"><button


class="editbtn">Back to profile</button></a></p>

</div>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:115


University Management System

<?php include "php/footerbottom.php";?>


<?php ob_end_flush() ; ?>

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:116


University Management System

6. Database table

6.1 Student Table

Figure 6.1: Figure of Student Table

6.2 Instructor Table

Figure 6.2: Figure of Instructor Table

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:117


University Management System

6.3 Course Table

6.3 : Figure of Course table

6.4 Subjects Table

6.4 Figure of Subjects table

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:118


University Management System

6.5 Schedules Table

6.5: Figure of Schedules table

6.6 Transactions Table

6.6: Figure of Transactions table

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:119


University Management System

7. Screenshots
7.1 Administrator Login

7.1 Admin Dashboard

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:120


University Management System

7.2 View all students

7.3 View student details

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:121


University Management System

7.4 Edit student details

7.5 Student result

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:122


University Management System

7.6 Add student result

7.7 View student result

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:123


University Management System

7.8 Attendance

7.9 View Attendance

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:124


University Management System

7.10 Faculty Login

7.11 Faculty registration

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:125


University Management System

7.12 Class Attendance

7.13 Student Registration

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:126


University Management System

7.14 Student Login

7.15 Student information

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:127


University Management System

7.16 Result

7.17 Change password

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:128


University Management System

8. Future Scope And Conclusions


 Better Management of Student Data.
 Improves Overall Teacher Productivity.
 Provide Deeper Insights to Parents.
 Easy Fee Management.
 Save Cost

Conclusions:

The university management system improves the institution’s work organization and decreas
es the amount of paperwork that wastes time.
If youwish to enroll in a university, you must first register in the system and obtain all of the
essential information.
The goal of this research was to create a university management project system that would
aid in the maintenance of university records. Creating strategies for efficient management
and handling of a task in every university. The university management system project
includes features that allow for quick access to donor records gathered across the country.

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:129


University Management System

9.References
9.1 Website:
1. Https://www.getboostrap.com
2. Https://www.w3schools.com
3. Https://www.Youtube.com
4. Https://www.php.net

9.2 Books:
1. Head First PHP & MySQL: A Brain-Friendly Guide Paperback
- Lynn Beighley (Author)
2. HTML 5 Black Book, Covers CSS 3, JavaScript, XML, XHTML, AJAX,
PHP and jQuery
- DT Editorial Services (Author)

Dept.of (CS)[2022-2023] V.K Krishna Menon College Page No:130

You might also like