Added dropdown on shopping nav bar and billing address page
This commit is contained in:
+5
-3
@@ -93,8 +93,9 @@
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="">
|
||||
<input type="submit" value="Go To Checkout" name="placeorder">
|
||||
<div class="d-grid gap-2 col-4 mx-auto">
|
||||
<button class="btn btn-primary cart_button_1" type="button"> ❮ Continue Shopping</button>
|
||||
<input class="btn btn-primary cart_button_2" type="submit" value="Go To Checkout" name="placeorder">
|
||||
</div>
|
||||
|
||||
<?php $products = getProducts($_SERVER["QUERY_STRING"],$conn); ?>
|
||||
@@ -104,8 +105,9 @@
|
||||
|
||||
</div>
|
||||
|
||||
<?php include '../footer.html' ?>
|
||||
|
||||
</div>
|
||||
<?php include '../footer.php' ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,36 +0,0 @@
|
||||
<footer class="shopping-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-lg-6 col-xl-3">
|
||||
<h1>Company</h1>
|
||||
<ul>
|
||||
<li>About</li>
|
||||
<li>Blogs</li>
|
||||
<li>Careers </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-6 col-xl-3">
|
||||
<h1>Company</h1>
|
||||
<ul>
|
||||
<li>About</li>
|
||||
<li>Blogs</li>
|
||||
<li>Careers </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-6 col-xl-3">
|
||||
<h1>Company</h1>
|
||||
<ul>
|
||||
<li>About</li>
|
||||
<li>Blogs</li>
|
||||
<li>Careers </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-6 col-xl-3">
|
||||
<h1>Company</h1>
|
||||
<ul>
|
||||
<li>About</li>
|
||||
<li>Blogs</li>
|
||||
<li>Careers </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -68,7 +68,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php include_once '../footer.php'?>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
<?php
|
||||
require_once '../php/connection.php';
|
||||
$conn = connectMysql();
|
||||
session_start();
|
||||
if(!isset($_SESSION['username'])) {
|
||||
header('Location: ../index.php');
|
||||
exit();
|
||||
}
|
||||
require_once '../php/logged_in_header.php';
|
||||
?>
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
@@ -94,8 +90,8 @@
|
||||
|
||||
</div>
|
||||
|
||||
<?php include_once 'footer.php'?>
|
||||
|
||||
<?php include_once '../footer.php'?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,9 +1,21 @@
|
||||
<div class="shopping_headerNav">
|
||||
<div class="col-xl-12" id="shopping_headerImg">
|
||||
<span id="span-shopping-username" ><i class="fas fa-user-circle"></i> Username <?php echo $_SESSION['username']; ?></span>
|
||||
<form action="../php/logout.php" method="post">
|
||||
<button class="btn btn-lg my-btn" type="submit" id="btn-shopping-logout"> LOGOUT</button>
|
||||
</form>
|
||||
<img id="headerImg" src="../img/headerImg.jpg">
|
||||
<div class="row">
|
||||
<div class="col-xl-12" id="shopping_headerImg">
|
||||
<!-- <span id="span-shopping-username" ><i class="fas fa-user-circle"></i> Username <?php echo $_SESSION['username']; ?></span> -->
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="span-shopping-username" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<?php echo $_SESSION['username']; ?>
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="span-shopping-username">
|
||||
<li><a class="dropdown-item" href="shopping.php">Shopping</a></li>
|
||||
<li><a class="dropdown-item" href="cart.php">My Cart</a></li>
|
||||
<li><a class="dropdown-item" href="userInfo.php">My billing address</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<form action="../php/logout.php" method="post">
|
||||
<button class="btn btn-lg my-btn" type="submit" id="btn-shopping-logout"> LOGOUT</button>
|
||||
</form>
|
||||
<img id="headerImg" src="../img/headerImg.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+46
-1
@@ -38,6 +38,50 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12" id="">
|
||||
<h1>My billing address</h1>
|
||||
<form class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label for="inputEmail4" class="form-label">Email</label>
|
||||
<input type="email" class="form-control" id="inputEmail">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="inputPassword4" class="form-label">Phone</label>
|
||||
<input type="tel" class="form-control" id="inputPhone" placeholder="123-456-7890" maxlength="12">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="inputAddress" class="form-label">Address</label>
|
||||
<input type="text" class="form-control" id="inputAddress" placeholder="1234 Main St">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="inputAddress2" class="form-label"></label>
|
||||
<input type="text" class="form-control" id="inputAddress2" placeholder="Apartment, studio, or floor">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="inputCity" class="form-label">City</label>
|
||||
<input type="text" class="form-control" id="inputCity">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="inputState" class="form-label">State</label>
|
||||
<select id="inputState" class="form-select">
|
||||
<option selected>Choose...</option>
|
||||
<option>...</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="inputZip" class="form-label">Zip</label>
|
||||
<input type="text" class="form-control" id="inputZip">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="gridCheck">
|
||||
<label class="form-check-label" for="gridCheck">
|
||||
Check me out
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -50,8 +94,9 @@
|
||||
|
||||
</div>
|
||||
|
||||
<?php include '../footer.html' ?>
|
||||
|
||||
</div>
|
||||
<?php include '../footer.php' ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user