/** * Returns complete formatted HTML-textfield * * @Args : formname -> name of the inputfield * content -> value of textfield * type_config -> array with values from the CMS:tag * cms_side['view'] -> the current view of the user, 'edit' or 'preview' * ['edit'] -> 'true' if user set the mod in templateconfig as active * if user set inactiv var is not set * @Return String HTML textfield * @Access public */ function type_form_text($formname, $content, $type_config) { if (!_type_check_editable($type_config['editable'])) { return _type_get_element_hidden($formname, $content); } else { $width = $type_config['width']; $maxlength = $type_config['maxlength']; $out = '<td>' . "\n" . _type_get_element_text($formname, $content, $width, $maxlength) . "\n</td>\n"; } return $out; }
/** * Returns complete formatted HTML-textfield * * @Args : formname -> name of the inputfield * content -> value of textfield * type_config -> array with values from the CMS:tag * cms_side['view'] -> the current view of the user, 'edit' or 'preview' * ['edit'] -> 'true' if user set the mod in templateconfig as active * if user set inactiv var is not set * @Return String HTML textfield * @Access public */ function type_form_text($formname, $content, $type_config, $cms_side) { $content = type_form_cmslinks_to_templinks($content); if (!_type_check_editable($cms_side['edit'], $type_config['editable'], $cms_side['view'])) { return _type_get_element_hidden($formname, $content); } else { $width = $type_config['width']; $maxlength = $type_config['maxlength']; $out = '<td>' . "\n" . _type_get_element_text($formname, $content, $width, $maxlength) . "\n</td>\n"; } return $out; }