558_asp
558_asp
Roll no : 558
INDEX
No Content Page No
1 Master Page 1
2 Home 3
3 Menu 9
4 Franchise 12
5 About 16
6 Contact 19
7 Login 22
8 Registration 26
9 Add Item 31
Signature: ________________
Date: ________________
RESTAURENT MANGEMENT SYSTEM
MASTER PAGE
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
body {
padding: 0%;
margin: 0%;
}
.table-header {
width: 100%;
height: 81px;
background-color: #212529;
}
.footer-text {
font-size: 18px;
}
.footer {
text-align: center;
color: #FFFFFF;
background-color: #212529;
}
.column-2 {
width: 379px;
color: #FFFFFF;
}
.column-1 {
width: 174px;
}
.text-header {
font-size: x-large;
}
.logo {
font-size: 44px;
}
</style>
</head>
<body >
<form id="form1" runat="server">
<div>
<table class="table-header">
<tr>
<td class="column-1">
<h1 style="padding: 0px; margin: 0px; font-weight:
400; line-height: 1; color: rgb(171, 139, 101); font-family: 'Segoe UI',
Tahoma, Geneva, Verdana, sans-serif; text-align: center; width: 321px;"
class="logo">FOOD CASTLE</h1>
</td>
<td class="column-2">
<span class="text-header">RESTAURENT MANGEMENT
SYSTEM </span></td>
</tr>
</table>
<asp:Menu ID="Navbar" runat="server" Orientation="Horizontal"
Width="100%" style="color: #FFFFFF; background-color: #212529">
<Items>
<asp:MenuItem Text="HOME" Value="HOME"
NavigateUrl="~/home.aspx" Selected="True"></asp:MenuItem>
<asp:MenuItem Text="MENU" Value="MENU"
NavigateUrl="~/menu.aspx"></asp:MenuItem>
<asp:MenuItem Text="FRANCHISE" Value="FRANCHISE"
NavigateUrl="~/franchise.aspx"></asp:MenuItem>
<asp:MenuItem Text="ABOUT" Value="ABOUT"
NavigateUrl="~/about.aspx"></asp:MenuItem>
<asp:MenuItem Text="CONTACT" Value="CONTACT"
NavigateUrl="~/contact.aspx"></asp:MenuItem>
<asp:MenuItem Text="LOGIN" Value="LOGIN"
NavigateUrl="~/login.aspx"></asp:MenuItem>
<asp:MenuItem Text="REGISTRATION" Value="REGISTRATION"
NavigateUrl="~/registration.aspx"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/additem.aspx" Text="ADD ITEM"
Value="ADD ITEM"></asp:MenuItem>
</Items>
<StaticHoverStyle ForeColor="#AB8B65" />
<StaticMenuItemStyle HorizontalPadding="30px"
ForeColor="White" VerticalPadding="10px" />
</asp:Menu>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<div class="footer">
<span class="footer-text">
© Copyright 2023 Food Castle Restau<span> Essendon</span><br />
</span>
</div>
</div>
</form>
</body>
</html>
HOME PAGE
.content-section {
width: 504px;
margin: 20px auto;
}
.text-center {
text-align: center;
}
.event-table {
padding-top: 20px;
width: 100%;
height: 54px;
}
.event-cell {
width: 451px;
height: 274px;
}
.event-cell-medium {
width: 400px;
height: 274px;
}
.event-cell-small {
height: 274px;
}
.event-section {
padding: 50px;
width: 1284px;
margin: 0 auto;
}
.event-details {
padding: 20px;
}
.section-title {
font-weight: 500;
line-height: 1.2;
font-size: 2rem;
width: 518px;
margin: 0;
}
.section-paragraph {
padding: 8px 0 0;
line-height: 25px;
width: 532px;
margin: 0;
}
.auto-style1 {
text-align: center;
}
.auto-style2 {
width: 576px;
padding-left: 60px;
}
.imgwidth {
margin: 20px auto;
width: 1109px;
height: 500px;
display: block;
}
.welcome-section {
background-color: #f5f5f5;
padding: 90px;
text-align: center;
margin-bottom: 20px;
}
.welcome-section h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
.welcome-section p {
font-size: 1.1rem;
line-height: 1.6;
}
.btn-custom {
background-color: #212529;
color: #fff;
padding: 10px 20px;
text-decoration: none;
font-size: 1rem;
border-radius: 5px;
}
.menu-section {
background-color: #f9f9f9;
padding: 60px;
text-align: center;
margin-bottom: 20px;
}
.menu-section h2 {
font-size: 2rem;
margin-bottom: 20px;
}
.menu-section p {
font-size: 1.1rem;
line-height: 1.8;
}
.menu-section img {
width: 380px;
height: 245px;
border-radius: 10px;
margin: 10px;
}
.testimonial-section {
background-color: #fff;
padding: 60px;
text-align: center;
margin-bottom: 20px;
}
.testimonial-section h2 {
font-size: 2rem;
margin-bottom: 20px;
}
.testimonial-section p {
font-size: 1.1rem;
line-height: 1.8;
}
</style>
</asp:Content>
</div>
<div class="event">
<h1 class="text-center">BOOK YOUR EVENT</h1>
<p class="text-center">Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod <br />tempor ut enim ad minim veniam, quis
nostrud</p>
<table align="center" class="event-table">
<tr>
<td align="center" class="event-cell">
<asp:Image ID="Image" runat="server" Height="425px"
ImageUrl="~/Photos/celebration.jpg" Width="325px" />
<br />
<h2>CELEBRATIONS</h2>
<p>Friday, 21 Nov <br />Reservations 12Pm To
1.30Pm</p>
</td>
<td align="center" class="event-cell-medium">
<asp:Image ID="Image2" runat="server" Height="425px"
ImageUrl="~/Photos/wedding.jpg" Width="325px" />
<br />
<h2>WEDDING</h2>
<p>Monday, 17 Nov <br />Reservations 12Pm To
1.30Pm</p>
</td>
<td align="center" class="event-cell-small">
<asp:Image ID="Image3" runat="server" Height="425px"
ImageUrl="~/Photos/corporate.jpg" Width="325px" />
<br />
<h2>CORPORATE</h2>
<p>Wednesday, 26 Nov <br />Reservations 3Pm To
5.30Pm</p>
</td>
</tr>
</table>
</div>
</asp:Content>
MENU PAGE
.datalist-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
background-color: #f8f8f8;
border-radius: 10px;
.datalist-item {
background-color: #fff;
border-radius: 10px;
overflow: hidden;
border: 2px solid black;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
width: 355px;
margin: 25px;
}
.datalist-item:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.datalist-image {
width: 100%;
height: 245px;
object-fit: cover;
}
.datalist-item p {
padding-left: 16px;
margin: 10px 1px;
font-size: 1.2em;
color: #333;
}
.datalist-item p.price {
font-weight: bold;
color: #d16527;
font-size: 1.1em;
}
</style>
</asp:Content>
FRANCHISE PAGE
.fr-head h2,
.fr-par h2 {
font-size: 35px;
font-family: 'Oswald', sans-serif;
line-height: 0.2;
font-weight: 700;
padding-top: 35px;
}
.fr-par h3 {
font-family: 'Oswald', sans-serif;
font-weight: 400;
font-size: 25px;
line-height: 32px;
color: #212529;
margin: 20px 0px 20px;
}
.fr-par p {
line-height: 24px;
font-size:17px;
color: #7e7e7e;
}
<h3>SIZZLING CAFÉ</h3>
<p>
Area: 250 – 500 sq. ft.<br>
Preferred Locations: Food Court, Food Parks, Highways<br>
<p>Self Serviced Cafe</p>
<p>Food Court</p>
<p>Ambiance : Standard Theme</p>
<p>Menu : Hot Coffees, Cold Coffees, Sinful Shakes,
Sizzlers, Rice, Pastas, Desserts</p>
<h3>LOUNGE</h3>
<p>
Area: 1500 sq. ft. or more<br>
Preferred Locations: Highstreets, Malls, Office Areas,
etc.<br>
Ambiance : Local Culture Themed
</p>
<h3>ROASTERY</h3>
<p>
1500+ sq. ft.<br>
Preferred Locations: Highstreets<br>
Ambiance : Minimal
</p>
<p><strong style="color: #000000">MENU</strong></p>
<p>
Beverage Menu ; Hot Brews, Cold Brews, Manual Brews,
IceBlended Frappes, Classics, Hot Chocolates, Sinful
Chocolate Shakes
</p>
<p>Food Menu : Croissant, Bagels, Gooey Cookies, Smoothie
Bowls, Cheesecakes, Brownies</p>
<p>Retail : Coffee Beans, Home Brewing Equipments,
Sippers, Tumblers</p>
</div>
</div>
</asp:Content>
ABOUT PAGE
hr {
margin: 0;
border-top: 3px solid #ab8b65;
width: 111.594px;
}
.p1 p,
.p2 p {
line-height: 24px;
color: #7e7e7e;
font-size:18px;
}
.p2 h3 {
font-family: 'Oswald', sans-serif;
font-weight: 400;
font-size: 25px;
line-height: 32px;
color: #212529;
margin: 0px 0px 20px 0px;
}
#fp a {
margin: 0px 15px 0px 15px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<div class="main" style="padding-left: 100px; padding-right: 100px">
<div class="head">
<h2>About Us</h2>
<hr>
</div>
<div class="p1">
<p>Awarded as Emerging Cafe Chain Of The Year by Franchise
India, Food Castle– The Ristorante Lounge is a thriving success with over
21 outlets across the country. Today, FC has become a hot spot for today’s
youth with our innovative ideas and conceptual spaces, each outlet
reflecting distinctive personalities and vibes to amalgamate with people
of the area, becoming close to the heart of every millennial.</p>
<p>Our mantra, “Unculture Yourself”, a message we unravel with
every new revolution and concept. We dare to help our customers encounter
a new experience, every time they visit us.</p>
<p>We began our journey in 2004 with the launch of our first
flagship store in New York City, America. Since then we are growing
exponentially year by year and by the end of 2021, we plan to launch a
total of 100 outlets across the country.</p>
</div>
<div class="p2">
<h3>OUR SPACES</h3>
<p>We are focused on giving a satisfactory user experience and
creating spaces which connect with the local culture of any location we
establish at. As a brand, we deeply understand and value the connect our
customers need to feel and thus, each of our cafes are community spaces,
socializing spots that are inspired by the localism of the area.</p>
<h3>THE MENU</h3>
<h3>THE AMBIENCE</h3>
<p>We are constantly focused on creating a space that every
customer feels welcome to. With each outlet, we ensure to design an
ambiance that not only resonates with the people of that area, it also
makes the branch one of a kind. From the lighting to the curated music,
from free-walk spaces to the seating, we formulate an aesthetic as a whole
so the final picture at the end is nothing short of marvelous!</p>
</div>
</div>
</div>
</asp:Content>
CONTACT PAGE
.contact-section {
padding: 60px;
background-color: #f5f5f5;
display: flex;
justify-content: space-between;
align-items: flex-start;
text-align: left;
}
.contact-info, .contact-form {
flex: 1;
padding: 20px;
}
.contact-info {
margin-right: 20px;
}
.contact-section h1 {
font-size: 2.5rem;
margin-bottom: 20px;
.contact-section p {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 40px;
}
.contact-info div {
margin-bottom: 20px;
font-size: 1.1rem;
}
.contact-info i {
font-size: 1.5rem;
margin-right: 10px;
color: #d16527;
}
.contact-form label {
font-size: 1rem;
display: block;
margin-bottom: 8px;
}
.contact-form input[type="submit"] {
border-style: none;
border-color: inherit;
border-width: medium;
background-color: #212529;
color: #fff;
cursor: pointer;
font-size:20px;
}
.map-section {
padding: 60px;
background-color: #fff;
text-align: center;
}
.map-section iframe {
width: 100%;
height: 400px;
border: none;
}
</style>
</asp:Content>
</asp:Content>
LOGIN PAGE
PAGE CODE :-
/* Title Styling */
.login-title {
text-align: center;
color: #333;
font-size: 40px;
margin-bottom: 20px;
}
/* Table Styling */
.login-table {
background-color: #fff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
height: 271px;
width: 464px;
.input-cell {
padding-bottom: 15px;
}
/* Input Styling */
.input-textbox {
width: 100%;
padding: 8px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
/* Button Styling */
.login-button {
background-color: #212529;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
margin-right: 20px;
transition: background-color 0.3s ease;
}
.login-button:hover {
color: rgb(171, 139, 101);
}
/* Hyperlink Styling */
.register-link {
color: #212529;
text-decoration: none;
font-size: 0.9em;
}
<p> </p>
<p> </p>
<br />
</asp:Content>
VB FILE :-
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Configuration
Public Class Login
Inherits System.Web.UI.Page
Session("username") = uname.Text
Response.Redirect("additem.aspx", False)
Else
MsgBox("Invalid username or password")
End If
con.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
REGISTRATION PAGE
PAGE CODE :-
.input-cell {
padding-bottom: 14px;
}
.input-textbox {
width: 100%;
padding: 8px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.login-button {
background-color: #212529;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
margin-right: 20px;
transition: background-color 0.3s ease;
}
.login-button:hover {
color: rgb(171, 139, 101);
}
.register-link {
color: #212529;
text-decoration: none;
font-size: 0.9em;
}
.button-cell {
text-align: right;
}
.auto-style1 {
height: 22px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<h1 class="login-title">REGISTRATION</h1>
<table class="login-table" align="center">
<tr>
<td> </td>
<td>
<asp:RequiredFieldValidator ID="rfvUsername"
runat="server" ControlToValidate="txtUsername" ErrorMessage="Username is
required" ForeColor="Red" CssClass="error-message" SetFocusOnError="True"
Display="Dynamic" />
</td>
</tr>
<tr>
<td class="label-cell">USERNAME :</td>
<td class="input-cell">
<asp:TextBox ID="txtUsername" runat="server"
CssClass="input-textbox"></asp:TextBox>
</td>
</tr>
<tr>
<td> </td>
<td>
<asp:RequiredFieldValidator ID="rfvEmail" runat="server"
ControlToValidate="txtEmail" ErrorMessage="Email is required"
ForeColor="Red" CssClass="error-message" SetFocusOnError="True"
Display="Dynamic" />
<asp:RegularExpressionValidator ID="revEmail"
runat="server" ControlToValidate="txtEmail" ErrorMessage="Invalid email
format" ValidationExpression="\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}"
ForeColor="Red" CssClass="error-message" SetFocusOnError="True"
Display="Dynamic" />
</td>
</tr>
<tr>
<td class="label-cell">EMAIL :</td>
<td class="input-cell">
<asp:TextBox ID="txtEmail" runat="server" CssClass="input-
textbox"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style1"></td>
<td class="auto-style1">
<asp:RequiredFieldValidator ID="rfvPassword"
runat="server" ControlToValidate="txtPassword" ErrorMessage="Password is
required" ForeColor="Red" CssClass="error-message" SetFocusOnError="True"
Display="Dynamic" />
</td>
</tr>
<tr>
<td class="label-cell">PASSWORD :</td>
<td class="input-cell">
<asp:TextBox ID="txtPassword" runat="server"
CssClass="input-textbox" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td> </td>
<td>
<asp:RequiredFieldValidator ID="rfvConfirmPassword"
runat="server" ControlToValidate="txtConfirmPassword"
</table>
</asp:Content>
VB FILE :-
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Configuration
Public Class registration
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(WebConfigurationManager.ConnectionStrings("conn").ToString)
Dim cmd As New SqlCommand
Dim dt As DataTable
Dim da As SqlDataAdapter
PAGE CODE :-
.additems {
width: 100%;
}
.food-form {
width: 550px;
margin: 35px auto;
background-color: #f9f9f9;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.food-form .btn {
background-color: #212529;
width: 100%;
color: white;
padding: 15px;
font-size:20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.food-form .btn:hover {
color: rgb(171, 139, 101);
}
.gridview-container {
width: 80%;
margin: 20px auto;
}
.gridview-container .gridview {
width: 100%;
border-collapse: collapse;
}
.gridview-container .gridview th {
background-color: #212529;
color: white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
<div class="additems">
<div class="food-form">
<h2>Add Food Item</h2>
<asp:TextBox ID="txtFoodName" runat="server" Placeholder="Food
Item Name"></asp:TextBox>
<asp:TextBox ID="txtDescription" runat="server"
TextMode="MultiLine" Rows="4" Placeholder="Description"></asp:TextBox>
<asp:TextBox ID="txtPrice" runat="server"
Placeholder="Price"></asp:TextBox>
<asp:FileUpload ID="fuImage" runat="server" />
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
class="btn" />
</div>
<div class="gridview-container">
<asp:GridView ID="GridView1" runat="server"
CssClass="gridview" AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True" DataKeyNames="FoodID"
AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="FoodID" HeaderText="Food
Item ID" ReadOnly/>
<asp:BoundField DataField="FoodName" HeaderText="Food
Item Name" />
<asp:BoundField DataField="Description"
HeaderText="Description" />
<asp:BoundField DataField="Price" HeaderText="Price"
/>
<asp:ImageField DataImageUrlField="ImagePath"
HeaderText="Image">
<ControlStyle Width="250px" Height="150px" />
</asp:ImageField>
</Columns>
</asp:GridView>
</div>
</div>
</asp:Content>
VB FILE :-
Imports System.Data
Imports System.Data.SqlClient
Imports System.IO
Imports System.Web.Configuration
Public Class additem
Inherits System.Web.UI.Page
Dim con As New
SqlConnection(WebConfigurationManager.ConnectionStrings("conn").ToString)
Dim cmd As New SqlCommand
End Try
End Sub
End Try
End Sub
<!--
For more information on how to configure your ASP.NET application,
please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode"
value="None"></add>
</appSettings>
<system.web>
<compilation debug="true" strict="false" explicit="true"
targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<connectionStrings>
<add name="conn" connectionString="Data
Source=(LocalDB)\v11.0;AttachDbFilename=D:\ADO.NET\01FIRSTPROGARM\website\
website\App_Data\Database1.mdf;Integrated Security=True" />
<add name="ConnectionString" connectionString="Data
Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Database1.mdf;Inte
grated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>