From 725edff747298064559301efa77f73b8950cb336 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Mon, 26 Mar 2012 21:01:26 +0200 Subject: [PATCH] Dalsi vylepseni formu + zlepseny radici algoritmus --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 2eea85a..c554f6d 100755 --- a/index.php +++ b/index.php @@ -220,6 +220,7 @@ li a, a:hover { text-decoration:underline; } .item_status_deleted td { text-decoration:line-through; } .item_status_destroyed td { font-style:italic; } .floating_barcode { margin: 5px; } +.disabled { color: grey; } /* table, table * { table-layout:fixed; width:100%; overflow:hidden; word-wrap:break-word; } */ /* td { position:absolute; } */ /* .cell_model_name { float:left; } */ @@ -497,7 +498,7 @@ EOF; case (preg_match('/auto_increment/', $column['Extra']) || in_array($column['Field'], $hidecols)): if(is_bool($val) && !$val) $val = ''; $html.=$this->input($name, $val, 'hidden'); - $html.=$val.'(AUTO)'; + $html.='[AUTO] '.$val.''; break; case isset($selectbox[$column['Field']]): $html.=$this->select($name,$selectbox[$column['Field']],$val); @@ -728,8 +729,8 @@ class Sklad_DB extends PDO { } //echo('
'); print_r($selectbox);
 		//return array_filter($selectbox, 'ksort');
-		array_multisort($selectbox);
-		return $selectbox;
+		return array_filter($selectbox, 'natcasesort');
+		//array_multisort($selectbox); return $selectbox;
 	}
 
 	function map_unique($key, $value, $select, $table, $fatal=true) { //TODO: Guess $select and $table if not passed
-- 
2.30.2