logo       


mantisbt/core print_api.php,1.161,1.162: msg#00020

Subject: mantisbt/core print_api.php,1.161,1.162
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs16:/tmp/cvs-serv15005/core

Modified Files:
        print_api.php 
Log Message:
Fixed #7658: Adding the option to manage the projects custum field will be 
added to.

Index: print_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- print_api.php       13 Apr 2007 13:41:58 -0000      1.161
+++ print_api.php       14 Apr 2007 07:44:55 -0000      1.162
@@ -1012,6 +1012,52 @@
                        echo '<br />';
                }
        }
+       
+       # --------------------
+       # List of projects with which the specified field id is linked.
+       # For every project, the project name is listed and then the list of 
custom 
+       # fields linked in order with their sequence numbers.  The specified 
field
+       # is always highlighted in italics and project names in bold.
+       #
+       # $p_field_id - The field to list the projects associated with.
+       function print_custom_field_projects_list( $p_field_id ) {
+               $c_field_id = (integer)$p_field_id;
+               $t_project_ids = custom_field_get_project_ids( $p_field_id );
+
+               foreach ( $t_project_ids as $t_project_id ) {
+                       $t_project_name = project_get_field( $t_project_id, 
'name' );
+                       $t_sequence = custom_field_get_sequence( $p_field_id, 
$t_project_id );
+                       echo '<b>', $t_project_name, '</b>: ';
+                       print_button( 
"manage_proj_custom_field_remove.php?field_id=$c_field_id&amp;project_id=$t_project_id",
 lang_get( 'remove_link' ) );
+                       echo '<br />- ';
+                       
+                       $t_linked_field_ids = custom_field_get_linked_ids( 
$t_project_id );
+
+                       $t_current_project_fields = array();
+
+                       $t_first = true;
+                       foreach ( $t_linked_field_ids as $t_current_field_id ) {
+                               if ( $t_first ) {
+                                       $t_first = false;
+                               } else {
+                                       echo ', ';
+                               }
+
+                               if ( $t_current_field_id == $p_field_id ) {
+                                       echo '<em>';
+                               }
+
+                               echo string_display( custom_field_get_field( 
$t_current_field_id, 'name' ) );
+                               echo ' (', custom_field_get_sequence( 
$t_current_field_id, $t_project_id ), ')';
+
+                               if ( $t_current_field_id == $p_field_id ) {
+                                       echo '</em>';
+                               }
+                       }
+
+                       echo '<br /><br />';
+               }
+       }
 
        # --------------------
        
###########################################################################


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
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