-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevento.php
33 lines (28 loc) · 1013 Bytes
/
evento.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
<?php
require_once 'initializer.php';
//Base Template
$templateParams["titolo"] = "TicketTwo";
$templateParams["nome"] = "singoloevento.php";
//Event Template
$idevento = -1;
$idutente = 0;
if(isset($_GET["idevento"])){
$idevento = $_GET["idevento"];
}
if(isset($_SESSION["idUtente"])){
$idutente = $_SESSION["idUtente"];
}
//tutte le info sull'evento
$templateParams["evento"] = $dbh->getEventByIdEvento($idevento);
$templateParams["eventoseguito"] = $dbh->isEventFollowed($idutente, $idevento);
$templateParams["artistievento"] = $dbh->getEventArtistsByIdEvento($idevento);
$templateParams["categorieevento"] = $dbh->getEventCategoriesByIdEvento($idevento);
$templateParams["bigliettievento"] = $dbh->getEventTicketsByIdEvento($idevento);
$templateParams["js"] = ["js/evento.js"];
if($idutente != 0) {
if(!empty($dbh->getCartOpen($idutente))){
$_SESSION["carrello"] = $dbh->getCartOpen($idutente)[0]["IdAcquisto"];
}
}
require 'template/base.php';
?>