You are on page 1of 94

“HOTEL MANAGEMENT SYSTEM”

MINOR PROJECT (BCA-508)

SUBMITTED TO

CHAUDHARY CHARAN SINGH UNIVERSITY, MEERUT

FOR THE PARTIAL FULFILLMENT OF THE DEGREE

OF
BACHELOR

IN COMPUTER APPLICATION
A.Y. 2023-2024

Under the Guidance of Submitted by


Prof.Deepa Garg ATISHAY JAIN(210349106095)
Professor
Vidya Knowladge Park
Harsh Kumar (210349106021)
Harshit Bagade
(210349106022)
Mayank Kumar (210349106040)
Daud(210349106016)
VIDYA KNOWLADGE PARK
PERFORMA FOR APPROVAL OF THE BCA MINOR PROJECT (508-P)
PROPOSAL

Roll No.: 210349106095


Name of the Student: ATISHAY JAIN
E-mail atishay0027@gmail.com
Title of the Project Hotel Management System
Name of the Project Guide: Prof.Deepa Garg

For Office Use Only:

Signature of the Guide

Approved Not Approved Date :

Suggestions (if any):-


1
2
3
4
5
6
CERTIFICATE OF ORIGINALITY

I hereby declare that Minor Project (BCA-508P) titled “HOTEL


MANAGEMENT SYSTEM” has been submitted to Vidya knowledge park,
which is affiliated with CHAUDHARY CHARAN SINGH UNIVERSITY,
MEERUT (U.P.), for the partial fulfillment of the degree of Bachelor of
Computer Application, in A.Y. 2023-24. This has not previously formed the basis
for the award of any other degree, diploma or other title from any other University.

Place: Vidya Knowledge Park

Name Atishay Jain(210349106095)


Harsh Kumar
Harshit Bagade Date:
Mayank kumar
Daud
University Roll Number:210349106095
210349106021

210349106022
210349106040
210349106016

Signature
Acknowledgment

 I would like to express my sincere gratitude to the individuals. who have been
instrumental in the development of Hotel Management System While this
project is still in progress, their support, guidance, and contributions have been
invaluable in shaping the platform into what it promises to become
 First and foremost, I want to thank Prince Srivastava, my project advisor, for
their unwavering support, expertise, and guidance throughout the development
process. Their insights and mentorship have played a critical role in steering
this project in the right direction
 I extend my heartfelt thanks to the entire Hotel Management system project
team, whose dedication and hard work have been the driving force behind the
platform's development. Your commitment to creating an innovative and user-
centric educational tool is truly commendable
 Additionally, I want to express my gratitude to my friends and family for their
unwavering support and encouragement throughout this journey. Your belief in
the vision of Hotel Management system has been a constant source of
motivation.
 Lastly, I'd like to recognize the users and future users of Hotel Management
system who have patiently awaited its completion. Your interest in our project
drives us to deliver a platform that will truly empower students in their
educational endeavours
 As Hotel Management system progresses towards completion, I am confident
that it will become a valuable resource for tourists and builders alike, and this
journey would not have been possible without the collective efforts and support
of all those mentioned above

ATISHAY JAIN
INDEX
No. Description Page No.
1. Project Profile [1- 9]
1.1 Project Definition 01
1.2 Project Description 01
1.3 Existing System / Work Environment 02
1.4 Problem Statements 03
1.5 Need for New System 04
1.6 Proposed System & Features 05
1.7 Scope 06
1.8 Outcomes 07
1.9 Tools & Technology used 08
1.10 Project Plan 09
2. Requirement Analysis [10-18]
2.1 Feasibility Study 10-11
2.2 Users of the System 12
2.3 Modules 13
2.4 Process Model 14
2.5 Hardware & Software Requirements 15-16
2.6 Use Cases 17
2.7 Use Case Diagrams 18
3. Design [19 -24]
3.1 Use Case Scenarios 19
3.2 Diagrams 20 – 22
3.2.1 UML / DFD 20-21
3.2.2 Entity Relationship Diagram 22
3.3 Data Dictionary 23-24
4. Implementation [25- 63]
4.1 Form Layouts 25-26
4.2 Report Layouts 27
4.3 Coding Convention 28-29
4.4 Code 30-63
5. Testing [64 - 68]
5.1 Test Strategy 64-65
5.2 Test Cases 66-68
6. Future Enhancement 69
7. Bibliography 70
Project profile 2023-2024

Chapter 1- Project Profile

Project Definition

The Hotel Management System is a comprehensive software solution designed to streamline and automate
various aspects of hotel operations. It encompasses modules for reservations, guest management, room
assignments, billing, inventory management, and reporting, providing a centralized platform to enhance
efficiency, customer service, and overall operational effectiveness within the hospitality industry.
1.1 Project Description

Our Hotel Management System is an all-in-one solution designed to streamline hotel


operations from reservations to billing. It offers a user-friendly interface for guests,
efficient check-in/check-out processes, room management, and robust features for
housekeeping, maintenance, and guest profiles.

Key Features:
Online reservation system with real-time availability tracking.

Quick and secure check-in/check-out processes.

Room inventory management and automated room assignment.

Centralized guest profiles and personalized services.

Housekeeping task management and maintenance tracking.

Automated billing with integration for additional services.

Comprehensive reporting tools and analytics.

Robust security measures and compliance with data protection regulations.

Our Hotel Management System is a tailored solution for modern hotels, offering a
competitive edge by ensuring superior guest experiences and operational
efficiency.

7
Project profile 2023-2024

1.2 Work Environment

Team Structure:
The project will be executed by a multidisciplinary team, including software developers,
system architects, UX/UI designers, QA engineers, and project managers.
Development Team:
Software Developers (Backend and Frontend): Responsible for coding, implementing
features, and ensuring system functionality.
System Architects:
Design and oversee the overall system architecture, ensuring scalability an
performance.
UX/UI Designers:
Create user-friendly interfaces, focusing on an intuitive and visually appealing design.
Quality Assurance Team:
QA Engineers: Conduct thorough testing to identify and address bugs, ensuring the system's
reliability and security.
Project Management:
Project Manager: Oversee the project, manage timelines, and facilitate communication
among team members.
Product Owner: Act as the liaison between stakeholders and the development team,
ensuring the product meets business requirements.

Collaborative Tools:
The team will utilize collaborative tools to enhance communication and project management:

Communication: Slack, Microsoft Teams, or similar platforms for real-time communication.


Project Management: Jira, Trello, or Asana for

8
Project profile 2023-2024

1.3 Problem Statements:

Reservation Challenges:
Problem: Inaccurate reservation updates lead to overbooking and room availability
discrepancies.
Impact: Customer dissatisfaction, revenue loss, and operational inefficiencies.

Check-In/Check-Out Inefficiencies:
Problem: Manual and time-consuming check-in/check-out processes cause guest
frustration and longer waiting times.
Impact: Negative guest experience, potential errors, and reduced staff productivity.
Outdated Room Management:
Problem: Manual room tracking results in delayed housekeeping and maintenance,
affecting room turnover.
Impact: Longer preparation times, potential mismanagement, and guest dissatisfaction.
Fragmented Guest Profiles:
Problem: Guest information is scattered, hindering personalized services and marketing
efforts.
Impact: Missed loyalty opportunities, decreased customer satisfaction, and limited
marketing effectiveness.
Billing and Invoicing Issues:
Problem: Manual billing processes lead to errors, delays, and difficulty tracking additional
services.
Impact: Increased workload, potential revenue loss, and negative impact on guest
relations.

