1
|
<?php
|
2
|
require_once 'class/site_point.class.php';
|
3
|
|
4
|
|
5
|
$pano = site_point::get($_GET['name']);
|
6
|
|
7
|
if ($pano->has_params()) {
|
8
|
$params = $pano->get_params();
|
9
|
$title = $params['titre'];
|
10
|
$lat = $params['latitude'];
|
11
|
$lon = $params['longitude'];
|
12
|
} else {
|
13
|
$title = $__GET['name'];
|
14
|
}
|
15
|
|
16
|
|
17
|
$has_tiles = $pano->has_tiles();
|
18
|
$has_params = $pano->has_params();
|
19
|
$src_path = $pano->src_path();
|
20
|
?>
|
21
|
|
22
|
<!DOCTYPE html>
|
23
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
24
|
<head>
|
25
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
26
|
<title>Liste des panoramas</title>
|
27
|
<link rel="stylesheet" media="screen" href="css/base.css"/>
|
28
|
</head>
|
29
|
<body>
|
30
|
<header>
|
31
|
<h1><img src="images/tetaneutral.svg" alt="tetaneutral.net"/></h1>
|
32
|
</header>
|
33
|
<section id="main">
|
34
|
<h2><?php echo $title ?></h2>
|
35
|
<ul id="pano-list">
|
36
|
<li>
|
37
|
<?php if ($has_tiles) { ?>
|
38
|
<a href="<?php echo $pano->get_url();?>">Visualiser</a>
|
39
|
(généré)
|
40
|
<?php } else { ?>
|
41
|
Tuiles non générées
|
42
|
<?php if ($src_path) {?>
|
43
|
<a href="<?php echo $pano->get_generate_url(basename($src_path))?>">Générer</a>
|
44
|
<?php } else {?>
|
45
|
(la source n'est plus disponible)
|
46
|
<?php } ?>
|
47
|
<?php } ?>
|
48
|
</li>
|
49
|
<li>
|
50
|
<?php if ($has_params) { ?>
|
51
|
<a href="<?php echo $pano->get_map_url();?>">Voir sur la carte</a>
|
52
|
(<?php printf('%.5f,%.5f', $lat, $lon) ?>)
|
53
|
<?php } else { ?>
|
54
|
Non paramétré
|
55
|
<?php if ($has_tiles) {?>
|
56
|
<a href="<?php echo $pano->get_url();?>">Paramétrer</a>
|
57
|
<?php } ?>
|
58
|
<?php } ?>
|
59
|
</li>
|
60
|
</ul>
|
61
|
</section>
|
62
|
<footer class="validators"><samp>
|
63
|
page validée par
|
64
|
<a href="http://validator.w3.org/check?uri=referer"><img src="images/valid_xhtml.svg"
|
65
|
alt="Valid XHTML" title="xHTML validé !"/></a>
|
66
|
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="images/valid_css.svg"
|
67
|
alt="CSS validé !" title="CSS validé !"/></a>
|
68
|
</samp></footer>
|
69
|
</body>
|
70
|
</html>
|