* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * @since file available since contenido release <= 4.6 * * {@internal * created 2003-05-20 * modified 2008-06-26, Frederic Schneider, add security fix * * $Id$: * }} * */ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } /** * Generates textial Input Form elements * * @param $type Either "text", "password" or "textbox" * @param $name Name of the field * @param $initvalue Init value of the field * @param $size Size of the field * @param $maxlen Maximum length of the field * @author Timo A. Hummel * @copyright four for business AG * * @return Generated field code * */ function formGenerateField ($type, $name, $initvalue, $width, $maxlen) { switch ($type) { case "text": return (''); break; case "password": return (''); break; case "textbox": return (''); break; default: return(''); break; } } /** * Generates check box elements * * @param $name Name of the checkbox * @param $value Value of the checkbox * @param $checked Initially checked? * @author Timo A. Hummel * @copyright four for business AG * * @return Generated field code * */ function formGenerateCheckbox ($name, $value, $checked, $caption = "") { if (strlen($caption) > 0) { $label = ''; } else { $label = ""; } if ($checked) { return(''.$label); } else { return(''.$label); } } ?>