You are on page 1of 40

Visvesvaraya TechnologicaL University

Belagavi, Karnataka

DATABASE MANAGEMENT SYSTEM MINI-PROJECT REPORT


ON
“PROJECT TITLE”

Submitted by
Name USN

1. ……………… 1KI20CS0..
1KI20CS0...
2. ………………

Submitted in partial fulfillment of the requirements for the award of degree


BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING

Under the Guidance of


Dr. CHETHAN CHANDRA S BASAVARADDI -B.E., M.Tech., Ph.D.,D.Litt.
Associate Professor, Dept of CSE
KIT, Tiptur.

Department of Computer Science & Engineering


Kalpataru Institute of Technology
Tiptur-572201
2022-2023
Kalpataru Vidya Samsthe®

KALPATARU INSTITUTE OF TECHNOLOGY

COMPUTER SCIENCE AND ENGINEERING


CERTIFICATE

This is to certify that the database management system Mini Project Entitled

“PROJECT TITLE”
Submitted by
1. …………….. 1KI20CS0..
2. …………….. 1KI20CS0..

Students of 5th Semester B.E. CSE, in partial fulfillment of the


requirement for the award of degree of Bachelor of Engineering in
‘ Computer Science and Engineering ’ of Visvesvaraya Technological
University, Belagavi during the year 2022-23.

Signature of Guide Signature of HOD

Dr. CHETHAN Prof. SHASHIDHARA M S


CHANDRA S BASAVA Assoc. Professor &
RADDI Head Dept of CSE
Assoc. Professor KIT, Tiptur.
KIT, Tiptur.

Name of Examiners Signature with date

1.

2.
ACKNOWLEDGEMENT

The satisfaction and great happiness that accompany the successful completion of presenting
the Database Management System Laboratory Mini Project report on “PROJECT TITLE”,
would be incomplete without mentioning about the people who made it possible. Here we make
an honest attempt to express our deepest gratitude to all those who have been helpful and
responsible for the successful completion of our DBMS Mini-Project.

We would like to thank Dr. GURUMURTHY, Principal, Kalpataru Institute of Technology,


Tiptur for his continuous support and encouragement throughout the course of this mini-
project.

We would like to thank Prof. SHASHIDHARA M S, Head of Department, Department of


Computer Science and Engineering, Kalpataru Institute of Technology, Tiptur for his
continuous support and encouragement throughout the course of this mini-project.

We are immensely indebted to our internal guide, Dr. Chethan Chandra S Basavaraddi,
Associate Professor, Department of Computer Science and Engineering, Kalpataru Institute of
Technology, Tiptur for his support, technical assistance and constructive suggestions and
guidance for successful completion of our mini-project. We are very much thankful to him for
the encouragement that has infused at most real into us to complete the mini-project work.

We would like to thank all faculty members of Department of Computer Science and
Engineering, KIT, Tiptur, our family members, and to our friends who are directly or indirectly
responsible for our success.
Thanking You
…………-1KI20CS0...
………….-1KI20CS0…

ABSTRACT
➢ Apartment Visitor Management System deals with the security
provided at society premises from the unauthorized or unwanted
visitors.

 Nowadays, in most society visitor management consists of visitors


scribbling their name in a paper book.

 Instead, Apartment Visitor Management System will assist you the


professionalized way in which you welcome your visitors. This
software is a complete Visitor Management service to improve the
efficiency, productivity and security.

 The Apartment Visitor Management System is an extremely user-


friendly system that helps you manage and track any visitors or
guests to your apartment. It keeps track of anyone visiting your
apartment, starting from guests and family members to maids and
contract laborers.
APARTMENT VISITOR MANAGEMENT

TABLE OF CONTENTS

1. INTRODUCTION……………………………………………………………...2-4
1.1 Overview…………………………………………………………………..2
1.2 Background and Motivation………………………………………………3
1.3 Methodology……………………………………………………………….3
1.4 Scope of project…………………………………………………………….4

2. REQUIREMENTS SPECIFICATION……………………………………………...5-6
2.1 Introduction………………………………………………………………...5
2.2 Hardware requirements……………………………………………………..5
2.3 Software requirements………………………………………………………5

3. ANALYSIS……………………………………………………………………..7-10
3.1 Existing System……………………………………………………………..7
3.2 Proposed System…………………………………………………………....7
3.3 Software Specification…………………………………………………………. 7

4. DESIGN…………………………………………………….………………….11-15
4.1 Introduction to UML………………………………………………………..11
4.2 E-R Diagram………………………………………………………………..14
4.3 Schema Diagram……………………………………………………………14
4.4 Relation Data Base Design………………………………………………....15

5. SYSTEM IMPLEMENTATION…………………………………………………... 16-27


5.1 Introduction………………………………………………………………...16
5.2 Sample code………………………………………………………………......... 17

6. TESTING…………………………………………………………………….... 28-30
6.1 Introduction…………………………………………………………………28
6.2 Testing Methods…………………………………………………………………28

7. SAMPLE SCREENSHOTS………………………………………………………… 31-34

CONCLUSION………………………………………………………………….35

BIBLIOGRAPHY…………………………………………………………….....36

