<?php include 'connection.php';?><!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>Invoice</title>
<?php 
$query2 = "select * from  challan2 where challan_id='".$_REQUEST['challan_id']."'";
			//echo $query2;
$result2 = mysql_query($query2,$conn);	
while($row=mysql_fetch_array($result2))
	                                              	{
$consignor_name= $row['consignor_name'];
$consignor_gstno= $row['consignor_gstno'];
$consignor_address= $row['consignor_address'];
$consignee_name= $row['consignee_name'];
$consignee_gstno= $row['consignee_gstno'];
$consignee_address = $row['consignee_address'];
$challan_from= $row['challan_from'];
$challan_to= $row['challan_to'];
$vehicle_no= $row['vehicle_no'];
$articles_no= $row['articles_no'];
$description= $row['description'];
$actual_weight= $row['actual_weight'];
$charge_weight= $row['charge_weight'];
$to_pay= $row['to_pay'];
$paid= $row['paid'];
$transportation= $row['transportation'];
$loaded= $row['loaded'];
$container_no= $row['container_no'];
$seal_no= $row['seal_no'];
$destination= $row['destination'];
$shipping_agent= $row['shipping_agent'];
$booking_no= $row['booking_no'];
$in_time= $row['in_time'];
$in_date= $row['in_date'];
$out_time= $row['out_time'];
$out_date= $row['out_date'];
$receiver_sign= $row['receiver_sign'];
$delivery_at= $row['delivery_at'];		
													}
													?>
													
<?php												
$query2 = "select * from customer_master where customer_id = '$customer_id'";
$result2 = mysql_query($query2,$conn);	
while($row = mysql_fetch_array($result2))
{
$billing_address = $row['billing_address'];
$bgst_no = $row['bgst_no'];
$customer_name = $row['customer_name'];
$bstate_code = $row['bstate_code'];

}
?>
<?php												
$queryci = "select * from company_info where name = '".$_REQUEST['cha_name']."'";
$resultci = mysql_query($queryci,$conn);	
while($row = mysql_fetch_array($resultci))
{
$full_name_com = $row['full_name_com'];
}
?>
<style type="text/css">
#printable { display: ; }
    @media print
    {
    	#non-printable { display: none; }
    	#printable { display: block; }
    }
	 #footer {
    position:relative;
    bottom : 0;
	}
     #header {
    position:fixed;
    top : 0;
	}
</style>
<style type="text/css">
<!--
.style1 {
	font-family: arial;
	font-size: 12px;
}
.style3 {font-size: 14px; font-weight: bold; }
.style4 {font-size: 14px; padding:3px; font:Arial, Helvetica, sans-serif;}
.style8 {font-size: 11px}
.style9 {font-size: 14px}
.style10 {font:Arial, Helvetica, sans-serif; padding: 3px;}
.style11 {font: Arial, Helvetica, sans-serif; font-weight: bold; padding: 3px;}
.style12 {font-size: 16px}
.style13 {font-size: 12px}
-->
</style>
</head>

<body>

<table width="100%" style="border-collapse:collapse">
<tr  id="non-printable"><td width="88%"><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" class="style10" >
        <input type="hidden" id="cha_inv_no" name="cha_inv_no" value="<? echo $_REQUEST['cha_inv_no'] ?>" >
		
							    
        <div class="login-fields" id="non-printable" style="padding-left:5px;">
         <div class="field">
        			 <select name="space_01" id="space_01" class="login username-field input-small" required >
			<option>Select</option>
			<option value="<?php echo $_REQUEST['space_01']?>" selected="selected"><?php echo $_REQUEST['space_01']?></option>
			<option value="Null">Null</option>
			<option value="1">1</option>
			<option value="2">2</option>
    		<option value="3">3</option>
			<option value="4">4</option>
			</select>
			
			<input type="submit" value="Submit"></div></div></form></td>
  <td width="12%"><div id="div non-printable" style="padding-left:10px;"><a href="index.php">Back to Dashbaord </a></div></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center"><?php if($_REQUEST['cha_name']=='Aashirvadh') {?>
	<img src="header_barA.jpg"/>
	<?php } ?>
	<?php if($_REQUEST['cha_name']=='Threestar') {?>
	<img src="header_bar.jpg"/>
	<?php } ?>
	<?php if($_REQUEST['cha_name']=='Vector') {?>
	<img src="header_barV.jpg"/>
	<?php } ?>
    </div>
      <tr>
        <td colspan="3" class="style1"><table width="100%" border="1" bordercolor="#D1D1D1" style="border-collapse:collapse">
          <tr>
            <td width="6%" rowspan="4" class="style9"><div align="left" class="style11"><img src="logo.png"></div></td>
            <td colspan="3" class="style9"><div align="center" class="style11">|| ॐ श्री गणेशाय नम: ||</div></td>
            <td width="10%" rowspan="4" class="style9"><div align="center" class="style11"><img src="logo1.png"></div></td>
            
          </tr>
          <tr>
            <td colspan="3" class="style9"><div align="center"class="style11" style="padding:2px;"><strong>Subject to Navi Mumbai Jurisdiction</strong></div></td>
            
          </tr>
          <tr>
            <td colspan="3" class="style9"><div align="center"class="style11" style="padding:2px; color: #FF3399; font-size: 30px; font-family: Wide Latin;"><strong>PWS LLP</strong></div></td>
            
          </tr>
           <tr>
            <td colspan="3" class="style9"><div align="center"class="style11" style="padding:2px;"><strong>FLEET OWNERS, TRANSPORT CONTRACTORS & CONTAINER HANDLING</strong></div></td>
            
          </tr>




          <tr>
        <td colspan="3" class="style1"><table width="100%" border="1" bordercolor="#D1D1D1" style="border-collapse:collapse">
          <tr>
            <td class="style9"><div class="style11">FROM <?php echo $from_consignor;?> </div></td>
            <td class="style9"><div class="style11">TO <?php echo $to_consignor;?></div></td>
            <td class="style9"><div class="style11">G.C. NOTE NO. 2021/001</div></td>
       
          
          </tr>







      
      <tr>
        <td class="style1"><table width="100%"   style="border-collapse:collapse">
          <tr>
            <td class="style9"><div align="left" style="padding:3px;"><strong>Consignor  </strong></div></td>
            <td class="style9"><div align="left" style="padding:3px;"><?php echo $consignor_name;?>    
