You are on page 1of 55

A MAJOR PROJECT REPORT ON

HOSTEL AMENITIES MANAGEMENT SYSTEM USING


PYTHON DJANGO FRAMEWORK
Submitted in partial fulfillment for the award of the degree of
BACHELOR OF TECHNOLOGY
In
Computer Science and
Engineering By
G. Lakshmi Prameela (20A81A0583)
K. Esther Rani(20A81A0592)
B. Mahima Kumari (20A81A0571)
Ch. Jnana Sujitha (20A81A0573)
K. Moudika (20A81A0593)
B. Snehaja (21A85A0502)

Under the Esteemed


Supervision Mrs. Y. DIVYA
VANI (M. Tech)

Department of Computer Science and Engineering (Accredited by N.B.A.)


SRI VASAVI ENGINEERING COLLEGE(Autonomous)
(Affiliated to JNTUK, Kakinada)
Pedatadepalli, Tadepalligudem-534101, A.P 2022-2023
SRI VASAVI ENGINEERING COLLEGE(Autonomous)
Department Of Computer Science and Engineering
Pedatadepalli, Tadepalligudem

This is to certify that the Project Report Entitled “Hostel Amenities Management System Using
Python Django Framework” submitted by G. Lakshmi Prameela (20A81A0583), K. Esther Rani
(20A81A0592), B. Mahima Kumari (20A81A0571), Ch. Jnana Sujitha (20A81A0573), K.-
Moudika(20A81A0593),B.Snehaja(21A85A0502) for the award of the degree of Bachelor of
Technology in the Department of Computer Science and Engineering during the academic year
2023-2024

Name of Project Guide Head of the Department


Mrs Y.Divya Vani M.Tech Dr. D Jaya Kumari M.Tech Ph.D
Assistant Professor. Professor & HOD.
DECLARATION

We hereby declare that the project report entitled “Hostel Amenities Management System
Using Python Django Framework " submitted by us to Sri Vasavi Engineering College
(Autonomous), Tadepalligudem, affiliated to JNTUK Kakinada in partial fulfilment of the
requirement for the award of the degree of B. Tech in Computer Science and Engineering is a
record of Bonafide project work carried out by us under the guidance of Mrs. Y.Divya Vani,
Asst.professor. We further declare that the work reported in this project has not been submitted
and will not be submitted, either in part or in full, for the award of any other degree in this
institute or any other institute or University.

Project Associates

G. Lakshmi Prameela(20A81A0583)

K. Esther Rani(20A81A0592)

B. Mahima Kumari(20A81A0571)

Ch. Jnana Sujitha(20A81A0573)

K. Moudika(20A81A0593)

B. Snehaja(21A85A0502)
ACKNOWLEDGEMENT

First and foremost, we sincerely salute to our esteemed institute SRI VASAVI ENGINEERING
COLLEGE, for giving us this golden opportunity to fulfill our warm dream to become an engineer. Our
sincere gratitude to our project guide Mrs. Y. Divya Vani, Asst. Professor, Department of
Computer Science and Engineering, for his timely cooperation and valuable suggestions while carrying out
this project. We express our sincere thanks and heartful gratitude to Dr. D. Jaya Kumari, Professor
& Head of the Department of Computer Science and Engineering, for permitting us to do our project. We
express our sincere thanks and heartful gratitude to Dr. G.V.N.S.R. Ratnakara Rao Principal, for
providing a favorable environment and supporting us during the development of this project. Our special
thanks to the management and all the teaching and non-teaching staff members, Department of Computer
Science and Engineering, for their support and cooperation in various ways during our project work. It is
our pleasure to acknowledge the help of all those respected individuals. We would like to express our
gratitude to our parents, friends who helped to complete this project.

Project Associates

G. Lakshmi Prameela(20A81A0583)

K. Esther Rani (20A81A0592)

B. Mahima Kumari(20A81A0571)

Ch. Jnana Sujitha(20A81A0573)

K. Moudika(20A81A0593)

B. Snehaja(21A85A0502)
ABSTRACT

For the past few years the number of educational institutions are increasing rapidly. Therefore
Many higher institutions struggle to accommodate the growing number of students. Since the traditional
system has to be maintained with hands and the process of keeping, maintaining and retrieving the
information was very tedious and lengthy. Our Hostel Management System is a website which is used to
manage several activities in a hostel and avoid the problems occurred when carried manually. The main
objective of this project is to limit the manual work and make hostel allocation much easier for hostel
administrators. In this website we handle the features like student registration, room allocation, updating
records, user management, attendance management, tracking and managing information of the hostel, Fee
status, out-pass generation and handling student facilities. This project's main motto is to reduce the effort
of admins and provide better service to the students. The implementation of this website is to improve
accuracy and security, and provide centralized repository for critical hostel data. The developed system is
more user-friendly, efficient and secured.

.
TABLE OF CONTENTS
S.NO TITLE PAGE NO