9
Project profile 2023-2024

1.4 Need For System:

The need for a new Hotel management system arises from several factors, including:

Operational Efficiency:

Problem: Manual processes lead to inefficiencies.


Need: Automated system for streamlined operations, reducing errors and optimizing productivity.

Guest Satisfaction:

Problem: Lack of centralized guest profiles.


Need: System consolidating guest data for personalized services and improved satisfaction.

Reservation Accuracy:

Problem: Overbooking and availability discrepancies.


Need: Real-time reservation system ensuring accuracy and preventing revenue loss.

Efficient Check-In/Check-Out:

Problem: Lengthy manual processes.


Need: Automated system expediting check-in/check-out, enhancing guest experience.

Effective Room Management:

Problem: Manual tracking leads to delays and mismanagement.


Need: Integrated room management system for efficient housekeeping and maintenance.

Billing Precision:

Problem: Manual billing processes result in errors and delays.


Need: Automated billing system ensuring accuracy and enhancing guest relations.

Staff Training and Support:

Problem: Insufficient resources for staff training.


Need: Adequate training and support mechanisms for staff competency and improved system
performance.

In summary, a Hotel Management System is essential for addressing operational challenges, enhancing
guest satisfaction, and fostering overall efficiency and growth in the hospitality industry.

10
Project profile 2023-2024

1.5 Proposed System and Features:


**1.Reservation System:
Feature: User-friendly online reservation interface.
Benefit: Real-time availability tracking, automated confirmations, and modification
notifications for guests.
**2. Check-In and Check-Out:
Feature: Seamless and quick digital check-in/check-out processes.
Benefit: Reduced guest wait times, efficient handling of guest arrivals and departures.
**3. Room Management:
Feature: Detailed room inventory management with automated assignment.
Benefit: Efficient tracking of room status, leading to quicker turnaround times and
improved room utilization.
**4. Guest Profile and CRM:
Feature: Centralized guest profiles with historical stay data.
Benefit: Personalized services, loyalty programs, and targeted marketing based on guest
preferences.
**5. Housekeeping and Maintenance:
Feature: Task assignment and tracking for housekeeping staff.
Benefit: Timely room preparation, efficient housekeeping operations, and quick resolution
of maintenance issues.
**6. Billing and Invoicing:
Feature: Automated billing based on room rates, services, and taxes.
Benefit: Error-free billing, quick invoicing, and integration with point-of-sale systems for
additional services.

The proposed Hotel Management System aims to revolutionize the hospitality


industry by offering Acomprehensive , efficient, and guest-centric Solution .These
features collectively contribute to streamlined operations, improved guest
satisfaction, and the overall success of the hotel.

11
Project profile 2023-2024

*SCOPE:
Includes the design and implementation of the above features, covering reservation processes,
room management, billing, staff operations, and reporting.

Exclusions:

External integrations beyond the defined modules are excluded from the project scope.

Technology Stack:

Utilizing modern technologies and frameworks for robust system development.

Security:

Implementing security measures to safeguard sensitive data and ensure confidentiality.

Timeline:

A detailed schedule for development, testing, and deployment.

Budget:

High-level cost estimate covering development, testing, and potential ongoing maintenance.

Conclusion:
The Hotel Management System aims to streamline operations, improve efficiency, and elevate
overall guest satisfaction in the hospitality industry.

12
Project profile 2023-2024

1.6 Outcomes

The outcomes of an Hotel management system can vary depending on the specific
goals of the system and the context in which it is implemented. Here are some potential
outcomes of an Hotel management system:

Increased Customer turnout: An Hotel management system can make it easier and
more convenient for customer to book their rooms, which may increase overall customer
services.

Improve Accessibility: An Hotel Management system can provide accessibility


features, such as text-to-speech and high-contrast options, to ensure that all eligible
customer can participate in the booking process.

Increased efficiency: An Hotel management system can streamline the booking process,
reducing the time and resources required for traditional paper-based booking methods.

Improved accuracy: An Hotel management system can reduce the risk of errors and
discrepancies in the booking process, as customer can be automatically tabulated and
verified.

Improved transparency: An Hotel management system can provide real-time


updates on the booking numbers, as well as an audit trail to track all booking activity,
increasing transparency and accountability.

Cost savings: An Hotel management system can reduce the costs associated with
traditional paper-based Booking methods, including printing, distribution, and storage
of rooms.

Increased Security: An Hotel Management system can implement robust security


measures to protect the booking process from cyber-attacks and other forms of
manipulation, increasing the security and integrity of the booking process.

13
Project profile 2023-2024

1.7 Tools & Technology used

Tools
• Visual Studio Code Editor (VS code) : [Version 1.76.1]
• MYSQL : [Version 8.0.32]
• XAMPP : [Version 8.0.25]

Technology

• CSS (Version - CSS4.15)


• JavaScript (Version - 13)
• HTML (Version – HTML5)
• PHP ( Version – 8.2 )

14
Project profile 2023-2024

1.8 Project Plan

31/07/24 – Submission of Project Profile


05/08/23 – Completion of Requirement Analysis
19/08/23 – Completion of Design Phase
04/09/23 – Completion of Project Development
17/10/23 – Completion of Testing Using Test Cases
09/11/23 – Deployment and Submission

15
Requirement Analysis 2023 - 2024

Chapter 2 - Requirement Analysis

2.1 Feasibility Study


Feasibility study is the process of whether or not a project is worth doing. Feasibility
studies are undertaken within tight time constraints and normally culminate in a written
and oral feasibility report. I have taken a fixed time in feasibility study with my co-
developer. The contents and recommendations of this feasibility study helped us as a
sound basis for deciding how to precede the project. It helped in making decisions such
as which software to use, hardware combinations etc.
Technical Feasibility: This is concerned with specifying equipment of software and
hardware that will successfully satisfy the user requirements the technical needs of the
system may vary considerably, but might include:
• The facility to produce output in a given time.
• Response time under certain conditions Particular speed.
• Facility to communicate data to distant locations. The application is feasible to
everyone as it is a website application. The website options are so easy and simple that
users can understand what this website is about. The website as well requires an internet
connection.
Economic Feasibility: Economics feasibility analysis is the most commonly used
method for determining the efficiency of a new project. It is also known as cost analysis.
It helps in identifying profit Against investment expected from a project. Cost and time
are the most essential factors involved in this field of study. The website is economically
feasible to all the users and it does not have any other purchase that requires the internet
connection and the web browser to be present with the user. The website does not charge
any other price, nor does it require any other purchases for its proper working. This
makes it economically feasible to all the users. The website do not have any other
hardware or software requirements for It's a properly working mobile/computer and a
web browser. At development end the only cost it requires is of server, domain and
Hosting that has to be purchased for deploying the project.

Hotel Management System


Requirement Analysis 2023 - 2024

Operational Feasibility: Operational feasibility is the measure of how well a proposed


system solves the problems, and takes advantage of the opportunities identified during
scope definition and how it satisfies the requirements identified in the requirements
analysis phase of system development. The operational feasibility assessment focuses on
the degree to which the proposed development project fits in with the existing business
environment and objectives with regard to development schedule delivery date corporate
culture and existing business processes. To ensure success, desired operational outcomes
must be imparted during design and development. These include such design-dependent
parameters as reliability, maintainability, supportability, usability predictability,
disposability, sustainability, affordability and others. 12 The website is completely
operational with just the requirement of good Internet connection and the computer or
web browser for it to run on several interface.

