

<?php 

$branch_address="135, 1, Lal Bagh Main Rd, K.S. Garden,
Raja Ram Mohanroy Extension, Sudhama Nagar,
Bengaluru,Karnataka-560027";
$branch_mobile="918042226656";


$booking_date='2024-04-30';;
$awb_no='918042226656';

$shipper_name='REALME MOBILE TELECOMMUNICATIONS (INDIA)PRIVATE LIMITED';
$shipper_address='Sy.no 44/1, 44/2, 55/1, 55/2, Devalapura Village,Devanagundi Gram panchayat Hoskote Taluk,Hanugondanhalli Hobli, Devalapura Village, Janatha Colony,Devanagundi,Bengaluru Rural, Karnataka, 560067';
$shipper_city='GAUTAMBUDDHA NAGAR';
$shipper_state='Karnataka';
$shipper_pincode='560067';
$shipper_phone='9901489452';


$consignee_name='REALME MOBILE TELECOMMUNICATIONS (INDIA)PRIVATE LIMITED';
$consignee_address='Sy.no 44/1, 44/2, 55/1, 55/2, Devalapura Village,Devanagundi Gram panchayat Hoskote Taluk,Hanugondanhalli Hobli, Devalapura Village, Janatha Colony,Devanagundi,Bengaluru Rural, Karnataka, 560067';
$consignee_city='GAUTAMBUDDHA NAGAR';
$consignee_state='Karnataka';
$consignee_pincode='560067';
$consignee_phone='9901489452';


$invoice_no='';
$invoice_value='';
$e_way_bill_no='';
$box='';
$a_weight='';



function address_limit($addr){
    $string = strip_tags($addr);
    if (strlen($string) > 110) {
        $stringCut = substr($string, 0, 110);
        $endPoint = strrpos($stringCut, ' ');
        $string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
        $string .= '...';
    }
    echo $string;
}

function no_limit($addr){
    $string = strip_tags($addr);
    if (strlen($string) > 18) {
        $stringCut = substr($string, 0, 18);
        $endPoint = strrpos($stringCut, ' ');
        $string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
        $string .= '..';
    }
    echo $string;
}
?>


<?php for($r=1;$r<4;$r++){ ?>
<table style="width:100%;">
    <tr>
        <td width="18%" style="border-right: none;padding-left: 2px;border-bottom: none;">
            <center>	<img src="img/sri-hari-logo.png" style="width: 100%;"></center>
        </td>
        <td style="font-size:12px;padding:5px;border-left:none;">
            <b style="font-size:14px;font-weight: 900">SRI HARI AGENCY</b><br>
		        <?=$branch_address?><br>
				PHONE : <?=$branch_mobile?>
        </td>
        <td style="width:30%;vertical-align:top;">
            <table style="vertical-align: top;width:100%;border:none;">
				<tr style="vertical-align: top;">
					<td style="padding: 2px;vertical-align: top;border: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;border:none;">
						<b><?=$booking_date?></b>
					</td>				
				</tr>
					<tr style="border: none;vertical-align: top;">
					<td style="padding: 2px;vertical-align: top;border-bottom:none;border-left:none;border-right: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;border:none;">
						<b><b><?=$consignee_city?></b></b> 
					</td>				
				</tr>
			</table>
        </td>
        <td width="20%" style="vertical-align: top;border-bottom: none;padding-top: 2px;">
			<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=Code39&amp;size=40&amp;text=<?=$awb_no?>&amp;" style="width: 80%;height:40px"><br><b style="font-size:20px;font-weight:900;"><?=$awb_no?></b></center>
					</td>
				</tr>
			</table>
		</td>
    </tr>
</table>
<table style="width:100%;">
    <tr>
        <td style="width:60%">
            <table style="border:none;font-size:10px;">
				<tr>
					<td class="bg" width="7%" rowspan="7" style="text-align: center;border-top: none;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><b><?=$shipper_name?></b></b><br>
					    <b><?=nl2br($shipper_address)?></b><br>
					    <b><?=$shipper_city?>,<?=$shipper_state?>,<?=$shipper_pincode?></b><br>
					    <b><?=$shipper_phone?></b><br>
					    </p>
					</td>
					<td width="0%" style="border:none ;padding:0px;">
					    <p style="border:none ;padding:0px;min-height:100px;"></p>
					</td>
				</tr>
				
			</table>
        </td>
        <td rowspan="2" style="width:40%"></td>
    </tr>
    <tr>
        <td style="width:60%">
            <table style="border:none;font-size:10px;">
				<tr>
					<td class="bg" width="7%" rowspan="7" style="text-align: center;border-top: none;font-size:12px;border-left: none;border-bottom: none;"><b style="font-weight:bold;writing-mode: vertical-rl;">
					    CONSIGNEE</b></td>
					
					<td style="border:none ;padding:3px;padding-left:10px;">
					<p style="line-height: 14px;font-weight: bold;">
					   
					    <b><b><?=$shipper_name?></b></b><br>
					    <b><?=nl2br($shipper_address)?></b><br>
					    <b><?=$shipper_city?>,<?=$shipper_state?>,<?=$shipper_pincode?></b><br>
					    <b><?=$shipper_phone?></b><br>
					    </p>
					</td>
					<td width="0%" style="border:none ;padding:0px;">
					    <p style="border:none ;padding:0px;min-height:100px;"></p>
					</td>
				</tr>
				
			</table>
        </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="8%">
<img width="100%" src="qr/index.php?text=https://srihariagencies.com/tracking.php?track_id==<?php echo $awb_no ?>&choe=UTF-8" title="SRI Hari AGENCIES" />
					        </td>
						<td style="padding-left: 5px;padding: 2px;border-top: none;border-left: none;vertical-align:top;" width="52%">
							<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="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: 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><?=$shipper_name?>     </b></td>
								</tr>
							</table>
</td>
						<td rowspan="2" 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: 45px;opacity: 0.5;font-weight: 900;">SEAL</td>
									<td style="border:none;padding: 2px;height: 45px;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>
<?php } ?>

