From 146f5832dde50e7bc837353c578fc7992636bbf6 Mon Sep 17 00:00:00 2001 From: pioder Date: Sun, 16 Aug 2009 10:01:33 +0000 Subject: [PATCH] Taka sobie rewizja :| git-svn-id: https://svn.pioder.pl/sg-svn@17 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8 --- robocze/display.php | 216 ++++++++++++++++++++++---------------------- robocze/gallery.php | 2 +- 2 files changed, 109 insertions(+), 109 deletions(-) diff --git a/robocze/display.php b/robocze/display.php index aad1384..939e60f 100644 --- a/robocze/display.php +++ b/robocze/display.php @@ -1,109 +1,109 @@ - - - - - - Podgląd zdjęcia nr <?=$id?> + + + + + + Podgląd zdjęcia nr <?=$id?> - - - - - -
-query($sql)) -{ - showError('Nie mozna pobrac informacji o zdjeciu!'); -} - -if ($result->num_rows == 0) -{ - $row = array( - 'author' => '--', - 'description' => 'Zdjęcie usunięte', - 'photo_name' => 'no_image.png', - 'id' => $i - ); -} -else -{ - $row = $result->fetch_assoc(); - - $row['author'] = ($row['author']=='') ? 'Autor nieznany' : $row['author']; - $row['description'] = ($row['description']=='') ? 'Brak opisu' : $row['description']; -} -?> -
- ZdjÄ_cie -
- Autor:
- Opis: -
-query('SELECT COUNT(id) FROM photos WHERE id<'.$id)->fetch_row(); #check if there are some previous photos -$prev=$prev[0]; -if($prev>0) { -$prev=$DB->query('SELECT * FROM photos WHERE id<'.$id.' ORDER BY id DESC LIMIT 1;')->fetch_assoc(); #if yes, get the previous photo's data -?> - - - -query('SELECT COUNT(id) FROM photos WHERE id>'.$id)->fetch_row(); #check if there are some next photos -$next=$next[0]; -if($next>0) { -$next=$DB->query('SELECT * FROM photos WHERE id>'.$id.' ORDER BY id ASC LIMIT 1;')->fetch_assoc(); #if yes, get the next photo's data -?> - - - - -
- - + + + + + +
+query($sql)) +{ + showError('Nie mozna pobrac informacji o zdjeciu!'); +} + +if ($result->num_rows == 0) +{ + $row = array( + 'author' => '--', + 'description' => 'Zdjęcie usunięte', + 'photo_name' => 'no_image.png', + 'id' => $i + ); +} +else +{ + $row = $result->fetch_assoc(); + + $row['author'] = ($row['author']=='') ? 'Autor nieznany' : $row['author']; + $row['description'] = ($row['description']=='') ? 'Brak opisu' : $row['description']; +} +?> +
+ ZdjÄ_cie +
+ Autor:
+ Opis: +
+query('SELECT COUNT(id) FROM photos WHERE id<'.$id)->fetch_row(); #check if there are some previous photos +$prev=$prev[0]; +if($prev>0) { +$prev=$DB->query('SELECT * FROM photos WHERE id<'.$id.' ORDER BY id DESC LIMIT 1;')->fetch_assoc(); #if yes, get the previous photo's data +?> + + + +query('SELECT COUNT(id) FROM photos WHERE id>'.$id)->fetch_row(); #check if there are some next photos +$next=$next[0]; +if($next>0) { +$next=$DB->query('SELECT * FROM photos WHERE id>'.$id.' ORDER BY id ASC LIMIT 1;')->fetch_assoc(); #if yes, get the next photo's data +?> + + + + +
+ + diff --git a/robocze/gallery.php b/robocze/gallery.php index 781d692..055a307 100644 --- a/robocze/gallery.php +++ b/robocze/gallery.php @@ -51,7 +51,7 @@ NaglowekXHTML();