-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlosAngeles.html
55 lines (47 loc) · 1.5 KB
/
losAngeles.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
require_once('templates.inc');
require_once('cart.php');
require_once("registration/config.php");
$_city = "losangeles";
/* Erase cart if user changed cities */
if(!isset($_SESSION['city']) || $_SESSION['city'] != $_city){
cart_clear();
}
$_SESSION['city'] = $_city;
?>
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Los Angeles Cars</title>
<link href="city.css" type="text/css" rel="stylesheet">
</head>
<body>
<!-- wrapper -->
<? sidebar(); ?>
<div class="block2"><img style="width: 88%; height: 110px" src="images/phone-ad2.png" alt="phone-ad2"></div>
<div class="block"><img style="margin-top: 225px;margin-left: 40px;width: 130%; height: 660px" src="images/ad-one.png" alt="ad-one"></div>
<div class="wrapper">
<h1>Available Cars in Los Angeles:</h1>
<a style="text-decoration: none;" href="viewcart.html">
<span> <i class="shopping-cart"></i></span>
<span>View Shopping Cart</span>
</a>
<div class="clear"></div>
<!-- items -->
<div class="items">
<?php
get_cars($_city);
?>
<div id="signout">
<a href="registration/logout.php">
<img src="images/logout.png" class="signout" alt="signout">
</a>
</div>
</div>
<!--/ items -->
</div>
<!--/ wrapper -->
</body>
</html>