<br>





<table style="border: none;" class="watermark">
    <tr>
        <td style="border: none;">    
<table style="border-bottom: none;">
	<tr>
		<td width="18%" style="border-right: none;padding-left: 2px;border-bottom: none;">
			<center>	<img src="img/sri-hari-logo.png" style="width: 65%;"></center>
		</td>
		<td width="22%" 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">SRI HARI AGENCY</b><br>
		        <?=$branch_address?><br>
				PHONE : <?=$branch_mobile?><br></p>
		</td>
		<td width="28%" 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><?=$booking_date?></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><b><?=$consignee_city?></b></b> 					</td>				
				</tr>
			</table>
			
		</td>
		<td width="25%" style="vertical-align: top;border-bottom: none;padding-top: 2px;">
			<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=Code39&amp;size=40&amp;text=<?=$awb_no?>&amp;" style="width: 80%;height:40px"><br><b style="font-size:20px;font-weight:900;"><?=$awb_no?></b></center>
					</td>
				</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="7%" rowspan="7" style="text-align: center;border-top: none;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><b><?=$shipper_name?></b></b><br>
					    <b><?=nl2br($shipper_address)?></b><br>
					    <b><?=$shipper_city?>,<?=$shipper_state?>,<?=$shipper_pincode?></b><br>
					    <b><?=$shipper_phone?></b><br>
					    </p>
					</td>
					<td width="0%" style="border:none ;padding:0px;">
					    <p style="border:none ;padding:0px;min-height:140px;"></p>
					</td>
				</tr>
				
			</table>
		</td>
		<td width="50%" style="vertical-align:top;">
			<table style="border:none;font-size:10px;">
				<tr>
					<td class="bg" width="7%" rowspan="7" style="text-align: center;font-size:12px;border-left: none;border-bottom: none;border-top: none;"><b style="font-weight:bold;writing-mode: vertical-lr;">
					    CONSIGNEE</b></td>
					
				<td style="border:none ;padding:3px;padding-left:10px;">
					<p style="line-height: 14px;font-weight: bold;">
				 					    <b><?=$consignee_name?> </b><br>
					                      <?=$consignee_address?><br>
					                      <?=$consignee_city?>,<?=$consignee_state?> -<?=$consignee_pincode?>
					                      <br>Phone : <?=$consignee_phone?></p>
					</td>
					<td width="0%" style="border:none ;padding:0px;vertical-align:top;">
					    <p style="border:none ;padding:0px;min-height:140px;"></p>
					</td>
				</tr>
			</table>
		</td>

		
	</tr>

		<tr>
			<td colspan="2" style="border-bottom:none;">
				<table style="border:none;text-align: center;font-size: 10px;">
					<tr>
					<td  rowspan="6" width="43%" style="vertical-align:top;padding-left:2px;padding-right:2px;padding-top:2px;border-top-color:white;border-left-color: white;border-bottom:none;">
						<table style="text-align: center;">
							<tr>
								<td class="bg" colspan="5" style="border-bottom:none;">DIMENSIONS</td>
							</tr>
							<tr style="border:none;font-size:12px;">
								<td class="bg" style="padding:2px;border:none;">Length</td>
								<td class="bg" style="padding:2px;border:none;">Width</td>
								<td class="bg" style="padding:2px;border:none;">Height</td>
								<td class="bg" style="padding:2px;border:none;">No of Box</td>
								<td class="bg" style="padding:2px;border:none;">Act WT</td>
							</tr>
							<?php
							
							$volu_count =0;
							
							for ($r = $volu_count; $r < 5; $r++){
							
							?>
							<tr  style="vertical-align: center;font-size:12px;">
    								<td style="padding:2px;">&nbsp;</td>
    								<td style="padding:2px;">&nbsp;</td>
    								<td style="padding:2px;">&nbsp;</td>
    								<td style="padding:2px;">&nbsp;</td>
    								<td style="padding:2px;">&nbsp;</td>
							</tr>
							
							<?php } ?>

						</table>				
					</td>
					<td  style="vertical-align:top;padding-left:2px;border-top-color:white; border-bottom:none;padding-top:2px;padding-right:2px;">
					    <table style="text-align: center;font-size:12px;">	
					    	<tr  style="vertical-align: center;">
								<td class="bg" style="padding:2px;border-bottom:none;">INVOICE NO</td>
								<td class="bg" style="padding:2px;border-bottom:none;">INVOICE VALUE</td>
								<td class="bg" style="padding:2px;border-bottom:none;">E-WAY BILL NO</td>
							</tr>
								<td  style="padding:2px;border-top:none;"><b><?=no_limit($invoice_no)?></b>&nbsp;</td>
								<td  style="padding:2px;border-top:none;"><b><?=no_limit($invoice_value)?></b>&nbsp;</td>
								<td  style="padding:2px;border-top:none;"><b><?=no_limit($e_way_bill_no)?></b>&nbsp;</td>
							<tr  style="vertical-align: center;">
								<td class="bg" style="padding:2px;border-bottom:none;">NO Of PCS</td>
								<td class="bg" style="padding:2px;border-bottom:none;">ACTUAL WEIGHT</td>
								<td class="bg"  style="padding:2px;border-bottom:none;">CHARGED WEIGHT</td>
							</tr>
							<tr  style="vertical-align: center;">
								<td style="padding:2px;border-top:none;"><b><?=$box?></b>&nbsp;</td>
								<td style="padding:2px;border-top:none;"><b><?=$a_weight?></b>&nbsp;</td>
								<td style="padding:2px;border-top:none;" ><b></b>&nbsp;</td>
							</tr>
							
							
						
							<tr  style="vertical-align: center;">
								<td class="bg" style="padding:2px;border-bottom:none;">DESCRIPTION OF GOODS</td>
								<td class="bg" style="padding:2px;border-bottom:none;">DOCKET TYPE</td>
								<td class="bg"  style="padding:2px;border-bottom:none;">&nbsp;</td>
							</tr>
							<tr  style="vertical-align: center;">
								<td style="padding:2px;border-top:none;"><b><?=$content_desc[$i]?></b>&nbsp;</td>
								<td style="padding:2px;border-top:none;"><b>&nbsp;</b>&nbsp;</td>
								<td style="padding:2px;border-top:none;" ><b>&nbsp;</b>&nbsp;</td>
							</tr>
							
							<tr  style="vertical-align: center;">
								<td  class="bg" colspan="3" style="padding:2px;"><b>RECEIVED IN GOODS CONDITION</b></td>
							</tr>
						
						</table>
					    
					</td>
					</tr>
				</table>

			</td>
	</tr>
	<tr>
			<td colspan="2" style="border-top: none;vertical-align:top;">
				<table style="border:none;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="13%">
