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
|
$contacts = "SELECT cont_prenom, cont_id FROM contacts_patients, users WHERE contacts_patients.pat_id = users.USER_ID AND USER_ID = '".$_SESSION['id_users']."'";
$cont = mysql_query($contacts);
$align=0;
$mr = "130px";
while ($ligne = mysql_fetch_array($cont))
{
$_SESSION['id_contact'] = $ligne[1];
if($align == 0){
$align = 1;
$bg = "left";
$ml = "130px";
$padd="95px";
}
else{
$align = 0;
$bg = "right";
$mr = "130px";
}
echo '<div align="center" class="global">';
echo '<table border="1" align='.$bg.'>';
echo '<tr>';
echo '<td align="center" style="position:relative;" class="gras" width="91" align='.$bg.'><form name="allergie" action="voir_detail_contact.php" style="display:inline;position:relative;" method="post"><input type="hidden" name="monid" value='.$ligne[1].'><div class="contact">'.$ligne[0].'</div><input border="0" src="images/patient/bt-cont.png" type="image" value="submit"></form></td>';
echo '</div>';
}
?> |
Partager