+ if($input == 'image' && !$uploads_output_already) {
+ $tem->show('uploads');
+ $tem->set('enctype_attr', '" enctype="multipart/form-data');
+ $uploads_output_already = true;
+ } elseif($input == 'html') {
+ $has_html_editors = true;
+ $tem->set('html_field_name', $name);
+ $tem->show('replace_textarea');
+ }
+ }
+
+ if($GLOBALS['opt_db'] == 'Yes') {
+ $tem->show('opt_db_1');
+ $tem->show('opt_db_2');
+ } else {
+ $tem->show('opt_db_1_else');
+ }
+
+ if($GLOBALS['opt_listing'] == 'Yes') {
+ $tem->show('opt_listing_1');
+ } else {
+ $tem->show('opt_listing_1_else');
+ }
+
+ if($GLOBALS['opt_email'] == 'Yes' && $GLOBALS['opt_db'] != 'Yes') {
+ $tem->set('name', 'send');
+ $tem->set('caption', 'Send');
+ } else {
+ $tem->set('name', 'save');
+ $tem->set('caption', 'Save');
+ }
+ $tem->show('submit');
+ $tem->show('row');
+
+ $tem->show('form');
+
+ if($has_html_editors) {
+ $tem->show('html_editor_headers');