You are on page 1of 165

lOMoARcPSD|280 114 95

VISVESVARAYA TECHNOLOGICAL UNIVERSITY


Jnana Sangama, Belgaum-590018

A Database Management System Mini Project Report on

UNIVERSITY DATABASE MANAGEMENT SYSTEM


Submitted in Partial fulfillment of the Requirements for the V Semester of the Degree of
Bachelor of Engineering In
Artificial Intelligence & Machine Learning
By
Mahesh
(3GN21AI015)

Vishnu
(3GN21AI062)

Saikumar
(3GN21AI046)

Saikumar
(3GN21AI045)
Under the Guidance of
Prof.Netravati S

DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND


MACHINE LEARNING

GURU NANAK DEV ENGINEERING


COLLEGE BIDAR
MAILOOR ,BIDAR KARANATAKA -585403
lOMoARcPSD|280 114 95

GURU NANAK DEV ENGINEERING COLLEGE


BIDAR
MAILOOR ,BIDAR KARANATAKA -585403

CERTIFICATE
This is to certify that the Database Management System Project work entitled Crime Database
Management System has been carried out by Mahesh(3GN21AI015), Vishnu
(3GN21AI062), Saikumar(3GN21AI046) , Saikumar(3GN21AI045) bonafide students of
Guru Nanak Dev College Bidar in partial fulfillment for the Completion of 5 th Sem of Bachelor
of Engineering in Artificial Intelligence And Machine Learning of the Visvesvaraya
Technological University, Belgaum during the year 2023-2024. It is certified that all
corrections/suggestions indicated for Internal Assessment have been incorporated in the Report
deposited in the departmental library. This DBMS Project Report has been approved as it
satisfies the academic requirements in respect of project work prescribed for the said degree.

----------------- -------------------
Signature of Guide Signature of HOD

Mrs.Netravati S Dr. Dayanand J


Assistant Professor Professor, Head
Dept. of AIML, GNDEC Dept. of AIML, GNDEC
External Viva
Name of the examiners Signature with date
1.
2.
lOMoARcPSD|280 114 95

ACKNOWLEDGEMENT

It gives us a great sense of pleasure to present the report of the B.E. Mini Project undertaken during the 5th
semester. We also take the opportunity to acknowledge the contribution of Dr.Dayanand J. Sir, HOD. of the
Department of Artificial Intelligence and Machine Learning, Guru Nanak Dev Engineering College Bidar,
for his full support and assistance during the development of the project. It is only through his cognizant
efforts that our endeavors have seen the light of day. We owe a special debt of gratitude to Mrs. Netravati
S., Department of Artificial Intelligence and Machine Learning, Guru Nanak Dev Engineering College Bidar,
for her constant support and guidance throughout the course of our work. Her sincerity, thoroughness, and
perseverance have been a constant source of inspiration for us. We also do not like to miss the opportunity to
acknowledge the contribution of all faculty members of the department for their kind assistance and
cooperation during the development of our project. And last but not least, we acknowledge our friends for
their contribution to the completion of the project.

Mahesh
Vishnu
Saikumar (046)
Saikumar(045)
lOMoARcPSD|280 114 95

II

ABSTRACT

The purpose of University Management System is to automate the existing manual system by the help of
computerized equipments and full-fledged computer software,fulfilling their requirements,so that their
valuable data/information can be stored for a longer period with easy accessing and manipulation of the
same.The required software and hardware are easily available and easy to work with.

University Management System,as described above,can lead to error free,secure,reliable and fast management
system.It can assist the user to concentrate on their other activities rather to concentrate on the record keeping.
Thus it will help organization in better utilization of resources.The organization can maintain computerized
records without redundant entries.That means that one need not be distracted by information that is not
relevant,while being able to reach the information.

The system displays all the available records of available faculties,students,and their marks.It also controls
student attendance records under different dates and sets marks for students in various subjects.Users can
view the overall results of each student,including CGPA and download student and faculty records.
lOMoARcPSD|280 114 95

TABLE OF CONTENTS

Particulars Page No.

ACKNOWLEDGEMENT I
ABSTRACT II

LIST OF TABLES III


LIST OF FIGURES III

Chapter 1: INTRODUCTION ............................................................................................ 1

Chapter 2: REQUIREMENTS AND SYSTEM DESCRIPTION ................................. 2-3

Chapter 3: DESIGN ……………………………………………………………………….. 4-5

