ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/awb_number_confirm_print(margin-none).php

<?php 
include("inc/config.php");
$list_id=array();
$list_id=$_GET['list_id'];
$li=explode(",",$list_id);
$k=0;
foreach($li as $lid)
{
    $k++;
    $statement = $pdo->prepare("SELECT tu.address as cust_address,tcu.cust_code as code,pk.read_status as read_status,pk.ref_no as bar,tcu.destination_city as dest,mat.short_desc as content,tu.phone as cust_phone,tu.short_location as short_location,tu.full_name as cust_name,tcu.cust_name as client_name,pk.address as client_address,pk.city as client_city,pk.state as client_state,pk.phone as client_phone, pk.pics as pieces,pk.c_weight as c_weights,pk.a_weight as a_weights,pk.created_at as created,pk.content_desc as descrp,pk.total_charges as tc,pk.other_charges as oc,pk.payment_mode as pay_mode,pk.gst_no as gst FROM pickup_entry as pk INNER JOIN tbl_user as tu INNER JOIN tbl_customer as tcu INNER JOIN material_desc as mat on pk.client_id=tu.id AND pk.customer_id=tcu.cust_id AND mat.id=pk.content_desc WHERE pk.awb_no='$lid'");
    $statement->execute();
    $result = $statement->fetchAll(PDO::FETCH_ASSOC);
    
    foreach ($result as $row) {
         
         $read_stat=$row['read_status'];
     
     if($read_stat==0){ 
          $statement_update = $pdo->prepare("UPDATE pickup_entry set read_status=1 WHERE awb_no='$lid'");
    	  $statement_update->execute();
     }
         
         
     $read_status[]=$row['read_status'];
     $cust_address[]=$row['cust_address'];
     $cust_phone[]=$row['cust_phone'];
     $cust_name[]=$row['cust_name'];
     $client_name[]=$row['client_name'];
     $client_address[]=$row['client_address'];
     $client_city[]=$row['client_city'];
     $client_state[]=$row['client_state'];
     $client_phone[]=$row['client_phone'];
     $pieces[]=$row['pieces'];
     $c_weights[]=$row['c_weights'];
     $gst[]=$row['gst'];
     $a_weights[]=$row['a_weights'];
     $total_charges[]=$row['tc'];
     $other_charges[]=$row['oc'];
     $desc[]=$row['content'];
     $pay_mode[]=$row['pay_mode'];
     $dest[]=$row['dest'];
     $day=date_create($row['created']);
     $date[]=date_format($day,'d-m-Y');
     $bar[]=$row['bar'];
     $code[]=$row['code'];
     $short_location[]=$row['short_location'];
     }
}

function address_limit($addr){
      // strip tags to avoid breaking any html
    $string = strip_tags($addr);
    if (strlen($string) > 110) {
    
        // truncate string
        $stringCut = substr($string, 0, 110);
        $endPoint = strrpos($stringCut, ' ');
    
        //if the string doesn't contain any space then it will cut without word basis.
        $string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
        $string .= '...';
    }
    echo $string;
}
?>


<style>
table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}

div {
  height: 1042px;
  width: 100%;
}
</style>

<body onload="window.print()">
<!--<body>-->
    
