1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
echo '<div id= "materiel" >';
echo '<table border="4" cellspacing="0" cellpadding="3">';
echo '<tr>
<th width="8%" >Purpan : </th>
<th width="15%">Rangueil :</th>
<th width="8%">Non assigné :</th>
</tr>';
while ($donnees = $req->fetch())
{
// Si le materiel en cours de traitement appartient au dhcp selectionné par l'utilisateur
if($_POST["dhcp"] == $donnees['Id_dhcp'])
{
$site = substr($donnees['Loc_Mat'],0,1);
echo '<tr> ';
echo '<td width="8%" align="left"> ' . ($nouveauCommentaire = '# ' . ($donnees['Id_Materiel']==$donnees['Mac_Eth_Mat'] ? $donnees['Hostname_Eth_Mat'] : $donnees['Hostname_Wifi_Mat']) . ' Date de sortie prevue le : ' . $donnees['Date_Sortie'] . "\r\n") ; echo '</td>';
echo '<td width="15%" align="left">'.$nouvelleLigne = 'host '.($donnees['Id_Materiel']==$donnees['Mac_Eth_Mat'] ? $donnees['Hostname_Eth_Mat'] : $donnees['Hostname_Wifi_Mat']) .' { hardware ethernet '.$donnees['Id_Materiel'].' ; fixed-address '.($donnees['Id_Materiel']==$donnees['Mac_Eth_Mat'] ? $donnees['IP_Eth_Mat'] : $donnees['IP_Wifi_Mat']).' ; }' ."\r\n" . "\r\n" ;echo '</td></tr>';
tu mets div et table après l accolade
}
echo '</table></div>'; |
Partager