0% found this document useful (0 votes)
21 views31 pages

Projectdocumentsem 3 Final

Uploaded by

nehalodhajain98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views31 pages

Projectdocumentsem 3 Final

Uploaded by

nehalodhajain98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Introduction

1
1. Introduction of the project :-

Our project named as “Railway Management of


Rest houses and Holiday homes”.

The primary purpose of this is to provide travelers with shelter, food,


refreshment, and similar services and goods, offering on a commercial basis
things that are customarily furnished within households but unavailable to people
on a journey away from homes.

The purpose of Railway Management of Rest houses and Holiday


homes is to automate the existing manual system by the help of computerized
equipments.

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

This system aims to maintaining registration details, customer details


records.

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.

 More man power.

 Time consuming.

 Consumes large volume of paper work.

1.1) Need Of Holiday home and rest houses :-

 System can generate immediately getting the data,


and report.

 Any record is easy to store and manage.

 Provide Better security in new system.

 Easy to Book a Holiday home.

3
1.2) Scope of Work:-

 The product is a web-based system that allows the customer to


register their information and allow to book any room
according to his choices.

 The system that also allows the customer to register their


information and allow customer to book and maintain the
record of overall details.

 The aimed of developed this site to easy to maintain the record


and easy to access the stored data in database to the Admin.

 The system really helps to growing in technology.

4
1.3) Hardware and Software Requirement Specification:-

1.3.1) Hardware Requirement:-

 Processor : Intel Core i3 & Later .

 RAM : 256 MB & above.

 Hard Disk : 20 GB & above.

1.3.2) Software Requirement :-

 Operating System : Windows XP & above.

 Front-end : Html, CSS and PHP.

 Back-end : PHP, MY-SQL.

5
2.1 ) Proposed System :-

The Railway management of Housing home and rest


houses is the application that allows the users to book and make payment online
for the visitors view and they can live it.
This system aims to maintaining artist details, customer details, bill
details, sroom details records.

2.2) Objectives of Railway Management of Rest houses and Holiday homes

 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.

 The main purpose of project is to build an application program to


reduce the manual work for managing the information of
occupied rooms as well as payment.

6
2.3) Module Specification :-

2.3.1)Customer Management :-

System will maintain information about various


Customers in in different years. The following information would
be maintained for each Customer: Customer No, Customer Name,
Customer address, phone number etc. The system will allow
creation or modification or deletion of new and existing customer.

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:-

The system will maintain information about bills or


payment of art. The following information would be
maintained: Billno, Billdate, total, roomid ,order no.

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:-

Seller activity diagram:-

14
Customer Activity diagram:-

15
3.5)Class Diagram:-

16
3.4) Table Design:-

Customer table :-

Sr.no Name Type Size Constraints Description


1 cid number 1-4 Primary key Customer id
2 name text 20 Not null Cust name

3 email text 25 Not null Email id

4 password text 8 Not null Password


5 Phone number 10 Not null Phone number
6 Addr text 30 Not null Address
7 Dob date 10 Not null Date of birth

17
Chapter 4: User Manual
4.1 Main Screen:-

Registration form:-

18
Check Rates:-

Why to choose this Hotel :-

19
About Us:-

20
Chapter 5 :-

Drawbacks and Limitations :-

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.

 Over-utilization of space for storage of Cutomer Details.

Chapter 6:-

Future Enhancement :-

 Due to time limitation we could not concentrate on the


report facility provided by , which is our future aspect.

 In the current version of our project we could not pay attention


towards the payment records of staff which will be our future
goal.

 As this version occupies more space the next will be quite compact
& up to the mark.

 Due to time limitation we could not concentrate on the


admin site,so in future we have to concentrate on admin
view.

Chapter 7:- Conclusion

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 :-

Annexures 2:- (input screen with validation)


Registration validation :-

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> &nbsp;&nbsp;&nbsp;First
Name:<sup>*</sup></b>&nbsp;<br><br></td><br><td><input type='text'
name='fname' placeholder=""class="form-control" required></td>
<td>&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>

27
<td><b> &nbsp;&nbsp;&nbsp;Last
Name:<sup>*</sup></b>&nbsp;<br><br></td><br><td><input type='text'
name='lname' placeholder=""class="form-control" required></td>
<td>&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
<td><b>&nbsp;&nbsp;&nbsp;Email:<sup>*</sup></b><br><br></td>
<td><input type='text' name='email' class="form-control" required></td>
</tr>
<tr>
<td><b>&nbsp;&nbsp;&nbsp;Password:<sup>*</sup></b><br><br></td
>
<td><input type='password' name='password' class="form-control"
required>

</tr>

<tr>
<td><b>&nbsp;&nbsp;&nbsp;Date Of
Birth:<sup>*</sup></b><br><br></td>
<td><input type='date' name='dob' class="form-control" required></td>
</tr>
<tr>
<td><b>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;Contact
no:<sup>*</sup></b><br><br><br></td>
<td><input type='text' name='phone' class="form-control"
required>&nbsp;&nbsp;&nbsp;</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%">&copy;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>

<td width="30%"><button><a href="feedback.html">FEEDBACK</a></button>


</tr>
</table>
</div>

</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'];

$query1="SELECT * FROM `customer` WHERE `cemail`='".$email."'";

$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

You might also like