ABSTRACT i
1 INTRODUCTION 1-2
1.1 Introduction 1
1.2 Motivation 1
1.3 Scope 2
1.4 Project Outline 2
2 LITERATURE SURVEY 3-4
3 SYSTEM STUDY AND ANALYSIS 5-8
3.1 Problem Statement 6
3.2 Existing system 6
3.3 Disadvantages of the Existing System 6
3.4 Proposed System 7
3.5 Advantages of Proposed System 7
3.6 Functional Requirements 7
3.7 Non-Functional Requirements 7
3.8 User Interface Requirements 8
3.8.1 System Requirements
3.8.1.1 Hardware requirements
3.8.1.2 Software Requirements
4 SYSTEM DESIGN 9-13
4.1 System Architecture Design 10
4.2 UML Diagrams 11-13

5 TECHNOLOGIES 14-19
5.1 HTML 15
5.2 CSS 16
5.3 BOOTSTRAP 16
5.4 VISUAL STUDIO EDITOR 17
5.5 DJANGO 18
5.6 JAVA SCRIPT 19
5.7 PYTHON 19
6 IMPLEMENTATION 20-29
6.1 Implementation Steps
7 TESTING 30-34
7.1 Introduction to Testing 31
7.2 Test Objectives 31
7.3 Testing Strategies 31
7.3.1 Unit Testing 32
7.3.2 Integration Testing 32
7.3.3 Functional Testing 32
7.3.4 System Testing 33
7.3.5 Acceptance Testing 34
7.3.6 Test Approach 34

8 SCREENSHOTS 35-41
9 CONCLUSION AND FUTURE WORK 42-43
9.1 Conclusion
9.2 Future work
10 REFERENCES 44-45
LIST OF FIGURES

S.NO TITLE FIGURE NO PAGE NO


1 SYSTEM ARCHITECTURE 1 11
2 USE CASE DIAGRAM 2 13
3 CLASS DIAGRAM 3 14
4 HOME PAGE-1 4 36
5 HOME PAGE-2 5 36
6 ABOUT PAGE 6 37
7 BLOGS PAGE 7 37
8 CONTACT FORM PAGE 8 38
9 APPOINTMENT FORM PAGE 9 38
10 FOOTER 10 39
11 CONTACT FORM 11 39
12 CONTACT FORM SUBMISSION 12 40
13 CONTACT FORM MAIL 13 40
14 APPOINTMENT FORM-1 14 41
15 APPOINTMENT CONFIRMATION 15 41
16 CONFIRMATION MAIL 16 42
17 APPOINTMENT FORM-2 17 42
18 SLOT FULL MESSAGE 18 43
19 QUERIES MESSAGE 19 43
CHAPTER-1
INTRODUCTION
1 INTRODUCTION
1.1 INTRODUCTION
 This system is designed in favor of the hostel management which helps them to save the records of
the students about their rooms and other things. All these hostels at present are managed manually by
the hostel warden. The Registration of student is done by paper work.

 Thus there are a lot of repetitions and time consuming process which can be easily avoided. And
hence there is a lot of strain on the person who are running the hostel and computerized eqiupments
are not usually used in this management system.

 This particular project deals with several vulnerabilities on managing a hostel and avoids the
consequences occured when handling manually.Identification of the disadvantages of the existing
system leads to the designing of computerized system that will be relevant to the existing system with
the system which is more user-friendly. We can improve the efficiency and accuracy of the system.

!.2 MOTIVATION

The motivation behind undertaking the Hostel Management System project stems from a holistic
vision to revolutionize and optimize the traditional hostel administration. Recognizing the
inefficiencies in manual processes, the project aims to automate routine tasks such as room allocation,
fee collection, and attendance tracking, not only to alleviate the administrative burden but also to
reduce the likelihood of human errors. Additionally, the digitalization of records ensures data
accuracy, facilitating easy reporting and analysis for better decision-making. Beyond operational
benefits, the project is motivated by the potential cost efficiency achieved through reduced
paperwork, minimized manual efforts, and optimized resource allocation. Embracing technological
trends ensures that the Hostel Management System remains not only relevant but also positioned as a
modern, efficient solution for hostel administration.

1
1.3 SCOPE
The proposed system for "HOSTEL MANAGEMENT SYSTEM" is on paper work. It is too
much difficult to write every student records and their relevant information and raw facts on
paper. It takes too much time. It is totally wastage of time. Today is the trend of computerized
based system.

The main objective of developing this project is to save time. The proposed system provides the
following features on different task.

• All the details related to a hosteller could be finding in one place like fees detail, room
details, out passes etc.

• It will help the warden to manage their fee issues.

• It Provides facilities to those students who are members in the hostel.

1.4 PROJECT OUTLINE

Chapter-1 Introduction

Chapter-2 Literature Survey

Chapter-3 System Study and

Analysis Chapter-4 System Design

Chapter-5 Technologies

Chapter-6 Implementation

Chapter-7 Testing

Chapter-8 Screenshots

Chapter-9 Conclusion and Future Work

2
CHAPTER 2
LITERATURE
SURVEY

