X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=ab5d70a34dd45148e778da211d1da191dc45737b;hb=8972e501e331e7ec3398d065259dce4659b93172;hp=f1744a4a17fe63cb429b2efaa180ee23df26bc74;hpb=1e0a73dc3e7bf25709b497eb8c98a572264bcdd1;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index f1744a4..ab5d70a 100755 --- a/index.php +++ b/index.php @@ -102,6 +102,8 @@ class HTML { function input($name=false, $value=false, $type='text', $placeholder=false, $options=false, $prefix='') { if($type == 'textarea') return $this->textarea($name, $value, $placeholder, $options, $prefix); + if($type == 'select') return $this->select($name, $placeholder, $value, $prefix); + //select(vendor, $selectbox ,false, prefix:); $html = T($prefix)."'); print_r($selectbox); - $html = ""; if(!is_bool($default)) { $value=$default; $title=$selectbox[$value]; @@ -773,6 +775,7 @@ 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 $selectbox;
 		//return array_filter($selectbox, 'ksort');
 		return array_filter($selectbox, 'natcasesort');
 		//array_multisort($selectbox); return $selectbox;