Go to most recent revision |
Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
212 |
aurelien |
1 |
<div class="ods_ou_phenoclim">
|
|
|
2 |
<div class="titre_bloc">
|
|
|
3 |
ODS ou phenoclim</div>
|
|
|
4 |
<form action="" id="form_commune_phenoclim" method="post">
|
|
|
5 |
<label for="code_postal_commune">Entrez votre code postal </label> <input id="code_postal_commune" name="code_postal_commune" size="5" type="text" />
|
|
|
6 |
<input type="submit" value="tester" />
|
|
|
7 |
</form>
|
|
|
8 |
|
|
|
9 |
<?php if(isset($_POST['code_postal_commune'])) {
|
|
|
10 |
$adresse_test = 'http://www.obs-saisons.fr/applications/jrest/OdsCommune/estUneCommunePhenoclim/?code_postal='.$_POST['code_postal_commune'];
|
|
|
11 |
$commune_phenoclim = file_get_contents($adresse_test);
|
|
|
12 |
?>
|
|
|
13 |
<div class="info_ods_ou_phenoclim">
|
|
|
14 |
Votre commune est une commune : <?= ($commune_phenoclim == 'true') ? 'phenoclim' : 'ODS' ?>
|
|
|
15 |
</div>
|
|
|
16 |
<? } ?>
|
|
|
17 |
</div>
|