From b93ba126403b8b4e2646312fb7a602ac6939d20a Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 12 Mar 2007 00:15:45 +0000 Subject: Improvement: in history search filtered lines, clicking on filename leads to standard size picture. git-svn-id: http://piwigo.org/svn/trunk@1896 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/history.php | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) (limited to 'admin') diff --git a/admin/history.php b/admin/history.php index d749a25b1..e47b33be5 100644 --- a/admin/history.php +++ b/admin/history.php @@ -541,6 +541,28 @@ SELECT ) ); } + + $image_string = ''; + if (isset($line['image_id'])) + { + $picture_url = make_picture_url( + array( + 'image_id' => $line['image_id'], + ) + ); + + $image_string = ''; + $image_string.= '('.$line['image_id'].')'; + + if (isset($label_of_image[$line['image_id']])) + { + $image_string.= ' '.$label_of_image[$line['image_id']]; + } + else + { + $image_string.= ' unknown filename'; + } + } $template->assign_block_vars( 'detail', @@ -549,19 +571,7 @@ SELECT 'TIME' => $line['time'], 'USER' => $user_string, 'IP' => $line['IP'], - 'IMAGE' => isset($line['image_id']) - ? ( isset($label_of_image[$line['image_id']]) - ? sprintf( - '(%u) %s', - $line['image_id'], - $label_of_image[$line['image_id']] - ) - : sprintf( - '(%u) deleted ', - $line['image_id'] - ) - ) - : '', + 'IMAGE' => $image_string, 'TYPE' => $line['image_type'], 'SECTION' => $line['section'], 'CATEGORY' => isset($line['category_id']) -- cgit v1.2.3