Chapter 4: IMPLEMENTATION …………………………………………………………6-15


4.1 TABLE CREATION ............................................................................ 7

4.2 CODE TO CONNECT DATABASE……………………………………….8-9

4.3 CODE FOR INSERTION AND RETRIVAL OPERATION……………9-12

4.4 CODE TO STREAMLIT(FRONTEND) DEVELPOMENT……………12-15

Chapter 5: APPLICATION SCREENSHOTS ............................................................... 16

Chapter 6: CONCLUSION AND FUTURE SCOPE ............................................... 17-18

Chapter 7: REFERENCES .................................................................................................................... 18-


19
lOMoARcPSD|280 114 95
Crime Database Management System
lOMoARcPSD|280 114 95

Chapter 1

INTRODUCTION

In today's digital age, universities and educational institutions are increasingly relying on

technology to streamline administrative processes and enhance academic operations. Traditional

methods of managing student records, course schedules, and faculty information are being

replaced by sophisticated software solutions known as university management systems.

The implementation of a university management system aims to centralize and automate various

administrative tasks, thereby improving efficiency, reducing paperwork, and providing better

services to students, faculty, and staff members. This system facilitates seamless communication,

data management, and decision-making processes within the institution.

Dept of AIML 2023−24 Page 1


Crime Database Management System
lOMoARcPSD|280 114 95

Chapter 2

SYSTEM REQUIREMENTS

To demonstrate and work with this project there few hardware and software requirements that
are to be satisfied To work with any storage system we need a database installed into our system
and as this project is made as an stand alone application any frontend tool can be used to design
and develop it .The major Hardware and Software requirements are listed below.

2.1 Hardware requirements


● Any modern updated Operating System (preferably 64-bit architecture)
● Minimum of 4 GB Ram
● The Disk space mainly depends on the size of data we will be dealing with ,but minimum
of 1GB is sufficient

2.2 Technologies Used


● My SQL(version-8.0.3.3)

● PHP(version-8.2.12)

● XAMPP(version-3.3.0)

● Apache(version-2.4.58)

Dept of AIML 2023−24 Page 2


Crime Database Management System
lOMoARcPSD|280 114 95

1. My SQL:
- MySQL is a relational database management system (RDBMS) developed by Oracle that is
based on structured query language (SQL).
- In this project, My SQL is likely used as the backend database to store and manage the data.

2.PHP:
- Hypertext Pre-processor commonly known as PHP is a general-purpose programming language
that is used in combination with various web template systems, web frameworks, and web content
management systems.

- In this project, PHP is likely used as the backend scripting language to build the web application.

3. XAMPP:
- XAMPP, which stands for Cross-Platform, Apache, MySQL, PHP, and Perl, is a free platform that
allows developers to test their code locally on their own computers..
- This platform provides the experience of having your own mini web server at home, compatible
with both Windows (WAMP) and Linux (LAMP) environments.

- In this project, XAMPP is likely used for interacting with the DBMS, Backend server(Apache)
through localhost.

4. Apache:
-Apache is a free, open-source web server that displays website contents.

- In this project, as a Web server, Apache is responsible for accepting directory (HTTP) requests
from Internet users and sending them their desired information in the form of files and Web pages.

Dept of AIML 2023−24 Page 2


Crime Database Management System
lOMoARcPSD|280 114 95

Overall, this project seems to be a combination of backend development with PHP and My SQL,
coupled with frontend development for data visualization and interaction using HTML, CSS,
Javascript.

2023−24 Page 3
Crime Database Management System
lOMoARcPSD|280 114 95

Chapter 3

DESIGN
The overall design objective is to provide an efficient, modular design that will reduce the system’s
complexity, facilitate change and result in an easy implementation. This will be accomplished by
designing a strong cohesion system with minimal coupling. The purpose of the design phase is to
develop a clear understanding of what the developer wants people to gain from the project. The
database application system may be divided into two kinds: one is data-centric and the other is
process-centric. The former takes the data provided as the goal, and the data acquisition, the
database construction and maintenance as the key point. Although the latter also includes these,
the emphasis is the service data, that is carrying on inquiry, statistics, report output and so on. In
this article the student information management database application system is mainly process-
centric.

Following the functional requirement of the student information management database application
system, the overall structure of the application system could be indicated with the hierarchy chart,
from the top to down: Layer 1 is the system layer, Layer 2 is the function layer, Layer 3 for
operation layer. Figure 3.1 is the overall structure of the student information management database
application system.