<?php 
for($i=0;$i<$k;$i++) {?>
<br>
    <br>
<div>
    
    <!--<?php 
    if($i!=0)
    {?>
        <table style="border: none;" width="100%" height="1%"><tr style="border: none;"><td style="border: none;"></td></tr></table>
    <?php }
    ?>-->
    
        <table border="1" width="97%" height="10%" style="margin: 0 auto;" >
        	<tr>
        		<td rowspan="2" width="15%">
        			<img src="img/speed_logo.jpg" width="90%" >
        		</td>
        		<td rowspan="2" width="32%">
        		    	<p style="font-size:13px;margin-left:2%;"><span style="font-size:15px;font-weight: 800"><b>SPEED LINK SERVICE</b></span><br>
        		    	#93/44, 2nd Main, 8th Cross,<br>
        				Wilson Garden,Bangalore-560027<br>
        				Mb No:+91 9880963232 <br>
        				E-speedlinkblr@gmail.com.<br>
        			 <span>	<b>GST NO : 29ALUPM9087C1ZB</b></span></p>
        		</td>
        		<td style="height: 31px;font-weight: 900;text-align:center;" width="5%">
        		    ORGIN
        		</td>
        		<td style="text-align: center;font-weight:bold;" width="15%">
        		    	DEST
        		</td>
        		<td style="text-align: center;font-weight:bold;" width="13%">
        		    	DATE
        		</td>
            	<td rowspan="2" style="text-align: center;" width="20%">
            	    <?php  echo "<img alt='testing' src='barcode/barcode.php?codetype=Code39&size=40&text=".$bar[$i]."&print=true' style='width: 90%;height:65%'/>";   ?><br>
            	    <span style="text-align: center;font-weight:bold;">AWB: <?php echo $bar[$i] ?></span>
        		</td>
        	</tr>
        	<tr>
        		<td style="text-align: center;font-weight:bold;"><?php echo $short_location[$i]; ?></td>
        		<td style="text-align: center;font-weight:bold;"><?php echo $dest[$i]; ?></td>
        		<td style="text-align: center;font-weight:bold;"><?php echo $date[$i]; ?></td>
            </tr>
        </table>
        <table border="1" width="97%" height="10%" style="margin: 0 auto;">
        	<tr style="height: 115px;">
        		<td width="5%">
        		    <p style="writing-mode: vertical-rl;font-weight:bold;" >CONSIGNOR</p>
        		</td>
                <td style="padding-left: 2%;font-size: 10px" width="40%"> 
          	  	    <p style="font-size: 10px;"><span>FROM :</span><br>
                    <?php echo $cust_name[$i];  ?>
                    <?php echo address_limit($cust_address[$i]);  ?><br>
                    PHONE : <?php echo $cust_phone[$i];  ?> GST NO: <?php echo $gst[$i];  ?></p>
                </td>
             <td width="5%"><p style="writing-mode: vertical-rl;font-weight:bold;">CONSIGNEE</p></td>
             <td style="padding-left: 2%;font-size: 10px" width="50%"> 
          	  	<p style="font-size: 10px;"><span>TO :</span><br>
                <?php echo $client_name[$i];  ?>
                <?php echo address_limit($client_address[$i]);  ?>
                <?php echo $client_city[$i];  ?>
                <?php echo $client_state[$i];  ?>
                <br>PHONE : <?php echo $client_phone[$i];  ?> &emsp;&emsp;<span style="font-size: 15px;font-weight:700;">DP CODE : <?php echo $code[$i];  ?></span></p>
                
                
             </td>
        	</tr>
        </table>
        <table border="1" width="97%" style="margin: 0 auto;">
        	<tr style="font-size: 11px;text-align:center;">
        		<td >BOOKING BRANCH</td>
        		<td >CONTENT-DESCRIPTION</td>
        		<td >NO.OF PIECES</td>
        		<td >ACTUAL WEIGHT</td>
        		<td >CHARGED WEIGHT</td>
        		<td >PAYMENT MODE</td>
        		<td >OTHER CHARGES</td>
        		<td >TOTAL</td>
        	</tr>
        	<tr style="font-size: 11px;text-align:center;">
        		<td >Head Office</td>
        		<td >Essential</td>
        		<td style="font-weight: 700;"><?php echo $pieces[$i];  ?></td>
        		<td style="font-weight: 700;"><?php echo $a_weights[$i];  ?></td>
        		<td style="font-weight: 700;"><?php echo $c_weights[$i];  ?></td>
        		<td >Credit</td>
        		<td >&#8377;<?php echo $other_charges[$i];  ?></td>
        		<td >&#8377;<?php echo $total_charges[$i];  ?></td>
        	</tr>
        </table>
        <table border="1" width="97%" style="margin: 0 auto;">
            	<tr>
        		    <td rowspan="2" style="text-align:left;" width="33%">
        		        <p style="margin-left: 2%;font-size: 10px;">THE LIABILTY OF SPEED LINK SERVICE FOR THE SHIPMENT IS RESTRICTED TO VALUE DECLARED OR MAXIMUM RS. 100/- WHICHEVER IS LESS I HEREBY AGREE TO THE CONDITIONS OF CARRIAGE ON THE BACK OF THIS AIRWAY BILLS CORRECT.</p>
        		    </td width="33%" >
        		     <td rowspan="2" style="text-align:left;font-size: 10px;">
        		         SENDERS SIGNATURE
        		    </td>
        		     <td colspan="2" width="33%" style="text-align:center;font-size: 10px;">
        		         RECEIVED IN GOOD CONDITION
        		    </td>
        		 </tr>
        		 <tr>
        		     <td style="text-align:left;font-size: 10px;" width="17%">
        		        STAMP        :<br>
                        SIGNATURE    :<br>
                        NAME         :<br>
                        RELATIONSHIP :<br>
        		     </td>
        		     <td style="text-align:left;font-size: 10px;" width="16%">
        		        DATE         :<br>
                        TIME         :
        		     </td>
        		 </tr>
        		    
        </table>
    <br>
    <br>
        <table border="1" width="97%" height="10%" style="margin: 0 auto;">
        	<tr>
        		<td rowspan="2" width="15%">
        			<img src="img/speed_logo.jpg" width="90%" >
        		</td>
        		<td rowspan="2" width="32%">
        		    	<p style="font-size:13px;margin-left:2%;"><span style="font-size:15px;font-weight: 800"><b>SPEED LINK SERVICE</b></span><br>
        		    	#93/44, 2nd Main, 8th Cross,<br>
        				Wilson Garden,Bangalore-560027<br>
        				Mb No:+91 9880963232 <br>
        				E-speedlinkblr@gmail.com.<br>
        			 <span>	<b>GST NO : 29ALUPM9087C1ZB</b></span></p>
        		</td>
        		<td style="height: 31px;font-weight: 900;text-align:center;" width="5%">
        		    ORGIN
        		</td>
        		<td style="text-align: center;font-weight:bold;" width="15%">
        		    	DEST
        		</td>
        		<td style="text-align: center;font-weight:bold;" width="13%">
        		    	DATE
        		</td>
        	<td rowspan="2" style="text-align: center;" width="20%">
        	    <?php  echo "<img alt='testing' src='barcode/barcode.php?codetype=Code39&size=40&text=".$bar[$i]."&print=true' style='width: 90%;height:65%'/>";   ?><br>
        	    <span style="text-align: center;font-weight:bold;">AWB: <?php echo $bar[$i] ?></span>
        		</td>
        	</tr>
        	<tr>
        		<td style="text-align: center;font-weight:bold;"><?php echo $short_location[$i]; ?></td>
        		<td style="text-align: center;font-weight:bold;"><?php echo $dest[$i]; ?></td>
        		<td style="text-align: center;font-weight:bold;"><?php echo $date[$i]; ?></td>
            </tr>
        </table>
        <table border="1" width="97%" height="10%" style="margin: 0 auto;">
        	<tr style="height: 115px;">
        		<td width="5%">
        		    <p style="writing-mode: vertical-rl;font-weight:bold;" >CONSIGNOR</p>
        		</td>
                <td style="padding-left: 2%;font-size: 10px" width="40%"> 
          	  	    <p style="font-size: 10px;"><span>FROM :</span><br>
                    <?php echo $cust_name[$i];  ?>
                    <?php echo address_limit($cust_address[$i]);  ?><br>
                    PHONE : <?php echo $cust_phone[$i];  ?> GST NO: <?php echo $gst[$i];  ?></p>
                </td>
             <td width="5%"><p style="writing-mode: vertical-rl;font-weight:bold;">CONSIGNEE</p></td>
             <td style="padding-left: 2%;font-size: 10px" width="50%"> 
          	  	<p style="font-size: 10px;"><span>TO :</span><br>
                <?php echo $client_name[$i];  ?>
                <?php echo address_limit($client_address[$i]);  ?>
                <?php echo $client_city[$i];  ?>
                <?php echo $client_state[$i];  ?>
                <br>PHONE : <?php echo $client_phone[$i];  ?> &emsp;&emsp;<span style="font-size: 15px;font-weight:700;">DP CODE : <?php echo $code[$i];  ?></span></p>
                
                
             </td>
        	</tr>
        </table>
        <table border="1" width="97%" style="margin: 0 auto;">
        	<tr style="font-size: 11px;text-align:center;">
        		<td >BOOKING BRANCH</td>
        		<td >CONTENT-DESCRIPTION</td>
        		<td >NO.OF PIECES</td>
        		<td >ACTUAL WEIGHT</td>
        		<td >CHARGED WEIGHT</td>
        		<td >PAYMENT MODE</td>
        		<td >OTHER CHARGES</td>
        		<td >TOTAL</td>
        	</tr>
        	<tr style="font-size: 11px;text-align:center;">
        		<td >Head Office</td>
        		<td >Essential</td>
        		<td style="font-weight: 700;"><?php echo $pieces[$i];  ?></td>
        		<td style="font-weight: 700;"><?php echo $a_weights[$i];  ?></td>
        		<td style="font-weight: 700;"><?php echo $c_weights[$i];  ?></td>
        		<td >Credit</td>
        		<td >&#8377;<?php echo $other_charges[$i];  ?></td>
        		<td >&#8377;<?php echo $total_charges[$i];  ?></td>
        	</tr>
        </table>
        <table border="1" width="97%" style="margin: 0 auto;">
            	<tr>
        		    <td rowspan="2" style="text-align:left;" width="33%">
        		        <p style="margin-left: 2%;font-size: 10px;">THE LIABILTY OF SPEED LINK SERVICE FOR THE SHIPMENT IS RESTRICTED TO VALUE DECLARED OR MAXIMUM RS. 100/- WHICHEVER IS LESS I HEREBY AGREE TO THE CONDITIONS OF CARRIAGE ON THE BACK OF THIS AIRWAY BILLS CORRECT.</p>
        		    </td width="33%" >
        		     <td rowspan="2" style="text-align:left;font-size: 10px;">
        		         SENDERS SIGNATURE
        		    </td>
        		     <td colspan="2" width="33%" style="text-align:center;font-size: 10px;">
        		         RECEIVED IN GOOD CONDITION
        		    </td>
        		 </tr>
        		 <tr>
        		     <td style="text-align:left;font-size: 10px;" width="17%">
        		        STAMP        :<br>
                        SIGNATURE    :<br>
                        NAME         :<br>
                        RELATIONSHIP :<br>
        		     </td>
        		     <td style="text-align:left;font-size: 10px;" width="16%">
        		        DATE         :<br>
                        TIME         :
        		     </td>
        		 </tr>
        		    
        </table>
    <br>
    <br>
        <table border="1" width="97%" height="10%" style="margin: 0 auto;">
        	<tr>
        		<td rowspan="2" width="15%">
        			<img src="img/speed_logo.jpg" width="90%" >
        		</td>
        		<td rowspan="2" width="32%">
        		    	<p style="font-size:13px;margin-left:2%;"><span style="font-size:15px;font-weight: 800"><b>SPEED LINK SERVICE</b></span><br>
        		    	#93/44, 2nd Main, 8th Cross,<br>
        				Wilson Garden,Bangalore-560027<br>
        				Mb No:+91 9880963232 <br>
        				E-speedlinkblr@gmail.com.<br>
        			 <span>	<b>GST NO : 29ALUPM9087C1ZB</b></span></p>
        		</td>
        		<td style="height: 31px;font-weight: 900;text-align:center;" width="5%">
        		    ORGIN
        		</td>
        		<td style="text-align: center;font-weight:bold;" width="15%">
        		    	DEST
        		</td>
        		<td style="text-align: center;font-weight:bold;" width="13%">
        		    	DATE
        		</td>
        	<td rowspan="2" style="text-align: center;" width="20%">
        	    <?php  echo "<img alt='testing' src='barcode/barcode.php?codetype=Code39&size=40&text=".$bar[$i]."&print=true' style='width: 90%;height:65%'/>";   ?><br>
        	    <span style="text-align: center;font-weight:bold;">AWB: <?php echo $bar[$i] ?></span>
        		</td>
        	</tr>
        	<tr>
        		<td style="text-align: center;font-weight:bold;"><?php echo $short_location[$i]; ?></td>
        		<td style="text-align: center;font-weight:bold;"><?php echo $dest[$i]; ?></td>
        		<td style="text-align: center;font-weight:bold;"><?php echo $date[$i]; ?></td>
            </tr>
        </table>
        <table border="1" width="97%" height="10%" style="margin: 0 auto;">
        	<tr style="height: 115px;">
        		<td width="5%">
        		    <p style="writing-mode: vertical-rl;font-weight:bold;" >CONSIGNOR</p>
        		</td>
                <td style="padding-left: 2%;font-size: 10px" width="40%"> 
          	  	    <p style="font-size: 10px;"><span>FROM :</span><br>
                    <?php echo $cust_name[$i];  ?>
                    <?php echo address_limit($cust_address[$i]);  ?><br>
                    PHONE : <?php echo $cust_phone[$i];  ?> GST NO: <?php echo $gst[$i];  ?></p>
                </td>
             <td width="5%"><p style="writing-mode: vertical-rl;font-weight:bold;">CONSIGNEE</p></td>
             <td style="padding-left: 2%;font-size: 10px" width="50%"> 
          	  	<p style="font-size: 10px;"><span>TO :</span><br>
                <?php echo $client_name[$i];  ?>
                <?php echo address_limit($client_address[$i]);  ?>
                <?php echo $client_city[$i];  ?>
                <?php echo $client_state[$i];  ?>
                <br>PHONE : <?php echo $client_phone[$i];  ?> &emsp;&emsp;<span style="font-size: 15px;font-weight:700;">DP CODE : <?php echo $code[$i];  ?></span></p>
                
                
             </td>
        	</tr>
        </table>
        <table border="1" width="97%" style="margin: 0 auto;">
        	<tr style="font-size: 11px;text-align:center;">
        		<td >BOOKING BRANCH</td>
        		<td >CONTENT-DESCRIPTION</td>
        		<td >NO.OF PIECES</td>
        		<td >ACTUAL WEIGHT</td>
        		<td >CHARGED WEIGHT</td>
        		<td >PAYMENT MODE</td>
        		<td >OTHER CHARGES</td>
        		<td >TOTAL</td>
        	</tr>
        	<tr style="font-size: 11px;text-align:center;">
        		<td >Head Office</td>
        		<td >Essential</td>
        		<td style="font-weight: 700;"><?php echo $pieces[$i];  ?></td>
        		<td style="font-weight: 700;"><?php echo $a_weights[$i];  ?></td>
        		<td style="font-weight: 700;"><?php echo $c_weights[$i];  ?></td>
        		<td >Credit</td>
        		<td >&#8377;<?php echo $other_charges[$i];  ?></td>
        		<td >&#8377;<?php echo $total_charges[$i];  ?></td>
        	</tr>
        </table>
        <table border="1" width="97%" style="margin: 0 auto;">
            	<tr>
        		    <td rowspan="2" style="text-align:left;" width="33%">
        		        <p style="margin-left: 2%;font-size: 10px;">THE LIABILTY OF SPEED LINK SERVICE FOR THE SHIPMENT IS RESTRICTED TO VALUE DECLARED OR MAXIMUM RS. 100/- WHICHEVER IS LESS I HEREBY AGREE TO THE CONDITIONS OF CARRIAGE ON THE BACK OF THIS AIRWAY BILLS CORRECT.</p>
        		    </td width="33%" >
        		     <td rowspan="2" style="text-align:left;font-size: 10px;">
        		         SENDERS SIGNATURE
        		    </td>
        		     <td colspan="2" width="33%" style="text-align:center;font-size: 10px;">
        		         RECEIVED IN GOOD CONDITION
        		    </td>
        		 </tr>
        		 <tr>
        		     <td style="text-align:left;font-size: 10px;" width="17%">
        		        STAMP        :<br>
                        SIGNATURE    :<br>
                        NAME         :<br>
                        RELATIONSHIP :<br>
        		     </td>
        		     <td style="text-align:left;font-size: 10px;" width="16%">
        		        DATE         :<br>
                        TIME         :
        		     </td>
        		 </tr>
        		    
        </table>
    <br>
    <br>
</div><br>
    <br>
<?php  }?>
</body>


















Zerion Mini Shell 1.0