Commit d485fd8b by JonathanMM

Merge branch 'mobile' into 'master'

Amélioration de l'affichage sur mobile

See merge request !6
parents cd766a3f 687c2597
......@@ -9,5 +9,6 @@
<script type="text/javascript" src="datatables.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
\ No newline at end of file
......@@ -24,6 +24,14 @@ $smarty->assign(array(
'dateDerniereConso' => (new DateTime($conso['date']))->format('d/m/Y à H:i')
));
//On récupère les communes
$requete = $pdo->query('SELECT insee, nom_complet FROM commune');
$communes = $requete->fetchAll(PDO::FETCH_ASSOC);
$smarty->assign(array(
'communes' => $communes
));
$smarty->display('index.tpl');
exit();
?>
......@@ -29,6 +29,15 @@
</tr>
</table>
<i>Dernière mise à jour : {$dateDerniereConso}</i>
<form method="GET" action="commune.php">
<label for="insee">Filtrer par commune :</label>
<select name="insee">
{foreach $communes as $commune}
<option value="{$commune.insee}">{$commune.nom_complet}</option>
{/foreach}
</select>
<input type="submit" value="Filtrer" />
</form>
</div>
<div id="carteArea"></div>
</div>
......
......@@ -2,7 +2,7 @@ body
{
padding: 0px;
margin: 0px;
font-family: Ubuntu, "Sans Serif";
font-family: Ubuntu, Verdana, Geneva, Tahoma, sans-serif;
}
header
......@@ -62,11 +62,7 @@ table#statsConso tr:nth-child(2)
#chartArea, #statsCarteArea
{
display: flex;
}
#chartArea
{
max-height: 500px;
flex-wrap: wrap;
}
#content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment