You are on page 1of 33

Republic of the Philippines

City of Taguig
Taguig City University
Gen. Santos Ave. Central Bicutan, Taguig City

APC 104 – CONTENT MANAGEMENT SYSTEM

SHOPLANT

Submitted by:

Andres, Kimberly S.

Esteroza, Bernie F. Jr

Lorejo, Reina Je T.

Morales, Jerome

Submitted to:

PROF. JOEVILZON M. CALDERON


HOME PAGE
REGISTRATION PAGE

LOG IN PAGE
MENU
Users can choose what to buy from the categories Plants, Flowers, or Pots
TRANSACTION

Cart

Check Out Form


ABOUT
CONTACT US

REVIEW/FEEDBACK
DEVELOPERS
GALLERY

CODES
index.php

<?php session_start(); ?>


<?php include "header.php"; ?>
<!-- Start slides -->
<br>
<div id="slides" class="cover-slides">
<ul class="slides-container">
<li class="text-left">
<img src="images/267.jpg" alt="">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="m-b-20"><strong>Welcome To <br> Shop
Plant</strong></h1>
<p class="m-b-40">Have It Your Way, <br>
World's Best and Beautiful Plants</p>
<p><a class="btn btn-lg btn-circle btn-outline-new-
white" href="menu.php">Plant Menu</a></p>
</div>
</div>
</div>
</li>
<li class="text-left">
<img src="images/bg1.jpg" alt="">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="m-b-20"><strong>We like <br> Caring
plants.</strong></h1>
<p class="m-b-40">Shop Plant is giving a Different and
Beautiful Plants.
<br>
Ambience is a very good with well trained staff with
plant garden concept...</p>
<p><a class="btn btn-lg btn-circle btn-outline-new-
white" href="contact.php">Contact Us</a></p>
</div>
</div>
</div>
</li>
<li class="text-left">
<img src="images/bg2.jpg" alt="">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="m-b-20"><strong>Welcome To <br>
Flowers Shop</strong></h1>
<p class="m-b-40">Beautiful Flowers can catch your
eye.<br>
We know our plants..</p>
<p><a class="btn btn-lg btn-circle btn-outline-new-
white" href="review.php">Feedback</a></p>
</div>
</div>
</div>
</li>
</ul>
<div class="slides-navigation">
<a href="#" class="next"><i class="fa fa-angle-right" aria-hidden="true"></i></a>
<a href="#" class="prev"><i class="fa fa-angle-left" aria-hidden="true"></i></a>
</div>
</div>
<!-- End slides -->

<!-- Start About -->


<div class="about-section-box">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 text-center">
<div class="inner-column">
<h1><span>Welcome To SHOP PLANT</span></h1>
<h4>Project Background</h4>
<p>Shop plant is made by our Group of students in TAGUIG
CITY UNIVERSITY it is a projec website in Content Management System,
</p>
<p>It was made June 30, 2021 and done by July 31 2021 by
the help of our team Reina jie Lorejo , Jerome Morales , Kimberly Andres and Bernie Esteroza Jr. we gladly
finish this Final project,</p>
<a class="btn btn-lg btn-circle btn-outline-new-white"
href="contact.php">Contact Us</a>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<img src="images/123.png" width="200%" height="200%"
class="img-fluid">
</div>
</div>
</div>
</div>
<!-- End About -->

<!-- Start QT -->


<div class="qt-box qt-background">
<div class="container">
<div class="row">
<div class="col-md-8 ml-auto mr-auto text-center">
<p class="lead ">
" If you're not a plant lover, stay out of the way and compliment
the gardeners. "
</p>
<span class="lead">Shop Plant</span>
</div>
</div>
</div>
</div>
<!-- End QT -->

<!-- Start Menu -->


<div class="menu-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Products For You</h2>
<p>Take a look what we have..</p>
</div>
</div>
</div>
<div class="row inner-menu-box">
<div class="col-3">
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist"
aria-orientation="vertical">
<a class="nav-link active" id="v-pills-home-tab" data-
toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">All</a>
<a class="nav-link" id="v-pills-profile-tab" data-toggle="pill"
href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">PLANTS</a>
<a class="nav-link" id="v-pills-messages-tab" data-toggle="pill"
href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-
selected="false">FLOWERS</</a>
<a class="nav-link" id="v-pills-settings-tab" data-toggle="pill"
href="#v-pills-settings" role="tab" aria-controls="v-pills-settings" aria-selected="false">POT</a>

