From: Thomas Mudrunka Date: Sun, 8 Apr 2012 01:27:47 +0000 (+0200) Subject: Pri vylistovani cely tabulky se schovaj obrazky... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=e0f8e591975abb725e12c6ec4e7c6e3219c85907;p=mirrors%2FSokoMan.git Pri vylistovani cely tabulky se schovaj obrazky... --- 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.= '   ';