3
2 LITERATURE SURVEY

• AUTHORS: Ambrose Azeeta, Sanjay Misra, Ravin Ahuja

• DESCRIPTION: In the year 2021 “An Intelligent Student Hostel Allocation System Based
On WebApplications” is designed to manage the activities of allocating students to a hostel and
other activities involved managing the student’s hostel rooms allocation.
• AUTHORS: Mr.Christopher A. Abilimi, Mr.Thomas Yeboah
• DESCRIPTION: Since the traditional system has to be maintained with hands and the
process of keeping, maintaining and retrieving the information was very tedious and lengthy.
Our Hostel Management System is used to manage several activities in a hostel and avoid the
problems occurred when carried manually.
• AUTHORS: C.Senthilkumar, B.Dinesh
• DESCRIPTION: In this paper they will maintain the previous student data who had left
the hostel as well as this system helps in checking the personal profile of all the current
students.

• AUTHORS: Abhishek pundir, Akarsh Singh, Tanvisha Varshney

• DESCRIPTION: In 2021, Hostel Management system is in charge of particular aspects of


hostel including mess billing, out pass generation, and complaint registration.
• AUTHORS: Adepu Rajesh, Neha Fakirde, Shivani Sinha
• DESCRIPTION: E-outing for hostel students ”is an application that provides more secure
way to guardian to permit their ward to go out of college campus through a message from
register login. It also helps the hostel warden to manage the outing record information.

4
CHAPTER 3
SYSTEM STUDY AND ANALYSIS

5
3 SYSTEM STUDY AND ANALYSIS

3.1 PROBLEM STATEMENT:

There are a lot of drawbacks in keeping and maintaining a hostel. Especially with a manual
system. Since most hostels are being run by only one admin, the number of students in a room
are sometimes not known by the warden. He/she has to go room by room to ensure that a room is
occupied or not. Sometimes people may be owing in the hostel and they are saved on papers or
huge notebooks, and sometimes receipts. If the books should go missing or stolen, one would
never be able to know if a student is owing or not. Room allocation also becomes a problem as
the warden might not know which rooms are available or not. And some hostels have a lot of
rooms and it would be very tedious to go through search of a free room for an student. Also the
warden might not know the number of students in a room or know if a room is full or not.

3.2 EXISTING SYSTEM

• The existing system is a manually maintained system and need lot of efforts and man power.
• In existing system all the information about hostels and other data are altogether kept in a
booklet.
• Tasks such as student's data, room status, fee status, updating student records, attendance
tracking, out-pass generation are kept in registers and require manual entry.
• Separate records are to be maintained for details of each student. And all these activities are
handled through physical paperwork.
• This system can be time-consuming and prone to errors, Lack of security of data, Leading to
inefficiencies in managing hostel operations.

3.3 DISADVANTAGES IN EXISTING SYSTEM:

• Manual processes: Many hostel management systems are still carried out manually, which can
lead to inefficiencies, errors, and a lack of organization.
• Time-consuming: Manual processes can be time-consuming, leading to delays in registration,
room allocation, and other important tasks.
• Inadequate security: Manual systems may not have adequate security measures in place, making
it easier for unauthorized individuals to access sensitive information.
• Lack of data redundancy and consistency: Manual systems may not have mechanisms in place
to prevent data redundancy or ensure data consistency, leading to errors and inefficiencies.
6
3.4 PROPOSED SYSTEM:

 The proposed system tries to solve the problems highlighted in the problems of the manual
system.
 The proposed system provides data security and integration which is a major drawback in the
traditional system
 It provides smooth operation in retrieving, accesing, modifying data in a more systematic way
hence saving a lot of human effort and time.
 Since the system is online based, hence accessible from anywhere, and enables manual errors
to be eliminated and provides security to the data.
 This overall system increases management productivity, eliminates paper work ,reduces man
power and provides a best user-friendly experience.

3.5 ADVANTAGES OF PROPOSED SYSTEMS:


• Easy to maintain the info in the database.

• less complex with less effort.

• High security

3.6 FUNCTIONAL REQUIREMENTS:


• Admin should have the access to the database to modify the details of students data.

• Admin will generate the different kinds of passes like Sunday out pass, day out pass,
vacation pass and night out pass.

• Admin will manage the fee status like paid or not.

• Admin will manage the room allocation for students.

3.7 NON-FUNCTIONAL REQUIREMENTS:

Security:
• Modifications: Any modifications like insert, delete, update, etc. for the database can be
synchronized quickly and executed only by the ward administrator.
• Administrator rights: The administrator can view as well as alter any information in the
Hostel Management Software.
Performance:
• Response Time: The system provides acknowledgment in just one second once the students
information is checked.
• User-Interface: The user interface acknowledges within five seconds.

7
3.8 USER INTERFACE REQUIREMENTS:

3.8.1 SYSTEM REQUIREMENTS

• 3.8.1.1 SOFTWARE REQUIREMENTS:

Visual studio editor

SQLite3

Window 10

• 3.8.1.2 HARDWARE REQUIREMENTS:

