Repository navigation
Expand file tree
/
Copy pathrestaurant.php
More file actions
60 lines (54 loc) · 1.95 KB
/
Copy pathrestaurant.php
File metadata and controls
60 lines (54 loc) · 1.95 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
<?php
session_start();
require "include/init_twig.php";
include_once("include/_traduction.php");
include_once("include/_connexion.php");
require_once "include/_functions.php";
$css = "styleRestaurant";
$pdo = getPDO();
$lang = getLang();
@$email = $_SESSION['email'];
$connection = getConnectionText($lang);
$langues = getIconLang($pdo);
if (isset($_GET['errorForm'])) {
$errorForm = "{$_GET['errorForm']}";
}
elseif (isset($_GET['message'])) {
$message = "{$_GET['message']}";
}
elseif (isset($_GET['clientId'])) {
$clientId = "{$_GET['clientId']}";
$idTable = "{$_GET['idTable']}";
$fromDate = "{$_GET['fromDate']}";
$hourResa = "{$_GET['hourResa']}";
$nbPerson = "{$_GET['nbPerson']}";
$showBtnResaRestaurant = 1;
}
echo $twig->render('restaurant.html.twig',
array('css' => $css,
'connection' => $connection,
'lang' => $lang,
'langues' => $langues,
'message' => @$message,
'errorCheck' => @$errorCheck,
'clientId' => @$clientId,
'idTable' => @$idTable,
'fromDate' => @$fromDate,
'hourResa' => @$hourResa,
'nbPerson' => @$nbPerson,
'showBtnResaRestaurant' => @$showBtnResaRestaurant,
//Pour la traduction
'nav1' => @$traductions[$lang]["nav1"],
'nav2' => @$traductions[$lang]["nav2"],
'nav3' => @$traductions[$lang]["nav3"],
'nav4' => @$traductions[$lang]["nav4"],
'nav5' => @$traductions[$lang]["nav5"],
'profil' => @$traductions[$lang]["profil"],
'Mentions' => @$traductions[$lang]["Mentions"],
'politic' => @$traductions[$lang]["politic"],
'condition' => @$traductions[$lang]["condition"],
'adress' => @$traductions[$lang]["adress"],
'btnCheck' => @$traductions[$lang]["btnCheck"],
'resaRestaurant' => @$traductions[$lang]["resaRestaurant"]
));
?>