Quote
joejoebonjour
Quote
vincentDans le fichier index.php vous avez :
<tr bgcolor=\"<?php echo get_status_color( bug_get_field( $t_bug[&
#039;id&
#039;], &
#039;status&
#039; ) ) ?>\">
il faut retirer la partie bgcolor=... et la déplacer sur un <td> qui va bien.
si je veux qu&
#039;il colorie la colonne des id par exemple, comment je fais?
je ne sais pas comment lui indiquer la colonne en fait.
Il faut la chercher : [code=text] <head>
<style id="Classeur1_16681_Styles"></style>
<meta http-equiv="Content-type" content="text/html;charset=&
#039;<?php echo lang_get( &
#039;charset&
#039; ) ?>&
#039;" />
</head>
<body>
<div id="Classeur1_16681" align=center x:publishsource="Excel">
<table x:str border=0 cellpadding=0 cellspacing=0 width=100% style=&
#039;border-collapse: collapse&
#039;>
<tr>
<?php $i = 0; foreach( $t_fields as $t_field => $t_translated ) { ?><?php if ( $t_field != &
#039;bugnote&
#039; ) {
?> <td class=xl2316681><b><?php echo $t_translated;
if ( $t_field == &
#039;id&
#039; ) $t_col = $i; $i++; ?></b></td>
<?php } ?><?php } ?></tr>
<?php foreach( $t_bugs as $t_bug ) { ?> <tr bgcolor="<?php echo get_status_color( bug_get_field( $t_bug[&
#039;id&
#039;], &
#039;status&
#039; ) ); $i = 0; ?>">
<?php foreach( $t_bug[&
#039;columns&
#039;] as $t_data ) { ?><?php if ( !is_array( $t_data ) ) { ?> <td class=xl2216681 nowrap<?php
if ( $i = $t_col ) echo &
#039; bgcolor="red"&
#039;; $i++; ?>><?php echo $t_data ?></td>
<?php } ?><?php } ?></tr>
<?php } ?></table>
</div>
</body>
</html>[/code]
J&
#039;ai pas trop le temps de vous expliquer là maintenant (ça devrait marcher ce qui est au dessus). Sachez juste que dans la première partie j&
#039;utilise $i et $t_col pour chercher la colonne qui contient l&
#039;ID et dans la deuxième partie lorsque $i vaut $t_col (c&
#039;est qu&
#039;on est dans la colonne ID), je change la couleur (j&
#039;ai mis ici "red"). Le "truc" se cache derrière les if.
Vincent
Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
Please complete your
signature with your environment informations.
Enable skype notification
here