Professional Documents
Culture Documents
City of Taguig
Taguig City University
Gen. Santos Ave. Central Bicutan, Taguig City
SHOPLANT
Submitted by:
Andres, Kimberly S.
Esteroza, Bernie F. Jr
Lorejo, Reina Je T.
Morales, Jerome
Submitted to:
LOG IN PAGE
MENU
Users can choose what to buy from the categories Plants, Flowers, or Pots
TRANSACTION
Cart
REVIEW/FEEDBACK
DEVELOPERS
GALLERY
CODES
index.php
<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>
</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
}
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">
</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
<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">
<tr align="right">
<td> <img src="images/login1.png" style="width: 50%"> <br>
<?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">
<!--[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']; ?> <a
href="cart.php">Cart</a> <a href="logout.php">LogOut</a>
<?php
}
else
{
?>
<a href="registration.php">Sign Up</a> <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>
</ul>
</div>
</div>
</nav>
</header>
<!-- End header -->
footer.php
<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"> © 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 -->