From 120e3b45950671a8d2d46121fdbc5bd086cb85fa Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Fri, 9 Dec 2011 15:05:42 +0100 Subject: [PATCH] Dodelana textarea do formularu --- index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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.='
'; -- 2.30.2