1
APARTMENT VISITOR MANAGEMENT

1. INTRODUCTION

1.1 Overview

Apartment Visitor Management system is a web-based technology that will


revolutionize the way your society manages visitors. Visitor Management system is
more important to security guards or security society. This web application provides a
way to effectively control record & track society visitor traffic.
In AVMS we use PHP and MySQL database. This is the project which keeps records
of visitors who visited in the Society. AVMS has one module i.e. admin
• Dashboard: In this section, admin can briefly view how many visitors visited in a
particular period.
• Visitors: In this section, admin adds new visitors by filling their information in add
visitors sections and also view and manage visitor’s records. Admin also put visitors out
time in the manage records section.
• Search: In this bar, admin can search a particular person by their name and phone
number.
• Reports: In this section admin can generate visitor’s reports between two dates. Admin
can also update his profile, change password and recover password.

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


2
APARTMENT VISITOR MANAGEMENT

1.2 Background and Motivation:

The project was undertaken to uncover various problems with conventional


apartment visitor management system .
These include
 Lack of data security
 Difficult to maintain records and access records
 Its time consuming
 Difficult and requires lot of labour

It is fast and very efficient and welcome to every visitor . You can make the facultysafe
by securing the apartment . It makes the process easy and error free. Data is secured
and easy to retrieve old records in short time.

1.3 Methdology

The purpose of developing apartment visitor management system is to


computerized the tradition way of visitors. Another purpose for developing this
application is to generate the report automatically .In this module, it consist of page
asking details of the visitor such as name, number, address, apartment number,
purpose of visit, date, time, flat number . After entering the details of the visitor is
notified to the respective flat through the software developed.

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


3
APARTMENT VISITOR MANAGEMENT

1.4 Scope of Project

The purpose of developing apartment visitor management system is to


computerized the tradition way of visitors. Another purpose for developing
this application is to generate the report automatically.

The objective of the apartment visitor management system this software will
reduce manual work and maintain updates in database from time to time. It is
easy to handle works related to many apartments at a time without any
confusion.

Apartment visitor management system provide easily accessible by all group


of people who visited the apartment . The only thing user should concentrate
is entering the details properly .

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


4
APARTMENT VISITOR MANAGEMENT

2. REQUIREMENT SPECIFICATION

2.1 INTRODUCTION:
To be used efficiently, all computer software needs certain hardware components or the other software
resources to be present on a computer. These pre-requisites are known as(computer)system
requirements and are often used as a guideline as opposed to an absolute rule. Most software defines two
sets of system requirements: minimum and recommended. With increasing demand for higher processing
power and resources in newer versions of software, system requirements tend to increase over time.
Industry analysts suggest that this trend plays a bigger part in driving upgrades to existing computer
systems than technological advancements.

2.2 HARDWARE REQUIREMENTS:


The most common set of requirements defined by any operating system or software application is the
physical computer resources, also known as hardware. A hardware requirements list is often
accompanied by a hardware compatibility list (HCL), especially in case of operating systems. An HCL
lists tested, compatibility and sometimes incompatible hardware devices for a particular operating
system or application. The following sub-sections discuss the various aspects of hardware
requirements.

HARDWARE REQUIREMENTS FOR PRESENT PROJECT:

 PROCESSOR : i 5 / ryzen 5
 RAM : 4 GB
 HARD DISK : 250 MB

2.3 SOFTWARE REQUIREMENTS:

Software Requirements deal with defining software resource requirements and pre- requisites that
need to be installed on a computer to provide optimal functioning of an application. These
requirements or pre-requisites are generally not included in the software installation package and
need to be installed separately before the software is installed.

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


5
APARTMENT VISITOR MANAGEMENT

SOFTWARE REQUIREMENTS FOR PRESENT PROJECT :

 WEB SERVER : Apache


 WEB BROWSER : Google Chrome
 SERVER SIDE Language : PHP.6 or above version
 DATABASE : MySQL
 OPERATING SYSTEM: WindowsXP/10/11
 FRONT END:HTML,CSS,PHP

IMPLEMENTATION is the stage of the project when the ‘Theoretical Design’ is turned out into a
‘Working System’. Thus, it can be considered to be the “Most Critical Stage” in achieving a ‘Successful
New System’ ; and in giving User the Confidence, that the new system will work, be effective and
satisfies the need of developing it.

The Implementation stage involves careful planning, investigation of the existing system and it’s
constraints on implementation, designing of methods to achieve changeover and evaluation of
changeover methods. However, the Implementation can be achieved only upto 90% when compared to
that of the Theoretical Design. This doesn’t mean that the working requirement can be compromised.
Though we cannot implement the Theoretical Design as it is, we should make sure that the desired
working nature of the Project should get implemented to the most.

To Implement this “Apartment Visitor Management System”, we have used Front-end Technologies like
HTML, CSS and JavaScript ; PHP as the Back-end Technology ; and MySQL as the Database Query
Language. By Default, to integrate our codes written in different languages, we are making use of
“Xampp Server” to run our Project Code on the “Google Chrome” Web Browser

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


6
APARTMENT VISITOR MANAGEMENT

