Projet

Général

Profil

Paste
Télécharger (1,62 ko) Statistiques
| Branche: | Révision:

root / creerPano.php @ bc28d3dc

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 images transformables en panoramas</title>
6
    <link rel="stylesheet" media="screen" href="css/base.css"/>
7
  </head>
8
  <body>
9
    <header>
10
      <h1><img src="images/tetaneutral.svg" alt="tetaneutral.net"/></h1>
11
    </header>
12
    <section id="main">
13
      <h2>Liste des images transformables en panoramas</h2>
14
      <?php
15
require 'class/utils.class.php';
16
utils::init();
17

    
18
if(isset($_GET['dir']) && is_dir($_GET['dir'])) {
19
  $base_dir = $_GET['dir'];
20
} else {
21
  $base_dir='upload';
22
}
23

    
24
//try {
25
  echo "<ul id=\"pano-list\">\n";
26

    
27

    
28
  $panos = utils::list_available_panos($base_dir);
29
  foreach ($panos as $pano) {
30
          printf ('<li title="%s"><a href="genererPano.php?dir=%s&amp;name=%s">%s</a></li>'."\n",
31
                  $pano['title'], $base_dir, $pano['filename'], $pano['comment']);
32
  }
33

    
34
  echo "</ul>\n";
35
  finfo_close($finfo);
36
//} catch (Exception $e) {
37
  printf("<h3 class=\"warning\">désolé mais aucun site n'est disponible...</h3>\n");
38
//}
39
?>
40
      <p id="interaction">
41
        <a href="." title="Revenir à la liste des panoramas">Retour</a>
42
      </p>
43
    </section>
44
    <footer class="validators"><samp>
45
      page validée par
46
      <a href="http://validator.w3.org/check?uri=referer"><img src="images/valid_xhtml.svg"
47
                                                               alt="Valid XHTML" title="xHTML validé !"/></a>
48
      <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="images/valid_css.svg"
49
                                                                      alt="CSS validé !" title="CSS validé !"/></a>
50
    </samp></footer>
51
  </body>
52
</html>