Dept of AIML 2023−24 Page 2


Crime Database Management System
lOMoARcPSD|280 114 95

-Entity Relationship Diagram :


III

Figure 3.

Dept of AIML 2023−24 Page 4


Crime Database Management System
lOMoARcPSD|280 114

Chapter 4

IMPLEMENTATION

Creating a university management system using PHP, MySQL, and XAMPP involves several
steps including database design, backend development, frontend development, and
integration. Below, is the outline of a basic implementation guide for such a system:

1. Setup XAMPP:
 Download and install XAMPP (which includes Apache, MySQL, PHP, and Perl)
from the Apache Friends website.
 Start the Apache and MySQL services from the XAMPP Control Panel.
2. Database Design:
 Design the database schema to store information such as students, courses,
professors, grades, etc. Identify the entities, attributes, and relationships
between them.
 Create the necessary tables in MySQL using phpMyAdmin or any MySQL
client.
3. Backend Development (PHP):
 Write PHP scripts to handle database operations like insert, update, delete,
and select.
 Implement authentication and authorization mechanisms for users (e.g.,
students, professors, admin).
 Develop backend logic to handle functionalities such as enrollment, grading,
scheduling, etc.
 Ensure security measures such as input validation, SQL injection prevention,
and session management.

Dept of AIML 2023−24 Page 6


Crime Database Management System
lOMoARcPSD|280 114 95

4. Frontend Development (HTML, CSS, JavaScript):


 Design the user interface using HTML for structure, CSS for styling, and
JavaScript for interactivity.
 Create different views for students, professors, and admin roles.
 Implement forms for data input (e.g., enrollment forms, grade submission
forms).
 Use JavaScript for client-side validation and AJAX for asynchronous requests
if needed.
5. Integration:
 Integrate the backend PHP scripts with the frontend HTML pages.
 Ensure proper communication between the frontend and backend using
HTTP requests.
 Test the system thoroughly to ensure all functionalities are working as
expected.
6. Testing and Debugging:
 Perform unit testing for individual components.
 Conduct integration testing to ensure all parts of the system work together
seamlessly.
 Debug any issues encountered during testing.
7. Deployment:
 Once testing is complete, deploy the system to the production environment.
 Configure the server settings to ensure smooth operation.
 Monitor the system for any performance issues or errors.
8. Maintenance and Updates:
 Regularly update and maintain the system to fix bugs and add new features
as needed.
 Backup the database regularly to prevent data loss.
 Keep the system secure by applying security patches and updates.

Dept of AIML 2023−24 Page 4


Crime Database Management System
lOMoARcPSD|280 114

Dept of AIML 2023−24 Page 6


lOMoARcPSD|280 114 95

Crime Database Management System

First, create a database according to the given ER diagram and Schema diagram. In Selected
Schema, there are three tables: two normal tables and one relationship table.

4.1Creating Tables In Created Database :