Hotel management System


Requirement Analysis 2023 - 2024

2.2 Users of the System


The users of a Hotel Management system would typically include:
The Hotel Management System caters to a diverse range of users, each with specific roles and
responsibilities. The system is designed to enhance the efficiency and effectiveness of various
stakeholders involved in hotel operations. The primary users include:
Admin/User Manager:
Role: Manages user accounts, assigns roles and permissions.
Responsibilities: Controls access levels, ensures data security, and oversees system configuration.
Front Desk Staff:
Role: Handles guest interactions and manages reservations.
Responsibilities: Checks guests in/out, processes reservations, and addresses guest inquiries.
Housekeeping Staff:
Role: Manages room status and cleanliness.
Responsibilities: Updates room status, schedules cleaning tasks, and communicates with the front
desk.
Billing and Finance Staff:
Role: Manages financial transactions and invoicing.
Responsibilities: Generates bills, processes payments, and maintains financial records.
Inventory Manager:
Role: Controls hotel inventory and supplies.
Responsibilities: Monitors and manages stock levels, places orders, and tracks inventory usage.
Customers/Guests:
Role: Interacts with the system for reservations and check-in/out.
Responsibilities: Makes reservations, provides necessary information, and ensures a smooth check-
in/out process.
Security Personnel:
Role: Ensures the safety and security of guests and property.
Responsibilities: Monitors security systems, handles emergencies, and maintains a safe environment.

By accommodating the needs and responsibilities of these diverse user roles, the Hotel
Management System aims to provide a seamless and efficient experience for all stakeholders in
the hotel's daily operations.

Hotel management System


Requirement Analysis 2023 - 2024

2.3 Modules:
The Hotel Management System is composed of various modules, each serving a specific function
to ensure the smooth operation of the hotel. The key modules include:
Reservation Module:
Allows users to manage and track room reservations.
Features include reservation creation, modification, and cancellation.
Room Management Module:
Manages room availability, status, and allocation.
Tracks room conditions, cleanliness, and maintenance schedules.
Billing and Invoicing Module:
Handles financial transactions related to guest stays.
Generates invoices, processes payments, and maintains a record of financial transactions.
Check-In/Check-Out Module:
Facilitates the guest check-in and check-out processes.
Captures guest information, assigns rooms, and manages key card distribution.
Staff Management Module:
Manages hotel staff information and schedules.
Includes features for attendance tracking, task assignment, and performance monitoring.
Customer Relationship Management (CRM) Module:
Manages guest interactions and preferences.
Helps personalize guest experiences and fosters customer loyalty.
Feedback and Review Module:
Collects and manages guest feedback.
Allows guests to leave reviews and ratings, helping the hotel improve services.
Notification Module:
Sends automated alerts and notifications to staff and guests.
Keeps stakeholders informed about reservations, events, and other important updates.

These modules work collaboratively to streamline hotel operations, enhance guest


satisfaction, and provide valuable insights for decision-making.The integration of these
modules contributes to the overall efficiency and effectiveness of the Hotel Management
System.

Hotel management System


Requirement Analysis 2023 - 2024

Process Model

The process model of a Hotel management system typically involves several stages,
including:

**1. Planning:

Define project scope, objectives, and requirements.

Identify key stakeholders and their expectations.

Develop a project plan outlining timelines, milestones, and resource allocation.

**2. Increment 1 - Core System:

Develop the core functionalities that are essential for basic system operation.

Focus on features such as reservation management, room allocation, and basic billing.

**3. Increment 2 - User Management and Security:

Enhance the system by incorporating user management functionalities.

Implement role-based access control and security measures to safeguard sensitive data.

**4. Increment 3 - Front Desk Operations:

Expand the system to include features related to front desk operations.

Implement check-in/check-out processes, guest information management, and key card


distribution.

**5. Increment 4 - Financial Management:

Integrate billing and invoicing functionalities.

Develop financial reporting and transaction tracking capabilities.

**6. Increment 5 - Additional Services and CRM:

Add modules for customer relationship management (CRM) and additional guest
services.

Personalize guest experiences and manage interactions with the hotel.

Hotel management System


Requirement Analysis 2023 - 2024

2.4 Hardware and Software Requirements

Technology Used:

1. Language : HTML,CSS , JAVASCRIPT.

2. Backend : PHP

3. Database: SQL

Minimum Specification:

1. CPU: Intel Pentium 4 processor 2.6 GHz

2. RAM: 8 GB

3. Motherboard: Intel Original/Chipset

4. SSD: 256 GB

5. CD/DVD ROM: Any brand For Optical Use

6. Monitor: 17 Inches with Resolution 800 X 600

Software Requirement:

1. Operating System: Windows XP and Others

2. Web Browser: Chrome, Mozilla Firefox

Languages:

1. Frontend: HTML, CSS, JavaScript

2. Backend: PHP

Hotel management System


Requirement Analysis 2023 - 2024

Work Area:

1. HTML:

• HTML stands for Hyper Text Mark-up Language.


• It is the standard mark-up language for creating and describing the structure of a
web pages.
• HTML elements tell the browser how to display the content.

2. CSS:

• CSS stands for Cascading Style Sheets.

• CSS describes how HTML elements are to be displayed on screen, paper, or in


social media.

Hotel management System


Requirement Analysis 2023 - 2024

2.5 Use Cases


Actors:
Admin/User: The hotel staff responsible for managing and overseeing daily operations.
Guest: Individuals staying at the hotel.
Use Case Scenarios:
Reservation Management:
Goal: The Admin wants to efficiently manage room reservations.
Steps:
Enter guest details and preferences.
Check room availability based on dates and room types.
Reserve a room for the guest.
Generate a confirmation email with booking details.
Check-in/Check-out:
Goal: Provide a smooth check-in and check-out experience for guests.
Steps:
Retrieve reservation details during check-in.
Assign a room and issue key cards.
Record guest check-in details.
During check-out, generate the final bill and update room availability.
Room Service Management:
Goal: Allow guests to order room service and track orders.
Steps:
Guests can browse the room service menu.
Place orders through the system.
Automatically update kitchen and billing systems.
Notify staff for order delivery.
Billing and Invoicing:
Goal: Automate billing processes and generate accurate invoices.
Steps:
Record all expenses and services used by the guest.
Calculate taxes and additional charges.
Generate an itemized bill during check-out.
Provide various payment options.

Hotel management System


Requirement Analysis 2023 - 2024

2.7 Use Case Diagram

Fig. 1 Use Case Diagram of an Online Voting System

Hotel management System


Design 2023 - 2024

Chapter 3 - Design

3.1 Use Case Scenarios

Online voting systems can be used in various contexts, including political elections,
organizational or association voting, and public opinion surveys. Here's an example
scenario for an online voting system:

Scenario: A local community organization is holding an election for a new board of


directors. The organization has members from different parts of the community, and
some members cannot attend the in-person voting due to scheduling conflicts or distance.
To ensure maximum participation, the organization decides to use an online voting
system.

