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
|
<html>
<head>
<meta charset="utf-8" />
<!-- CSS -->
<link rel="stylesheet" href="./utils/style.css" />
<style type="text/css">
body { font-family: comic sans ms, helvetica, arial; font-size: 12px;}
table { border-collapse: collapse; font-size: 12px;}
caption { font-size: 18px; font-weight: bold; margin: 0 0 10px 0;}
th { font-size: 13px; padding: 5px 5px 10px 5px; text-align: center;}
tr { text-align: center;}
tr#semaine {font-weight: bold; font-style: oblique;}
tr#semaine td {width: 45px;}
tr.gris {background: #CCD396;}
td { padding: 5px 5px 5px 5px; text-align: center;}
td a {color: #242834; display: block; width: 100%; height: 100%; text-decoration: none;}
td a:hover { background: #C6CE88;}
tr.gris td a {color: #242834; display: block; width: 100%; height: 100%; text-decoration: none;}
tr.gris td a:hover { background: #C4C0C0;}
td.appart { font-weight: bold;}
td.red { background: red; color: #ffffff; border: 1px solid black;}
td.orange { background: #FFAE00;}
</style>
<title>Gestion disponibilite</title>
</head>
<body>
<?php
$document = simplexml_load_file('proute.xml');
foreach ($document->categorie as $categorie) {
echo '<form action="proute.php" method="post">';
echo '<table border="1px">';
echo '<caption>Calendrier des réservations</caption>';
echo '<tr><th>Numéro d\'appartement</th><th>Nombre de personne</th><th colspan="17">Semaine</th></tr>';
foreach ($categorie->date as $date) {
echo '<tr>';
echo '<td></td>';
echo '<td></td>';
foreach ($date->semaine as $semaine) {
echo '<td>' . $semaine . '</td>';
}
echo '</tr>';
}
foreach($categorie->appart as $appart) {
echo '<tr>';
foreach ($appart->numero as $numero) {
echo '<td>' . $numero . '</td>';
}
foreach ($appart->personne as $personne) {
echo '<td>' . $personne . '</td>';
}
foreach ($appart->prix as $prix) {
echo '<td><select name="choix"><option value="'.$prix[choix].'">libre</option><option value="reserve">reserve</option><option value="option">option</option></select>'. $prix . '</td>';
}
echo '</tr>';
}
echo '</table>';
echo '<input type="submit" value="Enregistrer" />';
echo '</form>';
}
?>
</body>
</html> |
Partager