3. ANALYSIS

3.1 EXISTING SYSTEM:

Apartment Visitor Plant currently use a manual system for the management and maintenance of critical
information. The current system requires numerous paper forms, with data stores spread throughout the
Apartment Management System infrastructure. Often information is incomplete or does not follow
management standards. Forms are often lost in transit between departments requiring a comprehensive
auditing process to ensure that no vital information is lost.

3.2 PROPOSED SYSTEM:

The Apartment Visitors Management System is designed for any Apartment Visitors plants to replace their existing
manual paper based system. The new system is to control the unauthorized or unwanted visitors. These services are
to be provided in an efficient manner easily accessible by all group of people who visitedthe apartment . The only thing
user should concentrate is entering the details properly .

3.3 SOFTWARE SPECIFICATION:

Personal Home Page (PHP):


PHP was first created as a simple scripting platform called “Personal Home Page“. Nowadays PHP is an alternative
of the Microsoft’s Active Server Pages (ASP) technology.

PHP is an open source server-side language which is used for creating dynamic web pages. It can be embedded into
HTML. PHP is usually used in conjunction with a MySQL database on Linux/UNIX web servers. It is probably the
most popular scripting language.

It is a server-side scripting language that is used for web development. It can be easily embedded with HTML files.
HTML codes can also be written in a PHP file. The PHP codes are executed on the server-side whereas HTML codes
are directly executed on the browser.

PHP is the most popular scripting language for web development. It is free, open source and server-side (the code is
executed on the server). MySQL is a Relational Database Management System (RDBMS) that uses Structured
Query Language (SQL). It is also free and open source. The combination of PHP andMySQL gives unmet options to
create just about any kind of website – from a small contact form to large corporateportal.

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


7
APARTEMENT MANAGEMENT SYSTEM

HTML:
HTML or Hypertext Markup Language is the standard markup language used to create web pages.
HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets(like
<html>). HTML tags most commonly come in pairs like <h1> and </h1>,although some tags represent
empty elements and so are unpaired, for example <img>. Thefirst tag ina pair is the start tag, and the
second tag is the end tag (they are also calledopening tags and closing tags). Though not always
necessary, it is best practice to append aslash to tags which are not paired with a closing tag.
The purpose of a web browser is to read HTML documents and compose them
into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to
interpret the content of the page. HTML describes the structure of a website semantically along with cues
for presentation, making it a markup language rather than a programming language.

CASCADING STYLE SHEETS(CSS):

It is a style sheet language used for describing the look and formatting of a document written in
a markup language. While most often used to style web pages and interfaces written in HTML
and XHTML, the language can be applied to any kind of XML document,including plain
XML, SVG and XUL. CSS is a cornerstone specification of the web and almost all web pages
use CSS style sheets to describe their presentation.CSS is designed primarily to enable the
separation of document content from document presentation, including elements such as the
layout, colors, and fonts.

This separation can improve content accessibility, provide more flexibility and control in the
specification of presentation characteristics, enable multiple pages to share formatting, and
reduce complexity and repetition in the structural content .CSS can also allow the same
markup page to be presented in different styles for different rendering methods, such as on-
screen, in print, by voice (when read out by a speech-based browser or screen reader) and on
Braille-based, tactile devices. It can also be used to allow the web page to display differently
depending on the screen size or device on which it is being viewed.

MySQL:

MySQL is developed, distributed, and supported by Oracle Corporation. MySQL is a database


system used on the web it runs on a server. MySQL is ideal for both small and large applications. It
is very fast, reliable, and easy to use. It supports standard SQL. MySQL can be compiled on a
number of platforms.The data in MySQL is stored in tables.

A table is a collection of related data, and it consists of columns and rows. Databases are useful
when storing information categorically. MySQL is the world's most popular open-source database.
Despite its powerful features, MySQL is simple to set up and easy to use. Below are some
instructions to help you get MySQL up and running in a few easy steps. We also explain how to
perform some basic operations with MySQLusing the mysql client.

DEPARTMENT OF CSE ,KIT-TIPTUR : 2022-23


8
APARTMENT VISITOR MANAGEMENT

FEATURES OF MySQL:

Internals and portability:

 Written in C and C++.

 Tested with a broad range of different compilers.

 Works on many different platforms.


 Tested with Purify (a commercial memory leakage detector) as well as with Val grind, aGPL
tool.

 Uses multi-layered server design with independent modules.

Security:

A privilege and password system that is very flexible and secure, and that enables

 host-based verification.

 Password security by encryption of all password traffic when you connect to a server.

CONNECTIVITY:

 Clients can connect to MySQL Server using several protocols:

 Clients can connect using TCP/IP sockets on any platform.

 On Windows systems in the NT family (NT, 2000, XP, 2003, or Vista),


clients can connect using named pipes if the server is started with the --
enable-named- pipe option. In MySQL 4.1 and higher, Windows servers
also support shared-memoryconnections if started with the --shared-
memory option.
 Clients can connect through shared memory by using the --protocol=memory option.

 On UNIX systems, clients can connect using Unix domain socket files.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


9
APARTMENT VISITOR MANAGEMENT

