1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <?php
$table = array(array(1,2,3,4,5,6,7,8,9,10,11)); //Tableau de resultats
$i = 0;
echo '<table width="700" border="0">'; //Création du tableau
foreach($table as $donnees) {
echo '<tr class="prem" bgcolor="'.( ($i++ % 2 == 0) ? '#dddddd' : '#eeeeee' ).'">'; //Création d'une nouvelle ligne
echo '<td width="120px">'.$projet.'</td>'; //Création d'une nouvelle colonne
echo '<td width="156px">'.$date.'</td>'; //Création d'une nouvelle colonne
echo '<td width="118px">'.$etat.'</td>'; //Création d'une nouvelle colonne
echo '<td width="168px" style="color:red;">'.$numero_projet.'</td>'; //Création d'une nouvelle colonne
echo '<td width="122px"><input type="checkbox" name="mel[]" id="mel"> <input type="checkbox" name="mel[]" id="mel" checked="checked"><br/><font-size="1">on off</font></td>'; //Création d'une nouvelle colonne
echo '</tr>'; //Fin de la ligne
$i++;
}
echo '</table>'; //Fermeture du tableau
?> |
Partager