Core i5 processor

4GB RAM, 64 Bit

processor

8
CHAPTER 4
SYSTEM
DESIGN

9
SYSTEM DESIGN

4.1 SYSTEM ARCHITECTURE:


A system Architecture is the conceptual model that defines the structure, behavior, and more views
of the system. An architecture description is a formal description and representation of a system,
organized in a way that supports reasoning about the structures and behaviors of the system. Below
is the System architecture design of our website:

Fig.4.1 System Architecture Diagram

10
4.2 UML DIAGRAMS:
UML is a method for describing the system architecture in detail using the blue print. UML
represents a collection of best engineering practice that has proven successful in the modelling of
large and complex systems. The UML is very important parts of developing object-oriented
software and the software development process. The UML uses mostly graphical notations to
express the design of software projects. With the help of UML project teams communicate explore
potential designs and validate the architectural design of the software. A UML diagram shows the
unified visual presentation of the UML (Unified Modelling Language) system intending to let
developers or business owners understand, analyze, and undertake the structure and behaviors of
their system. So far, the UML diagram has become one of the most common business process
modelling tools, which is also highly significant to the development of object-oriented software.
UML diagrams have many benefits for both software developers and businesspeople, and the most
key advantages are:
 Problem-Solving - Enterprises can improve their product quality and reduce cost especially
for complex systems in large scale. Some other real-life problems including physical
distribution or security can be solved;
 Improve Productivity - By using the UML diagram, everyone in the team is on the same
page and lots of time are saved down the line;
 Easy to Understand - Since different roles are interested in different aspects of the system,
the UML diagram offers non-professional developers, for example, stakeholders, designers, or
business researchers, a clear and expressive presentation of requirements, functions, and
processes of their system.

11
4.2.1 USE CASE DIAGRAM

Use case diagram represents the functionality of the system. Use case focus on the behavior of
the system from external point of view. Actors are external entities that interact with the system. Use
case Diagram A use case diagram is the primary form of system/software requirements for a new
software program underdeveloped. Use cases specify the expected behavior, and not the exact method
of making it happen. Use cases once specified can be denoted both textual and visual representation. A
key concept of use case modelling is that it helps us design a system from the end user's perspective. It
is an effective technique for communicating system behavior in the user's terms by specifying all
externally visible system behavior.

Fig.4.2.1 Use Case Diagram

12
CLASS DIAGRAM

Class diagram is a static diagram. It represents the static view of an application. Class diagram
is not only used for visualizing, describing, and documenting different aspects of a system but also for
constructing executable code of the software application. The class diagram is the building block of all
object-oriented software systems. Users can depict the static structure and identify classes relationship
of a system by checking system's classes and attributes. Each class has three basic elements: the class
name at the top, the class attributes in the middle, and the class behaviors at the bottom.

Fig.4.2.2 Class Diagram

13
CHAPTER 5
TECHNOLOGIES

14
5 TECHNOLOGIES
5.1 HYPER TEXT MARKUP LANGEAGE (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 come in pairs like <h1> and </h1>, although some tags represent empty
elements and so are unpaired, for example <img>. The first tag in a pair is the start tag, and
the second tag is the end.
• Though not always necessary, it is best practice to append a slash 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.
• HTML elements form the building blocks of all websites. HTML allows images and
objects to be embedded and can be used to create interactive forms.

• It provides a means to create structured documents by denoting structural semantics for


text such as headings, paragraphs, lists, links, quotes, and other items. It can embed scripts
written in languages such as JavaScript which affect the behavior of HTML web pages.

• The other critical requirement for creating an HTML file is saving it with a .html file
extension. Whereas the doctype declaration signals HTML to the computer from the inside
of the file, the file extension signals HTML to the computer from the outside of the file. By
having both, a computer can tell that it's an HTML file whether it's reading the file or not.
This becomes especially important when uploading the files to the web, because the web
server needs to know what to do with the files before it can send them to a client computer
for the inner contents to be read.

15
5.2 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 is
viewed.

5.3 BOOTSTRAP:
• Bootstrap is a free, open source front-end development framework for the creation of websites
and web apps. Bootstrap provides a collection of syntax for template designs.
• As a framework, Bootstrap includes the basics for responsive web development, so developers
only need to insert the code into a pre-defined grid system. The Bootstrap framework is built on
Hypertext Markup Language (HTML), cascading style sheets (CSS) and JavaScript. Web
developers using Bootstrap can build websites much faster without spending time worrying
about basic commands and functions.
• Bootstrap makes responsive web design a reality. It makes it possible for a web page or app to
detect the visitor's screen size and orientation and automatically adapt the display accordingly.

16
5.4 VISUAL STUDIO EDITOR:

• Visual Studio Code, also commonly referred to as VS Code, is a source-code editor made
by Microsoft with the Electron Framework, for Windows, Linux and macOS. Features
include support for debugging, syntax highlighting, intelligent code
completion, snippets, code refactoring, and embedded Git. Users can change
the theme, keyboard shortcuts, preferences, and install extensions that add additional
functionality.

• Visual Studio Code is a lightweight but powerful source code editor which runs on your
desktop and is available for Windows, macOS and Linux. It comes with built-in support for
JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other
languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET).

