diff options
Diffstat (limited to 'MainView.php')
-rw-r--r--[-rwxr-xr-x] | MainView.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/MainView.php b/MainView.php index b475abb..b5bce86 100755..100644 --- a/MainView.php +++ b/MainView.php @@ -3,13 +3,6 @@ // main/MainView.php // @created 31.10.2009 // @author Filipp Lepalaan <filipp@mac.com> - -/* This program is free software. It comes without any warranty, to - * the extent permitted by applicable law. You can redistribute it - * and/or modify it under the terms of the Do What The Fuck You Want - * To Public License, Version 2, as published by Sam Hocevar. See - * http://sam.zoy.org/wtfpl/COPYING for more details. */ - class MainView { //// @@ -22,6 +15,13 @@ class MainView } //// + // render a table + function table($data, $cols = null) + { + + } + + //// // create HTML <select> options from array // @param array array // @param mixed select option with this value @@ -29,9 +29,9 @@ class MainView function select($array, $current = null) { $out = ''; - + foreach ($array as $k => $v) { - $sel = ($k == $current) ? ' selected="selected" ' : ''; + $sel = ($k == $current) ? ' selected="selected"' : ''; $out .= "<option value=\"{$k}\"{$sel}>{$v}</option>\n\t"; } |