[ 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: tag_view_page.php,v 1.1.2.2 2007-10-18 15:33:23 nuclear_eclipse Exp $ 22 # -------------------------------------------------------- 23 24 require_once ( 'core.php' ); 25 26 $t_core_path = config_get( 'core_path' ); 27 28 require_once( $t_core_path . 'tag_api.php' ); 29 30 access_ensure_global_level( config_get( 'tag_view_threshold' ) ); 31 compress_enable(); 32 33 $f_tag_id = gpc_get_int( 'tag_id' ); 34 $t_tag_row = tag_get( $f_tag_id ); 35 36 $t_name = string_display_line( $t_tag_row['name'] ); 37 $t_description = string_display( $t_tag_row['description'] ); 38 39 html_page_top1( sprintf( lang_get( 'tag_details' ), $t_tag_row['name'] ) ); 40 html_page_top2(); 41 ?> 42 43 <br/> 44 <table class="width100" cellspacing="1"> 45 46 <!-- Title --> 47 <tr> 48 <td class="form-title" colspan="2"> 49 <?php echo sprintf( lang_get( 'tag_details' ), $t_tag_row['name'] ) ?> 50 51 </td> 52 <td class="right" colspan="3"> 53 <?php print_bracket_link( 'search.php?hide_status_id=90&tag_string='.urlencode($t_tag_row['name']), sprintf( lang_get( 'tag_filter_default' ), tag_stats_attached( $f_tag_id ) ) ); ?> 54 </td> 55 </tr> 56 57 <!-- Info --> 58 <tr class="row-category"> 59 <td width="15%"><?php echo lang_get( 'tag_id' ) ?></td> 60 <td width="25%"><?php echo lang_get( 'tag_name' ) ?></td> 61 <td width="20%"><?php echo lang_get( 'tag_creator' ) ?></td> 62 <td width="20%"><?php echo lang_get( 'tag_created' ) ?></td> 63 <td width="20%"><?php echo lang_get( 'tag_updated' ) ?></td> 64 </tr> 65 66 <tr <?php echo helper_alternate_class() ?>> 67 <td><?php echo $t_tag_row['id'] ?></td> 68 <td><?php echo $t_name ?></td> 69 <td><?php echo user_get_name($t_tag_row['user_id']) ?></td> 70 <td><?php echo print_date( config_get( 'normal_date_format' ), db_unixtimestamp( $t_tag_row['date_created'] ) ) ?> </td> 71 <td><?php echo print_date( config_get( 'normal_date_format' ), db_unixtimestamp( $t_tag_row['date_updated'] ) ) ?> </td> 72 </tr> 73 74 <!-- spacer --> 75 <tr class="spacer"> 76 <td colspan="5"></td> 77 </tr> 78 79 <!-- Description --> 80 <tr <?php echo helper_alternate_class() ?>> 81 <td class="category"><?php echo lang_get( 'tag_description' ) ?></td> 82 <td colspan="4"><?php echo $t_description ?></td> 83 </tr> 84 85 <!-- Statistics --> 86 <?php 87 $t_tags_related = tag_stats_related( $f_tag_id ); 88 if ( count( $t_tags_related ) ) { 89 echo '<tr ',helper_alternate_class(),'>'; 90 echo '<td class="category" rowspan="',count( $t_tags_related ),'">',lang_get( 'tag_related' ),'</td>'; 91 92 $i = 0; 93 foreach( $t_tags_related as $t_tag ) { 94 $t_name = string_display_line( $t_tag['name'] ); 95 $t_description = string_display_line( $t_tag['description'] ); 96 $t_count = $t_tag['count']; 97 98 echo ( $i > 0 ? '<tr '.helper_alternate_class().'>' : '' ); 99 echo "<td><a href='tag_view_page.php?tag_id=$t_tag[id]' title='$t_description'>$t_name</a></td>\n"; 100 echo '<td colspan="3">'; 101 print_bracket_link( 'search.php?hide_status_id=90&tag_string='.urlencode("+$t_tag_row[name]".config_get('tag_separator')."+$t_name"), sprintf( lang_get( 'tag_related_issues' ), $t_tag['count'] ) ); 102 echo '</a></td></tr>'; 103 104 $i++; 105 } 106 } 107 ?> 108 109 <!-- Buttons --> 110 <tr> 111 <td colspan="5"> 112 <?php html_buttons_tag_view_page( $f_tag_id ); ?> 113 </td> 114 </tr> 115 116 </table> 117 <?php 118 html_page_bottom1( __FILE__ ); 119 ?>
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 |
![]() |