formatting for advanced search rows
fixed: php5.3 bug with latest groupby code additons