| [ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # Mantis - a php based bugtracking system 3 4 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 5 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 6 7 # Mantis is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Mantis is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 19 20 # -------------------------------------------------------- 21 # $Id: bug_monitor_list_view_inc.php,v 1.16.2.1 2007-10-13 22:32:43 giallu Exp $ 22 # -------------------------------------------------------- 23 ?> 24 <?php 25 # This include file prints out the list of users monitoring the current 26 # bug. $f_bug_id must be set and be set to the bug id 27 ?> 28 <?php if ( access_has_bug_level( config_get( 'show_monitor_list_threshold' ), $f_bug_id ) ) { ?> 29 <?php 30 $c_bug_id = db_prepare_int( $f_bug_id ); 31 $t_bug_monitor_table = config_get( 'mantis_bug_monitor_table' ); 32 $t_user_table = config_get( 'mantis_user_table' ); 33 34 # get the bugnote data 35 $query = "SELECT user_id, enabled 36 FROM $t_bug_monitor_table m, $t_user_table u 37 WHERE m.bug_id=$c_bug_id AND m.user_id = u.id 38 ORDER BY u.realname, u.username"; 39 $result = db_query($query); 40 $num_users = db_num_rows($result); 41 42 echo '<a name="monitors" id="monitors" /><br />'; 43 ?> 44 45 <?php 46 collapse_open( 'monitoring' ); 47 ?> 48 <table class="width100" cellspacing="1"> 49 <?php if ( 0 == $num_users ) { ?> 50 <tr> 51 <td class="center"> 52 <?php echo lang_get( 'no_users_monitoring_bug' ); ?> 53 </td> 54 </tr> 55 <?php } else { ?> 56 <tr> 57 <td class="form-title" colspan="2"> 58 <?php 59 collapse_icon( 'monitoring' ); 60 ?> 61 <?php echo lang_get( 'users_monitoring_bug' ); ?> 62 </td> 63 </tr> 64 <tr class="row-1"> 65 <td class="category" width="15%"> 66 <?php echo lang_get( 'monitoring_user_list' ); ?> 67 </td> 68 <td> 69 <?php 70 for ( $i = 0; $i < $num_users; $i++ ) { 71 $row = db_fetch_array( $result ); 72 echo ($i > 0) ? ', ' : ''; 73 echo print_user( $row['user_id'] ); 74 } 75 ?> 76 </td> 77 </tr> 78 <?php } ?> 79 </table> 80 <?php 81 collapse_closed( 'monitoring' ); 82 ?> 83 <table class="width100" cellspacing="1"> 84 <tr> 85 <td class="form-title" colspan="2"><?php collapse_icon( 'monitoring' ); ?> 86 <?php echo lang_get( 'users_monitoring_bug' ); ?> 87 </td> 88 </tr> 89 </table> 90 <?php 91 collapse_end( 'monitoring' ); 92 ?> 93 94 <?php } # show monitor list ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
|