-
Notifications
You must be signed in to change notification settings - Fork 2
/
proposer_un_hebergement.php
87 lines (67 loc) · 3.17 KB
/
proposer_un_hebergement.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
<?php
/*
* This file is part of Ezac.
*
* Ezac is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Ezac is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Ezac. If not, see <http://www.gnu.org/licenses/>.
*/
include 'header.php';
include 'edit_resa.php';
if(isset($hote_error) && $hote_error){
$qui=$input_qui;
$adresse=$input_adresse;
$tel=$input_telephone;
$email=$input_email;
$nb_places=$input_nb_places;
$couchage=$input_couchage;
$commentaires=$input_commentaires;
$html_class="input_text modified";
}else{
$qui="";
$adresse="";
$tel="";
$email="";
$nb_places="1";
$couchage="";
$commentaires="";
$html_class="input_text to_be_filled";
}
$element_menu_selectionne = 2;
include 'html_header.php';
?>
<h2>//Proposer un hébergement</h2>
<div id="zone_formulaire_proposition">
<h3>Indiquez ci-dessous les informations concernant votre proposition.</h3>
<form method="post" action="reservation.php?action=add_room">
<input type="hidden" name="action" value="add_room" />
<label for="proposition_input_qui">Votre nom : </label><input id="proposition_input_qui" class="<?php echo $html_class; ?>" type="text" name="qui" value="<?php echo $qui; ?>" /><br />
<label for="proposition_input_nb_places">Le nombre de places que vous proposez : </label><input id="proposition_input_nb_places" class="<?php echo $html_class; ?>" type="text" name="nb_places" value="<?php echo $nb_places; ?>" /><br />
<label for="proposition_localisation">Localisation : </label><input id="proposition_localisation" class="<?php echo $html_class; ?>" type="text" name="adresse" value="<?php echo $adresse; ?>" /><br />
<p class="titre_fieldset">Indiquez au moins un moyen de contact</p>
<label for="proposition_telephone">Téléphone : </label><input id="proposition_telephone" class="<?php echo $html_class; ?>" type="text" name="telephone" value="<?php echo $tel; ?>" /><br />
<label for="proposition_email">E-mail : </label><input id="proposition_email" class="<?php echo $html_class; ?>" type="text" name="email" value="<?php echo $email; ?>" /><br />
<br />
<div class="zone_textarea">
<label for="proposition_couchage">Infos couchage : <span class="supplement_label">(ex: amener matelas, sac de couchage...)</span></label>
<textarea id="proposition_couchage" cols="30" rows="5" name="couchage"><?php echo $couchage; ?></textarea>
</div>
<div class="zone_textarea">
<label for="proposition_remarques">Remarques : </label>
<textarea id="proposition_remarques" cols="30" rows="5" name="commentaires"><?php echo $commentaires; ?></textarea>
</div>
<div class="clear"></div>
<input class="bouton_valider_form_proposition" type="submit" value="Valider" />
</form>
</div>
<?php include 'html_footer.php'; ?>
<?php include 'footer.php';