<?php 
ob_start();
$PageSecurity = 4;
include('includes/DefinePOClass.php');
include('includes/session.inc');
include('includes/SQL_CommonFunctions.inc');
include('includes/DefineSuppTransClass.php');
include('includes/function_lib.php');
$SQL=DB_query("SELECT * FROM dbl_dealer_dispatch where id='".$_REQUEST['id']."'",$db);
$Picklist=DB_fetch_array($SQL);
$DealerSQL=DB_query("SELECT * FROM dbl_dealer where id='".$Picklist['dealer']."'",$db);
$Dealer=DB_fetch_array($DealerSQL);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Requisition Register</title>
<link href="css/purchses1.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="page">
		
  <div id="form">
	
  	
<div style="width:100%; margin-left:auto; margin-right:auto;"> 
  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100"><img src="images/logo.jpg" width="100" /></td>
    <td align="left">
	<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td><h3 style="text-align:left;"><?php echo $Dealer['dealer_name']; ?></h3></td>
  </tr>
  <tr>
    <td valign="top"><?php echo $Dealer['pre_address1']; ?></td>
  </tr>
</table>

		
	
	  		
</td>
  </tr>
</table>
  

	
</div>



	




  <p id="foo" align="right" style="padding-right:40px;"> <a href="#" id="print" onclick="javascript:toggle_visibility('foo');" >Print</a> </p>
<br />
<br />

<fieldset><legend style="font-size:13px;"><strong>PICK LIST - EXCISABLE/NON-EXCISABLE</strong></legend>
<table width="100%" border="1" cellspacing="0" cellpadding="3">
  <tr>
    <th width="20%">Pick List No:</th>
    <td width="30%"><?php echo $Picklist['pick_list_no']; ?></td>
    <th width="20%">Date:</td>
    <td width="30%"><?php echo ConvertSQLDate($Picklist['date']); ?></td>
  </tr>
  <tr>
    <th>Party Code:</th>
    <td><?php echo $s->GetFieldValue('clientmaster',"id='".$Picklist['customer']."'",'c_name'); ?></td>
    <th>Party Name & Address:</td>
    <td>&nbsp;</td>
  </tr>
</table>



</fieldset>
<br />
<br />

<fieldset><legend style="font-size:13px;"><strong>Product Details</strong></legend>
<table width="100%" border="1"  cellpadding="3">
  <tr  style="background-color:#B7B7B7 " >
    <th width="10%">S. No.</th>   
    <th width="10%">SOI No:</th>

	 <th width="15%">SOI Date</th>	

    <th width="15%">Part No:</th>
    <th width="20%">Description</th>
    <th width="15%">Qty</th>
    <th width="15%">Shelf No:</th>
    
  </tr>
<?php 
$i=0;
$SQLDetails=DB_query("SELECT * FROM dbl_dealer_dispatch_details where parentid='".$_REQUEST['id']."'",$db);
while($pickDetails=DB_fetch_array($SQLDetails)){
?>
	 <tr bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#fffeb3'; this.style.color='#00f';" onmouseout="this.style.backgroundColor='#FFF'; this.style.color='#000000';">
    
	<td><?php echo $i+1; ?></td>
    
    <td><?php echo $i+1; ?></td>
	<td>&nbsp;</td>
	
    <td>&nbsp;</td>
	
	
	
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	
   </tr>
 <?php $i++;} ?>
</table>
</fieldset>


</div>

</div>




</body>
</html>






