-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCarTemplate.php
More file actions
94 lines (77 loc) · 2.39 KB
/
CarTemplate.php
File metadata and controls
94 lines (77 loc) · 2.39 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<title><?php echo $title; ?></title>
<link rel="icon"
href="images/vsr-top-logo.png"
type="image/x-icon" />
<link rel="stylesheet" type="text/css"
href="css/float_aside.css" />
<link rel="stylesheet" type="text/css"
href=<?php echo $excss; ?> />
<script src=<?php echo $jsfile ?> ></script>
</head>
<?php
// so that we do not have to resubmit form on back and forth nav
header('Cache-Control: no cache'); //no cache
session_cache_limiter('private_no_expire'); // works
//session_cache_limiter('public'); // works too
// Inialize session
if (isset($_SESSION)) {}
else{
session_start();
}
$value1="Signup/Login";
$slogout="xyz.html";
//Initialize variables not initialized without overwriting previously set variables.
if (isset($_SESSION['uemail'])) {
$value1=$_SESSION['uemail'];
$slogout="logout.php";
}
?>
<body>
<header>
<div class="header">
<a class="top-logo" href="">
VSR CARS.COM
</a>
<div class="float-right wide-text">
THE BEST CAR WEBSITE
</div>
</div>
<div class="topnav" style="position:relative;top:0px;">
<div class="modelnavspace">
<div>
<a href="Filter.php">NEW CARS</a>
<a href="Management.php">SELL CAR</a>
<a href="vintage.html">VINTAGE CARS</a>
<a href="home.html"> >>Home </a>
<?php
if (!isset($_SESSION['uemail']))
{
echo "<a href= $slogout class='floatrht'> $value1 </a>";
}
else{
echo "<div class='dropdown'>
<button class='dropbtn'> $value1 </button>
<div class='dropdown-content'>
<a href='UserOverview.php'>User Account</a>
<a href='$slogout' >Logout</a>
</div>
</div>";
}
?>
</div>
</div>
</div>
</header>
<div class="main_content">
<div id="content_area">
<?php echo $content; ?>
</div>
<div id="sidebar">
</div>
</div>
<script src="js\jQuery.js"></script>
</body>
</html>