Révision 862d44f8
Ajouté par Marc Souviron il y a plus de 11 ans
creerPano.php | ||
---|---|---|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> |
|
3 |
<head> |
|
4 |
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/> |
|
5 |
<link rel="stylesheet" media="screen" href="css/ttn_style_1.css" /> |
|
6 |
<title>creation d'un panoramique</title> |
|
7 |
<script type="text/javascript"> |
|
8 |
|
|
9 |
function showLoad(outgoingLink){ |
|
10 |
|
|
11 |
var link = document.getElementById(outgoingLink); |
|
12 |
var loader = document.createElement('img'); |
|
13 |
loader.id = 'loader'; |
|
14 |
loader.src ='images/loader2.gif'; |
|
15 |
var li = link.parentNode; |
|
16 |
li.appendChild(loader); |
|
17 |
} |
|
18 |
</script> |
|
19 |
</head> |
|
20 |
<body> |
|
21 |
<img id="top" src="images/top.png" alt=""> |
|
22 |
<div id="page_container"> |
|
23 |
<h1><img src="images/tetaneutral.svg"></h1> |
|
24 |
<h2>Listes des photos sur le serveur</h2> |
|
25 |
<p>Cliquez pour générer un panorama</p> |
|
26 |
<div id="containerList"> |
|
27 |
<ul> |
|
28 |
|
|
29 |
<?php |
|
30 |
|
|
31 |
$base_dir = "upload/"; // modifier selon l'arborescence. |
|
32 |
try |
|
33 |
{ |
|
34 |
// On ouvre le dossier ou se trouve les images |
|
35 |
$dir_fd = opendir($base_dir); |
|
36 |
|
|
37 |
$i=0; // Garantir l'unicité du id des liens. |
|
38 |
while (false !== ($image_name = readdir($dir_fd))) { |
|
39 |
$dir = $base_dir.$image_name; |
|
40 |
|
|
41 |
if ($image_name != "." && $image_name != "..") // N'affiche pas les répertoires parents et courant. |
|
42 |
{ |
|
43 |
printf('<li><a href="genererPano.php?name=%s" id="link_'.$i.'" onclick="showLoad(this.id);return true;">%s</a></li>'."\n",$image_name,$image_name); |
|
44 |
$i++; |
|
45 |
} |
|
46 |
|
|
47 |
|
|
48 |
} |
|
49 |
} |
|
50 |
catch(Exception $e) |
|
51 |
{ |
|
52 |
die('Erreur : '.$e->getMessage()); |
|
53 |
} |
|
54 |
?> |
|
55 |
</ul> |
|
56 |
</div> |
|
57 |
<div id="footer"><a href="./index.php">Retour à l'index</a></div> |
|
58 |
|
|
59 |
</div> |
|
60 |
<img id="bottom" src="images/bottom.png" alt=""> |
|
61 |
</body> |
|
62 |
</html> |
panorama.php | ||
---|---|---|
156 | 156 |
|
157 | 157 |
<fieldset id="control"><legend>contrôle</legend> |
158 | 158 |
<label>Zoom : <input type="range" min="0" max="2" value="2" id="zoom_ctrl"/></label> |
159 |
<label>Cap : <input type="number" min="0" max="360" step="10" value="0" autofocus="" id="angle_ctrl" step="any"/></label>
|
|
160 |
<label>Élévation : <input type="number" min="-90" max="90" step="1" value="0" autofocus="" id="elvtn_ctrl" step="any"/></label>
|
|
159 |
<label>Cap : <input type="number" min="0" max="360" step="10" value="0" autofocus="" id="angle_ctrl"/></label> |
|
160 |
<label>Élévation : <input type="number" min="-90" max="90" step="1" value="0" autofocus="" id="elvtn_ctrl"/></label> |
|
161 | 161 |
</fieldset> |
162 | 162 |
|
163 | 163 |
<?php |
... | ... | |
190 | 190 |
?> |
191 | 191 |
<p id="res"></p> |
192 | 192 |
<div class="validators"> |
193 |
pages validées par
|
|
193 |
page validée par
|
|
194 | 194 |
<a href="http://validator.w3.org/check?uri=referer"><img src="images/valid_xhtml.svg" alt="Valid XHTML 1.1" title="xHTML 1.1 validé !"/></a> |
195 | 195 |
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="images/valid_css.svg" alt="CSS validé !" title="CSS validé !"/></a> |
196 | 196 |
</div> |
uploadReceive.php | ||
---|---|---|
2 | 2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> |
3 | 3 |
<head> |
4 | 4 |
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/> |
5 |
<link rel="stylesheet" media="screen" href="css/index_style.css" /> |
|
6 | 5 |
<title>Transfert de panoramique</title> |
7 | 6 |
</head> |
8 | 7 |
<body> |
Formats disponibles : Unified diff
amélioration cosmétiques et remise à jour de la liste des fichiers.