Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SQL][HTML][PHP]Ostatnie Fotki, Panel rozłazi się na boki
eliza1973
post 31.05.2011, 14:46:56
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 29.06.2010

Ostrzeżenie: (0%)
-----


Witam.
Modyfikowałam panel wyświetlający miniaturki zdiec. Chciałeam uzyskać wyświetlenie miniaturek z podpisami w 3 rzędach po 4 miniaturki.
Problem polega na tym ze panel jest za szeroki, innym słowami mówiąc rozłazi się na boki.
  1. <?php
  2. if (!defined("IN_FUSION")) { die("Access Denied"); }
  3.  
  4. $panel_name = "";
  5. $result=dbquery(
  6. "SELECT tp.*, ta.* FROM ".$db_prefix."photos tp
  7. LEFT JOIN ".$db_prefix."photo_albums ta USING(album_id)
  8. WHERE ".groupaccess('album_access')." ORDER BY photo_datestamp DESC LIMIT 12"
  9. );
  10. if(dbrows($result)>0){
  11. openside("Ostatnie Fotki");
  12. $table_nummer = 0;
  13. echo "<table align='center' border='0'cellspacing='1'>";
  14. while ($data=dbarray($result)) {
  15. $randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
  16. if($table_nummer <=3){
  17.  
  18. if($table_nummer == 0){ echo"<tr>";}
  19. echo "<td align='center'><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'><img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' border='1' width='100px' height='100px' /><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'>".$data['photo_title']."</a>";
  20. echo "</td>";
  21. $table_nummer++;
  22. }
  23. else{
  24. $table_nummer = 0;
  25. echo "</tr>";
  26. echo "<tr>";
  27. echo "<td align='center'><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'><img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' border='1' width='100px' height='100px' /></a><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'>".$data['photo_title']."</a>";
  28. echo "</td>";
  29. $table_nummer++;
  30. }
  31. }
  32. closeside();
  33. }
  34. ?>


Nie wiem gdzie leży błąd.
Proszę o pomoc.
Pozdrawiam.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 01:05