</div></td>
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>Address</strong></div></td>
            <td width="87%" class="style9"><div align="left" style="padding:3px; line-height:160%;"><?php echo $consignor_address;?></div></td>
          </tr>
        
        </table></td>
        <td class="style1"><table width="100%"   style="border-collapse:collapse">
          <tr>
            <td class="style9"><div align="left" style="padding:3px;"><strong>Consignee</strong></div></td>
            <td class="style9"><div align="left" style="padding:3px;"><?php echo $consignee_name;?> 
</div></td>
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>Address</strong></div></td>
            <td width="87%" class="style9"><div align="left" style="padding:3px; line-height:160%;"><?php echo $consignee_address;?>
            </div></td>
            
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>GST No. </strong></div></td>
            <td width="87%" class="style9"><div align="left" style="padding:3px; line-height:160%;"><?php echo $consignee_gstno;?>      

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

         <td class="style1"><table width="100%"   style="border-collapse:collapse">
          <tr>
            <td class="style9"><div align="left" style="padding:3px;"><strong>Date</strong></div></td>
            <td class="style9"><div align="left" style="padding:3px;"><?php echo $today;?>
</div></td>
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>Vehicle No. : </strong></div></td>
            <td width="87%" class="style9"><div align="left" style="padding:3px; line-height:160%;"><?php echo $vehicle_no;?> 
         </div></td>
            
          </tr>
          
        
        </table></td>
      </tr>

     
  
      <tr>
        <td colspan="4" class="style1"><table width="100%" border="1" bordercolor="#D1D1D1" style="border-collapse:collapse">
          <tr>
            <td width="6%" rowspan="3" class="style9"><div align="left" class="style11">Articles No.</div></td>
            <td width="70%" rowspan="3" class="style9"><div align="center" class="style11">Description</div></td>
            <td colspan="2" class="style9"><div align="center" class="style11">Weight</div></td>
            <td colspan="2" class="style9"><div align="center" class="style11">FREIGHT</div></td>
            
          </tr>

          <tr>
        <td class="style11"><div align="center" style="padding:2px;"><strong>ACTUAL</strong></div></td>
        <td class="style11"><div align="center" style="padding:2px;"><strong>CHARGED</strong></div></td>
            </td>
            <td class="style11"><div align="center" style="padding:2px;"><strong>TO PAY </strong></div></td>
              <td class="style11"><div align="center" style="padding:2px;"><strong>PAID</strong></div></td>
            </td>
          </tr>

          <tr>
            <td class="style11"><div align="center" style="padding:2px;"><strong>Kg</strong></div></td>
              <td class="style11"><div align="center" style="padding:2px;"><strong>Kg</strong></div></td>
            </td>
            <td class="style11"><div align="center" style="padding:2px;"><strong>Rs</strong></div></td>
              <td class="style11"><div align="center" style="padding:2px;"><strong>Rs</strong></div></td>
            </td>
          </tr>
        </table>
      </td>
    </tr>
          
	
      


 <tr>
        <td colspan="4" class="style1"><table width="100%" border="1" bordercolor="#D1D1D1" style="border-collapse:collapse">
          <tr>
            <td width="6%" rowspan="10" class="style9"><div align="left" class="style11">70 PKGS </div></td>
           
            
          </tr>


          <tr>
            <td width="70%" class="style11"><div align="left" style="padding:3px;"><strong>TRANSPORTATION SERVICE :</strong></div></td>
            
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>LOADED EXPORT / IMPORT / LOCAL:</strong></div></td>
            
          </tr>
           <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>CONTAINER NO.:</strong></div></td>
            
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>SEAL NO.:</strong></div></td>
            
          </tr>

          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>DESTINATION :</strong></div></td>
            
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>SHIPPING AGENT:</strong></div></td>
            
          </tr>
          <tr>
            <td width="13%" valign="top" class="style9"><div align="left" style="padding:3px;"><strong>BOOKING NO.:</strong></div></td>
            
          </tr>

           

          <tr>
            <td class="style11"><div align="center" style="padding:2px;"><strong>Kg</strong></div></td>
              <td class="style11"><div align="center" style="padding:2px;"><strong>Kg</strong></div></td>
            </td>
            <td class="style11"><div align="center" style="padding:2px;"><strong>Rs</strong></div></td>
              <td class="style11"><div align="center" style="padding:2px;"><strong>Rs</strong></div></td>
          
          </tr>
         

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


  
		 <tr>
        <td colspan="4" class="style1"><table width="100%"  style="border-collapse:collapse">
          <tr>
            <td class="style9"><div class="style11">Delivery at : <?php echo $delivery_at;?></div></td>

            <td width="30%" class="style9"><div class="style11">For Prajneel Worldwide Solutions LLP </div></td>
            
          </tr>

          <tr>
        <td colspan="4" class="style1"><table width="100%"  style="border-collapse:collapse">
          <tr>
            <td class="style9"><div class="style11">GST NO.: 27AAXFP7797C1ZC</div></td>
                

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

</body>
</html>