LOCALIZATION:

 The server can provide error messages to clients in many languages.

 All data is saved in the chosen character set.

CLIENTS AND TOOLS:

 MySQL includes several client and utility programs. These include both command-
line programs such as mysqldump and mysqladmin, and graphical programs such as
MySQLWorkbench.

 MySQL Server has built-in support for SQL statements to check, optimize, and
repair tables. These statements are available from the command line through the
mysqlcheck client. MySQL also includes myisamchk , a very fast command-line
utility for performing these operations on MyISAM tables.

 MySQL programs can be invoked with the --help or -? option to obtain online
assistance.

WHY TO USE MySQL:

 Leading open source RDBMS


 Ease of use– No frills
 Fast
 Robust
 Security
 Multiple OS support
 Free
 Technical support
 Support large database – up to 50 million rows, file size limit up to 8 Million TB

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


10
APARTMENT VISITOR MANAGEMENT

4. DESIGN

4.1 INTRODUCTION TO UML:

UML Design :
The Unified Modeling Language (UML) is a standard language specifying,visualizing, constructing,
and documenting the software system and its components. It is a graphical language , which provides a
vocabulary and set of semantics and rules. The UML focuses on the conceptual and physical
representation of the system. It captures the decisions and understandings about systems that must be
constructed. It is used to understand, design,configure, maintain, and control information about the
systems.

The UML is a language for:


➢ Visualizing
➢ Specifying
➢ Constructing
➢ Documenting

➢ Visualizing :

Through UML we see or visualize an existing system and ultimately we visualize how the system is
going to be after implementation. Unless we think, we cannot implement.UML helps to visualize, how
the components of the system communicate and interact with each other.

➢ Specifying :

Specifying means building, models that are precise, unambiguous and complete UML addresses the
specification of all the important analysis design, implementation decisions that must be made in
developing and deploying a software system.

➢ Constructing :

UML models can be directly connected to a variety of programming language through mapping a model
from UML to a programming language like JAVA or C++ or VB.Forward Engineering and Reverse
Engineering is possible through UML.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


11
APARTMENT VISITOR MANAGEMENT

➢ Documenting :

The Deliverables of a project apart from coding are some Artifacts, which are critical in controlling,
measuring and communicating about a system during its developing requirements, architecture, desire,
source code, project plans, tests, prototypes releasers,etc...

UML Approach:

UML Diagram :

A diagram is the graphical presentation of a set of elements, most often rendered as a connected graph of
vertices and arcs. You draw diagram to visualize a system from different perspective, so a diagram is a
projection into a system. For all but Most trivial systems, a diagram represents an elided view of the
elements that make up a system. The same element may appear in all diagrams, only a few diagrams , or in
nodiagrams at all. In theory, a diagram may contain any combination of things And relationships. In
practice, however, a small number of common combinations arise,which are consistent with the five most
useful views that comprise the architecture of software-intensive system. For this reason, the UML
includes nine such diagrams:

1.Class diagram
2.Object diagram
3.Use case diagram
4.Sequence diagram
5.Collaboration diagram
6.State chart diagram

7. Activity diagram
8.Component diagram
9.Deployment diagram

USE CASE DIAGRAM:

A use case diagram in the Unified Modeling Language(UML) is a type of behavioral diagram defined
by and created from a use-case analysis.Its purpose is to present a graphical overviewof the functionality
provided by a system in terms of actors, their goals(represented as use cases),and any dependencies
between those use cases.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


12
APARTMENT VISITOR MANAGEMENT

ENTITY-RELATIONSHIP REPRESENTATION :

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


entities in the table. The symbols used in E-R diagrams are:

SYMBOL PURPOSE

Represents Entity sets

Represent attributes

Represent Relationship Sets

Line represents flow

Structured analysis is a set of tools and techniques that the analyst.


To develop a new kind of a system:
The traditional approach focuses on the cost benefit and feasibility analysis, Project management, and
hardware and software selection a personal considerations.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


13
4.2 ER-DIAGRAM:

4.3 Schema diagram

Admin

Adminname Username Mobilename Email Password Admin


ID Regdate

Visitor

Id Visitor Mobile Address Apartment Floor Outline Remark Enter Reason Who
name number date to He
meet met

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


14
4.4 RELATIONAL DATA BASE DESIGN

4.4.1 Database Normalization:

First Normal Form:-


The relation is in 1NF if it has no repeating groups. All tables has no repeating groups so they are in 1NF.

1]Admin:-

Id, admin name, username, phone number, email, password, adminregdate

admin Phone
Id name username number email password adminregdate

2] Visitor:-
Id, visitor name, phone number, address, apartment, floor, whom to meet, reason to reason, enter date, remark,
out time

Visitor Phone Whom to Reason


Id name number address Apartment floor meet to meet remark Out time

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


15
APARTMENT VISITOR MANAGEMENT

5. SYSTEM IMPLEMENTATION

5.1 Introduction:

IMPLEMENTATION is the stage of the project when the ‘Theoretical Design’ is turned out into a
‘Working System’. Thus, it can be considered to be the “Most Critical Stage” in achieving a ‘Successful
New System’ ; and in giving User the Confidence, that the new system will work, be effective and
satisfies the need of developing it.

