Silnik strony + galerii zdjęć Suczawa 2009
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  1. <?php
  2. /**
  3. * @package Galeria Suczawa 2009
  4. * @file gallery.php
  5. * @version $Id$
  6. **/
  7. require_once('./init.php'); #init stuff
  8. NaglowekXHTML();
  9. ?>
  10. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
  12. <head>
  13. <title>Galeria Zdjęć</title>
  14. <link type="text/css" href="style.css" rel="stylesheet" />
  15. <meta http-equiv="Content-Type" content="<?=$xhtml?'application/xhtml+x':'text/ht'?>ml; charset=utf-8" />
  16. <script type="text/javascript" src="script.js"></script>
  17. </head>
  18. <body>
  19. <div id="page">
  20. <img src="images/logo.png" width="800px" alt="Logo strony" />
  21. <div id="content">
  22. <div id="images">
  23. <?php
  24. $sql = "SELECT * FROM `photos` $limit";
  25. if (!$result = $DB->query($sql))
  26. {
  27. blad('Nie mozna pobrac zdjec uzytkownikow!');
  28. }
  29. while($row = $result->fetch_assoc() )
  30. {
  31. ?>
  32. <div class="image_outer">
  33. <a target="blank" href="display.php?id=<?=$row['id']?>">
  34. <img class="image" height="100px" alt="Zdjęcie: <?= $row['photo_name']; ?>" src="images/upload/<?= $row['thumb_name']; ?>" id="image_<?=$row['id']?>" />
  35. </a>
  36. </div>
  37. <?
  38. }
  39. ?>
  40. </div>
  41. <div id="pages">Strony:
  42. <?
  43. GenerujListeStron();
  44. ?>
  45. </div>
  46. </div>
  47. <div id="footer">
  48. <a id="copyright">Copyright © 2009 Various Authors</a><br />
  49. <div id="links">
  50. <a href="index.php">Strona Główna</a> | <a href="gallery.php">Fotogaleria</a> | <a href="download.php">Download</a> | <a href="http://suczawa.ath.cx">Forum</a> | <a href="admin/">Administracja</a>
  51. </div>
  52. </div>
  53. </div>
  54. </body>
  55. </html>