From: Thomas Mudrunka Date: Mon, 26 Mar 2012 18:39:25 +0000 (+0200) Subject: Lotekovo a Rumcajsovo vylepseni editacniho formulare X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=3634575ab3f68ed373e3e6e9482559d303f513ef;p=mirrors%2FSokoMan.git Lotekovo a Rumcajsovo vylepseni editacniho formulare --- diff --git a/index.php b/index.php index 475c0be..3ed40fc 100755 --- a/index.php +++ b/index.php @@ -129,11 +129,11 @@ class HTML { if(!is_bool($default)) { $value=$default; $title=$selectbox[$value]; - $html .= ""; + $html .= ""; unset($selectbox[$value]); } foreach($selectbox as $value => $title) { - $html .= ""; + $html .= ""; } $html .= ""; return $html; @@ -222,7 +222,6 @@ li a, a:hover { text-decoration:underline; } /* td { position:absolute; } */ /* .cell_model_name { float:left; } */ - .menu li { float: left; padding: 0.2em; @@ -487,9 +486,9 @@ EOF; 'item' => array('item_note'), 'model' => array('model_descript') ); - $html = ''; + $html = ''; foreach($columns as $column) { - $html.=T($class).':'.T($column['Field']).': '; + $html.=''; } + $html.='
'.T($class).':'.T($column['Field']).''; $name="values[$class][".$column['Field'].'][]'; $val = $update && isset($current[$column['Field']]) ? $current[$column['Field']] : false; switch(true) { @@ -508,8 +507,9 @@ EOF; $html.=$this->input($name, $val); break; } - $html.='
'; + $html.='
'; return $html; } @@ -725,7 +725,9 @@ class Sklad_DB extends PDO { foreach($result as $row) $selectbox[$table.$suffix_id][$row[$table.$suffix_id]]=$row[$table.$suffix_name]; } //echo('
'); print_r($selectbox);
-		return array_filter($selectbox, 'ksort');
+		//return array_filter($selectbox, 'ksort');
+		array_multisort($selectbox);
+		return $selectbox;
 	}
 
 	function map_unique($key, $value, $select, $table, $fatal=true) { //TODO: Guess $select and $table if not passed