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.7 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. <meta http-equiv="Content-Type" content="<?=$xhtml?'application/xhtml+x':'text/ht'?>ml; charset=utf-8" />
  17. <script type="text/javascript" src="script.js"></script>
  18. </head>
  19. <body>
  20. <div id="page">
  21. <img src="images/logo.png" width="800px" alt="Logo strony" />
  22. <div id="content">
  23. <div id="images">
  24. <?php
  25. $sql = "SELECT * FROM `photos` $limit";
  26. if (!$result = $DB->query($sql))
  27. {
  28. blad('Nie mozna pobrac zdjec uzytkownikow!');
  29. }
  30. while($row = $result->fetch_assoc() )
  31. {
  32. ?>
  33. <div class="image_outer">
  34. <a target="blank" href="display.php?id=<?=$row['id']?>">
  35. <img class="image" height="100px" alt="Zdj___cie: <?= $row['photo_name']; ?>" src="images/upload/<?= $row['thumb_name']; ?>" id="image_<?=$row['id']?>" />
  36. </a>
  37. </div>
  38. <?
  39. }
  40. ?>
  41. </div>
  42. <div id="pages">Strony:
  43. <?
  44. GenerujListeStron();
  45. ?>
  46. </div>
  47. </div>
  48. <div id="footer">
  49. <a id="copyright">Copyright © 2009 ...</a><br />
  50. <div id="links">
  51. <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>
  52. </div>
  53. </div>
  54. </div>
  55. </body>
  56. </html>