logo       

mantisbt/core filter_api.php,1.114,1.115: msg#00008

Subject: mantisbt/core filter_api.php,1.114,1.115
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 ) . '">&nbsp;</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 ) . '">&nbsp;</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">
-                               &nbsp;
-                       </td>
+                       <?php if ( $t_filter_cols > 7 ) {
+                               echo '<td class="small-caption" valign="top" 
colspan="' . ( $t_filter_cols - 7 ) . '">&nbsp;</td>';
+                       } ?>
                </tr>
 
                <tr class="row-1">
@@ -1582,9 +1585,9 @@
                       }
                      ?>
                </td>
-                       <td colspan="1" class="small-caption" valign="top">
-                               &nbsp;
-                       </td>
+                       <?php if ( $t_filter_cols > 7 ) {
+                               echo '<td class="small-caption" valign="top" 
colspan="' . ( $t_filter_cols - 7 ) . '">&nbsp;</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 ) . '">&nbsp;</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) . '">&nbsp;</td>';
-                               }
-                       ?>
+                       <?php if ( $t_filter_cols > 8 ) {
+                               echo '<td class="small-caption" valign="top" 
colspan="' . ( $t_filter_cols - 8 ) . '">&nbsp;</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 ) . '">&nbsp;</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&amp;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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe