ok

Mini Shell

Direktori : /home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : /home2/selectio/www/lilyexpresslive/software/admin/awb_number_confirm_print-single-copy-1.php

<?php 
include("inc/config.php");
$list_id=array();
$list_id=$_GET['list_id'];
$li=explode(",",$list_id);
$k=0;
function custom_echo($x, $length)
        {
          if(strlen($x)<=$length)
          {
            echo $x;
          }
          else
          {
            $y=substr($x,0,$length);
            echo $y."....";
          }
        }
        
foreach($li as $lid)
{
    $k++;
    $statement = $pdo->prepare("SELECT pk.client_id,pk.invoice_no,pk.office_customer_name,pk.office_customer_address,pk.pincode,pk.invoice_value,pk.e_way_bill_no,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.location as 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,(SELECT full_desc FROM `material_desc` where id=pk.content_desc) as content_descs,pk.* 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.id='$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=2 WHERE id='$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'];
     $pincode[]=$row['pincode'];
     
     
     $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'];
     $location[]=$row['location'];
     $invoice_no[]=$row['invoice_no'];
     $invoice_value[]=$row['invoice_value'];
     $e_way_bill_no[]=$row['e_way_bill_no'];
     $content_desc[]=$row['content_descs'];
     
     $office_customer_name[]=$row['office_customer_name'];
     $office_customer_address[]=$row['office_customer_address'];
     $client_id[]=$row['client_id'];
     }
}

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>

div {
  height: 1042px;
  width: 100%;
}

.watermark {
  display: block;
  position: relative;
}

.watermark::after {
  content: "";
    background: url(img/logo.png);
    opacity: 0.07;
    top: 22%;
    left: 22%;
    bottom: 0%;
    background-size: 400px 250px;
    background-repeat: no-repeat;
    right: 0%;
    text-align: center;
    position: absolute;
    z-index: -1; 
}

