Professional Documents
Culture Documents
Submitted by:-
Name:- Abhishek Balan
Roll No:- 20500011
Enrollment No:- 2019/39780
Session: - 2021-22
Under the supervision of
Prof. Rakesh Kumar
Assistant Professor of CS/IT
i.
Student Declaration
Signature in full:
Name in block letters: ABHISHEK BALAN
Enrollment No: 2019/39780
Date : 25/07/2022
ii.
Acknowledgement
ABHISHEK BALAN
iii.
PREFACE
iv.
INDEX
S.r. no. Content Page No.
1 Introduction of PHP 1-4
4 Coding 17-75
5 Database 76-78
6 Snapshots 79-81
7 Conclusion 82
9 Bibliography 84
INTRODUCTION OF PHP
What is PHP
History of PHP
2.
Easy To Read
PHP is preferred among users because it is easy to read and understand.
Many programming languages are complex and intimidating to new
users while PHP is organized, clean, and fluent. PHP documents do not
have to necessarily be in any order which allows for users to quickly add
new functions whenever they want without having to make sure that the
new code is in the correct place. This is excellent for users who have
3.
long scripts for many of their pages, especially for style sheets and
reference documents.
Easy To Edit
PHP is also easy to edit as a user is able to quickly scan a PHP document
for the code that they are looking for the change it to suit their needs.
Many other Programming languages require that you change multiple
functions within several documents in order to do the same thing that
PHP can. PHP documents can also be easily integrated into a collection
of other PHP documents or individual PHP commands. This allows for
users to take full advantage of their programming skills and computer
experience as they can write their own PHP scripts and extensions
without having to handle a large amount of file cleaning. Another reason
that PHP is preferred among users is that it is entirely free. While many
other programming languages require that the user obtains expensive
programs and pays for support files, PHP is open to anyone, anywhere,
and any time. A beginner in PHP does not have to worry about finding
support for their interest in programming and web design as there is an
entire online community dedicated to assisting others in PHP
manipulation and implementation. PHP is also aided by many large
companies that contribute to its success on a daily basis.
More Control
PHP offers more control over web browsers than other programming
languages do. Many other Programming languages require large scripts
to do simple tasks while PHP can do the same thing with a few lines of
code. PHP allows user to design web pages to their exact specifications
and it can even be used alongside other programming languages to
4.
perform a wider variety of tasks. When using PHP, the user can stop
focusing on programming and concentrate more on designing their
website.
Better Performance
PHP has better performance ratings than other programming languages
do. PHP is fast, and works great in almost any web browser as well as
integrating into almost any server. A user is able to add a few lines of
code to a PHP document, click save, and watch their website transform
into a more powerful and more organized version of itself. PHP
documents are high in demand because they compete with almost all
other programming languages available. PHP is also quickly growing in
its capabilities and offers more features as well as better operating
standards every day.
5.
So, in big cities even wives are working women, therefore mostly the
small families manage to have their food ordered from somewhere, as
they lack time. Not only this is the case, if we talk about the children in
the modern era, they like only fast food or something from the outside.
But they ignore eating homemade meals.
So, the food ordering system these days has one of the fastest-growing
markets, though being a new idea. In this project, we have developed
something like the same to learn from and serve the nation in a much
better way possible. Nowadays, people are more regular to dine-in at the
restaurant for their meals.
The online food ordering system provides convenience for the customers
that are nothing special but the general busy people of the society. It
overcomes the demerits of the manual hotel or mess system and the old-
fashioned queuing system. This system enhances the ready-made foods
that people.
Also, with the food ordering system online, people can easily track their
orders, and the admin can maintain the customer’s database and advance
6.
the food delivery system. This food ordering system allows the user to
select the desired food items from a list of available menu items
provided by the local hotel or restaurant.
The user can place orders for the food items of their like from the list.
The payment can be made online or pay-on-delivery system. The user’s
details are maintained confidentially because it maintains a separate
account for each user. An id and password are provided for each user.
And several encryption techniques have also been used on the server-
side to protect the card details. Therefore, it provides a more secure and
safe ordering system.
7.
SYSTEM ANALYSIS
8.
Design Pattern :-
VIEW :-
View is the graphical data presentation (outputting) irrespective of the
real data processing. View is the responsible for look and feel, some
custom formatting, sorting etc. View is completely isolated from actual
complex data operations. For example, Online product catalog view is
completely separated from database connection, query, tables etc. It
simply gets final row-data from the model and puts some cosmetics and
formatting before displaying it in browser. View provides interface to
interact with the system. The beauty of MVC approach is that it supports
any kind of view, which is challenging in today’s distributed and multi-
platform environment.
9.
MODEL :-
Model is responsible for actual data processing, like database
connection, querying database, implementing business rules etc. It feeds
data to the view without worrying about the actual formatting and look
and feel.
Data provided by the Model is displayed-neutral so it can be interfaced
with as many views without code redundancy; this eases your code
maintenance and reduces bugs and allows code-reuse at good extent.
Model responds to the request made by controllers and notifies the
registered views to update their display with new data.
SADM Diagrams :-
Inves琀椀gate
Current System
Business System
Op琀椀ons (BSOs)
Requirement
Speci昀椀ca琀椀on
Technical System
Op琀椀ons (TSOs)
Logical Design
Physical Design
10.
CONTROLLER
Benefits
11.
SYSTEM PLANNING
INTRODUCTION :
Software project managers take the overall responsibility of steering a
project to success. This surely is a very hazy job description. But it is
very difficult to objectively describe the job responsibilities of a project
manager.
12.
Applica琀椀on So昀琀ware
ANALYSIS
CONCEPTION
CONCEPTION INITIATION
COMMUNICATION WITH EXPERTS TO UNDERSTAND
REQUIREMENTS
REQUIREMENT ANALYSIS
13.
DATA ANALYSIS
PRESISTENCY REQUIREMENT
PERFORMANCE ANALYSIS
LOAD REQUIREMENT
RESPONSE TIME REQUIREMENT
TESTING
DEPLOYMENT
EXECUTABLE CREATION
SET UP CREATION
DEPLOYMENT TO STORAGE MEDIA
DOCUMENTATION
14.
PROJECT SYSTEM SPECIFICATION
The system specification is the final work produced by the system and
requirements engineer. It serves as the foundation for hardware
engineering, software engineering, database engineering and human
engineering.
Once requirements have been gathered explore each requirement in
relationship to others, examine requirements for consistency, omissions
and ambiguity.
Hardware Specification :
It is recommended that the minimum configuration for clients is as
appended below:-
Suggested Configuration of Windows clients:-
Microprocessor : Intel dual core class processor, 450 megahertz
Ram : 1 gigabytes (GB) on installation drive, which
Includes 500 MB on system drive.
DVD ROM Drive : 52 X DVD Drive
Software Specifications
Operating System : Windows 2000XP/Windows 2000NT/ windows7
Display Minimum : 800 X 600 256 colors.
Best Resolution : 1024 X 768 High Color – 16-bit.
Server : Xampp.
Web Browser : Internet Explorer, Google Chrome, Mozilla Firefox.
15.
SYSTEM MAINTENANCE
16.
MAINTENANCE PROCESS MODEL
17.
CODING
18.
login.php(Login page)
<style>
#uni_modal .modal-footer{
display:none;
}
19.
</style>
<script>
$('#new_account').click(function(){
uni_modal("Create an Account",'signup.php?
redirect=index.php?page=checkout')
})
$('#login-frm').submit(function(e){
e.preventDefault()
$('#login-frm
button[type="submit"]').attr('disabled',true).html('Logging in...');
if($(this).find('.alert-danger').length > 0 )
$(this).find('.alert-danger').remove();
$.ajax({
url:'admin/ajax.php?action=login2',
method:'POST',
data:$(this).serialize(),
error:err=>{
console.log(err)
$('#login-frm
button[type="submit"]').removeAttr('disabled').html('Login');
},
success:function(resp){
if(resp == 1){
location.href ='<?php echo
isset($_GET['redirect']) ? $_GET['redirect'] : 'index.php?page=home' ?
>';
20.
}else{
$('#login-frm').prepend('<div class="alert
alert-danger">Email or password is incorrect.</div>')
$('#login-frm
button[type="submit"]').removeAttr('disabled').html('Login');
}
}
})
})
</script>
21.
<input type="text" name="last_name" required="" class="form-
control">
</div>
<div class="form-group">
<label for="" class="control-label">Contact</label>
<input type="text" name="mobile" required=""
class="form-control">
</div>
<div class="form-group">
<label for="" class="control-label">Address</label>
<textarea cols="30" rows="3" name="address"
required="" class="form-control"></textarea>
</div>
<div class="form-group">
<label for="" class="control-label">Email</label>
<input type="email" name="email" required=""
class="form-control">
</div>
<div class="form-group">
<label for="" class="control-label">Password</label>
<input type="password" name="password" required=""
class="form-control">
</div>
<button class="button btn btn-info btn-sm">Create</button>
</form>
</div>
22.
<style>
#uni_modal .modal-footer{
display:none;
}
</style>
<script>
$('#signup-frm').submit(function(e){
e.preventDefault()
$('#signup-frm
button[type="submit"]').attr('disabled',true).html('Saving...');
if($(this).find('.alert-danger').length > 0 )
$(this).find('.alert-danger').remove();
$.ajax({
url:'admin/ajax.php?action=signup',
method:'POST',
data:$(this).serialize(),
error:err=>{
console.log(err)
$('#signup-frm
button[type="submit"]').removeAttr('disabled').html('Create');
},
success:function(resp){
if(resp == 1){
location.href ='<?php echo
isset($_GET['redirect']) ? $_GET['redirect'] : 'index.php?page=home' ?
>';
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883
23.
}else{
$('#signup-frm').prepend('<div class="alert
alert-danger">Email already exist.</div>')
$('#signup-frm
button[type="submit"]').removeAttr('disabled').html('Create');
}
}
})
})
</script>
<?php
$conn= new mysqli('localhost','root','','fos_db')or die("Could not connect
to mysql".mysqli_error($con));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<style>
24.
.custom-menu {
z-index: 1000;
position: absolute;
background-color: #ffffff;
border: 1px solid #0000001c;
border-radius: 5px;
padding: 8px;
min-width: 13vw;
}
a.custom-menu-list {
width: 100%;
display: flex;
color: #4c4b4b;
font-weight: 600;
font-size: 1em;
padding: 1px 11px;
}
span.card-icon {
position: absolute;
font-size: 3em;
bottom: .2em;
color: #ffffff80;
}
25.
.file-item{
cursor: pointer;
}
a.custom-menu-list:hover,.file-item:hover,.file-item.active {
background: #80808024;
}
a.custom-menu-list span.icon{
width:1em;
margin-right: 5px
}
.candidate {
margin: auto;
width: 23vw;
padding: 0 10px;
border-radius: 20px;
margin-bottom: 1em;
display: flex;
border: 3px solid #00000008;
background: #8080801a;
}
.candidate_name {
margin: 8px;
margin-left: 3.4em;
26.
margin-right: 3em;
width: 100%;
}
.img-field {
display: flex;
height: 8vh;
width: 4.3vw;
padding: .3em;
background: #80808047;
border-radius: 50%;
position: absolute;
left: -.7em;
top: -.7em;
}
.candidate img {
height: 100%;
width: 100%;
margin: auto;
border-radius: 50%;
}
.vote-field {
position: absolute;
right: 0;
27.
bottom: -.4em;
}
</style>
</head>
<body>
<div class="containe-fluid">
<div class="row">
<div class="col-lg-12">
</div>
</div>
<div class="row mt-3 ml-3 mr-3">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<?php echo "Welcome back ".
$_SESSION['login_name']."!" ?>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
28.
about.php (About page)
<!DOCTYPE html>
<html lang="en">
<head>
<title>About</title>
</head>
<body>
<header class="masthead">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-
center text-center">
<div class="col-lg-10 align-self-end mb-4"
style="background: #0000002e;">
<h1 class="text-uppercase text-white font-weight-
bold">About Us</h1>
<hr class="divider my-4" />
</div>
</div>
</div>
</header>
<section class="page-section">
<div class="container">
29.
<?php echo html_entity_decode($_SESSION['setting_about_content'])
?>
</div>
</section>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cart_list</title>
</head>
<body>
<header class="masthead">
<div class="container h-100">
30.
</div>
</div>
</header>
<section class="page-section" id="menu">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="sticky">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-8"><b>Card</b></div>
<div class="col-md-4 text-right"><b>Total</b></div>
</div>
</div>
</div>
</div>
<?php
if(isset($_SESSION['login_user_id'])){
$data = "where c.user_id = '".
$_SESSION['login_user_id']."' ";
}else{
31.
$ip = isset($_SERVER['HTTP_CLIENT_IP']) ?
$_SERVER['HTTP_CLIENT_IP'] :
isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
$_SERVER['HTTP_X_FORWARDED_FOR'] :
$_SERVER['REMOTE_ADDR'];
$data = "where c.client_ip = '".$ip."' ";
}
$total = 0;
$get = $conn->query("SELECT *,c.id as cid
FROM cart c inner join product_list p on p.id = c.product_id ".$data);
while($row= $get->fetch_assoc()):
$total += ($row['qty'] * $row['price']);
?>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-4" style="text-align: -webkit-center">
32.
<p><b><large><?php echo $row['name'] ?></large></b></p>
<p class='truncate'> <b><small>Desc :<?php echo $row['description'] ?
></small></b></p>
<p> <b><small>Unit Price :<?php echo number_format($row['price'],2)
?></small></b></p>
<p><small>QTY :</small></p>
<div class="input-group mb-3">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary qty-minus" type="button"
data-id="<?php echo $row['cid'] ?>"><span class="fa fa-
minus"></button>
</div>
<input type="number" readonly value="<?php echo $row['qty'] ?>" min
= 1 class="form-control text-center" name="qty" >
<div class="input-group-prepend">
<button class="btn btn-outline-secondary qty-plus" type="button" id=""
data-id="<?php echo $row['cid'] ?>"><span class="fa fa-
plus"></span></button>
</div>
</div>
</div>
<div class="col-md-4 text-right">
<b><large><?php echo
number_format($row['qty'] * $row['price'],2) ?></large></b>
</div>
</div>
33.
</div>
</div>
<?php endwhile; ?>
</div>
<div class="col-md-4">
<div class="sticky">
<div class="card">
<div class="card-body">
<p><large>Total Amount</large></p>
<hr>
<p class="text-right"><b><?php echo
number_format($total,2) ?></b></p>
<hr>
<div class="text-center">
<button class="btn btn-block btn-
outline-primary" type="button" id="checkout">Proceed to
Checkout</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
34.
</section>
<style>
.card p {
margin: unset
}
.card img{
max-width: calc(100%);
max-height: calc(59%);
}
div.sticky {
position: -webkit-sticky; /* Safari */
position: sticky;
top: 4.7em;
z-index: 10;
background: white
}
.rem_cart{
position: absolute;
left: 0;
}
</style>
<script>
$('.view_prod').click(function(){
35.
uni_modal_right('Product','view_prod.php?id='+$(this).attr('data-id'))
})
$('.qty-minus').click(function(){
var qty = $(this).parent().siblings('input[name="qty"]').val();
update_qty(parseInt(qty) -1,$(this).attr('data-id'))
if(qty == 1){
return false;
}else{
$
(this).parent().siblings('input[name="qty"]').val(parseInt(qty) -1);
}
})
$('.qty-plus').click(function(){
var qty = $
(this).parent().siblings('input[name="qty"]').val();
$
(this).parent().siblings('input[name="qty"]').val(parseInt(qty) +1);
update_qty(parseInt(qty) +1,$(this).attr('data-id'))
})
function update_qty(qty,id){
start_load()
$.ajax({
url:'admin/ajax.php?action=update_cart_qty',
method:"POST",
36.
data:{id:id,qty},
success:function(resp){
if(resp == 1){
load_cart()
end_load()
}
}
})
}
$('#checkout').click(function(){
if('<?php echo isset($_SESSION['login_user_id']) ?>' == 1){
location.replace("index.php?page=checkout")
}else{
uni_modal("Checkout","login.php?
page=checkout")
}
})
</script>
</body>
</html>
37.
header.php (navbar coding)
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $_SESSION['setting_name'] ?></title>
</head>
<body>
<!-- Favicon-->
<link rel="icon" type="image/x-icon"
href="assets/img/favicon.ico" />
<!-- Font Awesome icons (free version)-->
<script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js"
crossorigin="anonymous"></script>
<!-- Google fonts-->
<link href="https://fonts.googleapis.com/css?
family=Merriweather+Sans:400,700" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?
family=Merriweather:400,300,300italic,400italic,700,700italic"
rel="stylesheet" type="text/css" />
<!-- Third party plugin CSS-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/magnific-
popup.js/1.1.0/magnific-popup.min.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
38.
<link href="admin/assets/vendor/bootstrap-datepicker/css/bootstrap-
datepicker.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
<script src="admin/assets/vendor/jquery/jquery.min.js"></script>
<script src="admin/assets/vendor/bootstrap-datepicker/js/bootstrap-
datepicker.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Footer</title>
</head>
<body>
<script>
$('.datepicker').datepicker({
format:"yyyy-mm-dd"
})
window.start_load = function(){
$('body').prepend('<di id="preloader2"></di>')
39.
}
window.end_load = function(){
$('#preloader2').fadeOut('fast', function() {
$(this).remove();
})
}
error:err=>{
console.log()
alert("An error occured")
}
success:function(resp){
if(resp){
$('#uni_modal .modal-title').html($title)
$('#uni_modal .modal-body').html(resp)
$('#uni_modal').modal('show')
end_load()
}
}
40.
})
}
window.uni_modal_right = function($title = '' , $url=''){
start_load()
$.ajax({
url:$url,
error:err=>{
console.log()
alert("An error occured")
},
success:function(resp){
if(resp){
$('#uni_modal_right .modal-title').html($title)
$('#uni_modal_right .modal-body').html(resp)
$('#uni_modal_right').modal('show')
end_load()
}
}
})
}
window.alert_toast= function($msg = 'TEST',$bg = 'success'){
$('#alert_toast').removeClass('bg-success')
$('#alert_toast').removeClass('bg-danger')
41.
$('#alert_toast').removeClass('bg-info')
$('#alert_toast').removeClass('bg-warning')
if($bg == 'success')
$('#alert_toast').addClass('bg-success')
if($bg == 'danger')
$('#alert_toast').addClass('bg-danger')
if($bg == 'info')
$('#alert_toast').addClass('bg-info')
if($bg == 'warning')
$('#alert_toast').addClass('bg-warning')
$('#alert_toast .toast-body').html($msg)
$('#alert_toast').toast({delay:3000}).toast('show');
}
window.load_cart = function(){
$.ajax({
url:'admin/ajax.php?action=get_cart_count',
success:function(resp){
if(resp > -1){
resp = resp > 0 ? resp : 0;
$('.item_count').html(resp)
}
}
})
42.
}
$('#login_now').click(function(){
uni_modal("LOGIN",'login.php')
})
$(document).ready(function(){
load_cart()
})
</script>
43.
Style.css (CSS ALL FILE)
<style>
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
44.
[tabindex="-1"]:focus:not(:focus-visible) {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883
margin-top: 0;
margin-bottom: 0.5rem;
}
p{
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
-webkit-text-decoration-skip-ink: none;
45.
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: 0.5rem;
46.
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
47.
}
a{
color: #f4623a;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: #d6370c;
text-decoration: underline;
}
a:not([href]) {
color: inherit;
text-decoration: none;
}
a:not([href]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation
Mono", "Courier New", monospace;
font-size: 1em;
48.
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg {
overflow: hidden;
vertical-align: middle;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
49.
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
50.
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
[role=button] {
cursor: pointer;
}
select {
word-wrap: normal;
}
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
}
51.
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
cursor: pointer;
}
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type=radio],
input[type=checkbox] {
box-sizing: border-box;
padding: 0;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
52.
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: 0.5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
height: auto;
}
[type=search] {
outline-offset: -2px;
53.
-webkit-appearance: none;
}
[type=search]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
54.
margin-bottom: 0.5rem;
font-family: "Merriweather Sans", -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol", "Noto Color Emoji";
font-weight: 500;
line-height: 1.2;
}
h1, .h1 {
font-size: 2.5rem;
}
h2, .h2 {
font-size: 2rem;
}
h3, .h3 {
font-size: 1.75rem;
}
h4, .h4 {
font-size: 1.5rem;
}
h5, .h5 {
font-size: 1.25rem;
}
h6, .h6 {
font-size: 1rem;
55.
}
.lead {
font-size: 1.25rem;
font-weight: 300;
}
.display-1 {
font-size: 6rem;
font-weight: 300;
line-height: 1.2;
}
.display-2 {
font-size: 5.5rem;
font-weight: 300;
line-height: 1.2;
}
.display-3 {
font-size: 4.5rem;
font-weight: 300;
line-height: 1.2;
}
.display-4 {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.2;
56.
}
hr {
margin-top: 1rem;
margin-bottom: 1rem;
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
small,
.small {
font-size: 80%;
font-weight: 400;
}
mark,
.mark {
padding: 0.2em;
background-color: #fcf8e3;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
57.
}
.list-inline-item {
display: inline-block;
}
.list-inline-item:not(:last-child) {
margin-right: 0.5rem;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
.blockquote {
margin-bottom: 1rem;
font-size: 1.25rem;
}
.blockquote-footer {
display: block;
font-size: 80%;
color: #6c757d;
}
.blockquote-footer::before {
content: "— ";
}
.img-fluid {
58.
max-width: 100%;
height: 23vw;
}
.img-thumbnail {
padding: 0.25rem;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 0.25rem;
max-width: 100%;
height: auto;
}
.figure {
display: inline-block;
}
.figure-img {
margin-bottom: 0.5rem;
line-height: 1;
}
.figure-caption {
font-size: 90%;
color: #6c757d;
}
code {
font-size: 87.5%;
59.
color: #e83e8c;
word-wrap: break-word;
}
a > code {
color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;
font-size: 87.5%;
color: #fff;
background-color: #212529;
border-radius: 0.2rem;
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: 700;
}
pre {
display: block;
font-size: 87.5%;
color: #212529;
}
pre code {
60.
font-size: inherit;
color: inherit;
word-break: normal;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.container-fluid, .container-xl, .container-lg, .container-md, .container-
sm {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
</style>
61.
Script.js (All script file)
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') =xa= this.pathname.replace(/^\//,
'') && location.hostname == this.hostname) {
62.
offset: 75
});
// Collapse Navbar
var navbarCollapse = function() {
if ($("#mainNav").offset().top > 100) {
$("#mainNav").addClass("navbar-scrolled");
} else {
$("#mainNav").removeClass("navbar-scrolled");
}
};
// Collapse now if page is not at top
navbarCollapse();
// Collapse the navbar when page is scrolled
$(window).scroll(navbarCollapse);
})(jQuery); // End of use strict
fos_db.sql (DATABASE)
63.
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI
ENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE
SULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNEC
TION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `fos_db`
--
CREATE DATABASE IF NOT EXISTS `fos_db` DEFAULT
CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `fos_db`;
-- --------------------------------------------------------
--
-- Table structure for table `cart`
-
CREATE TABLE `cart` (
`id` int(30) NOT NULL,
64.
`client_ip` varchar(20) NOT NULL,
`user_id` int(30) NOT NULL,
`product_id` int(30) NOT NULL,
`qty` int(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
65.
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(30) NOT NULL,
`name` text NOT NULL,
`address` text NOT NULL,
66.
(6, 'manish patodiya', 'abc', '1234567894', 'test@testing.com', 1),
(7, 'manish patodiya', 'abc', '1234567894', 'test@testing.com', 0);
-- --------------------------------------------------------
--
-- Table structure for table `order_list`
--
CREATE TABLE `order_list` (
67.
(9, 4, 4, 1),
(10, 5, 6, 2),
(11, 5, 1, 2),
(12, 6, 6, 3),
(13, 7, 5, 1),
(14, 7, 5, 1);
-- --------------------------------------------------------
--
-- Table structure for table `product_list`
--
CREATE TABLE `product_list` (
`id` int(30) NOT NULL,
`category_id` int(30) NOT NULL,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`price` float NOT NULL DEFAULT 0,
`img_path` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0=
unavailable, 2 Available'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `product_list`
--
INSERT INTO `product_list` (`id`, `category_id`, `name`, `description`,
`price`, `img_path`, `status`) VALUES
68.
(1, 3, 'Diet Coke', 'In Can', 20, '1600652160_diet_coke.jpg', 1),
(3, 3, 'Lemon Iced Tea', 'Sample', 10, '1600652520_lemon iced tea.jpg',
1),
(4, 4, 'Chicken', 'Sample only', 150, '1600652880_chicken.jpg', 1),
(5, 3, 'Steak', 'Sample 2', 200, '1600652880_steak.jpg', 1),
(6, 3, 'Chicken2', 'Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry’s standard
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883
dummy text ever since the 1500s, when an unknown printer took a
galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the
1960s with the release of Letraset sheets containing Lorem Ipsum
passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.', 250,
'1600656600_checken2.jpg', 1),
(7, 6, 'Leche Plan', 'Leche Plan Big', 99, '1618937160_arrow.png', 1);
-- --------------------------------------------------------
--
-- Table structure for table `system_settings`
--
CREATE TABLE `system_settings` (
`id` int(30) NOT NULL,
`name` text NOT NULL,
`email` varchar(200) NOT NULL,
`contact` varchar(20) NOT NULL,
`cover_img` text NOT NULL,
`about_content` text NOT NULL
69.
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `system_settings`
--
INSERT INTO `system_settings` (`id`, `name`, `email`, `contact`,
`cover_img`, `about_content`) VALUES
70.
Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a
treatise on the theory of ethics, very popular during the Renaissance. The
first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..",
comes from a line in section 1.10.32.</p><p></p>');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(30) NOT NULL,
`name` varchar(200) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(200) NOT NULL,
`type` tinyint(1) NOT NULL DEFAULT 2 COMMENT '1=admin , 2 =
staff'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `username`, `password`, `type`)
VALUES
(1, 'Administrator', 'admin', 'admin123', 1),
(6, 'Manish', 'manish', '12345678', 1);
-- --------------------------------------------------------
--
71.
-- Table structure for table `user_info`
--
CREATE TABLE `user_info` (
`user_id` int(10) NOT NULL,
`first_name` varchar(100) NOT NULL,
`last_name` varchar(100) NOT NULL,
72.
--
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id`)
--
-- Indexes for table `category_list`
--
ALTER TABLE `category_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `order_list`
--
ALTER TABLE `order_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product_list`
--
73.
ALTER TABLE `product_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `system_settings`
--
ALTER TABLE `system_settings`
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_info`
--
ALTER TABLE `user_info`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cart`
--
74.
ALTER TABLE `cart`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `category_list`
--
75.
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `system_settings`
--
ALTER TABLE `system_settings`
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883
76.
DATABASE
77.
TABLE 1 (CART)
22 ::1 7 3 1
23 ::1 7 6 1
24 ::1 2 7 1
25 ::1 2 5 1
TABLE 2 (CATEGORY_LIST)
ID Name
1 Beverages
3 Best Sellers
4 Meals
5 Snacks
6 Dessert
7 Crunchy
78.
TABLE 3 (ORDERS)
79.
SNAPSHOTS
80.
FRONT PAGE
CART LIST
81.
CHECKOUT
ABOUT US
82.
CONCLUSION
83.
Website Scope
Extensibility
Reusability
84.
BIBLIOGRAPHY
Author: Nicholas.C.Zakas
6. www.sbbj.co.in