From: Thomas Mudrunka Date: Fri, 9 Dec 2011 14:05:42 +0000 (+0100) Subject: Dodelana textarea do formularu X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;h=120e3b45950671a8d2d46121fdbc5bd086cb85fa;p=mirrors%2FSokoMan.git Dodelana textarea do formularu --- diff --git a/index.php b/index.php index 02cdfe5..88b7f13 100755 --- a/index.php +++ b/index.php @@ -91,6 +91,7 @@ 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); $html = T($prefix)." array('item_note'), + 'model' => array('model_descript') + ); $html = ''; foreach($columns as $column) { $html.=T($class).':'.T($column['Field']).': '; @@ -413,9 +418,11 @@ EOF; case isset($selectbox[$column['Field']]): $html.=$this->select($name,$selectbox[$column['Field']],$val); break; - default: //TODO: textarea + case isset($textarea[$class]) && in_array($column['Field'],$textarea[$class]): + $html.=$this->input($name, $val, 'textarea'); + break; + default: $html.=$this->input($name, $val); - //$html.=$this->textarea($name, $val); break; } $html.='
';