, Suchi & Berg GmbH * @access public * @modulegroup extern * @module extern_functions_templates * @package studip_extern */ // +---------------------------------------------------------------------------+ // This file is part of Stud.IP // extern_functions_templates.inc.php // // Copyright (C) 2003 Peter Thienel , // Suchi & Berg GmbH // +---------------------------------------------------------------------------+ // 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 any later version. // +---------------------------------------------------------------------------+ // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // +---------------------------------------------------------------------------+ /** * * */ function table_header ($element) { $out = "getAttributes("table") . ">\n"; return $out; } /** * * */ function table_headrow ($element, $fields) { $font_attributes = $element->getAttributes("font"); $out = "getAttributes("tr") . ">\n"; foreach ($fields as $field) { if ($font_attributes) $field = "$field"; $out .= "getAttributes("td") . ">" . $field . "\n"; } $out .= "\n"; return $out; } /** * * */ function table_row ($element, $fields) { $font_attributes = $element->getAttributes("font"); $out = "getAttributes("tr") . ">\n"; foreach ($fields as $field) { if ($font_attributes) $field = "$field"; $out .= "getAttributes("td") . ">" . $field . "\n"; } $out .= "\n"; return $out; } /** * * */ function table_group ($element, $group_name) { $colspan = " colspan=\""; $colspan .= sizeof($element->config->getValue("main", "order")) . "\""; if ($font_attributes = $element->getAttributes("font")) $group_name = "$group_name"; $out = "getAttributes("tr") . ">\n"; $out .= "getAttributes("td") . $colspan . ">"; $out .= $group_name; $out .= "\n\n"; return $out; } /** * * */ function table_footer () { $out = ""; return $out; } /** * * */ function html_header (&$config) { $out = "\n"; $out .= "\n\n"; $out .= "\n"; if ($copyright = $config->getValue('Main', 'copyright')) $out .= "\n"; if ($author = $config->getValue('Main', 'author')) $out .= "\n"; $out .= '' . $config->getValue('Main', 'title') . "\n"; if ($urlcss = $config->getValue('Main', 'urlcss')) $out .= "\n"; $out .= "\n" . $config->getTag('Body', 'body') . "\n"; return $out; } /** * * */ function html_footer () { return "\n"; } ?>