aboutsummaryrefslogtreecommitdiffstats
path: root/MainView.php
diff options
context:
space:
mode:
Diffstat (limited to 'MainView.php')
-rw-r--r--MainView.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/MainView.php b/MainView.php
index 038ccf7..2e5ad0c 100644
--- a/MainView.php
+++ b/MainView.php
@@ -14,12 +14,11 @@ class MainView
include $base.'/'.$path;
}
- /**
- * Create HTML <select> options from array
- * @param array array
- * @param mixed select option with this value
- * @return string
- */
+ ////
+ // create HTML <select> options from array
+ // @param array array
+ // @param mixed select option with this value
+ // @return string
function select($array, $current = null)
{
$out = '';
@@ -33,6 +32,11 @@ class MainView
}
+ function input($params)
+ {
+ return $this->tag('input', $params);
+ }
+
function tag($name, $args = '', $content = '', $selected = '')
{
$str_args = '';