Project

General

Profile

Paste
Download (1.67 KB) Statistics
| Branch: | Revision:

root / index.php @ 7f9aab46

1
<!DOCTYPE html>
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
3
<head>
4
  <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
5
  <title>Liste des panoramas</title>
6
  <link rel="stylesheet" media="screen" href="css/index_style.css" />
7
  <script src="js/pano.js"></script>
8
</head>
9
<body>
10
        <img id="top" src="images/top.png" alt="">
11
        <div id="index_container">
12
                <h1><img src="images/tetaneutral.png" /></h1>
13
                  <h2>Liste des panoramas</h2>
14
                   <?php
15
                  
16
                   require 'class/site_point.class.php';
17
                   require 'class/sites_dir.class.php';
18
                   
19
                   echo '<div id="containerList">';
20
                   echo '<ul>';
21
                 
22
                   if(isset($_GET['dir']) && is_dir($_GET['dir'])) {
23
                     $base_dir = $_GET['dir']; 
24
                   } else {
25
                    $base_dir='tiles';
26
                   }
27
                   
28
                   $dir = new sites_dir($base_dir);
29
                 
30
                   
31
                   foreach($dir->get_sites() as $pt) {
32
                   
33
                     $params = $pt->get_params();
34
                     if (isset($params['titre'])) {
35
                       $cmt = $params['titre'];
36
                      
37
                     } else {
38
                       $cmt = sprintf('fichier <samp>%s/%s</samp>', $pt->get_name(), $pt->get_prefix());
39
                     }
40
                     
41
                     printf ('<li><a href="panorama.php?dir=%s&amp;panorama=%s">%s</a></li>'."\n", $base_dir, $pt->get_name(), $cmt);
42
                   }
43
                   ?>
44
                </div>
45
        </div>
46
   <div id="interaction">
47
   
48
   <li><a href="./envoyer.php" title="Envoyer une image sur le site">Ajouter un panorama</a></li>
49
   <li><a href="./creerPano.php" title="Générer un panorama à partir d\'une image déjà envoyée">Générer un panorama</a></li>
50
 
51
   </div>
52
   </ul>
53
 <img id="bottom" src="images/bottom.png" alt="">
54
  <p><a href="http://validator.w3.org/check?uri=referer">page xHTML validé !</a></p>
55
</body>
56
</html>