<a class="nav-link" id="v-pills-tava-tab" data-toggle="pill"


href="#v-pills-tava" role="tab" aria-controls="v-pills-tava" aria-selected="false">Others</a>
</div>
</div>

<div class="col-8">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-home"
role="tabpanel" aria-labelledby="v-pills-home-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<p>₱ <?php echo
$r['price']; ?> .00</p>
<h5 align="center">
<?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>

<div class="tab-pane fade" id="v-pills-profile" role="tabpanel"


aria-labelledby="v-pills-profile-tab">
<div class="row">

<?php include "connect.php";


$s = mysqli_query($con,"select * from menu
where category='Plants'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center">
<?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>

</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-messages"
role="tabpanel" aria-labelledby="v-pills-messages-tab">
<div class="row">

<?php include "connect.php";


$s = mysqli_query($con,"select * from menu
where category='Flowers'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center">
<?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>

<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-settings" role="tabpanel"
aria-labelledby="v-pills-settings-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu
where category='Pot'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center">
<?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-tava" role="tabpanel"
aria-labelledby="v-pills-tava-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu
where category='Others'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center"><?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?></h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Menu -->
<!-- Start Gallery -->
<div class="gallery-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Gallery</h2>
<p>Beautiful Plant Pictures for Shop Plant Listed Here </p>
</div>
</div>
</div>
<div class="tz-gallery">
<div class="row">
<?php
include "connect.php";
$s = mysqli_query($con,"select * from gallery order by
id desc limit 8");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-sm-12 col-md-4 col-lg-3">

<a class="lightbox" href="<?php echo "admin/".


$r['image']; ?>">
<img class="img-fluid" src="<?php echo
"admin/".$r['image']; ?>" alt="Gallery Images" style="width: 255px; height: 255px;"
>
</a>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<!-- End Gallery -->

<!-- Start Customer Reviews -->


<div class="customer-reviews-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Customer Reviews</h2>
<p>"if you build a greater experience, customer tell each other
about that, word of mouth is very powerful"</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 mr-auto ml-auto text-center">
<div id="reviews" class="carousel slide" data-ride="carousel">
<div class="carousel-inner mt-4">
<?php include "connect.php";
$s = mysqli_query($con,"select * from review limit 4");
while($r = mysqli_fetch_array($s))
{
?>
<div class="carousel-item text-center ">
<div class="img-box p-1 border rounded-circle
m-auto">
<img class="d-block w-100 rounded-
circle" src="images/emo.png" alt="">
</div>
<h5 class="mt-4 mb-0"><strong class="text-
warning text-uppercase">
<?php echo $r['name']; ?>
</strong></h5>
<h6 class="text-dark m-0">Feedback : <?php
echo $r['review']; ?></h6>
<p class="m-0 pt-3">
<?php echo $r['description']; ?>
</p>
</div>
<?php } ?>
<div class="carousel-item text-center active">
<div class="img-box p-1 border rounded-circle
m-auto">
<img class="d-block w-100 rounded-
circle" src="images/emo.png" alt="">
</div>
<h5 class="mt-4 mb-0"><strong class="text-
warning text-uppercase">Jerald</strong></h5>
<h6 class="text-dark m-0">Feedback :
Good</h6>
<p class="m-0 pt-3">
Looks Beautiful
</p>
</div>

</div>
<a class="carousel-control-prev" href="#reviews" role="button"
data-slide="prev">
<i class="fa fa-angle-left" aria-hidden="true"></i>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#reviews" role="button"
data-slide="next">
<i class="fa fa-angle-right" aria-hidden="true"></i>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- End Customer Reviews -->
<?php include "footer.php"; ?>

registration.php
<?php include "header.php"; ?>
<body>
<!-- Start All Pages -->
<div class="all-page-title page-breadcrumb">
<div class="container text-center">
<div class="row">
<div class="col-lg-12">
<h1> SIGN UP HERE </h1>
</div></div></div> </div>
<!-- End All Pages -->
<!-- Start Contact -->
<div class="contact-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<table cellpadding="10" cellspacing="12" align="left ">
<form action="" method="POST">
<tr><td>
<input type="text" name="uid" value="" placeholder="Enter user id" required=""style="padding: 5px; width:
150%"> <br> </td>
</tr> <tr>
<td> <input type="password" name="pass" value="" placeholder=" Enter Your password" required=""
style="padding: 5px; width: 150%"> <br> </td>
</tr>
<tr>
<td> <input type="email" name="email" value="" placeholder="Enter Your Email Address" required=""
style="padding: 5px; width: 150%"> <br> </td>
</tr>
<tr>
<td align="center"> <input type="submit" name="sb" value="Register" style="color: white; background-
color: green; font-size: 1.5em; font-family: times new roman;"> <br> </td>
</tr>
</form>
</table>
<?php
if(isset($_POST['sb']))
{
$uid = $_POST['uid'];
$pass = $_POST['pass'];
$email = $_POST['email'];
include "connect.php";
mysqli_query($con,"insert into registration(userid,
password,email) values('$uid','$pass','$email')");
echo "<script>alert('Registration SuccessFully');</script>";
echo "<center>Registration SuccessFully ... Click to <a
href='login.php'>login</a></center>";
}
?>
</div>
</div>
</div>
</div>
<!-- End Contact -->
<?php include "footer.php"; ?>
login.php

<?php include "header.php"; ?>


<body>

<!-- Start All Pages -->


<div class="all-page-title page-breadcrumb">
<div class="container text-center">
<div class="row">
<div class="col-lg-12">
<h1>Login </h1>
</div>
</div>
</div>
</div>
<!-- End All Pages -->

<!-- Start Contact -->

<div class="contact-box">
<div class="container">
<div class="row">
<div class="col-lg-12">

</div>
</div>

<div class="row">
<div class="col-lg-12">
<form action="loginck.php" method="post">

<table border="0" align="left" cellpadding="10" cellspacing="0">

<tr align="right">
<td> <img src="images/login1.png" style="width: 50%"> <br>

<a href="registration.php"> New User? Register</a></td>


</tr>
<tr>
<td> Username :
<input type="text" name="uid" placeholder="Enter Your User ID" style="padding: 5px; width: 150%">
<br> </td>
</tr>
<tr>
<td> Password :
<input type="Password" name="pass" placeholder="Enter Your Password" style="padding:
5px; width: 150%"> <br> </td>
</tr>
<tr>
<td align="right"> <input type="submit" name="" value="Login Now" style="color: white; background-color:
green; font-size: 1.5em; font-family: times new roman;"> </td>
</tr>
</form>
</table>
</div>
</div>
</div>
</div>
<!-- End Contact -->
<?php include "footer.php"; ?>
menu.php
<?php session_start(); ?>
<?php include "header.php"; ?>
<!-- Start All Pages -->
<div class="all-page-title page-breadcrumb">
<div class="container text-center">
<div class="row">
<div class="col-lg-12">
<h1>PRODUCT MENU</h1>
</div>
</div>
</div>
</div>
<!-- End All Pages -->

<!-- Start Menu -->


<div class="menu-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Take a look the product we have..</h2>
<p>Every day is a good day for your Plant shop</p>
</div>
</div>
</div>
<div class="row inner-menu-box">
<div class="col-3">
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist"
aria-orientation="vertical">
<a class="nav-link active" id="v-pills-home-tab" data-
toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">All</a>
<a class="nav-link" id="v-pills-profile-tab" data-toggle="pill"
href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">PLANTS</a>
<a class="nav-link" id="v-pills-messages-tab" data-toggle="pill"
href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-
selected="false">FLOWERS</</a>
<a class="nav-link" id="v-pills-settings-tab" data-toggle="pill"
href="#v-pills-settings" role="tab" aria-controls="v-pills-settings" aria-selected="false">POT</a>

<a class="nav-link" id="v-pills-tava-tab" data-toggle="pill"


href="#v-pills-tava" role="tab" aria-controls="v-pills-tava" aria-selected="false">Others</a>
</div>
</div>
<div class="col-9">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-home"
role="tabpanel" aria-labelledby="v-pills-home-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<p>₱ <?php echo
$r['price']; ?> .00</p>
<h5 align="center">
<?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-profile" role="tabpanel"
aria-labelledby="v-pills-profile-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu
where category='Plants'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center">
<?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-messages"
role="tabpanel" aria-labelledby="v-pills-messages-tab">
<div class="row">

<?php include "connect.php";


$s = mysqli_query($con,"select * from menu
where category='Flowers'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center">
<?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>

<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-settings" role="tabpanel"
aria-labelledby="v-pills-settings-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu
where category='Pot'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center">
<?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>

<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?>

</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-tava" role="tabpanel"
aria-labelledby="v-pills-tava-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu
where category='Others' order by id desc limit 8");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid
drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo
$r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:250px;'>
<div class="why-text">
<h4><?php echo $r['title'];
?></h4>
<p><?php echo
$r['description']; ?></p>
<h5>₱ <?php echo
$r['price']; ?> .00</h5>
<h5 align="center"><?php
if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?
pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add
Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add
Cart</a>
<?php } ?></h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Menu -->
<!-- Start Customer Reviews -->
<div class="customer-reviews-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Customer Feedback</h2>
<p>"if you build a greater experience, customer tell each other
about that, word of mouth is very powerful"</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 mr-auto ml-auto text-center">
<div id="reviews" class="carousel slide" data-ride="carousel">
<div class="carousel-inner mt-4">
<?php include "connect.php";
$s = mysqli_query($con,"select * from review limit 4");
while($r = mysqli_fetch_array($s))
{
?>
<div class="carousel-item text-center ">
<div class="img-box p-1 border rounded-circle
m-auto">
<img class="d-block w-100 rounded-
circle" src="images/emo.png" alt="">
</div>
<h5 class="mt-4 mb-0"><strong class="text-
warning text-uppercase">
<?php echo $r['name']; ?>
</strong></h5>
<h6 class="text-dark m-0">Feedback : <?php
echo $r['review']; ?></h6>
<p class="m-0 pt-3">
<?php echo $r['description']; ?>
</p>
</div>
<?php } ?>
<div class="carousel-item text-center active">
<div class="img-box p-1 border rounded-circle
m-auto">
<img class="d-block w-100 rounded-
circle" src="images/emo.png" alt="">
</div>
<h5 class="mt-4 mb-0"><strong class="text-
warning text-uppercase">Jerald</strong></h5>
<h6 class="text-dark m-0">Feedback :
Good</h6>
<p class="m-0 pt-3">
Looks Beautiful
</p>
</div>
</div>
<a class="carousel-control-prev" href="#reviews" role="button"
data-slide="prev">
<i class="fa fa-angle-left" aria-hidden="true"></i>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#reviews" role="button"
data-slide="next">
<i class="fa fa-angle-right" aria-hidden="true"></i>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- End Customer Reviews -->
<?php include "footer.php" ?>

addcart.php

<?php session_start();
include "header.php"; ?>
<body>
<!-- Start All Pages -->
<div class="all-page-title page-breadcrumb">
<div class="container text-center">
<div class="row">
<div class="col-lg-12">
<h1>ADD CART </h1>
</div></div></div></div>
<!-- End All Pages -->
<!-- Start Contact -->
<div class="contact-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<form action="" method="post">
<table align="center" border="1" cellspacing="14" cellpadding="12" style="color: black" >
<tr align="center">
<td style="color: red"> Product ID </td>
<td> <input type="hidden" name="pid" value="<?php echo $_GET['pid']; ?
>"><?php echo $_GET['pid']; ?></td>
</tr> <tr align="center">
<td style="color: red"> Your USERID </td>
<td> <input type="hidden" name="uid" value="<?php echo $_GET['uid']; ?>"><?
php echo $_GET['uid']; ?></td>
</tr>
<tr align="center"><td style="color: red"> Price </td>
<td> <input type="hidden" name="price" value="<?php echo $_GET['price']; ?
>"><?php echo $_GET['price']; ?></td>
</tr> <tr align="center">
<td style="color: red"> QTY</td>
<td> <input type="number" name="qty" value="" min=1 max=10 required></td>
</tr>
<tr align="center">
<td colspan="4"> <input type="submit" name="sb" value="Add Cart Now"></td>
</tr></table></form>
<?php
if(isset($_POST['sb']))
{
$pid = $_POST['pid'];
$uid = $_POST['uid'];
$price = $_POST['price'];
$qty = $_POST['qty'];
$total = $price*$qty;
include "connect.php";
mysqli_query($con,"insert into addcart(p_id,u_id,price,qty,total )
values('$pid','$uid','$price','$qty','$total')") or die(mysqli_error($con));
echo "<script>alert('Your data Is Add Inside Cart')</script>";
}
?>
</div></div></div></div>
<!-- End Contact -->
<?php include "footer.php"; ?>
cart.php

<?php session_start();
$uid = $_SESSION['uid'];
include "header.php"; ?>
<style type="text/css">
tr{
}
tr:hover{
background-color: lightgreen;
color: black;
}
</style>
<div style="height: 150px;"></div>
<div style="width: 90%; margin: 0 auto;">
<center> <img src="images/cart.jpg" width="10%"> </center>
<center> <p style="font-size: 2.4em; color: red"> VIEW CART PRODUCT HERE </p> </center>
<div style="width: 90%; padding: 20px; text-align: right;">
<a href="checkout.php"><img src="images/check.png" width="40"></a>
<a href="checkout.php">Check Out</a>
</div>
<br>
<div>
<?php include "connect.php";
$s = mysqli_query($con,"SELECT addcart.price, addcart.qty, addcart.total,addcart.id,
menu.image
FROM addcart
INNER JOIN menu ON addcart.p_id=menu.id where addcart.u_id='$uid'");
?>
<table border=1 width="80%" align="center" cellpadding="8" cellspacing="10" style="color:
black">
<tr><th>image </th>
<th>Price</th>
<th>Qty</th>
<th>Total</th>
<th>Remove</th>
</tr>
<?php
while($r = mysqli_fetch_array($s))
{
?>
<tr>
<td align="right"><img src="admin/<?php echo $r['image']; ?>" width=100
height=100></td>
<td><?php echo $r['price']; ?></td>
<td><?php echo $r['qty']; ?></td>
<td><?php echo $r['total']; ?></td>
<td><a href="deletecart.php?id=<?php echo $r['id']; ?>">Delete</a></td>
</tr>
<?php
}
?>
</table>
<div style="width: 90%; padding: 20px; text-align: right;">
<a href="checkout.php"><img src="images/check.png" width="40"></a>
<a href="checkout.php">Check Out</a>
</div></div></div>
<?php
include "footer.php";
?>
checkout.php

<?php session_start();
include "header.php";
?>
<div style="height: 150px;"></div>
<div style="width: 80%; margin: 0 auto;">
<div style="width: 50%; margin: 0 auto;">
<?php include "connect.php"; ?>
<form action="order.php" method="post">
<table align="center" border="1" cellspacing="14" cellpadding="12" style="width: 100%">
<tr>
<th> <h3 align="center" style="font-size: 1.3em;">Fill Up Details To Deliver Your
Item</h3> </th>
<br>
</tr>
<tr align="center">
<td style="color: red"> Enter your name <br>
<input type="text" name="nm" placeholder="Enter your name" style="width:
100%; padding: 10px; color: orange; background-color: black" required="" pattern="[a-z,A-Z]*"></td>
</tr>
<tr align="center">
<td style="color: red"> Enter Mobile no <br>
<input type="no" name="mo" placeholder="Enter Mobile no" style="width:
100%; padding: 10px; color: orange; background-color: black" required="" pattern="{10}"></td>
</tr>
<tr align="center">
<td style="color: red"> Enter Email address <br>
<input type="Email" name="em" placeholder="Enter email address"
style="width: 100%; padding: 10px; color: orange; background-color: black"></td>
</tr>
<tr align="center">
<td style="color: red"> Enter address <br>
<input type="text" name="ad" placeholder="enter your address" style="width: 100%; padding:
50px; color: orange; background-color: black">
</tr>
<tr align="center">
<td colspan="4" > <input type="submit" name="s" value="Confirm Order" style="height:
50px; background-color:lightgreen; color: black; padding: 10px; width: 30%;"> </td>
</tr>
</table>
</form>
<br> <br>
</div>
</div>
<?php include "footer.php"; ?>

header.php

<!DOCTYPE html>
<html lang="en"><!-- Basic -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- Mobile Metas -->


<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Site Metas -->


<title>Shop Plant</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">

<!-- Site Icons -->


<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">

<!-- Bootstrap CSS -->


<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Site CSS -->
<link rel="stylesheet" href="css/style.css">
<!-- Responsive CSS -->
<link rel="stylesheet" href="css/responsive.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.css">

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>

<body>
<!-- Start header -->
<header class="top-navbar">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="index.php">
<img src="images/logo1.png" alt="" />
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbars-rs-food" aria-controls="navbars-rs-food" aria-expanded="false" aria-label="Toggle
navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div>

<?php
if(isset($_SESSION['uid']))
{
?>
WELCOME <?php echo $_SESSION['uid']; ?> &nbsp;&nbsp; <a
href="cart.php">Cart</a>&nbsp;&nbsp; <a href="logout.php">LogOut</a>
<?php
}
else
{
?>
<a href="registration.php">Sign Up</a>&nbsp;&nbsp;&nbsp;<a
href="login.php">Login</a>
<?php
}
?>

</div>
<div class="collapse navbar-collapse" id="navbars-rs-food">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link"
href="index.php">Home</a></li>
<li class="nav-item"><a class="nav-link"
href="menu.php">Menu</a></li>

<li class="nav-item"><a class="nav-link"


href="about.php">About Us</a></li>
<li class="nav-item"><a class="nav-link"
href="contact.php">Contact Us</a></li>
<li class="nav-item"><a class="nav-link"
href="review.php">Review</a></li>

<li class="nav-item dropdown">


<a class="nav-link dropdown-toggle" href="#"
id="dropdown-a" data-toggle="dropdown">Pages</a>
<div class="dropdown-menu" aria-
labelledby="dropdown-a">
<a class="dropdown-item"
href="stuff.php">Developers</a>
<a class="dropdown-item"
href="gallery.php">Gallery</a>
</div>
</li>

</ul>
</div>
</div>
</nav>
</header>
<!-- End header -->

footer.php

<!-- Start Contact info -->


<div class="contact-imfo-box">
<div class="container">
<div class="row">
<div class="col-md-4 arrow-right">
<i class="fa fa-volume-control-phone"></i>
<div class="overflow-hidden">
<h4>Phone</h4>
<p class="lead">
+63 966-4795-475
</p>
</div>
</div>
<div class="col-md-4 arrow-right">
<i class="fa fa-envelope"></i>
<div class="overflow-hidden">
<h4>Email</h4>
<p class="lead">
shoplant@gmail.com
</p>
</div>
</div>
<div class="col-md-4">
<i class="fa fa-map-marker"></i>
<div class="overflow-hidden">
<h4>Location</h4>
<p class="lead">
Central Signal, VillageTaguig City
</p>
</div>
</div>
</div>
</div>
</div>
<!-- End Contact info -->

<!-- Start Footer -->


<footer class="footer-area bg-f">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6">
<h3>About Us</h3>
<p>Shoplant made for those who loves plant and flower and give the
best service for all customer.</p>
</div>
<div class="col-lg-3 col-md-6">
<h3>UseFul Links</h3>
<div class="subscribe_form">

<a href="">Home</a><br>
<a href="">Contact Us</a><br>
<a href="">Food Menu</a><br>
<a href="">Gallery</a><br>

</div>
<ul class="list-inline f-social">
<li class="list-inline-item"><a href="#"><i class="fa fa-
facebook" aria-hidden="true"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fa fa-twitter"
aria-hidden="true"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fa fa-linkedin"
aria-hidden="true"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fa fa-google-
plus" aria-hidden="true"></i></a></li>
<li class="list-inline-item"><a href="#"><i class="fa fa-
instagram" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="col-lg-3 col-md-6">
<h3>Contact information</h3>
<p class="lead">Central Signal, VillageTaguig City</p>
<p class="lead"><a href="#">+63 966-4795-475</a></p>
<p><a href="#">shoplantgmail.com</a></p>
</div>
<div class="col-lg-3 col-md-6">
<h3>Opening hours</h3>
<p><span class="text-color">Monday: </span> 7:Am - 12PM</p>
<p><span class="text-color">Tue-Wed :</span> 7:Am - 12PM</p>
<p><span class="text-color">Thu-Fri :</span> 7:Am - 12PM</p>
<p><span class="text-color">Sat-Sun :</span> 7:Am - 12PM</p>
</div>
</div>
</div>

<div class="copyright">
<div class="container">
<div class="row">
<div class="col-lg-12">
<p class="company-name"> &copy; 2021 <a href="#">Shop
Plant</a> Developed By : Anlozales
<a href=""></a><br>
This is for school purpose only.
</p>
</div>
</div>
</div>
</div>

</footer>
<!-- End Footer -->

<a href="#" id="back-to-top" title="Back to top" style="display: none;"><i class="fa fa-paper-plane-o"


aria-hidden="true"></i></a>

<!-- ALL JS FILES -->


<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- ALL PLUGINS -->
<script src="js/jquery.superslides.min.js"></script>
<script src="js/images-loded.min.js"></script>
<script src="js/isotope.min.js"></script>
<script src="js/baguetteBox.min.js"></script>
<script src="js/form-validator.min.js"></script>
<script src="js/contact-form-script.js"></script>
<script src="js/custom.js"></script>
</body>
</html>

You might also like