+
+ if($GLOBALS['opt_display'] == 'Yes') {
+ switch($input) {
+ case 'image':
+ $tem->show('display_image');
+ break;
+ case 'checkbox':
+ case 'leftcheck':
+ $tem->show('display_yesno');
+ break;
+ case 'date':
+ $tem->show('display_date');
+ break;
+ case 'textarea':
+ $tem->show('display_multiline');
+ break;
+ case 'html':
+ $tem->show('display_html');
+ break;
+ default:
+ $tem->show('display_short');
+ }
+ $tem->show('display_row');
+ }
+
+ if($GLOBALS['opt_listing'] == 'Yes') {
+ if(show_in_listing($type, $input, $format, $sql)) {
+ if($format == 'bool' || $format == 'yesno') {
+ $tem->set('listing_enc', 'yesno');
+ $tem->show('listing_value_enc');
+ } elseif($input == 'date') {
+ $tem->set('listing_enc', 'mmddyyyy');
+ $tem->show('listing_value_enc');
+ } elseif($type == 'thumb') {
+ $tem->show('listing_value_thumb');
+ } else {
+ $tem->set('listing_enc', 'html');
+ $tem->show('listing_value_enc');
+ }
+
+ if($GLOBALS['opt_display'] != 'Yes') {
+ $tem->show('opt_display_a_else');
+ }
+ $tem->show('listing_head_col');
+ $tem->show('listing_row_col');
+ }
+ }
+ }
+
+ 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');