• VS Code supports a wide array of programming languages from Java, C++, and Python to
CSS, Go, and Docker file. Moreover, VS Code allows you to add on and even creating new
extensions including code linters, debuggers, and cloud and web development support.

• The VS Code user interface allows for a lot of interaction compared to other text editors. To
simplify user experience, VS Code is divided into five main regions:

 The activity bar


 The side bar
 Editor groups
 The panel
 The status bar

 Following are the main advantage of Bootstrap:

 It is very easy to use. Anybody having basic knowledge of HTML and CSS can use
Bootstrap.
 It facilitates users to develop a responsive website.
 It is compatible on most of browsers like Chrome, Firefox, Internet Explorer, Safari
and Opera etc.

17
5.5 DJANGO :

• The Django web framework is a free, open source framework that can speed up
development of a web application being built in the Python programming language.

 Model

 The model provides data from the database.


 In Django, the data is delivered as an Object Relational Mapping (ORM), which is a
technique designed to make it easier to work with databases.
 The most common way to extract data from a database is SQL. One problem with
SQL is that you have to have a pretty good understanding of the database structure to
be able to work with it.
 Django, with ORM, makes it easier to communicate with the database, without having
to write complex SQL statements.
 The models are usually located in a file called models.py.

 View

 A view is a function or method that takes http requests as arguments, imports the
relevant model(s), and finds out what data to send to the template, and returns the final
result.
 The views are usually located in a file called view.py

 URL

 Django also provides a way to navigate around the different pages in a website.
 When a user requests a URL, Django decides which view it will send it to.
 This is done in a file called urls.py

18
5.6 JAVA SCRIPT:
• JavaScript is a lightweight, interpreted programming language. It is designed for creating
network-centric applications. It is complimentary to and integrated with Java. JavaScript
is very easy to implement because it is integrated with HTML. It is open and cross-
platform.
JavaScript is a dynamic computer programming language. It is lightweight and most
used as a part of web pages, whose implementations allow client-side script to interact
with the user and make dynamic pages.

5.7 PYTHON :

 Python is an interpreted, object-oriented, high-level programming language with


dynamic semantics. Its high-level built in data structures, combined with dynamic typing
and dynamic binding, make it very attractive for Rapid Application Development, as
well as for use as a scripting or glue language to connect existing components together.
 Python's simple, easy to learn syntax emphasizes readability and therefore reduces the
cost of program maintenance. Python supports modules and packages, which encourages
program modularity and code reuse. The Python interpreter and the extensive standard
library are available in source or binary form without charge for all major platforms, and
can be freely distributed.

 Python can be used on a server to create web applications.


 Python can be used alongside software to create workflows.
 Python can connect to database systems. It can also read and modify files.
 Python can be used to handle big data and perform complex mathematics.
 Python can be used for rapid prototyping, or for production-ready software development.

19
CHAPTER 6
IMPLEMENTATION

20
6 IMPLEMENTATIONS

Implementation is the stage in the project where the theoretical design is turned into a working
system and is giving confidence on the new system for the users that it will work efficiently and
effectively. The implementation phase of the hostel management system project involved several
crucial elements. In terms of system architecture, a well-defined structure was established,
comprising various components intricately interconnected. The chosen technologies included
[Django Framework, Python, Java Script], each serving a specific purpose and selected for their
compatibility. The database design was a fundamental aspect, with a meticulously crafted
schema encompassing tables and relationships. Functionality implementation delved into the
specifics of each module, addressing challenges encountered along the way. Security measures
were prioritized, incorporating robust authentication and authorization mechanisms to safeguard
sensitive data. Testing played a pivotal role, employing comprehensive strategies and presenting
conclusive results. Performance optimization strategies were also implemented, ensuring an
efficient system. A user manual was created to guide users through the system's functionalities,
addressing common queries. The conclusion reflects on key achievements, challenges, and
insights gained during the implementation process.

HEADER:
<!DOCTYPE html>
<html>
<head>
<title> Healvibe Hospital | Home </title>
<!-- Web Fonts -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?
family=Open+Sans:400,300,600&amp;subset=cyrillic,latin">
<!-- CSS Global Compulsory -->
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<!-- CSS Header and Footer -->
<link rel="stylesheet" href="assets/css/header.css">
<link rel="stylesheet" href="assets/css/footer.css">
<!-- CSS Implementing Plugins -->
<link rel="stylesheet" href="assets/plugins/line-icons-pro/styles.css">
<link rel="stylesheet" href="assets/plugins/line-icons/line-icons.css">
<link rel="stylesheet" href="assets/plugins/font-awesome/css/font-
awesome.min.css">
<!-- CSS Customization -->
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body>
<div class="wrapper">

21
<!--=== Header v1 ===-->
<div class="header-v1">

