Projectdocumentsem 3 Final
Projectdocumentsem 3 Final
1
1. Introduction of the project :-
Each of our rooms with their simple, fresh and warm style, and
welcoming colours meet current city design and comfort standards. With the
exception of our 20 rooms with single beds, every room has a queen-size double
bed. The deluxe interiors of our rooms are completed by LCD television, high-
speed internet connection, mini bar and a modern bathroom
2
1.1) Existing System Of Railway Management of Rest houses and Holiday
homes :-
In the Existing System all work are done by manually but in proposed
System we have to computerize the work using this application.
Lack of security of data.
Time consuming.
3
1.2) Scope of Work:-
4
1.3) Hardware and Software Requirement Specification:-
5
2.1 ) Proposed System :-
Each time make a reservation, room status is updated and the customer details are
added to your hotel database.
Save the client’s information into the database prior to Booking or Check-in.
6
2.3) Module Specification :-
2.3.1)Customer Management :-
2.3.2) Admin:
Can manage the occupied room for the visiter as well as generate
Report on the view of piechart .
2.3.3Bill Management:-
7
Design & Analysis
8
3.1) Context level DFD :-
9
First level DFD :-
10
3.1) Entity Relationship Diagram :-
11
3.2)Use Case Diagram :-
12
3.3)Sequence Diagram:-
13
3.4)Activity Diagram:-
14
Customer Activity diagram:-
15
3.5)Class Diagram:-
16
3.4) Table Design:-
Customer table :-
17
Chapter 4: User Manual
4.1 Main Screen:-
Registration form:-
18
Check Rates:-
19
About Us:-
20
Chapter 5 :-
Through the system has developed keeping in mind many objectives some
of them has not been completed that will under limitation and drawbacks
of the system.
Chapter 6:-
Future Enhancement :-
As this version occupies more space the next will be quite compact
& up to the mark.
The website has been developed with much care & free of errors &
at the same time it is efficient & less time consuming.
This Project help us in gaining valuable information & practical
knowledge on several topics like designing web pages and managing database
using MY-SQL.
Advantages :-
1) The screen are design very simple so that they are very easy to use.
2) Time saved.
3) Reports are so designed that user can get Expected information at first sight.
21
Chapter 8 :- Bibliography
www.w3school.com
22
Annexures 1:-
Home Screen :-
23
Annexure 4:- Sample Code
regis.php
<?php
include"HeaderBeforeLogin.php";
?>
<html>
<head>
<style>
.btn {
background-color: #00ccff; /* Green */
border: none;
color: white;
padding: 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 24px;
margin: 4px 2px;
cursor: pointer;
width:400px;
}
.sup{color:red;}
.footer
{ margin:0px;
padding:0px;
color:white;
background-color:#047BD5;
font-size:17px;
height:20%
}
.footer a
{
text-decoration:none;
color:black;
}
.form-control {
border: 1px solid #333;
border-top: none;
border-right: none;
border-left: none;
outline:none;
24
width:200px;
height: 30px;
outline:none;
padding: 0px;
margin-bottom: 13px; }
.form-control::-webkit-input-placeholder {
font-size: 13px;
color: #333;
font-family: "Poppins-Regular"; }
input, textarea, select, button {
font-family: "Poppins-Regular";
color: #333;
font-size: 13px; }
</style>
<script type='text/javascript'>
function validate()
{
x = document.forms["cust"]["fname"];
if(x==null || x.value=='')
{
alert("Name cannot be blank.");
x.focus();
return false;
}
if(!x.value.match(/^[A-Za-z]+$/))
{
alert("Invalid name.");
x.focus();
return false;
}
x = document.forms["cust"]["email"];
if(x==null || x.value=='')
{
alert("Email cannot be blank.");
x.focus();
return false;
}
if(!x.value.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-
9]{2,4})+$/))
25
{
alert("Invalid email ID.");
x.focus();
return false;
}
x = document.forms["cust"]["password"];
if(x==null || x.value=='')
{
alert("Password date cannot be blank.");
x.focus();
return false;
}
xvalue=x.value;
if(xvalue.length < 8)
{
alert("Invalid password ID.It must contain atleast 8 character");
x.focus();
return false;
}
x = document.forms["cust"]["dob"];
if(x==null || x.value=='')
{
alert("Birth date cannot be blank.");
x.focus();
return false;
}
x = document.forms["cust"]["addr"];
if(x==null || x.value=='')
{
alert("Address cannot be blank.");
x.focus();
return false;
}
26
x = document.forms["cust"]["phone"];
if(x==null || x.value=='')
{
alert("Phone cannot be blank.");
x.focus();
return false;
}
if(!x.value.match(/^\d{10}$/))
{
alert("Invalid phone.");
x.focus();
return false;
}
}
</script>
</head>
<body>
<br>
<div
style=""> <table width="90%" height="100%">
<tr>
<td>
<h6 style="float:left"><img src="reg1.png"></td>
<td><form method='post' action="cregistration.php" name='cust'
onsubmit='return validate()'>
<table align='center' width='100%' style='border:1px solid #3385ff;background-
color:white;box-shadow:2px 4px 3px 4px #d1e0e0;float:right;'>
<tr>
<td align='center' colspan=2><h2 style="color:#25536b;">Register NOW!
<br><br> </h2></td>
</tr>
<tr>
<td><b> First
Name:<sup>*</sup></b> <br><br></td><br><td><input type='text'
name='fname' placeholder=""class="form-control" required></td>
<td> </td>
</tr>
<tr>
27
<td><b> Last
Name:<sup>*</sup></b> <br><br></td><br><td><input type='text'
name='lname' placeholder=""class="form-control" required></td>
<td> </td>
</tr>
<tr>
<td><b> Email:<sup>*</sup></b><br><br></td>
<td><input type='text' name='email' class="form-control" required></td>
</tr>
<tr>
<td><b> Password:<sup>*</sup></b><br><br></td
>
<td><input type='password' name='password' class="form-control"
required>
</tr>
<tr>
<td><b> Date Of
Birth:<sup>*</sup></b><br><br></td>
<td><input type='date' name='dob' class="form-control" required></td>
</tr>
<tr>
<td><b> Address:<sup>*</sup></b><br><br></td>
<td>
<textarea rows="2" cols="40" name='addr' class="form-control"
required></textarea>
</tr>
</tr>
<tr>
<td><b> Contact
no:<sup>*</sup></b><br><br><br></td>
<td><input type='text' name='phone' class="form-control"
required> </td>
</tr>
<tr>
<td colspan="2"><center><label>Already have an account. <a href="login.php"
style="color:#25536b;">Please login</a></label></center><br><br></td>
</tr>
<tr>
<td colspan="2" align='center'><input type='submit' value='Register'
class='btn' onmouseover='over(this)' onmouseout='out(this)'></td>
28
</table>
</form>
</td>
</tr>
</table></td></tr></table>
<div class="footer">
<table>
<tr>
<td width="30%">©2019 SP Online<br> Art Gallery</td>
<td width="30%">Company<br><a href="Aboutus.html">About us</a><br>
<a href="Contactus.html">Contact us</a><br></td>
<td width="30%">Follow us<br><a href="facebook.com">Facebook</a><br>
<a href="Twitter.com">Twitter</a><br></td>
</div>
</body>
</html>
29
Cregistration.php
<?php
include"connect.php";
$first=$_POST['fname'];
$last=$_POST['lname'];
$email=$_POST['email'];
$password=$_POST['password'];
$birth=$_POST['dob'];
$add=$_POST['addr'];
$cont=$_POST['phone'];
$result=mysqli_query($con,$query1);
$row=mysqli_fetch_assoc($result);
if($row['cemail'])
{
header('Location:home.php');
echo 'alert("User already exists. Please try using another email.")';
}
else{
$query="INSERT INTO `customer`(`c_fname`, `c_lname`, `cemail`,
`cpassword`, `cdob`, `caddress`, `cphone`) VALUES
('$first','$last','$email','$password','$birth','$add','$cont')";
$result=mysqli_query($con,$query);
if($result)
{
header('Location:login.php');
}
else{
header('Location:home.php');
echo 'alert("Something went wrong.Please try again.")';
}
?>
30
31