- if($GLOBALS['opt_listing'] == 'Yes') {
- $tem->show('opt_listing_1');
- } else {
- $tem->show('opt_listing_1_else');
+ 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');
+ }
+
+ $tem->show('listing_head_col');
+ $tem->show('listing_row_col');
+ }
+ }