106
require "../inc/dbconnect.php";
$res=mysql_query("SELECT idklient, `fam`, `name`, `dateborn`,`comm`,
`pass`, `organpass`, `datepass`,
`telefon`, `adrescity`, `adresstreet`,
`adreshouse`, email ,
`namemkb`, `login`,`parol` FROM `Klient`, class_mkb, prozess where udalKl=0
and id=diagnoz and idklient=nomklproz and flag=0");
$a=1;
while($res_id=mysql_fetch_row($res))
{
echo " <center> <table> <tr>
<td width='30' class='tr'> <b> $a </b> </td>
<td width='150' class='tr'> $res_id[1] </td>
<td width='120' class='tr'> $res_id[2] </td>
<td width='100' class='tr'> $res_id[3] </td>
<td width='150' class='tr'> $res_id[4] </td>
<td width='40' class='tr'> <div>
<a href='index.htm' onclick='return hs.htmlExpand(this)'>
<img src='../image/passport.jpg' TITLE='Паспортные данные' WIDTH='30'
HEIGHT='45' border='0'>
</a>
<div class='highslide-maincontent'>
<p class='pp' > Паспортные данные </p>
<table width='100%' border='1' cellspacing='5' cellpadding='5'>
<tr>
<th align='left' >Номер и серия паспорта</th>
<th align='left'> $res_id[5]</th>
</tr>
<tr>
<th align='left'>Наименование органа, выдавшего паспорт</th>
<th align='left'>$res_id[6]</th>