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 65
| <form method='POST' action='imprimautrecarte.php'>
<?php
$req=mysql_query('select * from catre');
$cont= 0;
while($sql=mysql_fetch_array($req))
{
if((count($sql) > 1))
{
$cont= $cont+1;
print"<table border='1px' width='690' height='100' align='center'style='-moz-border-radius:12 12 12 12;'>";
print"<tr>";
print"<td width='50%'>";
print"<table>";
print"<tr id='tete'><td align='center' colspan='3'><font color='red'size='3'>VALIDITE:".$sql['8']."</font></td></tr>";
print"<tr id='corp'><td colspan='3'><i><font color='blue'<u>N° CAB</u></font>: ".$sql['6']."<span id='nom'></font></i></td> </tr>";
print"<tr id='corp'><td><u><b>NOM:</b></u> ". $sql['1']. "</td><td rowspan='3' align='right' colspan='2'><img src=".$sql['7']." alt='votre photo' width=80 height=80/></td> </tr>";
print"<tr id='corp'><td><u><b>PRENOMS:</b></u> ".$sql['2']."</td> </tr>";
print"<tr id='corp'><td width='75%'><u><b>Né(e) le :</b></u> " .$sql['3'] . " à " . $sql['4'] . "</td></tr>";
print"<tr id='corp'><td><u><b>SPECIALITE:</b> </u>" .$sql['5']."</td></tr>";
print"<tr id='text'><td colspan='2'align='right' colspan='2'><font color='white'></font></i></td></tr>";
print"<tr><td align='center' widht='75%' > Le D/COUS:</td><td align='right' colspan='2'>Le titulaire</td></tr>";
print'</table>';
print"</td>";
print"<td width='50%'>";
print"<table>";
print"<tr rowspan='2'><td align='left'><img src='images/drapo1.png'/></td><td align='center'><font color='green'>REPUBLIQUE</font><font color='yellow'> DU</font><font color='red'>BENIN</font></td>";
print"<td align='right'><font color='red' size='2'><img src='images/drapo2.png'/></font></td></tr>";
print"<tr><td colspan='3' align='center' size='4'><b>CENTRE DES OEUVRES UNIVERSITAIRES ET SOCIALES DE PARAKOU</b></td> </tr>";
print"<tr><td colspan='3' align='center'><b><img src='images/carte.jpg' width='75%'></b></td> </tr>";
print"<tr ><td colspan='3' align='center' rospan='2'>N°:B00".$cont."/COUS-PARAKOU</td> </tr>";
print"<tr id='text'><td colspan='3' align='center'><font color='green'>Cette carte est strictement personnelle.<br/>Elle est indispensable pour beneficier des oeuvres universitaires</font></td></tr>";
print"<tr><td><br/></td></tr>";
print'</table>';
print"</td>";
print"</tr>";
print"</table>";
//print"<br/>";
// $req3=mysql_query('delete from resident WHERE num="'.$sql['0'].'"') or die ('Erreur <br/>'.mysql_error());
}
else
{
echo"<script type=\"text/javascript\">" ;
echo "alert('CARTE VIDES , VOUS N'AVIEZ PAS ENTRE LES DONNEES!!');";
echo "window.history.back();";
echo "</script>";
}
}
//$req2=mysql_query('delete from catre WHERE nom="'.$sql['0'].'"') or die ('Erreur <br/>'.mysql_error());
?>
<script type="text/javascript">
window.print() ;
</script> |
Partager