The online voting system allows members to log in to a secure website, verify their
identity, and cast their vote remotely. The system uses encryption and other security
measures to ensure the integrity of the voting process and prevent fraud.

Before the election, the organization sends out an email to all members with instructions
on how to access the online voting system, including a unique login ID and password.
Members can also contact the organization's support team for assistance if they have any
issues accessing the system.

Hotel management System 24


Design 2023 - 2024

3.2 Diagrams

3.2.1 UML / DFD

Fig. 2: DFD 0 Level

Hotel management System 20


Design 2023 - 2024

Fig.3 : DFD 1 Level

Hotel management System 21


Design 2023 - 2024

3.2.2 Entity Relationship Diagram

Hotel management System 22


Design 2023 - 2024

3.3 Data Dictionary

Admin

FIELD DATA FIELD CONSTRAINTS DESCRIPTION


NAME TYPE LENGTH

Username Varchar 30 Not null Name of the user


Password Varchar 10 Not null Login password

Table 1: Data Dictionary For Admin Table

HOTEL

FIELD DATA FIELD CONSTRAINTS DESCRIPTION


NAME TYPE LENGTH

Candidate_id Integer 10 Primary key & Hotel


foreign key identification
name varchar 30 Not null Name of the
Hotel
Status varchar 30 Not null Status of the
Hotel
Age Integer 10 Not null opening date of
hotel

Table 2: Data Dictionary for Hotel Table

Hotel management System 23


Design 2023 - 2024

Customer

FIELD DATA FIELD CONSTRAINTS DESCRIPTION


NAME TYPE LENGTH

Voter_id Integer 10 Primary key Customer no.


Login_id Integer 30 secondary key Login no.
Date of Integer 10 Not null Date of birth of
birth Customer.
Phone no. Integer 30 Not null Phone no. of the
Customer.
Password Varchar 30 Not null Login password
Name Varchar 30 Not null Name of
customer.
Address Varchar 30 Not null Address of
customer.

Table 3: Data Dictionary for Customer Table

Hotel management System 24


Implementation 2023 - 2024

Chapter 4 - Implementation

4.1 Form Layouts

Registration Page

Fig.5 : Registration Page of an Online Voting System

Hotel management System 25


Implementation 2023 - 2024

Login Page

Fig. 6 : Login Page of an Online Voting System

Hotel management System 26


Implementation 2023 - 2024

4.2 Report Layouts

Output Page

Fig. 7 : Output Page of an Online Voting System

Hotel management System 27


Implementation 2023 - 2024

4.3 Coding Convention

Here are some coding conventions that could be followed when developing an online voting
system:

Naming Convention: Use meaningful and descriptive names for variables, functions, and
classes. Names should be in camelCase or snake_case format and should reflect their purpose.

Indentation: Use consistent and clear indentation to improve code readability. Generally, a tab
or 4 spaces are used for indentation.

Comments: Include clear and concise comments in the code to explain the purpose of code
blocks, functions, and classes. Comments should be in clear English and should not include
irrelevant information.

Error Handling: Proper error handling should be implemented to ensure that errors are caught
and handled correctly. Meaningful error messages should be displayed to the user.

Code Reuse: Avoid duplicating code by using functions and libraries wherever possible.
Reusable code should be stored in separate files and modules.

Code Formatting: Use consistent formatting across the codebase to improve code readability.
Use a consistent style for braces, parentheses, and other syntax elements.

Testing: Include automated tests in the code base to ensure that the code functions as intended.
Tests should cover all major use cases and edge cases.

Security: Ensure that the codebase is secure by following secure coding practices and using
secure libraries and frameworks.

Hotel management system 28


Implementation 2023 - 2024

Documentation: Include documentation in the codebase to explain the architecture, design


decisions, and technical details of the system. Documentation should be clear, concise, and easy
to understand.

These coding conventions can help ensure that the codebase for the online voting system is well-
organized, maintainable, and secure.

Hotel management system 29


Implementation 2023 - 2024

4.4 Code

<?php include ('head.php');?>


<body>
<?php include ('index_banner.php');?>

<div class="container">
<div class="row">

<div class="menue">

</div>
&nbsp;&nbsp;&nbsp;
<div class="col-md-4 col-md-offset-4">

<div class="login-panel"><!-- has form in it-->

<div class="form-panel"><center>
<i>Login As:</i>
<select onchange = "page(this.value)">
<option value = "admin/index.php">System
Admin</option>
<option value = "admin2/index.php">System
User</option>
<option selected disables>Hotel Management</option>
</select>
<p/>
</center>
<form role="form" method = "post" enctype =
"multipart/form-data" class="index-form">
<div class="form-heading">
<center>Student Login</center>
</div>

<div class="form-field">
<label for = "username">Student ID:
</label><br/>

Hotel management System 30


Implementation 2023-2024
22023
<input class="form-control"
placeholder="Enter Student ID" name="idno" type="text" required = "required"
autofocus>
</div>

<div class="form-field">
<label for = "username" >Password: </label>
<input class="form-control"
placeholder="Enter Password" name="password" type="password" required =
"required">
</div>
<br/>
<center><button class="btn btn-lg btn-success
btn-block " name = "login" style= " margin-bottom:0px;" width="50">Login</button>
&nbsp;
<a href="register/index.php"><button type="button"
class="btn btn-lg btn-success btn-block" data-dismiss="modal" style= " margin-
bottom:0px;">Register</button></a>

&nbsp;

<?php include ('login_query.php');

?>

</form>
</div>
</div>
</div>
</div>

</div>

<?php include ('script.php');?>

<script type="text/javascript">
function page (src) {
window.location = src;
}
</script>
<?php
include ('footer.php');
?>

</body>
Hotel Management System
Implementation 2023-2024
22023

</html>

<?php
require_once 'admin/dbcon.php';

