Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6621/core
Modified Files:
filter_api.php
Log Message:
partial fix for 0005703: HTML layout problems (Table column numbers mismatch)
- fixed all locations so that changing filter_custom_fields_per_row will
keep tables lined up. (This must currently be 8 or more).
Index: filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- filter_api.php 3 Jun 2005 16:03:14 -0000 1.114
+++ filter_api.php 3 Jun 2005 18:51:22 -0000 1.115
@@ -996,12 +996,9 @@
<input type="hidden" name="view_type" value="<?php PRINT
$t_view_type ?>" />
<?php
+ $t_filter_cols = config_get( 'filter_custom_fields_per_row' );
if ( $p_expanded ) {
- $t_filter_cols = config_get(
'filter_custom_fields_per_row' );
$t_custom_cols = $t_filter_cols;
- if ( ON == config_get( 'filter_by_custom_fields' ) ) {
- $t_custom_cols = config_get(
'filter_custom_fields_per_row' );
- }
$t_current_user_access_level =
current_user_get_access_level();
$t_accessible_custom_fields_ids = array();
@@ -1063,6 +1060,9 @@
<td class="small-caption" valign="top">
<a href="<?php PRINT $t_filters_url .
'show_profile[]'; ?>" id="show_profile_filter"><?php PRINT lang_get( 'profile'
) ?>:</a>
</td>
+ <?php if ( $t_filter_cols > 8 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 8 ) . '"> </td>';
+ } ?>
</tr>
<tr class="row-1">
@@ -1322,6 +1322,9 @@
}
?>
</td>
+ <?php if ( $t_filter_cols > 8 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 8 ) . '"> </td>';
+ } ?>
</tr>
<tr <?php PRINT "class=\"" . $t_trclass . "\""; ?>>
@@ -1354,9 +1357,9 @@
<td colspan="1" class="small-caption" valign="top">
<a href="<?php PRINT $t_filters_url .
'show_priority[]'; ?>" id="show_priority_filter"><?php PRINT lang_get(
'priority' ) ?>:</a>
</td>
- <td colspan="1" class="small-caption" valign="top">
-
- </td>
+ <?php if ( $t_filter_cols > 7 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 7 ) . '"> </td>';
+ } ?>
</tr>
<tr class="row-1">
@@ -1582,9 +1585,9 @@
}
?>
</td>
- <td colspan="1" class="small-caption" valign="top">
-
- </td>
+ <?php if ( $t_filter_cols > 7 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 7 ) . '"> </td>';
+ } ?>
</tr>
@@ -1607,6 +1610,9 @@
<td class="small-caption" valign="top" colspan="2">
<a href="<?php PRINT $t_filters_url .
'relationship_type'; ?>" id="relationship_type_filter"><?php PRINT lang_get(
'bug_relationships' ) ?>:</a>
</td>
+ <?php if ( $t_filter_cols > 8 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 8 ) . '"> </td>';
+ } ?>
</tr>
<tr class="row-1">
<td class="small-caption" valign="top"
id="per_page_filter_target">
@@ -1700,15 +1706,9 @@
?>
</td>
-
-
-
-
- <?php
- if ( $t_custom_cols > $t_filter_cols ) {
- echo '<td colspan="' . ($t_custom_cols
- $t_filter_cols) . '"> </td>';
- }
- ?>
+ <?php if ( $t_filter_cols > 8 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 8 ) . '"> </td>';
+ } ?>
</tr>
<?php
@@ -1887,8 +1887,9 @@
}
?>
</td>
- <td class="small-caption" valign="top" colspan="3">
- </td>
+ <?php if ( $t_filter_cols > 5 ) {
+ echo '<td class="small-caption" valign="top"
colspan="' . ( $t_filter_cols - 5 ) . '"> </td>';
+ } ?>
</tr>
<?php
} // expanded
@@ -1904,7 +1905,7 @@
<input type="submit" name="filter"
class="button" value="<?php PRINT lang_get( 'filter_button' ) ?>" />
</td>
</form>
- <td class="center">
+ <td class="center" colspan="<?php echo ( $t_filter_cols
- 6 ) ?>"> <!-- use this label for padding -->
<?php
if ( ON == config_get( 'dhtml_filters'
) ) {
$f_switch_view_link =
'view_all_set.php?type=6&view_type=';
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
|