The Implementation stage involves careful planning, investigation of the existing system and it’s
constraints on implementation, designing of methods to achieve changeover and evaluation of
changeover methods. However, the Implementation can be achieved only upto 90% when compared to
that of the Theoretical Design. This doesn’t mean that the working requirement can be compromised.
Though we cannot implement the Theoretical Design as it is, we should make sure that the desired
working nature of the Project should get implemented to the most.

To Implement this “Apartment Visitor Management System”, we have used Front-end Technologieslike
HTML, CSS and JavaScript ; PHP as the Back-end Technology ; and MySQL as the Database Query
Language. By Default, to integrate our codes written in different languages, we are making use of
“Xampp Server” to run our Project Code on the “Google Chrome” Web Browser

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 16


APARTMENT VISITOR MANAGEMENT

5.2 SAMPLE CODE (SOURCE CODE) :

<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['avmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['avmsaid'];
$AName=$_POST['adminname'];
$mobno=$_POST['mobilenumber'];
$email=$_POST['email'];
$query=mysqli_query($con, "update tbladmin set AdminName='$AName', MobileNumber ='$mobno',
Email= '$email' where ID='$adminid'");
if ($query) {
$msg="Admin profile has been updated.";
}
else
{
$msg="Something Went Wrong. Please try again.";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags-->
<meta charset="UTF-8">
<meta name=viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="au theme template">
<meta name="author" content="Hau Nguyen">
<meta name="keywords" content="au theme template">

<!-- Title Page-->


<title>AVSM Admin Profile</title>

<!-- Fontfaces CSS-->


<link href="css/font-face.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-5/css/fontawesome-all.min.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" media="all">

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 17


APARTMENT VISITOR MANAGEMENT

<link href="vendor/mdi-font/css/material-design-iconic-font.min.css" rel="stylesheet"


media="all">
<!-- Bootstrap CSS-->
<link href="vendor/bootstrap-4.1/bootstrap.min.css" rel="stylesheet" media="all">

<!-- Vendor CSS-->


<link href="vendor/animsition/animsition.min.css" rel="stylesheet" media="all">
<link href="vendor/bootstrap-progressbar/bootstrap-progressbar-3.3.4.min.css"
rel="stylesheet" media="all">
<link href="vendor/wow/animate.css" rel="stylesheet" media="all">
<link href="vendor/css-hamburgers/hamburgers.min.css" rel="stylesheet" media="all">
<link href="vendor/slick/slick.css" rel="stylesheet" media="all">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="all">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" media="all">

<!-- Main CSS-->


<link href="css/theme.css" rel="stylesheet" media="all">

</head>
<body class="animsition">
<div class="page-wrapper">
<!-- HEADER MOBILE-->
<?php include_once('includes/sidebar.php');?>
<!-- END HEADER MOBILE-->
<!-- MENU SIDEBAR-->
<!-- END MENU SIDEBAR-->
<!-- PAGE CONTAINER-->
<div class="page-container">
<!-- HEADER DESKTOP-->
<?php include_once('includes/header.php');?>
<!-- HEADER DESKTOP-->
<!-- MAIN CONTENT-->
<div class="main-content">
<div class="section content section content--p30">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<strong>Update</strong> Admin Profile
</div>
<div class="card-body card-block">
<form action="" method="post" enctype="multipart/form-data"class="formhorizontal">
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 18


APARTMENT VISITOR MANAGEMENT

<?php
$adminid=$_SESSION['avmsaid'];
$ret=mysqli_query($con,"select * from tbladmin where ID='$adminid'");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="row form-group">
<div class="col col-md-3">
<label for="text-input" class=" form-control-label">Admin Name</label>
</div>
<div class="col-12 col-md-9">
<input type="text" id="adminname" name="adminname" value="<?php
echo$row['AdminName'];?>" class="form-control" required="">

</div>
</div>
<div class="row form-group">
<div class="col col-md-3">
<label for="email-input" class=" form-control-label">Email Input</label>
</div>
<div class="col-12 col-md-9">
<input type="email" id="email" name="email" value="<?php echo $row['Email'];?>"
class="form-control" required="">

</div>
</div>
<div class="row form-group">
<div class="col col-md-3">
<label for="password-input" class=" form-control-label">Phone Number</label>
</div>
<div class="col-12 col-md-9">
<input type="text" id="mobilenumber" name="mobilenumber" class="form-control"
maxlength="10" value="<?php echo $row['MobileNumber'];?>" required="">

</div>
</div>
<div class="row form-group">
<div class="col col-md-3">
<label for="textarea-input" class=" form-control-label">User Name</label>
</div>
<div class="col-12 col-md-9">
<input name="username" id="username" rows="9" class="form-control" required=""
readonly="" value="<?php echo $row['UserName'];?>">

</div>

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 19


APARTMENT VISITOR MANAGEMENT

</div>
<div class="row form-group">
<div class="col col-md-3">
<label for="password-input" class=" form-control-label">Admin Registration date</label>
</div>
<div class="col-12 col-md-9">
<input type="text" id="adminregdate" name="adminregdate" value="<?php echo
$row['AdminRegdate'];?>" class="form-control" required="" readonly="">

</div>
</div>

<?php } ?>
<div class="card-footer">
<p style="text-align: center;"><button type="submit" name="submit" id="submit" class="btn
btn-primary btn-sm">Update
</button></p>

</div>
</form>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Jquery JS-->
<script src="vendor/jquery-3.2.1.min.js"></script>
<!-- Bootstrap JS-->
<script src="vendor/bootstrap-4.1/popper.min.js"></script>
<script src="vendor/bootstrap-4.1/bootstrap.min.js"></script>
<!-- Vendor JS -->
<script src="vendor/slick/slick.min.js">
</script>
<script src="vendor/wow/wow.min.js"></script>
<script src="vendor/animsition/animsition.min.js"></script>
<script src="vendor/bootstrap-progressbar/bootstrap-progressbar.min.js">
</script>
<script src="vendor/counter-up/jquery.waypoints.min.js"></script>
<script src="vendor/counter-up/jquery.counterup.min.js">

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 20


APARTMENT VISITOR MANAGEMENT

</script>
<script src="vendor/circle-progress/circle-progress.min.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.js"></script>
<script src="vendor/chartjs/Chart.bundle.min.js"></script>
<script src="vendor/select2/select2.min.js">
</script>

<!-- Main JS-->


<script src="js/main.js"></script>
</body>

</html>
<!-- end document-->
<?php } ?>
INDEX
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$adminuser=$_POST['username'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tbladmin where UserName='$adminuser' &&
Password='$password' ");
$ret=mysqli_fetch_array($query);
if($ret>0){
$_SESSION['avmsaid']=$ret['ID'];
header('location:dashboard.php');
}
else{
$msg="Invalid Details.";
}
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
<!-- Required meta tags-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="au theme template">
<meta name="author" content="Hau Nguyen">
<meta name="keywords" content="au theme template">

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 21


APARTMENT VISITOR MANAGEMENT

<!-- Title Page-->


<title>AVMS Login</title>

<!-- Fontfaces CSS-->


<link href="css/font-face.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-5/css/fontawesome-all.min.css" rel="stylesheet"
media="all">
<link href="vendor/mdi-font/css/material-design-iconic-font.min.css" rel="stylesheet"
media="all">

<!-- Bootstrap CSS-->


<link href="vendor/bootstrap-4.1/bootstrap.min.css" rel="stylesheet" media="all">

<!-- Vendor CSS-->


<link href="vendor/animsition/animsition.min.css" rel="stylesheet" media="all">
<link href="vendor/bootstrap-progressbar/bootstrap-progressbar-3.3.4.min.css"
rel="stylesheet" media="all">
<link href="vendor/wow/animate.css" rel="stylesheet" media="all">
<link href="vendor/css-hamburgers/hamburgers.min.css" rel="stylesheet" media="all">
<link href="vendor/slick/slick.css" rel="stylesheet" media="all">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="all">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" media="all">

<!-- Main CSS-->


<link href="css/theme.css" rel="stylesheet" media="all">

</head>
<body class="animsition">
<div class="page-wrapper">
<div class="page-content--bge5">
<div class="container">
<div class="login-wrap">
<div class="login-content">
<div class="login-logo">
<a href="index.php" style="font-size:24px;">
Apartment Visitor Management System (AVMS)
</a>
</div>
<p style="font-size:16px; color:red" align="center"> <?php if($msg){
echo $msg;
} ?> </p>
<div class="login-form">
<form action="" method="post" name="login">
<div class="form-group">
<label>User Name</label>

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 22


APARTMENT VISITOR MANAGEMENT

<input class="au-input au-input--full" type="text" name="username" placeholder="User Name"


required="true">
</div>
<div class="form-group">
<label>Password</label>
<input class="au-input au-input--full" type="password" name="passwordplaceholder="Password">
</div>
<div class="login-checkbox">
<label>
<a href="forgot-password.php">Forgotten Password?</a>
</label>
</div>
<button class="au-btn au-btn--block au-btn--green m-b-20" type="submit" name="login">sign
in</button>
<div class="social-login-content">
</div>
</form>
/div>
</div>
</div>
</div>
</div>
</div>

<!-- Jquery JS-->


<script src="vendor/jquery-3.2.1.min.js"></script>
<!-- Bootstrap JS-->
<script src="vendor/bootstrap-4.1/popper.min.js"></script>
<script src="vendor/bootstrap-4.1/bootstrap.min.js"></script>
<!-- Vendor JS -->
<script src="vendor/slick/slick.min.js">
</script>
<script src="vendor/wow/wow.min.js"></script>
<script src="vendor/animsition/animsition.min.js"></script>
<script src="vendor/bootstrap-progressbar/bootstrap-progressbar.min.js">
</script>
<script src="vendor/counter-up/jquery.waypoints.min.js"></script>
<script src="vendor/counter-up/jquery.counterup.min.js">
</script>
<script src="vendor/circle-progress/circle-progress.min.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.js"></script>
<script src="vendor/chartjs/Chart.bundle.min.js"></script>
<script src="vendor/select2/select2.min.js">
</script>

<!-- Main JS-->

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 23


APARTMENT VISITOR MANAGEMENT

<script src="js/main.js"></script>

</body>
</html>
<!-- end document-->

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

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

<head>
<!-- Required meta tags-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="au theme template">
<meta name="author" content="Hau Nguyen">
<meta name="keywords" content="au theme template">

<!-- Title Page-->


<title>AVMS Visitors Search</title>

<!-- Fontfaces CSS-->


<link href="css/font-face.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-5/css/fontawesome-all.min.css" rel="stylesheet"
media="all">
<link href="vendor/mdi-font/css/material-design-iconic-font.min.css" rel="stylesheet"
media="all">

<!-- Bootstrap CSS-->


<link href="vendor/bootstrap-4.1/bootstrap.min.css" rel="stylesheet" media="all">

<!-- Vendor CSS-->


<link href="vendor/animsition/animsition.min.css" rel="stylesheet" media="all">
<link href="vendor/bootstrap-progressbar/bootstrap-progressbar-3.3.4.min.css"
rel="stylesheet" media="all">
<link href="vendor/wow/animate.css" rel="stylesheet" media="all">
<link href="vendor/css-hamburgers/hamburgers.min.css" rel="stylesheet" media="all">

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 24


APARTMENT VISITOR MANAGEMENT

<link href="vendor/slick/slick.css" rel="stylesheet" media="all">


<link href="vendor/select2/select2.min.css" rel="stylesheet" media="all">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" media="all">

<!-- Main CSS-->


<link href="css/theme.css" rel="stylesheet" media="all">

</head>

<body class="animsition">
<div class="page-wrapper">
<!-- HEADER MOBILE-->
<?php include_once('includes/sidebar.php');?>
<!-- END HEADER MOBILE-->

<!-- MENU SIDEBAR-->

<!-- END MENU SIDEBAR-->

<!-- PAGE CONTAINER-->


<div class="page-container">
<!-- HEADER DESKTOP-->
<?php include_once('includes/header.php');?>
<!-- END HEADER DESKTOP-->

<!-- MAIN CONTENT-->


<div class="main-content">
<div class="section content section content--p30">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="table-responsive table--no-card m-b-30">
<?php
if(isset($_POST['search']))
{
$sdata=$_POST['searchdata'];
?>
<h4 align="center">Result against "<?php echo $sdata;?>" keyword </h4>
<hr />
<table class="table table-borderless table-striped table-earning">
<thead>
<tr>
<tr>
<th>S.NO</th>
<th>Visistor Name</th>

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 25


APARTMENT VISITOR MANAGEMENT

<th>Contact Number</th>
<th>Whom to Meet</th>
<th>Action</th>
</tr>
</tr>
</thead>
<?php
$ret=mysqli_query($con,"select *from tblvisitor where VisitorName like '$sdata%'||MobileNumber
like '$sdata%'");
$num=mysqli_num_rows($ret);
if($num>0){
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<tr>
<td><?php echo $cnt;?></td>
<td><?php echo $row['VisitorName'];?></td>
<td><?php echo $row['MobileNumber'];?></td>
<td><?php echo $row['WhomtoMeet'];?></td>
<td><a href="visitor-detail.php?editid=<?php echo $row['ID'];?>"><i class="fa fa-edit fa-
1x"></i></a></a></td>
</tr>
<?ph
$cnt=$cnt+1;
} } else { ?>
<tr>
<td colspan="8"> No record found against this search</td>
</tr>
<?php } }?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
<!-- Jquery JS-->
<script src="vendor/jquery-3.2.1.min.js"></script>
<!-- Bootstrap JS-->
<script src="vendor/bootstrap-4.1/popper.min.js"></script>
<script src="vendor/bootstrap-4.1/bootstrap.min.js"></script>
<!-- Vendor JS -->
<script src="vendor/slick/slick.min.js">

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23 26


APARTMENT VISITOR MANAGEMENT

</script>
<script src="vendor/wow/wow.min.js"></script>
<script src="vendor/animsition/animsition.min.js"></script>
<script src="vendor/bootstrap-progressbar/bootstrap-progressbar.min.js">
</script>
<script src="vendor/counter-up/jquery.waypoints.min.js"></script>
<script src="vendor/counter-up/jquery.counterup.min.js">
</script>
<script src="vendor/circle-progress/circle-progress.min.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.js"></script>
<script src="vendor/chartjs/Chart.bundle.min.js"></script>
<script src="vendor/select2/select2.min.js">
</script>
<!-- Main JS-->
<script src="js/main.js"></script>
</body>

</html>
<?php } ?>

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


27
APARTMENT VISITOR MANAGEMENT

6. TESTING

6.1 INTRODUCTION TO SYSTEM TESTING

The purpose of testing is to discover errors. Testing is the process of trying to discover every
conceivable fault or weakness in a work product. It provides a way to check the functionality of
components, sub assemblies, assemblies and/or a finished product It is the process of exercising
software with the intent of ensuring that the Software system meets its requirementsand user expectations
and does not fail in an unacceptable manner. There are various types of test. Each test type addresses a
specific testing requirement.

6.2 TESTING METHODS


Unit testing:
Unit testing involves the design of test cases that validate that the internal program logic is functioning
properly, and that program inputs produce valid outputs. All decision branches and internal code flow
should be validated. It is the testing of individual software units of the application .it is done after the
completion of an individual unit before integration. This is a structural testing, that relies on knowledge
of its construction and is invasive. Unit tests perform basic tests at component level and test a specific
business process, application, and/or systemconfiguration. Unit tests ensure that each unique path of a
business process performs accurately to the documented specifications and contains clearly defined
inputs and expected results
.
Integration testing:

Integration tests are designed to test integrated software components to determine if they actually run as
one program. Testing is event driven and is more concerned with the basic outcome of screens or fields.
Integration tests demonstrate that although the components wereindividually satisfaction, as shown by
successfully unit testing, the combination of componentsis correct and consistent. Integration testing is
specifically aimed at exposing the problems thatarise from the combination of components.

Functional test:
Functional tests provide systematic demonstrations that functions tested are available asspecified by
the business and technical requirements, system documentation, and user manuals.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


28
APARTMENT VISITOR MANAGEMENT

Organization and preparation of functional tests is focused on requirements, key functions, orspecial test
cases. In addition, systematic coverage pertaining to identify Business process flows;data fields,
predefined processes, and successive processes must be considered for testing.Before functional testing
is complete, additional tests are identified and the effective value of current tests is determined.

System Test:

System testing ensures that the entire integrated software system meets requirements. It tests a
configuration to ensure known and predictable results. An example of system testing isthe configuration
oriented system integration test. System testing is based on process descriptions and flows,
emphasizing pre-driven process links and integration points.

White Box Testing:

White Box Testing is a testing in which in which the software tester has knowledge of the inner
workings,structure and language of the software, or at least its purpose. It is purpose. Itis used to test
areas that cannot be reached from a black box level.

Black Box Testing:

Black Box Testing is testing the software without any knowledge of the in neworkings, structure
or language of the module being tested. Black box tests, as most other kinds of tests,must be
written from a definitive source document, such as specification or requirements document, such
as specification or requirements document. It is a testing inwhich the software under test is treated,
as a black box .you cannot “see” into it. The test provides inputs and responds to outputs without
considering how the software works.

Unit Testing:

Unit testing is usually conducted as part of a combined code and unit test phase of the software
lifecycle, although it is not uncommon for coding and unit testing to be conducted astwo distinct phases.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


29
APARTMENT VISITOR MANAGEMENT

Test strategy and approach:

Field testing will be performed manually and functional tests will be written in detail. Test

Objectives:

All field entries must work properly.


Pages must be activated from the identified link.
The entry screen, messages and responses must not be delayed.

Integration Testing:

Software integration testing is the incremental integration testing of two or more integrated software
components on a single platform to produce failures caused by interface defects.The task of the
integration test is to check that components or software applications, e.g.components in a software
system or one step up software applications at the company level interact without error.

Test Results:

All the test cases mentioned above passed successfully. No defects encountered.

Acceptance Testing:

User Acceptance Testing is a critical phase of any project and requires significant participation by the
end user. It also ensures that the system meets the functional requirements.

Test Results:

All the test cases mentioned above passed successfully. No defects encountered
.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


30
APARTMENT VISITOR MANAGEMENT

7. SAMPLE SCREENSHOTS

Login Page

Forget Password

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


31
APARTMENT VISITOR MANAGEMENT

Dashboard

Change Password

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


32
APARTMENT VISITOR MANAGEMENT

New visitor

Manage Visitors

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


33
APARTMENT VISITOR MANAGEMENT

Visitors Details

Entry Pass

Visitor B/w Dates

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


34
APARTMENT VISITOR MANAGEMENT

CONCLUSION

This Application provides a computerized version of Apartment Visitor Management System which
will benefit the society.It makes entire process online and can generate reports. It has a facility of
staff’s login where staff can fill the visitor details and generate report. The Application was designed
in such a way that future changes can be done easily. The following conclusions can be deduced
from the development of the project.

• Automation of the entire system improves the productivity.


• It provides a friendly graphical user interface which proves to be better when compared to the
existing system.
• It gives appropriate access to the authorized users depending on their permissions.
• It effectively overcomes the delay in communications.
• Updating of information becomes so easier.
• System security, data security and reliability are the striking features.
• The System has adequate scope for modification in future if it is necessary.

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


35
APARTMENT VISITOR MANAGEMENT

BIBLIOGRAPHY

For MySQL

https://www.mysql.com/

http://www.mysqltutorial.org

For XAMPP
Download XAMPP (apachefriends.org)

For php
https://www.php.net/manual/en/index.php

ForHTMLandCSS
https://www.w3schools.com/html/
https://www.w3schools.com/css/

For Reference Papers


https://www.ijsdr.org/papers/IJSDR192406.docx
https://www.irjmets.com/uploadedfiles/paper/volume2/issue_7_july_2020/2216/1628083080.pdf
https://core.ac.uk/download/pdf/211030682.pdf

DEPARTMENT OF CSE ,KIT-TIPTUR :2022-23


36

You might also like