Résolu pour l'alternance de couleurs ...
Il me manquait juste un echo ... :whistle2:
Voici le code (si sa peut être utile a quelqu'un...)
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<table>
<tr>
<th>Numéro</th>
<th>Nom</th>
<th>Raison sociale</th>
<th>Responsable</th>
<th>Adresse</th>
<th>Code postal</th>
<th>Ville</th>
<th>Telephone</th>
</tr>
<?php
$color = false;
foreach($this->client as $client) :
if($color)
{
$color_td = '#C0C0C0';
$color = false;
}
else
{
$color_td = '#CC9933';
$color = true;
}
?>
<tr bgcolor=<?php echo $color_td; ?>>
<td><?php echo $this->escape($client->numero_client);?></td>
<td><?php echo $this->escape($client->nom_client);?></td>
<td><?php echo $this->escape($client->numero_raison_sociale_client);?></td>
<td><?php echo $this->escape($client->responsable_client);?></td>
<td><?php echo $this->escape($client->adresse_client);?></td>
<td><?php echo $this->escape($client->code_postal_client);?></td>
<td><?php echo $this->escape($client->ville_client);?></td>
<td><?php echo $this->escape($client->telephone);?></td>
</tr>
<?php endforeach; ?>
</table> |
Les couleurs choisies sont très moches mais c'est pour l'exemple ... :mouarf:
Résolu !! Merci les amis !!!
Style qui serait ??
parceque je ne veut pas de bordure sur les 8 premier <td></td>
et des bordure sur les 2 dernier <td></td>
désolé, je débute ... :oops:
EDIT : style tout simple que voici :) :
Code:
<td style="border : none";></td>
Merci infiniment de votre gentillesse et de votre aide !! :ccool:
:lahola::lahola::lahola: