113
113
<!-- начало основной таблицы -->
<?php
require "dbconnect.php";
$res_id13=mysql_query("SELECT distinct idgild, nameG FROM `gild`, chet
where sklad=idgild and status=0");
while($nomer_mas11=mysql_fetch_row($res_id13) )
{
$sklad=$nomer_mas11[0];
$skladname=$nomer_mas11[1];
echo " <br> <p class='tarivold'> Потребность в продукции на $skladname
</p>";
$nomer=mysql_query("SELECT nomer FROM chet where status=0 and
sklad=$sklad");
while($nomerdok=mysql_fetch_row($nomer) )
{
echo "<table border='0' align='center' width='890'>\n";
echo "<tr class='tr'><th width='200'> Наименование
</th>
<th width='100'> Артикул </th>
<th width='100'> Единица
измерения </th>
<th width='100'> В наличии </th>
<th width='100'> Требуется </th>
<th width='100'> Разница </th>
<th width='100'> № накл. <form
method='post' name='spis' action='an.php'>
<INPUT TYPE='hidden' NAME='spis' VALUE='$nomerdok[0]'>
<input type='image' src='image/close.png' TITLE='Закрыть накладную'
WIDTH='20' HEIGHT='20' >
</form> </th>