JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: added pretty-printing for checkboxes and dates to listing
[wfpl.git] / metaform.php
index 06bb7dd..ecde564 100644 (file)
@@ -259,6 +259,11 @@ function make_html($whole_file = true) {
                                $tem->show('opt_display_a_else');
                        }
                        if(show_in_listing($type, $input, $format, $sql)) {
+                               if($format == 'bool' || $format == 'yesno') {
+                                       $tem->set('listing_enc', 'yesno');
+                               } elseif($input == 'date') {
+                                       $tem->set('listing_enc', 'mmddyyyy');
+                               }
                                $tem->show('listing_head_col');
                                $tem->show('listing_row_col');
                        }