X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=index.php;h=db9921d1960afb4b9d6b7f14adb23b29ae01c7fa;hb=e9f6461f24218e72efea648c5f8c23159ca0f909;hp=9fd766b05d7eb10fb4696deacda9295f0a086d2e;hpb=ac2ed3a1c789c88f569f131fb5cb33bfd12d81bf;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 9fd766b..db9921d 100755 --- a/index.php +++ b/index.php @@ -20,9 +20,10 @@ require_once('sklad.conf.php'); set_include_path(DIR_LIB.PATH_SEPARATOR.get_include_path()); -require_once('Sklad_LMS-fake.class.php'); +require_once('Sklad_Auth.class/common.php'); require_once('HTTP_Auth.class.php'); require_once('Locale.class.php'); +require_once('Barcode.class.php'); /** * Trida poskytuje vseobecne funkce pro generovani HTML kodu @@ -33,13 +34,17 @@ require_once('Locale.class.php'); * @author Tomas Mudrunka */ class HTML { - function row($row) { - $html='
'); print_r($selectbox); $html = ""; return $html; } + + function ul($items,$tag=ul,$head='',$class=false) { + $class = $class ? " class='$class'" : ''; + $html = "$head<$tag$class>"; + foreach($items as $key => $value) { + $html .= '
'); print_r($selectbox); - //echo(''); print_r($current); - $update = false; - if(is_array($current)) { - $update = true; - $current = array_shift($current); - } - - if(!is_array($hidecols)) $hidecols = array('item_author', 'item_valid_from', 'item_valid_till'); //TODO Autodetect - - $action = $action ? " action='$action'" : false; - $html="