
<?php
$supply_id = $_GET['supply_id'];
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--design only--><link rel="stylesheet" type="text/css" href="../css/main.css" />

<?php
//$br1=38;
//$br2=39;
//$br3=85;
//$br4=86;
//$br5=128;
//$br6=129;




$table_name = $_SESSION['db_prefix']."_supply_cash_lines";
$cash_query = "SELECT * FROM $table_name WHERE supply_id = '".$supply_id."' ";
$cash_result = mySQL_query($cash_query);
$cash_num = mysql_num_rows($cash_result);

?>

<div style="page-break-after:always;" >

<?php 
include ('del_note_cash_header.php');

?>



<div >
<br />
<br />

          <table width="646" align="left" id="table_details_display_grey" >
            <tr >
              <td width="350" align="left" valign="top"><b>
                <label class="label_std">Item</label>
                </b></td>
              <td width="96" align="left" valign="top"><b>Deliver qty</b></td>
              <td width="184" align="left" valign="top">&nbsp;</td>
            </tr>
          </table><br />
<br />

        
<table width="646" align="left" id="table_details_display"  style="margin-top:10px;" >
        <?php 
				  $j=0;
				  while ($j<$cash_num) { 
					    //$e1 = mysql_result($cash_result, $j, "timber_type");
						$e2 = mysql_result($cash_result, $j, "store_item_id");
						$table_name = $_SESSION['db_prefix']."_store_items";
							$name_query = "SELECT item_name, unit FROM $table_name WHERE  store_item_id = '".$e2."' ";
							$name_result = mySQL_query($name_query);
							$e2a = mysql_result($name_result, 0, "item_name");
							$e4 = mysql_result($name_result, 0, "unit");
						$e3 = mysql_result($cash_result, $j, "quantity");  
						
				 ?>
            <tr>
              <td width="354"><?php echo $e2a ?></td>
              <td width="280"><?php echo $e3.'&nbsp;&nbsp;'.$e4 ?></td>
            </tr>
            <?php
				
			  $j++;
             }
             ?>
          </table>
 </div>         
        <br>
<br>
          
        
              
<?php
include ('del_note_cash_footer.php')
?>
<br />

</div>
 
</html>