Yes, I saw that section. Unfortunately, I don't know perl. I see that this line delivers the input box and tells it of what type and how big it should be.
code:
<%= &main::GetSearchFieldInput($db->{'properties'}->{$field},$field,$search_params) %>
I was also able to figure out that this...
code:
<%= $db->{'properties'}->{$field}->{'type'} | | $field %>
...returns the input type. I have no idea how to put this information to use though.