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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <html>
<head><title>Ajouter un Encadreur</title><head>
<body>
<center>
<div><table border="1" bordercolor="00A6B5">
<tr><td bgcolor="white"><center><h1><font color="00A6B5" bgcolor="white"><i>Rechercher un encadreur</i></font></h1></center></td></tr>
<tr><td>
<?php echo $this->form; ?>
</td></tr>
</table>
</div>
<center>
<?php
$enreg = $this->enreg;
$n=count($enreg);
echo "<br><br>";
if ($n==0)
echo '<center><h1><font color="00A6B5"><i>Aucun résultat trouvé</i></font></h1></center>';
else
{
echo '<center><h1><font color="00A6B5"><i>Encadreur</i></font></h1></center><br>';
echo '<table border="1" bordercolor="00A6B5" bgcolor="white" width"600">
<tr><td width="137" align="center"><h3><font color="00A6B5" bgcolor="white"><i>Encadreur</i></font></h3></td>
<td width="115" align="center"><h3><font color="00A6B5" bgcolor="white"><i>E-mail</i></font></h3></td>
<td width="115" align="center"><h3><font color="00A6B5" bgcolor="white"><i>Telephone</i></font></h3></td>
<td width="115" align="center"><h3><font color="00A6B5" bgcolor="white"><i>Etablissement</i></font></h3></td>
<td width="115" align="center"><h3><font color="00A6B5" bgcolor="white"><i>Action</i></font></h3></td>
</tr>';
$i=0;
while ($i<$n)
{
$id=$enreg[$i]->id_encadreur;
echo'<tr>';
echo'<td align="center">';
echo $enreg[$i]->nom_encadreur." ".$enreg[$i]->prenom_encadreur;
echo'</td>';
echo'<td align="center">';
echo $enreg[$i]->email_encadreur;
echo'</td>';
echo'<td align="center">';
echo $enreg[$i]->tel_encadreur;
echo'</td>';
echo'<td align="center">';
echo $enreg[$i]->nom_etablissement;
echo'</td>';
echo'<td>';
echo'<a href="'.$this->url(array('controller'=>'Encadreur','action'=>'modifier','id'=>$id)).'"> modifier </a>';
echo'<a href="'.$this->url(array('controller'=>'Encadreur','action'=>'supprimer','id'=>$id)).'"> supprimer</a>';
echo'</td>';
echo'</tr>';
$i++;
}
echo '</table>';
}
?>
<center>
</body>
</html> |
Partager