$rad=mysql_query("SELECT `iddelo`, `namedelo`, `namekl`, `namemod`,
`nameuser`, `datebegdelo`, `dateenddelo`, `dateregdelo` FROM `delo`, user,
model, klient
where idu=iduserdelo and idusldelo=idmod and idkl=idkldelo and
iddelo='$see'");
while($rad_id=mysql_fetch_row($rad))
{
echo " <table> <tr> <td class='pp' colspan='7'> Список документов в
папке: </td> </tr>
<tr>
<td width='150' class='tz'> № $rad_id[0] <br> от $rad_id[7]</td>
<td width='150' class='tz'> $rad_id[1]</td>
<td width='150' class='tz'> $rad_id[2] </td>
<td width='150' class='tz'> $rad_id[3] </td>
<td width='150' class='tz'> $rad_id[4] </td>
<td width='150' class='tz'> $rad_id[5] </td>
<td width='150' class='tz'> $rad_id[6] </td>
</tr> </table>
";
$opis=$rad_id[3];
}
$pokaz=mysql_query("SELECT idn FROM `dokdelo` where udaln!=1 and
newsrazdel='$see'");
$pokaz1=mysql_num_rows($pokaz);
if ($pokaz1>0)
{
$res_id=mysql_query("SELECT idn, daten, zagn, bodyn, nameuser, doksize,
statusdok FROM `dokdelo`, user where udaln!=1 and newsrazdel='$see' and
idun=idu ORDER BY daten");
while($news=mysql_fetch_row($res_id))