X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=95d4a59f9f414280d7162aaf4bbf28b6b7dc47be;hb=5704f2946df7ebb0a038c1c359d2c64c3ea63f0e;hp=d782466056a1612531528a039c55ee7b469ed5a7;hpb=ecaeb1d62d463938a742394a9f430d473e62dffe;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index d782466..95d4a59 100755 --- a/index.php +++ b/index.php @@ -81,7 +81,17 @@ 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($name, $value, $placeholder, $options, $prefix); $html = T($prefix)."$html"; } + function favicon($url='/favicon.ico') { + return ''; + + } + function head($title=false,$charset='UTF-8',$more='') { $title = $title ? "\n$title" : ''; $html= ''; $html.= ''.$title.$more; + $html.= $this->favicon(dirname($_SERVER['SCRIPT_NAME']).'/favicon.ico'); $html.= ''; return $html; } @@ -390,6 +406,10 @@ EOF; } function render_insert_inputs($class,$columns,$selectbox,$current,$hidecols,$update) { + $textarea = array( + 'item' => array('item_note'), + 'model' => array('model_descript') + ); $html = ''; foreach($columns as $column) { $html.=T($class).':'.T($column['Field']).': '; @@ -404,6 +424,9 @@ EOF; case isset($selectbox[$column['Field']]): $html.=$this->select($name,$selectbox[$column['Field']],$val); break; + case isset($textarea[$class]) && in_array($column['Field'],$textarea[$class]): + $html.=$this->input($name, $val, 'textarea'); + break; default: $html.=$this->input($name, $val); break;