X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=ec062faa29d7c65b0884ed76a1b54c2abd90aebc;hb=35916247a3b7ed49d0dc758ebdf76cf636763d2c;hp=9fd0527effb05db1e1f4aeae4801a8ad4ea58b60;hpb=326a9fc904b2a1e303abd2e3bc5b521603579be8;p=mirrors%2FSokoMan.git
diff --git a/index.php b/index.php
index 9fd0527..ec062fa 100755
--- a/index.php
+++ b/index.php
@@ -58,7 +58,7 @@ class HTML {
}
function link($title='n/a', $link='#void', $internal=true) {
- if($internal) $link = $this->internal_url($link);
+ if($internal && (!isset($link[0]) || $link[0] != '#')) $link = $this->internal_url($link);
return "".T($title)."";
}
@@ -66,8 +66,8 @@ class HTML {
return "";
}
- function input($name=false, $value=false, $type='text', $placeholder=false, $options=false) {
- $html = "";
+ foreach($inputs as $input) $html .= call_user_func_array(array($this,'input'), $input);
+ $html .= "";
+ return $html;
+ }
+
function select($name, $selectbox, $default=false) {
//echo('
'); print_r($selectbox); $html = ""; return $html; } + + function ul($items,$tag=ul,$head='',$class=false) { + $class = $class ? " class='$class'" : ''; + $html = "$head<$tag$class>"; + foreach($items as $key => $value) { + $html .= '