From 677d2f066d66a360ebfb367d4521926ad14d5480 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 27 Jun 2010 11:40:53 +0300 Subject: some fixes --- MainView.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'MainView.php') 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 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 = ''; -- cgit v1.2.3