Repository navigation
Expand file tree
/
Copy pathchoiceDate.php
More file actions
48 lines (46 loc) · 1.78 KB
/
Copy pathchoiceDate.php
File metadata and controls
48 lines (46 loc) · 1.78 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
<?php
require "include/init_twig.php";
include_once("include/_traduction.php");
include_once("include/_connexion.php");
require_once "include/_functions.php";
session_start();
$css = "styleChoiceDate";
$title = "Choisir une date";
$pdo = getPDO();
$lang = getLang();
@$email = $_SESSION['email'];
$connection = getConnectionText($lang);
$langues = getIconLang($pdo);
if (isset($_POST['reserver'])) {
$nbPerson = $_POST['nbPerson'];
$nbChild = $_POST['nbChild'];
$roomType = $_POST['roomType'];
}
echo $twig->render('choiceDate.html.twig',
array('css' => $css,
'connection' => $connection,
'lang' => $lang,
'title' => $title,
'langues' => $langues,
'nbPerson' => @$nbPerson,
'nbChild' => @$nbChild,
'roomType' => @$roomType,
//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"],
'connection' => $connection,
'reserver' => @$traductions[$lang]["reserver"],
'chambre' => @$traductions[$lang]["chambre"],
'dateA' => @$traductions[$lang]["dateA"],
'dateD' => @$traductions[$lang]["dateD"],
'btnCheck' => @$traductions[$lang]["btnCheck"],
'Mentions' => @$traductions[$lang]["Mentions"],
'politic' => @$traductions[$lang]["politic"],
'condition' => @$traductions[$lang]["condition"],
'adress' => @$traductions[$lang]["adress"]
));
?>