CREATE TABLE `admin` (


`id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `attn` (


`id` int(11) NOT NULL,
`st_id` int(11) NOT NULL,
`atten` varchar(50) NOT NULL,
`at_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `at_student` (


`id` int(11) NOT NULL,
`name` varchar(40) NOT NULL,
`st_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `faculty` (


`id` int(11) NOT NULL,
`username` varchar(15) NOT NULL,
`password` varchar(50) NOT NULL,
`name` varchar(30) NOT NULL,
`email` varchar(100) NOT NULL,
`birthday` date DEFAULT NULL,
`gender` varchar(10) NOT NULL,
`education` varchar(100) DEFAULT NULL,
`contact` int(100) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
lOMoARcPSD|280 114 95

Crime Database Management System

CREATE TABLE `result` (


`id` int(11) NOT NULL,
`st_id` int(11) NOT NULL,
`marks` int(5) NOT NULL,
`sub` varchar(50) NOT NULL,
`semester` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `st_info` (


`st_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`password` varchar(32) NOT NULL,
`email` varchar(50) NOT NULL,
`bday` date NOT NULL,
`program` varchar(10) NOT NULL,
`contact` varchar(20) NOT NULL,
`gender` varchar(10) NOT NULL,
`address` varchar(255) NOT NULL,
`img` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
lOMoARcPSD|280 114 95

Crime Database Management System

Indexes for dumped tables

-- Indexes for table `admin`

ALTER TABLE `admin`


ADD PRIMARY KEY (`id`);

-- Indexes for table `attn`

ALTER TABLE `attn`


ADD PRIMARY KEY (`id`);

-- Indexes for table `at_student`

ALTER TABLE `at_student`


ADD PRIMARY KEY (`id`);

-- Indexes for table `faculty`

ALTER TABLE `faculty`


ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`);

-- Indexes for table `result`

ALTER TABLE `result`


lOMoARcPSD|280 114 95

Crime Database Management System


ADD PRIMARY KEY (`id`);
-- Indexes for table ‘st_info’
ALTER TABLE `st_info`
ADD PRIMARY KEY (`st_id`);

AUTO_INCREMENT for dumped tables

-- AUTO_INCREMENT for table `attn`

ALTER TABLE `attn`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=225;

-- AUTO_INCREMENT for table `at_student`

ALTER TABLE `at_student`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

-- AUTO_INCREMENT for table `faculty`


ALTER TABLE `faculty`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

-- AUTO_INCREMENT for table `result`


ALTER TABLE `result`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
lOMoARcPSD|280 114 95

Crime Database Management System

After creating the tables in the University database, it is now time to develop the frontend of the
project that connects the database to the server using PHP and provides a smooth user interface
using HTML,CSS and Javascript , which helps in the insertion of data into the database and
retrieval of the required data using Query.

4.2 Code to Connect the Database:

<?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());
}

}
}

?>
lOMoARcPSD|280 114 95

Crime Database Management System


PHP Codes :

footerbottom.php

</div>
<footer class="container">
<h3 style="text-align:center;background:#2A2B3C;margin:0;padding:15px;color:#fff;font-
weight:normal">&copy;Developed by group07 - <?php echo date("Y");?> </h3>
</footer>
</html>

function.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;
lOMoARcPSD|280 114 95

Crime Database Management System

$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();
$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){
lOMoARcPSD|280 114 95

Crime Database Management System


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']);
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);
lOMoARcPSD|280 114 95

Crime Database Management System

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;
$_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']);
lOMoARcPSD|280 114 95

Crime Database Management System


}
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;
if($count == 1){
session_start();
$_SESSION['admin_login'] = true;
lOMoARcPSD|280 114 95

Crime Database Management System

$_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')";


lOMoARcPSD|280 114 95

Crime Database Management System


$result = $conn->query($sql2);
return $result;
}
public function insertattn($cur_date,$atten = array()){
global $conn;
$sql = "select distinct at_date from attn";
$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;
lOMoARcPSD|280 114 95

Crime Database Management System

$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);
}
}
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
lOMoARcPSD|280 114 95

Crime Database Management System


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);
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;
}
*/
lOMoARcPSD|280 114 95

Crime Database Management System

//end class
};

?>

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

<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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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" >
<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="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>
lOMoARcPSD|280 114 95

Crime Database Management System

<?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>

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

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">
lOMoARcPSD|280 114 95

Crime Database Management System


<!-- 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]-->

<!-- 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 ">
lOMoARcPSD|280 114 95

Crime Database Management System

<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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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" >
<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 ">
lOMoARcPSD|280 114 95

Crime Database Management System

<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">

Admin.php

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
lOMoARcPSD|280 114 95

Crime Database Management System


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

<div class="section">
<h3>Student</h3>
<ul>
<li><a href="admin_all_student.php">View All Student</a></li>
<li><a href="st_result.php">Student Result</a></li>
<li><a href="class_att.php">Attendance</a></li>
<li><a href="student_list_pdf.php"><button>Download Student
List</button></a></li>
</ul>
</div>
<div class="section">
<h3>Faculty</h3>
<ul>
<li><a href="admin_all_faculty.php">Faculty Details</a></li>
<li><a href="#">Information</a></li>
<li><a href="#">Search Faculty</a></li>
lOMoARcPSD|280 114 95

Crime Database Management System

<li><a href="faculty_list.php"><button>Download Faculty


List</button></a></li>
</ul>
</div>
<!-- <div class="section">

<h3>Registry</h3>
<ul>
<li><a href="#">Accounts</a></li>
<li><a href="#">Salary</a></li>
<li><a href="#">Student tution fee</a></li>
<li><a href="#">Other cost</a></li>
</ul>

</div> -->

</div>

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

admin-all-faculty.php

<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
lOMoARcPSD|280 114 95

Crime Database Management System


$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
lOMoARcPSD|280 114 95

Crime Database Management System

$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>

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

admin-all-student.php

<?php
ob_start ();
session_start();
require "php/config.php";
lOMoARcPSD|280 114 95

Crime Database Management System


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){
lOMoARcPSD|280 114 95

Crime Database Management System

echo "<h3 style='color:green;text-


align:center;margin:0;padding:10px;'>Data deleted successfully</h3>";
}
}

?>
<table class="tab_one">
<tr>
<th>SL</th>
<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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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();
}
lOMoARcPSD|280 114 95

Crime Database Management System

$delete =$user->delete_student($st_id);
if($delete){
header('Location: admin_all_student.php?res=1');
exit();
}
?>

admin-logout.php

<?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

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

Crime Database 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="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){
?>
<tr>
<th>Name</th>
<th>ID</th>
<th>Show Profile</th>
lOMoARcPSD|280 114 95

Crime Database Management System

<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>";
}
lOMoARcPSD|280 114 95

Crime Database Management System


}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

<?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');
lOMoARcPSD|280 114 95

Crime Database Management System

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>
lOMoARcPSD|280 114 95

Crime Database Management System


</tr>
<tr>
<td>Name: </td>
<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>
lOMoARcPSD|280 114 95

Crime Database Management System

<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";?>

admin-single-student-update.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'];
}else{
header('Location: admin.php');
lOMoARcPSD|280 114 95

Crime Database Management System


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);
lOMoARcPSD|280 114 95

Crime Database Management System

$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;
lOMoARcPSD|280 114 95

Crime Database 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>";
lOMoARcPSD|280 114 95

Crime Database Management System

}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" onchange="PreviewImage('personal_image', 'logo_preview')" />
lOMoARcPSD|280 114 95

Crime Database Management System


</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>
lOMoARcPSD|280 114 95

Crime Database Management System

</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";?>


lOMoARcPSD|280 114 95

Crime Database Management System


att-add.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();
}
?>
<?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'])){
lOMoARcPSD|280 114 95

Crime Database Management System

$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>
lOMoARcPSD|280 114 95

Crime Database Management System


<tr>
<td><input type="submit" name="sub" value="Add
student" /></td>
<td><input type="reset" /></td>
</tr>
</table>

</form>

</div>

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

att-del.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['dl'])){
lOMoARcPSD|280 114 95

Crime Database Management System

$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

<?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['dt'])){
$date = $_REQUEST['dt'];
}
?>
<?php
lOMoARcPSD|280 114 95

Crime Database Management System


$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>";

att-single-view-fc.php

<?php
lOMoARcPSD|280 114 95

Crime Database Management System

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();
}
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>
lOMoARcPSD|280 114 95

Crime Database Management System


</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>
lOMoARcPSD|280 114 95

Crime Database Management System

<?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>
<td><?php echo $rows['st_id'];?></td>

att-view.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();
}
lOMoARcPSD|280 114 95

Crime Database 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;"><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">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++;
lOMoARcPSD|280 114 95

Crime Database Management System

?>
<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

<?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();
lOMoARcPSD|280 114 95

Crime Database 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">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++;
?>
lOMoARcPSD|280 114 95

Crime Database Management System

<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

<?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();
}
?>
lOMoARcPSD|280 114 95

Crime Database 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>";
lOMoARcPSD|280 114 95

Crime Database Management System

}
}

?>

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

class-att-fc.php

<?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";
lOMoARcPSD|280 114 95

Crime Database Management System


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>";
}
}
lOMoARcPSD|280 114 95

Crime Database Management System

?>

<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++;
?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['st_id'];?></td>
<td>
lOMoARcPSD|280 114 95

Crime Database Management System


<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

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

require('plugins/fpdf/fpdf.php');
lOMoARcPSD|280 114 95

Crime Database Management System

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' ;


lOMoARcPSD|280 114 95

Crime Database 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);
lOMoARcPSD|280 114 95

Crime Database Management System

$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();

facultylogin.php

<?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";
?>
lOMoARcPSD|280 114 95

Crime Database Management System


<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'];

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" />
lOMoARcPSD|280 114 95

Crime Database Management System

<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() ;
?>

facultylogout.php

<?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
<?php
lOMoARcPSD|280 114 95

Crime Database Management System


session_start();
require "php/config.php";
require_once "php/functions.php";
$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'];
lOMoARcPSD|280 114 95

Crime Database Management System

$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">
lOMoARcPSD|280 114 95

Crime Database 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>

fct-single-profile.php

<?php
lOMoARcPSD|280 114 95

Crime Database Management System

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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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>
<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>
lOMoARcPSD|280 114 95

Crime Database Management System

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


</tr>
<?php if($row['username'] == $funame){ ?>

<?php } } ?>
</table>

</div>

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

footer.php

</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() {
lOMoARcPSD|280 114 95

Crime Database Management System


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();
if (windowpos >= pos.top) {
s.addClass("stickside");
} else {
s.removeClass("stickside");
}
});
});

header.php

<!Doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
lOMoARcPSD|280 114 95

Crime Database Management System

<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" >
<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>
lOMoARcPSD|280 114 95

Crime Database Management System


</div>
</div>
<div class="menu fix">
<div class="dateshow fix"><p><?php echo "Date : ".date("d
M Y"); ?></p></div>
<!-- <ul>
<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">
<div class="sidebar fix" >
<ul>
<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>
lOMoARcPSD|280 114 95

Crime Database Management System

<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.php

<?php
lOMoARcPSD|280 114 95

Crime Database Management System


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);
lOMoARcPSD|280 114 95

Crime Database Management System

$login = $user->admin_userlogin($username,
$password);

st-change-pass.php

<?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();
}
?>

<?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"){
lOMoARcPSD|280 114 95

Crime Database Management System


$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>
lOMoARcPSD|280 114 95

Crime Database Management System

</tr>
<tr>
<td style="width:125px;"></td>
<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>
lOMoARcPSD|280 114 95

Crime Database Management System


</div>
</div>

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

st-login.php

<?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">

<?php
lOMoARcPSD|280 114 95

Crime Database Management System

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>
lOMoARcPSD|280 114 95

Crime Database Management System


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

st-logout.php

<?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

<?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();
lOMoARcPSD|280 114 95

Crime Database Management System

}
?>
<?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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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>
</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){ ?>
lOMoARcPSD|280 114 95

Crime Database Management System

<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

<?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">
lOMoARcPSD|280 114 95

Crime Database Management System


<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'];

$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){
lOMoARcPSD|280 114 95

Crime Database Management System

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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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>
lOMoARcPSD|280 114 95

Crime Database Management System

<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>
lOMoARcPSD|280 114 95

Crime Database Management System


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

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

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
lOMoARcPSD|280 114 95

Crime Database 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()){
lOMoARcPSD|280 114 95

Crime Database Management System


$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-result-update.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()){
lOMoARcPSD|280 114 95

Crime Database Management System

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);
if($res){
echo "<h3 style='color:green;margin:0;padding:0;text-
align:center'>Marks successfully updated!</h3>";
}else{
lOMoARcPSD|280 114 95

Crime Database Management System


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>
lOMoARcPSD|280 114 95

Crime Database Management System

<?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-update.php

<?php
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();
lOMoARcPSD|280 114 95

Crime Database Management System


}
*/
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
lOMoARcPSD|280 114 95

Crime Database Management System

$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 {

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); // "}"
lOMoARcPSD|280 114 95

Crime Database Management System


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'];
lOMoARcPSD|280 114 95

Crime Database Management System

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">


<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>
lOMoARcPSD|280 114 95

Crime Database Management System


<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>
lOMoARcPSD|280 114 95

Crime Database Management System

<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="st_profile.php"><button
class="editbtn">Back to your Profile</button></a></p>
</div>
</div>
lOMoARcPSD|280 114 95

Crime Database Management System

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

student-list-pdf.php

<?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);
lOMoARcPSD|280 114 95

Crime Database Management System

$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();
lOMoARcPSD|280 114 95

Crime Database Management System


$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);
lOMoARcPSD|280 114 95

Crime Database Management System

$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++;
$pdf->Ln();
}

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

$pdf->Output();

?>

view-cgpa.php

<?php
session_start();
require "php/config.php";
lOMoARcPSD|280 114 95

Crime Database Management System


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;
lOMoARcPSD|280 114 95

Crime Database Management System

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>
<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();
lOMoARcPSD|280 114 95

Crime Database Management System

$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";}
elseif($mark>=60 && $mark<70){echo "D";}
lOMoARcPSD|280 114 95

Crime Database Management System

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>
lOMoARcPSD|280 114 95

Crime Database Management System


<?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>
lOMoARcPSD|280 114 95

Crime Database 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

<?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');
lOMoARcPSD|280 114 95

Crime Database Management System


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;
elseif($x == "Psychology") return 3;
}
function grade_point($gd){
if($gd<60) return 0;
lOMoARcPSD|280 114 95

Crime Database Management System

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'){
lOMoARcPSD|280 114 95

Crime Database Management System


$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>
<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>
lOMoARcPSD|280 114 95

Crime Database Management System

<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{
lOMoARcPSD|280 114 95

Crime Database Management System


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";
lOMoARcPSD|280 114 95

Crime Database Management System

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

<?php
lOMoARcPSD|280 114 95

Crime Database 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();
}
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;
lOMoARcPSD|280 114 95

Crime Database Management System

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;
lOMoARcPSD|280 114 95

Crime Database Management System

//$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
lOMoARcPSD|280 114 95

Crime Database Management System

$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>
lOMoARcPSD|280 114 95

Crime Database Management System

</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>
lOMoARcPSD|280 114 95

Crime Database Management System

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

<?php
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$sid = $_SESSION['sid'];
$sname = $_SESSION['sname'];
lOMoARcPSD|280 114 95

Crime Database Management System


if(!$user->getsession()){
header('Location: st_login.php');
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;
}
lOMoARcPSD|280 114 95

Crime Database Management System

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
class="editbtn">View CGPA & Complete Course</button></a></p>
</div>
<?php
//select semester
lOMoARcPSD|280 114 95

Crime Database Management System


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']);

?>
lOMoARcPSD|280 114 95

Crime Database Management System

<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>";
lOMoARcPSD|280 114 95

Crime Database Management System


}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{
lOMoARcPSD|280 114 95

Crime Database Management System

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>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>
lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System


lOMoARcPSD|280 114 95

Crime Database Management System

Dept of AIML 2023−24 Page 15


Crime Database Management System
lOMoARcPSD|280 114 95

Chapter 5

APPICATION SCREENSHOTS

Dept of AIML 2023−24 Page 16


Crime Database Management System
lOMoARcPSD|280 114 95
Crime Database Management System
lOMoARcPSD|280 114 95
Crime Database Management System
lOMoARcPSD|280 114 95
Database Management System
lOMoARcPSD|280 114 95

Chapter 6

CONCLUSION AND FUTURE SCOPE

In conclusion, the development and implementation of the university management system using

PHP, MySQL, and XAMPP represent a significant step towards modernizing and enhancing

administrative processes within educational institutions. Throughout this report, we have explored

the various aspects of the system, from its architecture and design to its features, functionality, and

deployment.

The university management system offers numerous benefits, including streamlined administrative

workflows, improved data management, enhanced accessibility, and better decision-making

capabilities. By automating tasks such as student enrollment, course management, and

examination scheduling, the system helps save time and resources while minimizing errors and

inconsistencies.

The project has a very vast scope in the future. The project can be implemented on the intranet in

the future. The project can be updated in the near future as and when the requirement for the same

arises, as it is very flexible in terms of expansion. With the proposed software for database Space

Manager ready and fully functional, the client is now able to manage and hence run the entire work

in a much better, more accurate, and error-free manner.

The scope of the university management system includes but is not limited to the

following modules:

Dept of AIML 2023−24 Page 17


Crime Database Management System
lOMoARcPSD|280 114 95

 User Management: Registration, login, and profile management for students,

faculty, and administrators.

 Course Management: Creation, modification, and scheduling of academic courses

and programs.

 Student Management: Enrollment, registration, attendance tracking, and academic

performance monitoring for students.

 Faculty Management: Recruitment, assignment, and performance evaluation of

faculty members.

 Administrative Functions: Financial management, library services, examination

scheduling, and result processing.

Dept of AIML 2023−24 Page 17


Database Management System
lOMoARcPSD|280 114 95

REFERENCES

1. Fundamentals of Database Systems, Ramez Elmasri and Shamkant B. Navathe, 7 7th


Edition, 2017, Pearson.
2. PHP tutorial on how to create web application.
3. My SQL project models and databases .

Dept of AIML 2023−24 Page 17


Crime Database Management System
lOMoARcPSD|280 114 95

Dept of AIML 2023−24 Page 19

You might also like