</style>
<style type="text/css">
	table,th {
  border: 1px solid;
}
td {
  border: 1px solid;
  padding: 0px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.dashed {border-style: dashed;
margin-top: 10px;
color:white;
}

 @page{
     size: auto;   /* auto is the initial value */ 
    margin: 2mm 2mm 5mm 2mm;
 }
@media print  
{ 
    * {
         
        -webkit-print-color-adjust: exact;
    }
     
    
} 
</style>

<body onload="window.print()">
<!--<body>-->
    
<?php 
for($i=0;$i<$k;$i++) { ?>



    
<?php for($ids=1;$ids<=1;$ids++){ ?>
<p style='min-height:288mm;'>
<table style="border: none;padding:0px;" class="watermark"><tr><td style="border: none;padding:0px;">
<table style="border-bottom: none;">
	<tr>
		<td width="20%" style="border-right: none;padding-left: 2px;border-bottom: none;">
			<img src="img/logo.png" style="width: 80%;">
		</td>
		<td width="20%" style="border-left: none;padding: 2px;vertical-align: top;border-bottom: none;">
	        <p style="font-size:10px;margin-left:2%;">
	        	<b style="font-size:12px;font-weight: 900">SPEED LINK SERVICE</b><br>
		    	#6, Huskur Main Road,<br>
				Makali, Bangalore-562123<br>
				Ph : +9180 2963 0029,<br>
				Mb no : +91 9880963232<br>
				E-mail : info@speedlinkservices.in<br>
			 	<b>GST NO : 29ALUPM9087C1ZB</b></p>
		</td>
		<td width="30%" style="padding: 2px;vertical-align: top;border-bottom: none;">
			<table style="vertical-align: top;">
				<tr style="vertical-align: top;">
					<td style="padding: 2px;vertical-align: top;border-bottom:none;" class="bg">
						<center style="font-size:12px;">BOOKING DATE</center>
					</td>				
				</tr>
				<tr style="border: none;text-align:center">
					<td style="padding: 3px;border-top:none;">
						<!--<b><?=$location[$i]?></b>-->
						<b><?=$date[$i]?></b>
					</td>				
				</tr>
				
			    <tr style="border: none;vertical-align: top;">
					<td style="padding: 2px;vertical-align: top;border-bottom:none;" class="bg">
						<center style="font-size:12px;">DESTINATION</center>
					</td>				
				</tr>
				<tr style="border: none;text-align:center">
					<td style="padding: 3px;border-top:none;">
						<!--<b><?=$date[$i]?></b>-->
						<b><?=$dest[$i]?></b>
					</td>				
				</tr>
			</table>
			
		</td>
		<td width="23%" style="vertical-align: top;border-bottom: none;">
			<table style="border: none;vertical-align: top;border-bottom: none;">
				<tr style="border: none;vertical-align: top;">
					
					<td style="border: none;text-align:center" >
					    <center>AWB No:<br>
						<img alt="testing" class="img_bar" src="barcode/barcode.php?codetype=Code128&amp;size=40&amp;text=<?=$bar[$i]?>&amp;" style="width: 80%;height:40px"><br><b style="font-size:20px;font-weight:900;"><?=$bar[$i]?></b>
					</center></td>
				</tr>
			<!--	<tr style="border: none;">
									
				</tr>-->
			</table>
		</td>
	</tr>
</table>
<table style="border:none;">
	<tr>
		<td width="38%" style="">
			<table style="border:none;font-size:10px;">
				<tr>
					<td class="bg" width="10%" rowspan="7" style="text-align: center;font-size:12px;border-left: none;border-bottom: none;"><b style="font-weight:bold;writing-mode: vertical-rl;">CONSIGNOR</b></td>
					
					<td style="border:none ;padding:3px;padding-left:10px;">
					<p style="line-height: 14px;font-weight: bold;">
					    <b><?php if($client_id[$i]==1) { echo $office_customer_name[$i]."<br>"; }else{ echo $cust_name[$i]."<br>"; }?></b>
					    <b><?php if($client_id[$i]==1) {
					        echo nl2br($office_customer_address[$i]);
					    }else{
					    echo nl2br($cust_address[$i]);
					    if($gst[$i]!=""){ echo "<br>GST NO: ".$gst[$i]; } }?>
			</b>
					</p>
					</td>
					<td width="0%" style="border:none ;padding:0px;">
					    <p style="border:none ;padding:0px;min-height:125px;"></p>
					</td>
				</tr>
				
			</table>
		</td>
		<td width="50%" style="">
			<table style="border:none;font-size:10px;">
				<!--<tr style="border:none;">
					<td  colspan="2" style="font-size:12px;border:none;border-left:none;border-bottom:none;">
					    <table style="font-size:12px;border: none;">
					        <tr>
					            <td width="30%" style="border:none;padding:3px;" class="bg">DESTINATION</td>
					            <td style="border:none;padding-left:10px;"><b style="font-weight:900;font-size:16px;">: <?=$dest[$i]?></b></td>
					        </tr>
					    </table>
					 </td>
				</tr>-->
				<tr>
					<td class="bg" width="7%" rowspan="7" style="text-align: center;font-size:12px;border-left: none;border-bottom: none;"><b style="font-weight:bold;writing-mode: vertical-lr;">CONSIGNEE</b></td>
				    <td style="border:none ;padding:3px;padding-left:10px;padding-top:0px;">
					<p style="line-height: 14px;font-weight: bold;">
					    <?php if($code[$i]!=""){ echo "<b style='font-size:14px;font-weight:900;'>DP CODE : ".$code[$i].""; } ?></b><br><b style='font-size:12px'><?php if($client_id[$i]==1) { echo $office_customer_name[$i]; }else{ echo $client_name[$i]; }?></b><br>
					    <?=custom_echo($client_address[$i], 150)?>
					     <!--<?=nl2br($client_address[$i])?>-->
					    <?php if($client_city[$i]!=""){ echo "<br>".$client_city[$i]; } ?>
					    <?php if($client_state[$i]!=""){ echo ",".$client_state[$i]; }?>
					    <?php if($pincode[$i]!=""){ echo "-".$pincode[$i]; }?>
					    <?php if($client_phone[$i]!=""){ echo "<br><b>Phone : ".$client_phone[$i]."</b>"; } ?>
					    
					    
					</p>
					</td>
					<td width="0%" style="border:none ;padding:0px;">
					    <p style="border:none ;padding:0px;min-height:125px;"></p>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table style="text-align: center;font-size:12px;">	
				<tr  style="vertical-align: center;">
					<td class="bg" width="13%" style="padding:2px;">NO Of PCS</td><td width="7%" style="padding:0px;"><b style="font-size:16px;"><?=$pieces[$i]?></b>&nbsp;</td>
					<td width="15%" class="bg" style="padding:2px;">ACTUAL WEIGHT</td>
					<td width="8%" style="padding:2px;"><b style="font-size:16px;"><?=$a_weights[$i]?></b>&nbsp;</td>
				<!--<td width="25%"class="bg" style="padding:2px;border:none;border-bottom:none;"><b>DESCRIPTION OF GOODS</b></td>
				<td width="50%"style="padding:2px;border-top:none;"><b><?=$content_desc[$i]?></b>&nbsp;</td>-->
				

				    <td width="70%" colspan="2" style="text-align:center;"><b style="padding:2px;font-size: 12px;">RECEIVED IN GOODS CONDITION</b></td>
				
				</tr>
</table>
 <table style="text-align: center;font-size: 10px;vertical-align:top;">
					    <tr>
					        <td style="padding-left: 5px;padding: 2px;border-top: none;border-left: none;vertical-align:top;" width="10%">
					            <!--<img src="img/qrcode.png" >-->
					            <img width="80%" src="https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=https://speedlinkservices.com/track_details.php?track_id=<?php echo $bar[$i] ?>&choe=UTF-8" title="Speedlink Services" />
					        <span style="font-size:9px;">Scan QR Code For Your Shipment Tracking...</span>
					        </td>
						<td style="padding-left: 5px;padding: 2px;border-top: none;border-left: none;vertical-align:top;" width="33%">
							<table style="border:none;font-size: 10px;">
							    
							    <tr>
									<td  colspan="2" style="border:none;text-align: center;padding: 2px;">
										<b style="font-size: 10px;text-align: center;">Consignor's Declaretion</b>
									</td>
								</tr>
								<tr>
									<td colspan="2" style="font-size: 9px;border:none;text-align: left;padding-left: 5px;padding: 2px;"><p>I / We have read carefully & verified the contents filled in this Docket and agree to the terms and coditions printed overleaf of the Docket and will pay all charges as per tariff mentioned in this Docket or as per the agreement.</p></td>
								</tr>
								<!--<tr>
									<td style="border:none;text-align: left;padding: 2px;height: 35px;vertical-align: bottom;text-align:center;"><b>Signature</b></td>
									<td style="border:none;text-align: left;padding: 2px;height: 35px;vertical-align: bottom;text-align:center;"><b>Date : </b></td>
								</tr>-->
								<tr>
									<td style="border:none;text-align: left;padding: 2px;height: 15px;vertical-align: bottom;text-align:center;" colspan="2"><b>For </b></td>
								</tr>
								<tr>
									<td style="border:none;text-align: left;padding: 2px;height: 15px;vertical-align: bottom;text-align:center;" colspan="2"><b><?php if($client_id[$i]==1) { echo $office_customer_name[$i]; }else{ echo $cust_name[$i]; }?> </b></td>
								</tr>
								
							</table>
</td>
						<td rowspan="3" style="vertical-align:top;padding: 2px;border-top: none;border-right: none;border-bottom: none;">
							
							<table style="border:none;font-size: 8px;font-weight: bold;text-align:left;">
							    
								<tr>
									<td width="50%" style="border:none;padding: 2px;padding-top: 5px;opacity: 0.5;font-weight: 900;">NAME</td>
									<td style="border:none;padding: 2px;padding-top: 5px;padding-left: 30px;font-weight: 900;opacity: 0.5;">DATE & TIME</td>
								</tr>
								<tr>
									<td style="border:none;padding: 2px;height: 50px;opacity: 0.5;font-weight: 900;">SEAL</td>
									<td style="border:none;padding: 2px;height: 50px;padding-left: 30px;opacity: 0.5;font-weight: 900;">RELATION</td>
								</tr>
								
								<tr>
									<td style="border:none;padding: 1px;padding-bottom: 3px;vertical-align:bottom;opacity: 0.5;font-weight: 900;">SIGNATURE</td>
									<td style="border:none;padding: 2px;padding-bottom: 1px;padding-left: 30px;vertical-align:bottom;opacity: 0.5;font-weight: 900;">REMARK</td>
								</tr>
							</table>

						</td>
					</tr>
				
</table>  
</td></tr></table>
</p>
<?php }  }?>
</body>


















Zerion Mini Shell 1.0