Pripravena textarea v editaci
authorThomas Mudrunka <tomas@mudrunka.cz>
Thu, 8 Dec 2011 22:38:30 +0000 (23:38 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Thu, 8 Dec 2011 22:38:30 +0000 (23:38 +0100)
index.php

index d782466056a1612531528a039c55ee7b469ed5a7..02cdfe5d4607c1bc4bb380dd32639a3e4ffdce2e 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -81,6 +81,15 @@ class HTML {
                return $this->link($this->img($src,$title,$options),$link,$internal,$translate);
        }
 
+       function textarea($name=false, $value='', $placeholder=false, $options=false, $prefix='') {
+               $html = T($prefix)."<textarea";
+               if($name) $html.= " name='$name'";
+               if($options) $html.= " $options";
+               if($placeholder) $html.= " placeholder='$placeholder'";
+               $html .= ">$value</textarea>";
+               return $html;
+       }
+
        function input($name=false, $value=false, $type='text', $placeholder=false, $options=false, $prefix='') {
                $html = T($prefix)."<input type='$type' ";
                if($name) $html.= "name='$name' ";
@@ -404,8 +413,9 @@ EOF;
                                case isset($selectbox[$column['Field']]):
                                        $html.=$this->select($name,$selectbox[$column['Field']],$val);
                                        break;
-                               default:
+                               default: //TODO: textarea
                                        $html.=$this->input($name, $val);
+                                       //$html.=$this->textarea($name, $val);
                                        break;
                        }
                        $html.='<br />';
This page took 0.110992 seconds and 4 git commands to generate.