added a footer

This commit is contained in:
CodeServer
2021-08-01 08:25:19 +01:00
parent bdca7dc5fb
commit 55d93358c3
13 changed files with 262 additions and 35 deletions
+19 -18
View File
@@ -36,25 +36,25 @@
<div class="row">
<div class="col-sm-12">
<h1> Shopping Cart </h1>
<p>| · · |</p>
<div class="col-sm-12" id="shopping_cartTitle">
<h1>Total</h1> <h1>CA$111</h1>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<form action="shopping.php" method="get">
<table style="margin:auto; border: 2px solid black;">
<div class="col-sm-12" id="shopping_cart">
<form action="userInfo.php" method="get">
<table class="cartTable">
<thead>
<tr style="margin:auto; border: 2px solid black;">
<!-- <tr style="margin:auto; border: 2px solid black;">
<td>Product</td>
<td>Quantity</td>
<td>Price</td>
</tr>
</tr> -->
</thead>
<tbody>
@@ -63,20 +63,21 @@
<?php foreach ($_SESSION['mycar'] as $product): ?>
<tr>
<td class="cart_quantity">
<h3> <?=$product['buy_num']?> </h3>
</td>
<td>
<?=$product['buy_name']?>
<span> <?=$product['buy_name']?> </span>
</td>
<td class="quantity">
<?=$product['buy_num']?>
</td>
<td>
&dollar;<?=$product['buy_price']?>
<td class="cart_priceP">
<span> &dollar;<?=$product['buy_price']?> </span>
</td>
<td>
<td class="cart_deleteP">
<a href="cart_delProduct.php?id=<?php echo $product['buy_id'];?>">Delete</a></td>
</td>
@@ -92,8 +93,8 @@
</div>
<br>
<div class="buttons">
<input type="submit" value="Go Back To shopping!" name="placeorder">
<div class="">
<input type="submit" value="Go To Checkout" name="placeorder">
</div>
<?php $products = getProducts($_SERVER["QUERY_STRING"],$conn); ?>
+36
View File
@@ -0,0 +1,36 @@
<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>
+2
View File
@@ -94,6 +94,8 @@
</div>
<?php include_once 'footer.php'?>
</body>
</html>
+1 -1
View File
@@ -1,6 +1,6 @@
<div class="shopping_headerNav">
<div class="col-xl-12" id="shopping_headerImg">
<span id="span-shopping-username" > Username <?php echo $_SESSION['username']; ?></span>
<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>
+57
View File
@@ -0,0 +1,57 @@
<!doctype html>
<html lang="en">
<?php
require_once '../php/connection.php';
$conn = connectMysql();
session_start();
?>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="../bootstrap-5.0.1-dist/css/bootstrap-grid.min.css" rel="stylesheet">
<link href="../bootstrap-5.0.1-dist/css/bootstrap.min.css" rel="stylesheet">
<!--=== Main Style CSS ===-->
<link href="../style/style.css" rel="stylesheet">
<!-- Font Awesome styles CDN Link -->
<link
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<title>New Moon Dessert Bar</title>
</head>
<body class="shopping_body">
<div class="container-fluid">
<div class="sectionShopping">
<?php include 'shopping_headerNav.php' ?>
<div class="row">
<div class="col-sm-12" id="">
<h1>My billing address</h1>
</div>
</div>
<div class="row">
<div class="col-sm-12" id="shopping_cart">
</div>
</div>
</div>
<?php include '../footer.html' ?>
</div>
</body>
</html>