Révision 4841125e
Ajouté par Jocelyn Delande il y a presque 11 ans
html/form_extpoint.html | ||
---|---|---|
1 |
<img src="images/locapoint.svg" id="loca_show" alt="localiser un point" title="pour localiser un point..."/> |
|
2 |
<fieldset id="locadraw"><legend id="loca_hide">Localiser un point</legend> |
|
3 |
<label class="form_col" title="La latitude ϵ [-90°, 90°]. Ex: 12.55257">Latitude : |
|
4 |
<input name="loca_latitude" type="number" min="-90" max="90" id="loca_latitude"/></label> |
|
5 |
<label class="form_col" title="La longitude ϵ [-180°, 180°]. Ex: 144.14723">Longitude : |
|
6 |
<input name="loca_longitude" type="number" min="-180" max="180" id="loca_longitude"/></label> |
|
7 |
<label class="form_col" title="L'altitude positive Ex: 170">Altitude : |
|
8 |
<input name="loca_altitude" type="number" min="-400" id="loca_altitude"/></label> |
|
9 |
<div class="answer"> |
|
10 |
<input type="button" value="Localiser" id="loca_button"/> |
|
11 |
<input type="button" value="Effacer" id="loca_erase"/> |
|
12 |
</div> |
|
13 |
</fieldset> |
html/form_param.html | ||
---|---|---|
1 |
<div id="addParams"> |
|
2 |
<label id="paramFormShow">Paramétrer le panorama</label> |
|
3 |
</div> |
|
4 |
<form action="addParams.php?param_dir=%s&param_panorama=%s" id="form_param" method="post"> |
|
5 |
<fieldset id="adding"><legend id="paramFormHide">Paramétrage du panorama</legend> |
|
6 |
<label title="Au moins 4 caractères">Titre : |
|
7 |
<input type="text" pattern="^.{1,40}$" name="param_title" placeholder="%s" |
|
8 |
title="ne doit pas contenir pus de 40 caractères" required=""/></label> |
|
9 |
<label title="La latitude ϵ [-90°, 90°]. Ex : 46.55257">Latitude : |
|
10 |
<input name="param_latitude" type="number" min="-90" max="90" placeholder="43.56" required="" step="any"/></label> |
|
11 |
<label title="La longitude ϵ [-180°, 180°]. Ex : 1.45">Longitude : |
|
12 |
<input name="param_longitude" type="number" min="-180" max="180" placeholder="1.45" required="" step="any"/></label> |
|
13 |
<label title="L'altitude exprmée en mètres et > -400. Ex : 170">Altitude : |
|
14 |
<input name="param_altitude" type="number" min="-400" required="" placeholder="170" step="any"/></label> |
|
15 |
<label title="L'image fait-elle 360° ?">Rebouclage : |
|
16 |
<input type="checkbox" name="param_loop" value="true"></label> |
|
17 |
|
|
18 |
<div> |
|
19 |
<input type="submit" value="Submit"/> |
|
20 |
<input type="reset" value="Reset"/> |
|
21 |
</div> |
|
22 |
</fieldset> |
|
23 |
</form> |
panorama.php | ||
---|---|---|
5 | 5 |
require 'class/utils.class.php'; |
6 | 6 |
utils::init(); |
7 | 7 |
|
8 |
$form_extpoint = <<<'EO_FORM_EXTPOINT' |
|
9 |
<img src="images/locapoint.svg" id="loca_show" alt="localiser un point" title="pour localiser un point..."/> |
|
10 |
<fieldset id="locadraw"><legend id="loca_hide">Localiser un point</legend> |
|
11 |
<label class="form_col" title="La latitude ϵ [-90°, 90°]. Ex: 12.55257">Latitude : |
|
12 |
<input name="loca_latitude" type="number" min="-90" max="90" id="loca_latitude"/></label> |
|
13 |
<label class="form_col" title="La longitude ϵ [-180°, 180°]. Ex: 144.14723">Longitude : |
|
14 |
<input name="loca_longitude" type="number" min="-180" max="180" id="loca_longitude"/></label> |
|
15 |
<label class="form_col" title="L'altitude positive Ex: 170">Altitude : |
|
16 |
<input name="loca_altitude" type="number" min="-400" id="loca_altitude"/></label> |
|
17 |
<div class="answer"> |
|
18 |
<input type="button" value="Localiser" id="loca_button"/> |
|
19 |
<input type="button" value="Effacer" id="loca_erase"/> |
|
20 |
</div> |
|
21 |
</fieldset> |
|
22 |
EO_FORM_EXTPOINT; |
|
23 |
|
|
24 |
$form_param = <<<'EO_FORM_PARAM' |
|
25 |
<div id="addParams"> |
|
26 |
<label id="paramFormShow">Paramétrer le panorama</label> |
|
27 |
</div> |
|
28 |
<form action="addParams.php?param_dir=%s&param_panorama=%s" id="form_param" method="post"> |
|
29 |
<fieldset id="adding"><legend id="paramFormHide">Paramétrage du panorama</legend> |
|
30 |
<label title="Au moins 4 caractères">Titre : |
|
31 |
<input type="text" pattern="^.{1,40}$" name="param_title" placeholder="%s" |
|
32 |
title="ne doit pas contenir pus de 40 caractères" required=""/></label> |
|
33 |
<label title="La latitude ϵ [-90°, 90°]. Ex : 46.55257">Latitude : |
|
34 |
<input name="param_latitude" type="number" min="-90" max="90" placeholder="43.56" required="" step="any"/></label> |
|
35 |
<label title="La longitude ϵ [-180°, 180°]. Ex : 1.45">Longitude : |
|
36 |
<input name="param_longitude" type="number" min="-180" max="180" placeholder="1.45" required="" step="any"/></label> |
|
37 |
<label title="L'altitude exprmée en mètres et > -400. Ex : 170">Altitude : |
|
38 |
<input name="param_altitude" type="number" min="-400" required="" placeholder="170" step="any"/></label> |
|
39 |
<label title="L'image fait-elle 360° ?">Rebouclage : |
|
40 |
<input type="checkbox" name="param_loop" value="true"></label> |
|
8 |
$form_extpoint = file_get_contents('html/form_extpoint.html'); |
|
41 | 9 |
|
42 |
<div> |
|
43 |
<input type="submit" value="Submit"/> |
|
44 |
<input type="reset" value="Reset"/> |
|
45 |
</div> |
|
46 |
</fieldset> |
|
47 |
</form> |
|
48 |
EO_FORM_PARAM; |
|
10 |
$form_param = file_get_contents('html/form_param.html'); |
|
49 | 11 |
|
50 | 12 |
if (isset($_GET['dir']) && isset($_GET['panorama'])) { |
51 | 13 |
$dir = $_GET['dir']; |
Formats disponibles : Unified diff
moved forms to separate files to put panorama.php to diet and make it more readable