<img width="80%" src="qr/index.php?text=https://srihariagencies.com/tracking.php?track_id==<?php echo $awb_no ?>&choe=UTF-8" title="SRI Hari AGENCIES" />
					        <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="30%">
							<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="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: 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><?=$shipper_name?>     </b></td>
								</tr>
							</table>
</td>
						<td rowspan="2" 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: 90px;opacity: 0.5;font-weight: 900;">SEAL</td>
									<td style="border:none;padding: 2px;height: 90px;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>
</td style="border-bottom: none;">
<td style="border: none;padding:5px;" class="bg">
<b style="font-weight:bold;writing-mode: vertical-rl;">CONSIGNOR</b>
</td>
</tr>
</table>


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

table {
  width: 100%;
  border-collapse: collapse;
}
.watermark {
  display: block;
  position: relative;
}

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

 @page{
    size: A4;
    margin: 5mm 5mm 5mm 5mm;
 }
@media print  
{ 
    * {
         
        -webkit-print-color-adjust: exact;
    }
     
    size: A4;
}
.bg{
   
   color: black;
   /*font-weight: bold;*/
   -webkit-print-color-adjust: exact; 
   }
   .dashed {border-style: dashed;
    margin-top: 30px;
    margin-bottom: 28px;
   }
   .old-dashed {border-style: dashed;
    margin-top: 25px;
    margin-bottom: 25px;
   }
</style>