Dbms Draft Report
Dbms Draft Report
Dbms Draft Report
PROJECT ASSOCIATES
Nandeesh Reval 4BD19CS053
Prerana C P 4BD19CS063
PROJECT GUIDES
Prof. Shryavani K Prof. Vaishnavi Ajay Inamdar
Department of CS&E Department of CS&E
B.I.E.T, Davanagere. B.I.E.T, Davanagere.
_
Prof. Shryavani K Prof. Vaishnavi Ajay Inamdar
Department of CS&E, Department of CS&E,
B.I.E.T, Davanagere. B.I.E.T, Davanagere.
Head of Department
Date: 1)
Place: Davanagere 2)
ACKNOWLEDGEMENT
Salutations to our beloved and highly esteemed institute, “BAPUJI INSTITUTE OF
ENGINEERING AND TECHNOLOGY” for having well qualified staff and lab furnished with
necessary equipment’s.
We express our sincere thanks to our guides Prof. Shryavani K and Prof. Vaishnavi Ajay
Inamdar for giving us constant encouragement, support and valuable guidance throughout the
course of project without whose guidance this project would not have been achieved.
We express whole hearted gratitude to Dr. Nirmala C R, H.O.D of Computer Science and
Engineering Department. We wish to thank her for making our task easy by providing her
valuable help and encouragement.
We also express our whole hearted gratitude to our principal, Dr. H B ARAVIND for his moral
support and encouragement.
We would like to extend our gratitude to all staff of Computer Science and Engineering
Department for their help and support. Also, we have benefited a lot from the feedback,
suggestions given by them.
We would like to extend our gratitude to all my family members and friends especially for their
advice and moral support.
Vision
“To be centre of excellence recognized nationally and internationally, in distinctive areas of
engineering education and research, based on a culture of innovation and invention.”
Mission
“BIET contributes to the growth and development of its students by imparting a board- based
engineering education and empowering them to be successful in their chosen field by inculcating
in them positive approach, leadership qualities and ethical values.”
Vision
“To be a centre of excellence in imparting state-of-the-art technology in the field of
Computer Science and Engineering education enabling the students to become professionally
sound and ethically strong”.
Mission
1. Adapting best in class teaching and learning methodology to mould the students to
become industry ready.
2. Creating conductive environment for imparting quality education the facilitate research
and Innovation.
3. Establishing industry relationship to bridge the skill gap.
4. Educating the students to be successful lifelong learners by inculcating ethical values
and social responsibilities.
1. Program Educational Outcomes (PEOs)
PEO1 To provide students with adequate knowledge in mathematics, computer
science and few interdisciplinary courses that gears them for advanced
technology.
PEO2 To impart core knowledge in both hardware and software with problem
solving techniques.
PEO3 To conduct effective training programs in order to explore and enhance their
skills to synchronize with dynamic industry practices.
PSO1 Able to understand, analyse and develop simple to complex programs with the help
off knowledge gained from the Computer Science and Engineering subjects.
PSO2 Ability to develop real time, secure and distributed applications related to industry
and society with the knowledge of courses like Artificial Intelligence, Machine
learning, Big Data, Cloud Computing, IoT, Cyber Security and Open- source
Platforms.
Course Outcomes:
The students should be able to:
1 Use structured query language (SQL) for database creation and manipulation.
Demonstrate the working of different concepts of DBMS.
2 Implement and test the project developed for an application.
Course Objectives:
This course will enable students to:
The purpose of Employee Leave Management System is to automate the existing manual system
by the help of computerized equipment 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. Employee Leave 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 aim is to automate its existing
manual system by the help of computerized equipment 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. Basically the process describes how to
manage for good performance and better services for the clients.
1
Problem Statement Manual handling of employee information poses a number of
challenges. To develop a system that will maintain employee information in a database by fully
privacy and authority access. The project is aimed at setting up employee’s information system
about the status of the employee, the educational background and the work experience in order
to help monitor the performance and achievement of the employee through a password protected
system.
⮚ With the help of this application users can apply leave through online.
⮚ Head of the department can approve or escalate to higher levels; admin can update leave
status online.
⮚ The user can see the status of all leave taken and their remaining leave through this
application.
⮚ This system can be used to automate the workflow of leave request and their approvals.
⮚ There are features like approval of leave, cancellation of leave, report generators in this
system.
2
CHAPTER 2
REQUIREMENT SPECIFICATION
3
CHAPTER 3
The entity relationship data mode is based on preparation of real world that consisting of
collection of Basic objects call entities and relationships among those objects. an entity is an
“object” in the real world. That is distinguishable from other objects as you can see in the Fig
3.1.
4
Fig 3.1 Complete E-R diagram
5
3.2 Conversion of ER to Schema Diagram
The Fig 3.2 shows the skeleton structure that represents the logical view of entire
database. Schema defines its entities and the relationship among them. It contains a descriptive
detail of database, which can be depicted by means of schema diagram. This diagram shows the
working scope of an administrators and normal users.
6
CHAPTER 4
IMPLEMENTATION
4.1 Overview
Implementation is the process of converting a new revised system design into operation.
The objective is to put the new revised system, which has been tested into operation while
holding costs, risks and personal irritation to the minimum. A critical aspect of the
implementation process is to ensure that there will be no description in the function of the
organization. The best methods for gaining control while implementation any new system would
be to use well planned test files for testing all new programs.
7
4.2 SOURCE CODE
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['emplogin'])==0)
header('location:index.php');
else{
if(isset($_POST['apply']))
$empid=$_SESSION['eid'];
$leavetype=$_POST['leavetype'];
$fromdate=$_POST['fromdate'];
$todate=$_POST['todate'];
$description=$_POST['description'];
$status=0;
$isread=0;
8
$error=" ToDate should be greater than FromDate ";
$sql="INSERT
tblleaves(LeaveType,ToDate,FromDate,Description,Status,IsRead,empid)
VALUES(:leavetype,:todate,:fromdate,:description,:status,:isread,:empid)";
$query = $dbh->prepare($sql);
$query->bindParam(':leavetype',$leavetype,PDO::PARAM_STR);
$query->bindParam(':fromdate',$fromdate,PDO::PARAM_STR);
$query->bindParam(':todate',$todate,PDO::PARAM_STR);
$query->bindParam(':description',$description,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->bindParam(':isread',$isread,PDO::PARAM_STR);
$query->bindParam(':empid',$empid,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
else
9
$error="Something went wrong. Please try again";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="http://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
10
<link href="assets/plugins/material-preloader/css/materialPreloader.min.css"
rel="stylesheet">
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
11
}
</style>
</head>
<body>
<?php include('includes/header.php');?>
<?php include('includes/sidebar.php');?>
<main class="mn-inner">
<div class="row">
</div>
<div class="card">
<div class="card-content">
<div>
<section>
<div class="wizard-content">
<div class="row">
12
<div class="col m12">
<div class="row">
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
foreach($results as $result)
{ ?>
13
<?php }} ?>
</select>
</div>
</div>
</div>
<label for="birthdate">Description</label>
</div>
</div>
14
</div>
</div>
</section>
</section>
</div>
</form>
</div>
</div>
</div>
</div>
</main>
</div>
<div class="left-sidebar-hover"></div>
<script src="assets/plugins/jquery/jquery-2.2.0.min.js"></script>
<script src="assets/plugins/materialize/js/materialize.min.js"></script>
<script src="assets/plugins/jquery-blockui/jquery.blockui.js"></script>
<script src="assets/js/alpha.min.js"></script>
15
<script src="assets/js/pages/form_elements.js"></script>
<script src="assets/js/pages/form-input-mask.js"></script>
<script src="assets/plugins/jquery-inputmask/jquery.inputmask.bundle.js"></
script>
</body>
</html>
<?php } ?>
16
CHAPTER 5
SNAPSHOTS
Home Page
This is the login page of our Employee-Leave management System where
employees or admin can login to their respective user account by entering username and
password.
17
Admin page:
This is admin login page where admin can login into his page by entering user name and
password.
Admin Dashboards This is the Admin dashboard page where admin enter his page and
controls all the operations.
Fig 5.3 Admin Dashboards
18
Employee Home Page
Here Employee can view and update his profile , change Password, apply leave.
19
Fig 5.15 Employee Info (Profile)
20
Employee Leave application
Here Employee can apply Leave to his Department.
21
CONCLUSION
With the theoretical inclination of our syllabus it becomes very essential to take the at most
advantage of any opportunity of gaining practical experience that comes along. The building
blocks of this Major Project "EMPLOYEE LEAVE MANAGEMENT SYSTEM" was one of
these opportunities. It gave us the requisite practical knowledge to supplement the already
22
REFERENCES
Books
nd
1. “Web Programming”, by ‘Chris Bates’ Wiley Dreamtech India, 2
Edition.“BeginningJava. Server pages” by ‘Vivek Chopra’,’John Eves’.
Websites
4. http://en.wikipedia.org/wiki/PHP
5. http://www.hotscripts.com/category/php/for
23