if(isset($_POST['login'])){
$idno=$_POST['idno'];
$password=$_POST['password'];

$result = $conn->query("SELECT * FROM voters WHERE id_number = '$idno'


&& password = '".md5($password)."' && `account` = 'active' && `status` =
'Unbook'") or die(mysqli_errno());
$row = $result->fetch_array();
$voted = $conn->query("SELECT * FROM `voters` WHERE id_number =
'$idno' && password = '".md5($password)."' && `status` = 'Voted'")->num_rows;
$numberOfRows = $result->num_rows;

if ($numberOfRows > 0){


session_start();
$_SESSION['_id'] = $row['Customer_id'];
header('location:customer.php');
}

if($voted == 1){
?>
<script type="text/javascript">
alert('Sorry You Already Voted')
</script>
<?php
}else{
?>
<script type="text/javascript">
alert('Your account is not Actived')
</script>
<?php
}

}
?>
Hotel Management System
Implementation 2023-2024
22023

<?php include ('sess.php');?>


<?php include ('head.php');?>

<body>

<div id="wrapper">

<?php include ('view_banner.php');?>


<!-- Page Content -->
<!-- Navigation -->
<div id="page-wrapper">

<heading class="menue-select">
<center>
<select onchange = "page(this.value)">
<option disabled selected>Select Candidate Group</option>
<option value = "candidates/pres.php">President</option>
<option value = "candidates/vp.php">Vice President</option>
<option value = "candidates/ua.php">Union Advisor</option>
<option value = "candidates/ss.php">Sports Secretary</option>
<option value = "candidates/ea.php">Entertainment
Advisor</option>
<option value = "candidates/tr.php">Treasurer</option>
<option value = "candidates/vtr.php">Vice Treasurer</option>
<option value = "candidates/sg.php">Secretary General</option>
<option value = "candidates/ta.php">Transport
& Accommodation</option>
<option value = "candidates/pb.php">Publicity</option>
<option value = "candidates/ac.php">Academics</option>
</select>
</center>

</heading>
</div>
<!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->
<?php
include ('footer.php');
?>

Hotel Management System


Implementation 2023-2024
22023
<script>

Hotel Management System


Implementation 2023-2024
22023
function page (src){
window.location=src;
}
</script>

</body>

</html>

<?php include ('head.php');?>


<?php include ('sess.php');?>

<body>
<?php include 'side_bar.php'; ?>
<div id="row">
<?php
if(ISSET($_POST['submit']))
{
if(!ISSET($_POST['pres_id']))
{
$_SESSION['pres_id'] = "";
}
else
{
$_SESSION['pres_id'] = $_POST['pres_id'];
}
if(!ISSET($_POST['vp_id']))
{
$_SESSION['vp_id'] = "";
}
else
{
$_SESSION['vp_id'] = $_POST['vp_id'];
}
if(!ISSET($_POST['ua_id']))
{
$_SESSION['ua_id'] = "";
}
else
{
$_SESSION['ua_id'] = $_POST['ua_id'];
}
if(!ISSET($_POST['ss_id']))
Hotel Management System
Implementation 2023-2024
22023
{
$_SESSION['ss_id'] = "";
}
else
{
$_SESSION['ss_id'] = $_POST['ss_id'];
}
if(!ISSET($_POST['ea_id']))
{
$_SESSION['ea_id'] = "";
}
else
{
$_SESSION['ea_id'] = $_POST['ea_id'];
}
if(!ISSET($_POST['treasurer_id']))
{
$_SESSION['treasurer_id'] = "";
}
else
{
$_SESSION['treasurer_id'] = $_POST['treasurer_id'];
}
if(!ISSET($_POST['sg_id']))
{
$_SESSION['sg_id'] = "";
}
else
{
$_SESSION['sg_id'] = $_POST['sg_id'];
}
if(!ISSET($_POST['vtr_id']))
{
$_SESSION['vtr_id'] = "";
}
else
{
$_SESSION['vtr_id'] = $_POST['vtr_id'];
}
if(!ISSET($_POST['tas_id']))
{
$_SESSION['tas_id'] = "";
}
else

Hotel Management System


Implementation 2023-2024
22023
{

Hotel Management System


Implementation 2023-2024
22023
$_SESSION['tas_id'] = $_POST['tas_id'];
}
if(!ISSET($_POST['ps_id']))
{
$_SESSION['ps_id'] = "";
}
else
{
$_SESSION['ps_id'] = $_POST['ps_id'];
}
if(!ISSET($_POST['as_id']))
{
$_SESSION['as_id'] = "";
}
else
{
$_SESSION['as_id'] = $_POST['as_id'];
}
}
?>
</div>
<center>
<div class="col-lg-8" style = "margin-left:25%; margin-right:25%;" >
<div class = "alert alert-info">
<div class="panel-heading"><center>PRESIDENT</center></div>
<br />
<?php
if(!$_SESSION['pres_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[pres_id]'")->fetch_array();

echo $fetch['firstname']." ".$fetch['lastname']." "."<img


src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>
</div>
<div class = "alert alert-success" >
<div class="panel-heading"><center>VICE PRESIDENT</center></div>

Hotel Management System


Implementation 2023-2024
22023
<br />

Hotel Management System


Implementation 2023-2024
22023
<?php
if(!$_SESSION['vp_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[vp_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>
</div>
<div class = "alert alert-info">
<div class="panel-heading"><center>UNION ADVISOR</center></div>
<br/>
<?php
if(!$_SESSION['ua_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[ua_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<div class = "alert alert-success" >
<div class="panel-heading"><center>SPORTS SECRETARY</center></div>
<br />
<?php
if(!$_SESSION['ss_id'])
{

}
else
{

Hotel Management System


Implementation 2023-2024
22023
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[ss_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<div class = "alert alert-info">

<div class="panel-
heading"><center>ENTERTAINMENT ADVISOR</center></div>
<br />
<?php
if(!$_SESSION['ea_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[ea_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<div class = "alert alert-success">
<div class="panel-heading"><center>TREASURER</center></div>
<br />
<?php
if(!$_SESSION['treasurer_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[treasurer_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
Hotel Management System
Implementation 2023-2024
22023
}
?>

</div>
<div class = "alert alert-info" >
<div class="panel-heading"><center>SECRETARY GENERAL</center></div>
<br />
<?php
if(!$_SESSION['sg_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[sg_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>
</div>
<div class = "alert alert-success">
<div class="panel-heading"><center>VICE TREASURER</center></div>
<br />
<?php
if(!$_SESSION['vtr_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[vtr_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<div class = "alert alert-info">
<div class="panel-heading"><center>TRANSPORT & ACCOMMODATION
SECRETARY</center></div>

Hotel Management System


Implementation 2023-2024
22023
<br />

Hotel Management System


Implementation 2023 - 2024

<?php
if(!$_SESSION['tas_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[tas_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<div class = "alert alert-success">
<div class="panel-heading"><center>PUBLICITY SECRETARY</center></div>
<br />
<?php
if(!$_SESSION['ps_id'])
{

}
else
{
$fetch = $conn->query("SELECT * FROM `candidate` WHERE
`candidate_id` = '$_SESSION[ps_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<div class = "alert alert-info">
<div class="panel-heading"><center>ACADEMICS SECRETARY</center></div>
<br />
<?php
if(!$_SESSION['as_id'])
{

}
else

Hotel Management System


Implementation 2023 - 2024
{

Hotel Management System


Implementation 2023 - 2024

$fetch = $conn->query("SELECT * FROM `candidate` WHERE


`candidate_id` = '$_SESSION[as_id]'")->fetch_array();
echo $fetch['firstname']." ".$fetch['lastname']." "."<img
src = 'admin/".$fetch['img']."' style = 'height:80px; width:80px; border-
radius:500px;' />";
}
?>

</div>
<br />
</div>
</center>
<div class="modal-body">
<p><center>Are you sure you want to
submit your Votes? </center></p>
</div>

<div class="modal-footer"><center>
<a href = "submit_vote.php"><button type =
"submit" class="btn btn-success"><i class="icon-check"></i>&nbsp;Yes</button></a>
<a href = "vote.php"><button class="btn
btn- danger" aria-hidden="true"><i class="icon-remove icon-
large"></i>&nbsp;Back</button></a>
</center></div>
<!-- /.modal-content -->

<!-- /.modal-dialog -->

</body>

<?php include ('script.php');


include ('footer.php');?>
</html>

Hotel Management System


Implementation 2023 - 2024

<?php include ('head.php');?>

<body>
<?php include ('view_banner.php');?>

<heading class="voters_heading">
<center><h1>University Of Lusaka Student's Union</h1>
</heading>
<div class="image">
<img src="img/img1.jpg" width="40%" hieght="40%"/>
</div>
<div class="union-infor">
Information about the Union go here.
</div>

<?php
include ('footer.php');
?>

</body>
</html>

body{
background-color: white;
}
.page-head{

}
/*Styling the form*/

form{
background-color: ;
}
.link{
Hotel Management Systemitalic;
font-style:
Implementation 2023 - 2024

}
.link a:hover{
color: green;
}
.form-panel{
background-color:;
width: 350px;
margin-left:auto;
margin-right: auto;
}
.form-heading{
font-weight: bold;
background-color:#449d44;
font-size: 20px;
color: white;
border-top-right-radius:
10px; border-top-left-radius:
10px;

}
.reg-btn-sbt{
padding-bottom: 10px;

}
.form-field{
}
label{
color: green;
font-style: italic;
font-weight: bold;
}
button{
font-size: larger;
background-color: ;
cursor: pointer;
height: 40px;
border-style: solid;
border-color: darkgreen;
border-width: thin;
border-radius: 5px;

}
button:hover{
background-color: green;
Hotel Management System
Implementation 2023 - 2024
color: white;
}

Hotel Management System


Implementation 2023 - 2024

select{
width: 50%;
background-color: whitesmoke;
color: green;

}
input:hover, select:hover{
background-color:
transparent;
}
.footer{
color: white;
text-align: center;
padding-bottom:
20px;
background-color: rgba(0, 100, 0,
1); font-size: large;
}
a{
text-decoration: none;
}
.footer a:hover{
color:
white;
text-decoration: underline;
}
a:visited{
color: black;
}
a:hover{
cursor: pointer;
}

/*Dropdown
menue*/ nav{
padding-top: 10px;
margin-left:auto;
margin-right:
auto;
}
nav ul li{
display: inline-block;
padding: 0px 20px 10px
Hotel Management System
Implementation 2023 - 2024
20px; list-style: none;

}
nav ul li
a:hover{ colo
r: white;

Hotel Management System


Implementation 2023 - 2024

}
nav ul li a{
color: black;
}
/*Dropdown End*/

body {
background-color: #f8f8f8;
}

#wrapper {
width: 100%;
}

#page-wrapper {
padding: 0 15px;
min-height: 200px;
}

@media(min-width:768px) {

.navbar-top-links li {
display: inline-block;
}

.navbar-top-links li:last-child
{ margin-right: 15px;
}

.navbar-top-links li a {
padding: 15px;
min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
display: block;
}

.navbar-top-links .dropdown-menu li:last-child


Hotel Management System
{ margin-right: 0;
Implementation 2023 - 2024

.navbar-top-links .dropdown-menu li a {
padding: 3px 20px;
min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {


white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
width: 310px;
min-width: 0;
}

.navbar-top-links .dropdown-messages {
margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
margin-left: -123px;
}

.navbar-top-links .dropdown-user {
right: 0;
left: auto;
}

.sidebar .sidebar-nav.navbar-collapse {
padding-right: 0;
padding-left: 0;
}

.sidebar .sidebar-search {
padding: 15px;
}

Hotel Management System


Implementation 2023 - 2024

.sidebar ul li a.active {
background-color: #eee;
}

.sidebar .arrow {
float: right;
}

.sidebar .fa.arrow:before {
content: "\f104";
}

.sidebar .active>a>.fa.arrow:before {
content: "\f107";
}

.sidebar .nav-second-level li,


.sidebar .nav-third-level li {
border-bottom: 0!
important;
}

.sidebar .nav-second-level li a
{ padding-left: 37px;
}

.sidebar .nav-third-level li a
{ padding-left: 52px;
}

@media(min-width:768px) {
.sidebar {
z-index: 1;
position: absolute;
width: 250px;
margin-top: 51px;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
Hotel Management System
Implementation 2023 - 2024
margin-left: auto;

Hotel Management System


Implementation 2023 - 2024

.btn-outline {
color: inherit;
background-color: transparent;
transition: all .5s;
}

.btn-primary.btn-outline {
color: #428bca;
}

.btn-success.btn-outline {
color: #5cb85c;
}

.btn-info.btn-outline {
color: #5bc0de;
}

.btn-warning.btn-outline {
color: #f0ad4e;
}

.btn-danger.btn-outline {
color: #d9534f;
}

.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
color: #fff;
}

.chat {
margin: 0;
padding: 0;
list-style: none;
}

.chat li {
margin-bottom: 10px;
padding-bottom: 5px;
Hotel Management System
Implementation 2023 - 2024

.chat li.left .chat-body {


margin-left: 60px;
}

.chat li.right .chat-body {


margin-right: 60px;
}

.chat li .chat-body p {
margin: 0;
}

.panel .slidedown .glyphicon,


.chat .glyphicon {
margin-right: 5px;
}

.chat-panel .panel-body {
height: 350px;
overflow-y: scroll;
}

.login-panel {
margin-top: 25%;
}

.flot-chart {
display: block;
height: 400px;
}

.flot-chart-content {
width: 100%;
height: 100%;
}

table.dataTable thead .sorting,


table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled
Hotel Management System
Implementation 2023 - 2024
{
background: 0 0;

Hotel Management System


Implementation 2023 - 2024

table.dataTable thead .sorting_asc:after {


content: "\f0de";
float: right;
font-family: fontawesome;
}

table.dataTable thead .sorting_desc:after {


content: "\f0dd";
float: right;
font-family: fontawesome;
}

table.dataTable thead .sorting:after {


content: "\f0dc";
float: right;
font-family: fontawesome;
color: rgba(50,50,50,.5);
}

.btn-circle {
width: 30px;
height: 30px;
padding: 6px
0;
border-radius: 15px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}

.btn-circle.btn-lg {
width: 50px;
height: 50px;
padding: 10px 16px;
border-radius: 25px;
font-size: 18px;
line-height: 1.33;
}

.btn-circle.btn-xl {
width: 70px;
height: 70px;
padding: 10px 16px;
border-radius: 35px;
Hotel Management System
Implementation 2023 - 2024
font-size: 24px;

Hotel Management System


Implementation 2023 - 2024

line-height: 1.33;
}

.show-grid [class^=col-] {
padding-top: 10px;
padding-bottom: 10px;
border: 1px solid
#ddd;
background-color: #eee!important;
}

.show-grid {
margin: 15px 0;
}

.huge {
font-size: 40px;
}

.panel-green {
border-color: #5cb85c;
}

.panel-green .panel-heading
{ border-color: #5cb85c;
color: #fff;
background-color: #5cb85c;
}

.panel-green a {
color: #5cb85c;
}

.panel-green a:hover {
color: #3d8b3d;
}

.panel-red {
border-color: #d9534f;
}

.panel-red .panel-heading {
border-color: #d9534f;
Hotel Management System
Implementation 2023 - 2024
color: #fff;
background-color: #d9534f;

Hotel Management System


Implementation 2023 - 2024

.panel-red a {
color: #d9534f;
}

.panel-red a:hover {
color: #b52b27;
}

.panel-yellow {
border-color: #f0ad4e;
}

.panel-yellow .panel-heading {
border-color: #f0ad4e;
color: #fff;
background-color: #f0ad4e;
}

.panel-yellow a {
color: #f0ad4e;
}

.panel-yellow a:hover {
color: #df8a13;

<?php include ('head.php');?>

<body>

<div id="wrapper">

<!-- Navigation -->


<?php include ('view_banner.php');?>
<!-- Page Content -->
<div id="page-wrapper">

<heading class="voters_heading">
<center><h1>Registered
Hotel Management System Publicity Secretary Candidates</h1>
Implementation 2023 - 2024

<option value = "ss.php">Sports Secretary</option>


<option value = "ea.php">Entertainment Advisor</option>
<option value = "tr.php">Treasurer</option>
<option value = "vtr.php">Vice Treasurer</option>
<option value = "sg.php">Secretary General</option>
<option value = "ta.php">Transport & Accommodation</option>
<option disabled selected>Publicity</option>
<option value = "ac.php">Academics</option>
</select>
</center>

<script>
function page (src){
window.location=src;
}
</script>
<p/>

</heading>
<div class="row">

<div class="panel panel-default">

<!-- /.panel-heading -->

<div class="panel-body">

<div class="table-responsive">
<table class="table table-striped table-
bordered table-hover" id="dataTables-example" border="0">

<thead class="thead">

<tr>
<th>Image</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Party</th>
<th>Year Level</th>
<th>Gender</th>

</tr>
Hotel Management System
Implementation 2023 - 2024
</thead>

Hotel Management System


Implementation 2023 - 2024

<tr>
<?php
require '../admin/dbcon.php';
$bool = false;
$query = $conn->query("SELECT * FROM
candidate WHERE `position` = 'Publicity Secretary'");
while($row = $query-
>fetch_array()){

$candidate_id=$row['candidate_id'];
?>

<td width="50"><img src="../admin/<?


php echo $row['img']; ?>" width="50" height="50" class="img- rounded"></td>
<td><?php echo $row
['firstname'];?></td>
<td><?php echo $row
['lastname'];?></td>
<td><?php echo $row ['party'];?></td>
<td><?php echo $row
['year_level'];?></td>
<td><?php echo $row
['gender'];?></td>
</tr>

<?php } ?>
</tbody>
</table>
</div>

<!-- /.table-responsive -->

</div>
<!-- /.panel-body -->
</div>

</div>
<!-- /.row -->
</div>
<!-- /#page-wrapper -->

Hotel Management System


Implementation 2023 - 2024

</div>
<!-- /#wrapper -->
<?php
include ('footer.php');
?>

<?php include ('../script.php');?>

</body>

</html>

?php include ('head.php');?>

<body>

<div id="wrapper">

<!-- Navigation -->


<?php include ('view_banner.php');?>
<!-- Page Content -->
<div id="page-wrapper">

<heading class="voters_heading">
<center><h1>Registered Treasurer Candidates</h1>
<center>
<select onchange = "page(this.value)">
<option disabled selected>Select Candidate Group</option>
<option value = "pres.php">President</option>
<option value = "vp.php">Vice President</option>
<option value = "ua.php">Union Advisor</option>
<option value = "ss.php">Sports Secretary</option>
<option value = "ea.php">Entertainment Advisor</option>
<option disabled selected>Treasurer</option>
<option value = "vtr.php">Vice Treasurer</option>
<option value = "sg.php">Secretary General</option>
<option value = "ta.php">Transport & Accommodation</option>
<option value = "pb.php">Publicity</option>
<option value = "ac.php">Academics</option>
</select>
</center>
Hotel Management System
Implementation 2023 - 2024

<script>
function page (src){
window.location=src;
}
</script>
<p/>

</heading>
<div class="row">

<div class="panel panel-default">

<!-- /.panel-heading -->

<div class="panel-body">

<div class="table-responsive">
<table class="table table-striped table-
bordered table-hover" id="dataTables-example" border="0">

<thead class="thead">

<tr>
<th>Image</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Party</th>
<th>Year Level</th>
<th>Gender</th>

</tr>
</thead>
<tbody>

<tr>
<?php
require '../admin/dbcon.php';
$bool = false;
$query = $conn->query("SELECT * FROM
candidate WHERE `position` = >fetch_array()){
'Treasurer'");

Hotel Management System


Implementation 2023 - 2024
while($row = $query-

Hotel Management System


Implementation 2023 - 2024

?>

<td width="50"><img src="../admin/<?


php echo $row['img']; ?>" width="50" height="50" class="img- rounded"></td>
<td><?php echo $row
['firstname'];?></td>
<td><?php echo $row
['lastname'];?></td>
<td><?php echo $row ['party'];?></td>
<td><?php echo $row
['year_level'];?></td>
<td><?php echo $row
['gender'];?></td>
</tr>

<?php } ?>
</tbody>
</table>
</div>

<!-- /.table-responsive -->

</div>
<!-- /.panel-body -->
</div>

</div>
<!-- /.row -->
</div>
<!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->
<?php
include ('footer.php');
?>

<?php include ('../script.php');?>

</body>
Hotel Management System
Implementation 2023 - 2024

</html>

div.dataTables_length label {
float: left;
text-align: left;
font-weight: normal;
}

div.dataTables_length select {
width: 75px;
}

div.dataTables_filter label {
float: right;
font-weight: normal;
}

div.dataTables_filter input {
width: 16em;
}

div.dataTables_info
{ padding-top:
8px;
}

div.dataTables_paginate {
float: right;
margin: 0;
}

div.dataTables_paginate ul.pagination {
margin: 2px 0;
white-space: nowrap;
}

table.dataTable,
table.dataTable td,
table.dataTable th {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-
Hotel Management System
Implementation 2023 - 2024
box; box-sizing: content-
box;

Hotel Management System


Implementation 2023 - 2024

table.dataTable {
clear: both;
margin-top: 6px !important;
margin-bottom: 6px !
important; max-width: none !
important;
}

table.dataTable thead .sorting,


table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled
{
cursor: pointer;
}

table.dataTable thead .sorting {


background: url('../images/sort_both.png') no-repeat center right;
}

table.dataTable thead .sorting_asc {


background: url('../images/sort_asc.png') no-repeat center right;
}

table.dataTable thead .sorting_desc {


background: url('../images/sort_desc.png') no-repeat center right;
}

table.dataTable thead .sorting_asc_disabled {


background: url('../images/sort_asc_disabled.png') no-repeat center right;
}

table.dataTable thead .sorting_desc_disabled {


background: url('../images/sort_desc_disabled.png') no-repeat center right;
}

table.dataTable th:active {
outline: none;
}

/* Scrolling */

Hotel Management System


Implementation 2023 - 2024
div.dataTables_scrollHead table
{ margin-bottom: 0 !
important;
border-bottom-left-radius: 0;

Hotel Management System


Implementation 2023 - 2024

div.dataTables_scrollHead table thead tr:last-child th:first-child,


div.dataTables_scrollHead table thead tr:last-child td:first-child {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}

div.dataTables_scrollBody table
{ margin-top: 0 !important;
margin-bottom: 0 !
important; border-top:
none;
}

div.dataTables_scrollBody tbody tr:first-child th,


div.dataTables_scrollBody tbody tr:first-child td
{
border-top: none;
}

div.dataTables_scrollFoot table
{ margin-top: 0 !important;
border-top: none;
}

/*
* TableTools styles
*/

.table tbody tr.active td,


.table tbody tr.active th {
color: white;
background-color: #08C;
}

.table tbody tr.active:hover td,


.table tbody tr.active:hover th {
background-color: #0075b0 !
important;
}

.table tbody tr.active a {


Hotel Management System
Implementation 2023 - 2024
color: white;
}

.table-striped tbody tr.active:nth-child(odd) td,

Hotel Management System


Implementation 2023 - 2024

background-color: #017ebc;
}

table.DTTT_selectable tbody tr {
cursor: pointer;
}

div.DTTT .btn {
font-size: 12px;
color: #333 !important;
}

div.DTTT .btn:hover {
text-decoration: none !important;
}

ul.DTTT_dropdown.dropdown-menu
{ z-index: 2003;
}

ul.DTTT_dropdown.dropdown-menu a {
color: #333 !important; /* needed only when demo_page.css is included */
}

ul.DTTT_dropdown.dropdown-menu li {
position: relative;
}

ul.DTTT_dropdown.dropdown-menu li:hover a {
color: white !important;
background-color: #0088cc;
}

div.DTTT_collection_background
{ z-index: 2002;
}

/* TableTools information display */

div.DTTT_print_info.modal {
height: 150px;
margin-top: -75px;
text-align: center;
}

Hotel Management System


Implementation 2023 - 2024

div.DTTT_print_info h6 {
margin: 1em;
font-size: 28px;
font-weight: normal;
line-height: 28px;
}

div.DTTT_print_info p {
font-size: 14px;
line-height: 20px;
}

/*
* FixedColumns styles
*/

div.DTFC_LeftHeadWrapper table,
div.DTFC_LeftFootWrapper table,
div.DTFC_RightHeadWrapper table,
div.DTFC_RightFootWrapper table,
table.DTFC_Cloned tr.even {
background-color: white;
}

div.DTFC_RightHeadWrapper
table, div.DTFC_LeftHeadWrapper
table { margin-bottom: 0 !
important;
border-top-right-radius: 0 !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}

div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,


div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,
div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}

div.DTFC_RightBodyWrapper
table, div.DTFC_LeftBodyWrapper
table { margin-bottom: 0 !
important;
Hotel Management System
Implementation 2023 - 2024
border-top: none;
}

Hotel Management System


Implementation 2023 - 2024

div.DTFC_RightBodyWrapper tbody tr:first-child th,


div.DTFC_RightBodyWrapper tbody tr:first-child td,
div.DTFC_LeftBodyWrapper tbody tr:first-child th,
div.DTFC_LeftBodyWrapper tbody tr:first-child td {
border-top: none;
}

div.DTFC_RightFootWrapper table,
div.DTFC_LeftFootWrapper table {
border-top: none;
}

Hotel Management System


Testing 2023 - 2024

Chapter 5 - Testing

5.1 Test Strategy

The test strategy for a Hotel Management system should ensure the system is secure, reliable,
and accurate. Here are some key considerations to guide the testing process:

Security Testing: Security is of utmost importance when it comes to Hotel Management


system. Testing should be carried out to identify any vulnerabilities in the system that could be
exploited by hackers or malicious actors. Testing should include penetration testing,
vulnerability scanning, and network security testing.

Usability Testing: Usability testing should be carried out to ensure that the system is easy to use
and understand for customers. The testing should be carried out on a representative sample of
users to get an accurate idea of how the system performs in real-world situations.

Performance Testing: Performance testing should be carried out to ensure that the system can
handle the expected load. Testing should include load testing, stress testing, and scalability
testing to ensure that the system can handle a large number of users without crashing.

Functionality Testing: Functionality testing should be carried out to ensure that the system
functions as expected. Testing should include verifying that voters can register, cast their
vote, and view their results. Testing should also ensure that the system is accessible to all
users, including those with disabilities.

Compatibility Testing: Compatibility testing should be carried out to ensure that the
system works correctly across different platforms, browsers, and devices. Testing should
include verifying that the system works on both desktop and mobile devices.

Reliability Testing: Reliability testing should be carried out to ensure that the system operates
correctly and without errors. Testing should include verifying that the system can recover
from failures and that room booking are counted accurately.

Hotel Management System


Testing 2023 - 2024

Compliance Testing: Compliance testing should be carried out to ensure that the system meets
all relevant regulations and standards, including data privacy laws and election regulations.

In conclusion, the test strategy for a Hotel Management System should cover all aspects of the
system, including security, usability, performance, functionality, compatibility, reliability, and
compliance. A comprehensive testing process will ensure that the system is ready for use and
that voters can trust the results .

Hotel Management System


Testing 2023 - 2024

5.2 Test Cases

Here are some test cases that can be considered while testing a Hotel Management System for
different modules.
Registration Module:
• Verify that all required fields are present on the registration form (e.g., name,
password).
• Test the validation of input fields, ensuring that appropriate error messages are
displayed for invalid inputs.
• Validate that the student ID entered during registration is unique and not already
registered in the system.
• Verify that a confirmation message is sent to the user after successful registration.
• Test that the registration process is successful and the user is redirected to the login
page after registration.

Hotel Management System


Testing 2023 - 2024
Fig 8: Registration for Booking

Hotel Management System


Testing 2023 - 2024

Login Module:
• Verify that the login page is displayed when a user attempts to access a protected
page without logging in.
• Test that users can't log in with invalid credentials (i.e., incorrect id or password).
• Verify that users are redirected to the Booking page after successful login.
• Verify that users are logged out after a period of inactivity.
• Test that users can log in using their registered id and password.

Fig 9 : Login for Room Booking


R

Hotel Management System


Testing 2023 - 2024

Voting Module:
• Verify that the user has cast their v o t e .
• Test that the room contains the appropriate information .

• Test that the information is only accessible to users who have successfully completed
the voting
• Verify that the room details is only valid for a certain period of time (if applicable).

• Test that the hotel page is responsive and displays correctly on different screen sizes
and devices.

Fig 10 : Figure Showing Hotel

Hotel Management System


Future Enhancement 2023 - 2024

Chapter 6 – Future Enhancement

Here are some possible future enhancements that can be made to an online voting system:

• Biometric Verification: Biometric verification can be used to authenticate customers,


making it harder for fraudulent users to access the system.
• Artificial Intelligence: Artificial intelligence can be used to improve the accuracy of the
voting process by analyzing voting patterns and detecting potential fraud.
• Mobile Voting: Mobile voting can increase accessibility by allowing voters to cast their
vote from their mobile devices. This can increase voter turnout and make the process
more convenient.
• Improved Security Features: The system's security features can be improved to ensure
that the system is secure from cyber threats and other types of fraud.
• Voter Education: Voter education can be provided through the online voting system to
help voters understand the process better and reduce the likelihood of errors or confusion.
• Accessibility Features: Additional accessibility features can be added to the system,
such as text-to-speech and high contrast modes, to make the system more accessible to
users with disabilities.
• Feedback Mechanisms: Feedback mechanisms can be added to the system to allow
users to report any issues or provide feedback to improve the system.

These enhancements can help improve the security, accessibility, and usability of the Hotel
Management system, leading to a more accurate and inclusive Room booking process.

Hotel Management System


Bibliography 2023 - 2024

Chapter -7 Bibliography

• Advanced web development:


https://practice.geeksforgeeks.org/
https://www.tutorialspoint.com/

https://www.javatpoint.com/

• Website and form layouts:


https://bootstrapstudio.io/
https://www.youtube.com/@codewithharry
https://www.codewithharry.com/videos/php-tutorials-in-hindi-4/

• Login form and registration form:


https://www.youtube.com/watch?v=LTPGyaEyTI4

• Database Connectivity PHP with MYSQL


https://www.youtube.com/watch?v=R1djM9B0ay0

Hotel Management System

You might also like