22
<!-- Topbar -->
<div class="topbar-v1">
<div class="container">
<div class="row">
<div class="col-md-6">
<ul class="list-inline top-v1-contacts">
<li>
<i class="fa fa-envelope"></i> Email: healvibehospital06@gmail.com
</li>
<li>
<i class="fa fa-phone"></i> Contact no : 9876543210
</li>
</ul>
</div>
</div>
</div>
</div>

<!-- End Topbar --


> <!-- Navbar -->
<div class="navbar mega-menu" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="res-container">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target=".navbar-responsive-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand">
<a href="index.php">
<img src="assets/img/logo/hv.jpeg" alt="Logo" width="100%"
height="300%">
</a>
</div>
</div>
<!--/end responsive container-->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-responsive-collapse">
<div class="res-container">
<ul class="nav navbar-nav">
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Home -->
<li class="mega-menu-fullwidth">

23
<a href="index.php" >
HOME
</a>
</li>
<!-- End Home-->
<!-- About Us -->
<li class="mega-menu-fullwidth">
<a href="about.php" >
ABOUT US
</a>
</li>
<!-- End About us -->
<!-- Gallery -->
<li class="mega-menu-fullwidth">
<a href="gallery.php" >
GALLERY
</a>
</li>
<!-- End Gallery -->
<!-- Blog -->
<li class="mega-menu-fullwidth">
<a href="blog.php" >
BLOGS
</a>
</li>
<!-- End Blog -->
<!-- Contact Us -->
<li class="mega-menu-fullwidth">
<a href="contact.php" >
CONTACT US
</a>
</li>
<!-- End Contact us -->
<!-- Appointment -->
<li class="mega-menu-fullwidth">
<a href="appointment.php">BOOK APPOINTMENT</a>
</li>
<!-- End Appointment -->
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- End Navbar -->

