-
Notifications
You must be signed in to change notification settings - Fork 1
/
party.php
114 lines (81 loc) · 2.89 KB
/
party.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
session_start();
require_once "./app/core/Handle.php";
?>
<html>
<head>
<!-- UIkit CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.3/css/uikit.min.css" />
<link rel="stylesheet" href="./public/css/uikit_customized.css">
<!-- UIkit JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.3/js/uikit.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.3/js/uikit-icons.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="./public/js/UIKit.js"></script>
<!-- Imports -->
<?php
require_once "./app/models/Parties.php";
require_once "./app/models/Artists.php";
require_once "./app/models/Tickets.php";
require_once "./app/models/Menus.php";
require_once "./app/models/Photos.php";
require_once "./app/models/Accounts.php";
require_once "./app/models/Organizer.php";
require_once "./app/models/WaitingList.php";
?>
</head>
<body>
<!-- Variables -->
<?php
$partyID = $_GET['party'];
if(empty($partyID)) {
Handle::setPopup(Popups::noPartyFound());
Handle::redirect("index.php");
}
$party = Parties::getParty($partyID);
if(empty($party)) {
Handle::setPopup(Popups::noPartyFound());
Handle::redirect("index.php");
}
if(!$party->active) {
Handle::setPopup(Popups::partyInactive());
Handle::redirect("index.php");
}
$lineUp = Artists::getArtistsPerforming($partyID);
$ticketsAvailable = Tickets::getTicketsAvailable($partyID);
$ticketsExpiredOrSoldOut = Tickets::getTicketsExpiredOrSoldOut($partyID);
$menu = Menus::getMenuList($partyID);
$photos = Photos::getPhotos($partyID);
$organizer = Organizer::getPartyOrganizer($partyID);
?>
<div class="uk-background-cover uk-height-large" style="background-image: url('<?= $party->background_image ?>'); ">
<?php
Handle::displayPopups();
/** Head navbar **/
require_once "./app/views/global/head-navbar.php";
/** Party header **/
require_once "./app/views/party/party-header.php";
?>
</div>
<?php
/** Popup navbar when screen too small **/
require_once "./app/views/global/head-navbar-popup.php";
/** Party information **/
require_once "./app/views/party/party-information.php";
/** Party trailer **/
require_once "./app/views/party/party-trailer.php";
/** Party line-up **/
require_once "./app/views/party/party-line-up.php";
/** Party tickets **/
require_once "./app/views/party/party-tickets.php";
/** Party menu **/
require_once "./app/views/party/party-menu.php";
/** Party media **/
require_once "./app/views/party/party-media.php";
/** Party organizer **/
require_once "./app/views/party/party-about-organizer.php";
/** Party footer **/
require_once "./app/views/global/footer.php";
?>
</body>
</html>