* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ class html { function hash_table($rows,$head='',$obj, $frtn) { global $phpgw; $html = ''; $edittable =$head['_edittable']; if (isset($edittable)) { if ($edittable) { // Generate the customization table... return $this->edit_table($rows,$head,$obj,$frtn); } else { $html .= "
"; return $html; } function makeparms($parmlist) { $html = ''; $comma = ' '; reset($parmlist); while(list($pname,$pvalue)=each($parmlist)) { switch($pname) { case 'value': break; case 'colspan': case 'rowspan': if ($pvalue != 1) { $html .= $comma . $pname . '="' . $pvalue . '"'; $comma = ', '; }; break; default: if (substr($pname,0,1) != '#') { $html .= $comma . $pname . '="' . $pvalue . '"'; $comma = ', '; } } } return $html; } function edit_table($rows,$head='',$obj, $frtn) { global $phpgw, $nocols; $html = ''; $html .= "