echo '<td class="small-caption" valign="top" colspan="' . $t_custom_cols . '"> ', print_filter_plugin_field($t_row_field_name, $t_plugin_filters[$t_row_field_name]), '</td>'; } echo '</tr>'; $t_fields = ''; $t_row_filters = array(); } } # output any remaining plugin filters if ($t_column > 0) { if ($t_column < $t_filter_cols) { $t_fields .= '<td class="small-caption" colspan="' . ($t_filter_cols - $t_column) * $t_custom_cols . '"> </td>'; } echo '<tr class="row-category2">', $t_fields, '</tr>'; echo '<tr class="row-1">'; foreach ($t_row_filters as $t_row_field_name) { echo '<td class="small-caption" valign="top" colspan="' . $t_custom_cols . '"> ', print_filter_plugin_field($t_row_field_name, $t_plugin_filters[$t_row_field_name]), '</td>'; } if ($t_column < $t_filter_cols) { echo '<td class="small-caption" colspan="' . ($t_filter_cols - $t_column) * $t_custom_cols . '"> </td>'; } echo '</tr>'; } ?> <tr class="row-category2"> <td class="small-caption" colspan="<?php echo 1 * $t_custom_cols; ?> "><?php echo lang_get('search'); ?>
} } $f_filter_target = gpc_get_string('filter_target'); $t_function_name = 'print_filter_' . utf8_substr($f_filter_target, 0, -7); if (function_exists($t_function_name)) { return_dynamic_filters_prepend_headers(); call_user_func($t_function_name); } else { if ('custom_field' == utf8_substr($f_filter_target, 0, 12)) { # custom function $t_custom_id = utf8_substr($f_filter_target, 13, -7); return_dynamic_filters_prepend_headers(); print_filter_custom_field($t_custom_id); } else { $t_plugin_filters = filter_get_plugin_filters(); $t_found = false; foreach ($t_plugin_filters as $t_field_name => $t_filter_object) { if ($t_field_name . '_filter' == $f_filter_target) { return_dynamic_filters_prepend_headers(); print_filter_plugin_field($t_field_name, $t_filter_object); $t_found = true; break; } } if (!$t_found) { # error - no function to populate the target (e.g., print_filter_foo) error_parameters($f_filter_target); trigger_error(ERROR_FILTER_NOT_FOUND, ERROR); } } }
} echo '</tr>'; $t_fields = ''; $t_row_filters = array(); } } # output any remaining plugin filters if ($t_column > 0) { if ($t_column < $t_filter_cols) { $t_fields .= '<td class="small-caption" colspan="' . ($t_filter_cols - $t_column) * $t_custom_cols . '"> </td>'; } echo '<tr class="row-category2">', $t_fields, '</tr>'; echo '<tr class="row-1">'; foreach ($t_row_filters as $t_row_field_name) { echo '<td class="small-caption" colspan="' . $t_custom_cols . '"> '; print_filter_plugin_field($t_row_field_name, $t_plugin_filters[$t_row_field_name]); echo '</td>'; } if ($t_column < $t_filter_cols) { echo '<td class="small-caption" colspan="' . ($t_filter_cols - $t_column) * $t_custom_cols . '"> </td>'; } echo '</tr>'; } ?> <!-- Last Filter row (Search/tags) --> <tr class="row-category2"> <th class="small-caption" colspan="<?php echo 1 * $t_custom_cols; ?> ">