Project

General

Profile

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

root / creerPano.php @ 99204edb

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

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

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

    
26

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

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