24
STORING THE APPOINTMENT DETAILS AND SEND A CONFIRMATION E-MAIL
<?php
session_start();
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;
require 'phpmailer/src/Exception.php';
require 'phpmailer/src/PHPMailer.php';
require 'phpmailer/src/SMTP.php';
if(isset($_POST["app_user"])){
// initializing variables
$name = "";
$email = "";
$date1 = "";
$time1 = "";
$errors = array();
// connect to the database
$db = mysqli_connect('localhost', 'root', '', 'healvibe');
// REGISTER USER
// receive all input values from the form
$name = mysqli_real_escape_string($db, $_POST['name']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$date1 = mysqli_real_escape_string($db, $_POST['date1']);
$time1 = mysqli_real_escape_string($db, $_POST['time1']);
// form validation: ensure that the form is correctly filled ...
// by adding (array_push()) corresponding error unto $errors array
if (empty($name)) { array_push($errors, "Name is required"); }
if (empty($email)) { array_push($errors, "Email is required");
} if (empty($date1)) { array_push($errors, "Date is
required"); } if (empty($time1)) { array_push($errors, "Time is
required"); }
// Finally, register user if there are no errors in the form
if (count($errors) == 0) {
$que = "SELECT * FROM appmt WHERE date1='$date1' and time1='$time1';";
$res=mysqli_query($db,$que);
$rows=mysqli_num_rows($res);
echo $rows;
if ($rows <= 2) {
$query = "INSERT INTO appmt (name, email, date1 ,time1
) VALUES('$name', '$email', '$date1' , '$time1')";
mysqli_query($db, $query);
$_SESSION['name'] = $name;
$_SESSION['success'] = "Your appointment is
booked"; header('location: send.php');
$mail=new PHPMailer(true);

25
$mail->isSMTP();
$mail->Host='smtp.gmail.com';
$mail->SMTPAuth=true;
$mail->Username='healvibehospital06@gmail.com';
$mail->Password='eqkjafwiqnzrxwbf';
$mail->SMTPSecure='tls';
$mail->Port=587;
$mail->SMTPDebug = 3;
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
$mail->setFrom('healvibehospital06@gmail.com');
$mail->addAddress($_POST["email"]);
$mail->isHTML(true);
$mail->Subject="Slot Confirmation";
$mail->Body="Your appointment has been booked Successfully, THANK YOU!";
$mail->Send();
echo
"<script>
alert('Please check your mail for
confirmation');
document.location.href='appointment.php';
</script>";
}
else
{
echo
"<script>
alert('Slot is full please book another slot');
</script>";
}
}
}
?>

26
FOOTER:

<!--=== Footer ===-->


<div class="footer-v1">
<div class="footer">
<div class="container">
<div class="row">
<!-- About -->
<div class="col-md-3 md-margin-bottom-40">
<a href="index.php"><img src="assets/img/logo/hv.jpeg" alt="Logo" width="100%"
height="300%"></a>
<p>At Healvibe Hospital, we are convinced that 'quality' and 'lowest cost' are not mutually
exclusive when it comes to healthcare delivery.</p>
<p>Our mission is to deliver high quality, affordable healthcare services to the broader
population in India.</p>
</div><!--/col-md-3-->
<!-- End About -->
<!-- Latest -->
<div class="col-md-3" style="margin-bottom: 40px;">
<div class="posts">
<div class="headline"><h2>Latest Posts</h2></div>
<ul class="list-unstyled latest-list">
<li>
<a href="blog.php">Incredible content</a>
<small>March 1st, 2022</small>
</li>
<li>
<a href="gallery.php">Latest Images</a>
<small>May 3rd, 2022</small>
</li>
<li>
<a href="terms.php">Terms and Conditions</a>
<small>July 27th, 2022</small>
</li>
</ul>
</div>
</div><!--/col-md-3-->
<!-- End Latest -->
<!-- Link List -->
<div class="col-md-3" style="margin-bottom: 40px;">
<div class="headline"><h2>Useful Links</h2></div>
<ul class="list-unstyled link-list">
<li><a href="about.php">About us</a><i class="fa fa-angle-right"></i></li>
<li><a href="Contact.php">Contact us</a><i class="fa fa-angle-right"></i></li>
<li><a href="appointment.php">Book Appointment</a><i class="fa fa-angle-right"></i></li>

27
</ul>
</div><!--/col-md-3-->
<!-- End Link List -->
<!-- Address -->
<div class="col-md-3 map-img" style="margin-bottom: 40px;">
<div class="headline"><h2>Contact Us</h2></div>
<address class="" style="margin-bottom: 40px;">
Healvibe Hospital <br />
Tadepalligudem, IN <br />
Phone: 9876543210 <br />
Email: healivibehospital06@gmail.com
</address>
</div><!--/col-md-3-->
<!-- End Address -->
</div>
</div>
</div><!--/footer-->
<div class="copyright">
<div class="container">
<div class="row">
<div class="col-md-6">
<p>
2021 &copy; All Rights Reserved.
<a href="privacy.php">Privacy Policy</a> | <a href="terms.php">Terms of Service</a>
</p>
</div>
<!-- Social Links -->
<div class="col-md-6">
<ul class="footer-socials list-inline">
<li>
<a href="http://www.facebook.com" class="tooltips" data-toggle="tooltip" data-placement="top"
title="" data-original-title="Facebook">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="http://www.skype.com" class="tooltips" data-toggle="tooltip" data-placement="top"
title="" data-original-title="Skype">
<i class="fa fa-skype"></i>
</a>
</li>
<li>
<a href="http://www.googleplus.com" class="tooltips" data-toggle="tooltip" data-
placement="top" title="" data-original-title="Google Plus">
<i class="fa fa-google-plus"></i>
</a>

28
</li>
<li>
<a href="http://www.linkedin.com" class="tooltips" data-toggle="tooltip" data-placement="top"
title="" data-original-title="Linkedin">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="http://www.Pinterest.com" class="tooltips" data-toggle="tooltip" data-placement="top"
title="" data-original-title="Pinterest">
<i class="fa fa-pinterest"></i>
</a>
</li>
<li>
<a href="http://www.twitter.com" class="tooltips" data-toggle="tooltip" data-placement="top"
title="" data-original-title="Twitter">
<i class="fa fa-twitter"></i>
</a>
</li>
</ul>
</div>
<!-- End Social Links -->
</div>
</div>
</div><!--/copyright-->
</div>
<!--=== End Footer ===-->

29
CHAPTER 7
TESTING

30
7 TESTING
7.1 Introduction to
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, or a finished product. It is the process of exercising software with
the intent of ensuring that the software system meets its requirements and user expectations and
does not fail in an unacceptable manner. There are various types of testing. Each test type addresses
a specific testing requirement. Testing is a process, which reveals errors in the program. It is the
major quality measure employed during software development. During testing, the program is
executed with a set of test cases and the output of the program for test cases is evaluated to
determine if the program is performing as it is expected to perform.
7.2 Test Objectives
• All field entries must be filled properly.

• Pages must be activated in every level.

• The messages and responses must not be delayed.

7.3 Testing Strategies


System Testing is a level of testing that validates the complete and fully integrated software
product. The purpose of a system test is to evaluate the end-to-end system specifications. Usually,
the software is only one element of a larger computer-based system. Ultimately, the software is
interfaced with other software/hardware systems. System Testing is defined as a series of different
tests whose sole purpose is to exercise the full computer-based system.
The major testing strategies are as follows:
• Unit testing
• Integration Testing
• Functional Testing
• System Testing
• White Box Testing
• Black Box Testing

31
7.3.1 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 system configuration. 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. 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 as two distinct phases.

7.3.2 Integration Testing


Integration testing ensures that software and subsystems work together a whole. It tests the
interface of all the modules to make sure that the modules behave properly when integrated
together. In this case the communication between the device and Google Translator Service.
Integration tests are designed to test integrated software components to determine if they 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 31 were individually satisfaction, as
shown by successfully unit testing, the combination of components is correct and consistent.

7.3.3 Functional Testing

Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user manuals.
Functional testing is centered on the following items:

Valid Input: identified classes of valid input must be

accepted. Functions: identified functions must be exercised.

Output: identified classes of application outputs must be exercised.


32
7.3.4 System Testing
Involves in-house testing in an emulator of the entire system before delivery to the user. It's
aim is to satisfy the user the system meets all requirements of the client's specifications. 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 is the 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

In this the test cases are generated on the logic of each module by drawing flow graphs of
that module and logical decisions are tested on all the cases.
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 used to test areas that
cannot be reached from a black box level. It has been uses to generate the test cases in the following
cases:
1. Guarantee that all independent paths have been Executed.

2. Execute all logical decisions on their true and false Sides.

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

4. Execute internal data structures to ensure their validity.

Black Box Testing

In this strategy some test cases are generated as input conditions that fully execute all
functional requirements for the program. In this testing only the output is checked for correctness.
The logical flow of the data is not checked. Black Box Testing is testing the software without any
knowledge of the inner workings, 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. The test provides inputs and responds to outputs without
considering how the software works.

33
This testing has been uses to find errors in the following categories:

1. Incorrect or missing functions

2. Interface errors

3. Errors in data structure or external database access

4. Performance errors

5. Initialization and termination errors.

7.3.5 Acceptance Testing

It is a pre-delivery testing in which entire system is tested in a real web browser on real
world data and usage to find errors. Acceptance testing, a testing technique performed to determine
whether or not the software system has met the requirement specifications. The main purpose of this
test is to evaluate the system's compliance with the business requirements and verify if it is having
met the required criteria for delivery to end users.

7.3.6 Test Approach: Testing can be done in two ways they are
1. Bottom-up approach

2. Top-down approach

A. Bottom-up Approach Testing can be performed starting from smallest and lowest level
modules and proceeding one at a time. For each module in bottom up testing a short program
executes the module and provides the needed data so that the module is asked to perform the way it
will when embedded within the larger system. When bottom level modules are tested attention turns
to those on the next level that use the lower-level ones they are tested individually and then linked
with the previously examined lower level.
B. Top-down approach This type of testing starts from upper-level modules. Since the
detailed activities usually performed in the lower-level routines are not provided stubs are written.
A stub is a module shell called by upper-level module and that when reached properly will return a
message to the calling module indicating that proper interaction occurred. No attempt is made to
verify the correctness of the lower-level module.

34
CHAPTER-8
SCREENSHOTS

35
Fig.8.1 Login Page-1

Fig.8.2 Dashboard Page-2

36
Fig.8.3 Attendance Page

Fig.8.4 Students Page

37
Fig.8.5 Room Form Page

Fig.8.6 Room allotment Page


38
Fig.8.7 Room allocated list

Fig.8.8 Vacation outpass Form


39
Fig.8.9 Vacation outpass list

Fig.8.10 Day outpass

40
Fig.8.11 Night outpass Form-1

Fig.8.12 Sunday outpass Form


41
CHAPTER 9
CONCLUSION AND FUTURE
WORK

42
9 CONCLUSION AND FUTURE WORK
9.1 CONCLUSION

As from last few years number of colleges/universities are increasing and so students require an
automated system which can reduce human effort and make administration easy and the technology
used in developing this website is very user-friendly and well supports the backend. This website
also includes the information of student whether the student present inside the hostel or whether the
student present outside by taking the pass.

9.2 FUTURE WORK


• Implementing biometric authentication for secure attendance process.
• To provide multi-factor authentication.
• Adding student module for better communication with warden.
• Communicating with parents through SMS regarding the student presence in hostel.
• Implementing Machine Learning algorithm for study hours prediction.

43
CHAPTER 10
REFERENCES

44
10 REFERENCES
[1] An Intelligent student hostel allocation system based on web application” by Ambrose
Azeeta(2021).Hostel Management 10.1007/978-981-15-8297-4_62.
[2] “Smart Dashboard for managing the hostel activities” by abhishek
pundir(2021).International journal of creative research thoughts(IJCRT).
[3] Implementation Of Hostel Management With Automation Using Design Thinking” by
Dinesh.B(2022). International journal of creative research thoughts(IJCRT).
[4] “An Android app: E-outing for hostel students” by Adepu rajesh(2018). International
journal of creative research thoughts(IJCRT).
[5] “Hostel Management System” by M.Gudadhe (2022). International Research Journal of
Modernization in Engineering Technology and Science.
[6] “Hostel Management System” by Deepali Narkhede(2022). International Journal for
Research in Applied Science & Engineering Technology.
[7] “Development of an Automated Hostel Facility Management System” by Kola
Ayanlowo
(2014). Journal of Science and Engineering.
[8] “Hostel Management System” by Ritesh kumar bista(2018). International Journal of Trend
in Scientific Research and Development (IJTSRD).
[9] “Hostel Management System and Aggregation” by Shyamsundar Magar(2021). Journal of
Emerging Technologies and Innovative Research.
[10] “Social App Using Django and Python” by Pooja Warhade(2022). International Journal of
Scientific Development and Research.

45
46

You might also like