Pri vylistovani cely tabulky se schovaj obrazky...
authorThomas Mudrunka <tomas@mudrunka.cz>
Sun, 8 Apr 2012 01:27:47 +0000 (03:27 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Sun, 8 Apr 2012 01:27:47 +0000 (03:27 +0200)
index.php

index 6f4e75f79b2c3fb8bdfa8c0b2d46bac3741acd9e..640708eb71187ca32f1012dbd41b8dfda6f23c95 100755 (executable)
--- 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 "<span title='$title'>".basename($src).'</span>';
                $options = $options ? " $options" : '';
                return "<img src='$src' alt='$title' title='$title'$options; />";
        }
@@ -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.= '&nbsp;&nbsp;&nbsp;';
This page took 0.132614 seconds and 4 git commands to generate.