-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprivate.php
93 lines (62 loc) · 2.54 KB
/
private.php
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
<?php
include("pdsSiteSpecificFiles/initiate.php");
$loggedInId = $controller->command("getUserIdFromUserLoggedInTable");
if (!$loggedInId) {
$controller->command("renderPartial", "loginFullPagePrivate.htm");
} else {
$thisPage = $controller->getVar("page");
if (!$thisPage) $thisPage = "private_nominate";
$tpl_title = $controller->command("getPageTitle", $thisPage);
$tpl_class = $controller->command("getPageCssClass", $thisPage);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<title>Alley Light - Charlottesville, VA</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script type='text/javascript' src="/pdsJs/private.js"></script>
<link rel="stylesheet" type="text/css" href="/pdsCss/index.css">
</head>
<body>
<div class="center">
<div class="inner_logo">
<a href="/"><img src="/pdsImg/logo.gif"></a>
</div>
<nav>
<a href="/private.php">make a reservation</a>
||
<a href="/index.php?page=parlor_book_an_event">book an event</a>
||
<?php
$loggedInId = $controller->command("getUserIdFromUserLoggedInTable");
if (!$loggedInId) {
?>
<a href="/index.php?page=login" border="0">login</a>
<?php } else { ?>
<?php $arrayOfUserInfo = $controller->command("getUserInfo"); ?>
<a href="/index.php?choiceMade[]=logout" border="0">logout</a>
<br><br><a href="/private.php?page=private_reservations_for_this_member">Welcome back <?php echo $arrayOfUserInfo["first_name"]; ?> <?php echo $arrayOfUserInfo["last_name"]; ?></a>
<?php } ?>
</nav>
<?php
$loggedInId = $controller->command("getUserIdFromUserLoggedInTable");
$thisPage = $controller->getVar("page");
if (!$thisPage) $thisPage = "private_reservations";
if ($loggedInId && $thisPage == 'login') $thisPage = "private_reservations";
$controller->command("renderPartial", $thisPage);
?>
</div>
<footer>
<p><em>Est. Feb. 2014</em></p>
<p>Call or email for reservations <br>
434-296-5003<br>
</footer>
</body>
</html>
<?php } ?>