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.

58 lines
1.6 KiB

  1. <?php
  2. /**
  3. * @package Galeria Suczawa 2009
  4. * @file gallery.php
  5. * @version $Id$
  6. **/
  7. $page = (isset($_GET['page'])) ? intval($_GET['page']) : 0;
  8. require_once('./init.php'); #init stuff
  9. NaglowekXHTML();
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
  13. <head>
  14. <title>Galeria Zdjęć</title>
  15. <link type="text/css" href="style.css" rel="stylesheet" />
  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 ...</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>
  51. </div>
  52. </div>
  53. </div>
  54. </body>
  55. </html>