From e0f8e591975abb725e12c6ec4e7c6e3219c85907 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Sun, 8 Apr 2012 03:27:47 +0200 Subject: [PATCH] Pri vylistovani cely tabulky se schovaj obrazky... --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 6f4e75f..640708e 100755 --- a/index.php +++ b/index.php @@ -82,6 +82,7 @@ class HTML { } function img($src='#void', $title='img', $options='height=64') { + if(isset($_GET['noimgs'])) return "".basename($src).''; $options = $options ? " $options" : ''; return "$title"; } @@ -901,10 +902,11 @@ class Sklad_UI { $offset_next = $offset + $limit; $offset_prev = $offset - $limit > 0 ? $offset - $limit : 0; $get = $_SERVER['QUERY_STRING'] != '' ? '?'.$_SERVER['QUERY_STRING'] : ''; + $moreget = isset($get[0]) ? '&' : '?'; $html=''; $html.= $this->html->link('<<', "$class/$id/$limit/$offset_prev/$get"); $html.= '-'; - $html.= $this->html->link('[*]', "$class/$id/0/0/$get"); + $html.= $this->html->link('[*]', "$class/$id/0/0/$get$moreget".'noimgs'); $html.= '-'; $html.= $this->html->link('>>', "$class/$id/$limit/$offset_next/$get"); $html.= '   '; -- 2.30.2