'submit', 'value'=>$sublabel )); return get_form_html_advanced(Array( 'id'=>$id ),$fields); } function get_form_html_advanced($attributes,$fields){ $r = "
\n"; } function get_field_html($field){ $a = ''; if(isset($field['attributes'])){ foreach($field['attributes'] as $attribute => $value){ $a .= " {$attribute}=\"{$value}\""; } } $v = ''; if(isset($field['value'])&&!is_null($field['value'])&&$field['value']!=''){ $v = "value='{$field['value']}'"; } switch($field['type']){ case 'select': $r = "