<?php
$consignor_name     		= $get_bill_details->consignor_name;
$consignor_addr1    		= $get_bill_details->consignor_addr1;
$consignor_addr2    		= $get_bill_details->consignor_addr2;
$consignor_addr3    		= $get_bill_details->consignor_addr3;
$consignor_addr4    		= $get_bill_details->consignor_addr4;
$consignor_pin    			= $get_bill_details->consignor_pin;
$consignor_con_no  			= $get_bill_details->consignor_con_no;
$consignor_fax     			= $get_bill_details->consignor_fax;
$consignor_country  		= $get_bill_details->consignor_country;
$consignor_state    		= $get_bill_details->consignor_state;
$consignee_name     		= $get_bill_details->consignee_name;
$consignee_addr1    		= $get_bill_details->consignee_addr1;
$consignee_addr2    		= $get_bill_details->consignee_addr2;
$consignee_addr3    		= $get_bill_details->consignee_addr3;
$consignee_addr4    		= $get_bill_details->consignee_addr4;
$consignee_pin    			= $get_bill_details->consignee_pin;
$consignee_con_no  			= $get_bill_details->consignee_con_no;
$consignee_fax    			= $get_bill_details->consignee_fax;
$consignee_country  		= $get_bill_details->consignee_country;
$consignee_state    		= $get_bill_details->consignee_state;
$notify_name     			= $get_bill_details->notify_name;
$notify_addr1    			= $get_bill_details->notify_addr1;
$notify_addr2    			= $get_bill_details->notify_addr2;
$notify_addr3    			= $get_bill_details->notify_addr3;
$notify_addr4    			= $get_bill_details->notify_addr4;
$notify_pin    				= $get_bill_details->notify_pin;
$notify_con_no  			= $get_bill_details->notify_con_no;
$notify_fax    				= $get_bill_details->notify_fax;
$notify_country_name    	= $get_bill_details->notify_country_name;
$notify_state_name    		= $get_bill_details->notify_state_name;
$cmp_shrt_code     			= $get_bill_details->cmp_shrt_code;
$branch_shrt_code   		= $get_bill_details->branch_shrt_code;
$port_of_dis_shrt_code    	= $get_bill_details->port_of_dis_shrt_code;
$bill_no    				= $get_bill_details->bill_no;
$bill_products              = $get_bill_details->bill_products;
$date_of_issue             	= $get_bill_details->date_of_issue;
$pre_carriage              	= $get_bill_details->pre_carriage;
$voyage                    	= $get_bill_details->voyage;
$delivery_of_goods         	= $get_bill_details->delivery_of_goods;
$port_of_loading           	= $get_bill_details->port_of_loading;
$no_of_bl                  	= $get_bill_details->no_of_bl;
$freight_payment           	= $get_bill_details->freight_payment;
$ocean_vessel              	= $get_bill_details->ocean_vessel;
$place_of_delivery         	= $get_bill_details->place_of_delivery;
$freight_charges           	= $get_bill_details->freight_charges;
$place_receipt             	= $get_bill_details->place_receipt;
$place_issue               	= $get_bill_details->place_issue;
$port_of_dis_name          	= $get_bill_details->port_of_dis_name;

$container_no           	= $get_bill_details->container_no;
$goods             	        = $get_bill_details->goods;
$gross_weight               = $get_bill_details->gross_weight;
$cube_measure          	    = $get_bill_details->cube_measure;

?>

<!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>
		<link href="<?php echo base_url();?>assets/css/style.css" rel="stylesheet">
		<link href="<?php echo base_url();?>assets/css/bootstrap.css" rel="stylesheet">
		<style>
#watermark { position: fixed; bottom: 100px; right: 100px; width: 580px; height: 850px; opacity: .3; 
	-moz-transform:rotate(-30deg);
    -webkit-transform:rotate(16deg);}
</style>
	</head>
	<body style="height:1025px;">
		<div id="watermark">
			<img src="<?php echo base_url();?>images/draft.png" width="100%">
		</div>
		<div class="container" style="padding-left:0px;padding-right:0px;margin-right: none;margin-left: none;"> 
			<table border="1" width="100%" cellpadding="0" cellspacing="0" class="table_style" style="border: 1px solid black;">
				<tr>
					<td>
						<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table_style">
							<tr>
								<td>
									<table width="100%">
										<tr width="100%">
											<td width="57%" valign="top">
												<table border="0" width="100%" class="table_style">
													<tr style="border-bottom: 1px solid black;height: 125px;">
														<td style="padding: 2px 3px 10px 3px;border-right: 1px solid black;vertical-align: top;">
															<label style="font-size:11px;">Consignor</label>
															<br/>
															<span style="font-size:10px;">
																<?php echo strtoupper($consignor_name);?>
																<br/>
																<?php echo strtoupper($consignor_addr1);?>
																<br/>
																<?php echo strtoupper($consignor_addr2);?>
																<br/>
																<?php echo strtoupper($consignor_addr3);?>
																<br/>
																<?php echo strtoupper($consignor_addr4);?>
																<br/>Tel : <?php echo strtoupper($consignor_con_no);?> Fax: <?php echo strtoupper($consignor_fax);?>
																<br/>
															</span>
														</td>
													</tr>
													<tr style="border-bottom: 1px solid black;">
														<td style="padding: 2px 3px 10px 3px;height: 120px;border-right: 1px solid black;" valign="top">
															<label style="font-size:11px;">Consignee</label>
															<br/>
															<span style="font-size:10px;">
																<?php echo strtoupper($consignee_name);?>
																<br/>
																<?php echo strtoupper($consignee_addr1);?>
																<br/>
																<?php echo strtoupper($consignee_addr2);?>
																<br/>
																<?php echo strtoupper($consignee_addr3);?>
																<br/>
																<?php echo strtoupper($consignee_addr4);?>
																<br/>
															</span>
														</td>
													</tr>
													<tr>
														<td style="vertical-align:top;height:130px;padding: 2px 3px 10px 3px;border-right: 1px solid black;">
															<label style="font-size:11px;">Notify Address</label>
															<br/>
															<span style="font-size:10px;">
																<?php echo strtoupper($notify_name);?>
															</span>
															<br/>
															<br/>
															<span style="font-size:10px;">
																<?php echo strtoupper($notify_addr1);?>
																<br/>
																<?php echo strtoupper($notify_addr2);?>
																<br/>
																<?php echo strtoupper($notify_addr3);?>
																<br/>
																<?php echo strtoupper($notify_addr4);?>
																Tel: <?php echo strtoupper($notify_con_no);?> Fax: <?php echo strtoupper($notify_fax);?>
															</span>
														</td>
													</tr>
													<tr>
														<td>
															<table border="0" cellpadding="0" cellspacing="0" width="100%">
																<tr>
																	<td style="padding-left:3px;width:50%;border-top: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;height: 33px;">
																		<label style="font-size:11px;">Pre-Carriage by</label>
																		<br/>
																		<span style="font-size:10px;"><?php $pre_carriage_upper = strtoupper($pre_carriage);
																		echo nl2br($pre_carriage_upper);?></span>
																	</td>
																	<td style="padding-left:3px;width:50%;border-top: 1px solid black;border-bottom: 1px solid black;border-right: 1px solid black;height: 33px;">
																		<label style="font-size:11px;">Place Of Receipt</label>
																		<br/>
																		<span style="font-size:10px;"><?php $place_receipt_upper = strtoupper($place_receipt);
																		echo nl2br($place_receipt_upper);?></span>
																	</td>
																</tr>
																<tr>
																	<td style="padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;height: 33px;">
																		<label style="font-size:11px;">Ocean Vessel</label>
																		<br/>
																		<span style="font-size:10px;"><?php $ocean_vessel_upper = strtoupper($ocean_vessel);
																		echo nl2br($ocean_vessel_upper);?></span>
																	</td>
																	<td style="padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;height: 33px;">
																		<label style="font-size:11px;">Voyage</label>
																		<br/>
																		<span style="font-size:10px;"><?php $voyage_upper =  strtoupper($voyage);
																		echo nl2br($voyage_upper);?></span>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
											<td style="vertical-align: top;" width="43%">
												<table width="100%" border="0">
													<tr style="border-bottom: 1px solid black;">
														<td style="padding: 2px 3px 10px 3px;text-align: center;">
															<label style="font-size:11px;">Bill Of Landing Number</label>
															<br/>
															<span style="font-size:10px;">
															<?php echo $cmp_shrt_code."/".$branch_shrt_code."/".$port_of_dis_shrt_code."/".$bill_no."-".date("y");?>
															</span>
														</td>
													</tr>
													<tr>
														<td style="height: 200px;border-bottom: 1px solid black;">
														<img src="<?php echo base_url();?>images/bol_print_logo1.png" style="margin-left:55px;">
														</td>
													</tr>
													<tr>
														<td style="height:186px;border-bottom: 1px solid black;vertical-align: top;">
														<p style="text-align:justify;font-size: 8px;line-height: 17px;">
 														Received the goods in apparent good order and condition and as a specified below,according to Shipper's declaration-unless otherwise stated herein-weight,measure,marks,numbers,quality,contents and value unknown.The contract evidenced by this bill of Landing is subject to the exceptions,limitations,conditions and liberties(including those relating tp pre-carriage and on-carriage) set out in the Carrier's Standard Conditions of Carriage applicable to the voyage covered by thos Bill of Landing and operate on its date of issue. Those condition include incorporation of Hague Rules legislation encating the 1924 Bill of Landing Convention as to Carrier's responsibility for cargo,in the actual trade by iths own terms, unless the Hague-Visby Rules,contained in the Protocol of the 23rd February 1968, to amend the above mentioned Convention, are made mandatory under the law applicable.
 														</p>
 														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<table width="100%" border="0" class="table_style">
										<tr>
											<td style="padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;width: 28.5%;">
												<label style="font-size: 11px;">Port Of Loading</label><br/>
												<span style="font-size:10px;"><?php $port_of_loading_upper = strtoupper($port_of_loading);
												echo nl2br($port_of_loading_upper);?></span>
											</td>
											<td style="padding-left:3px;border-right: 1px solid black;border-bottom: 1px solid black;">
												<label style="font-size: 11px;">Port Of Discharge</label><br/>
												<span style="font-size:10px;"><?php $port_of_dis_name_upper = strtoupper($port_of_dis_name);
												echo nl2br($port_of_dis_name_upper);?></span>
											</td>
											<td style="text-align:center;border-right: 1px solid black;border-bottom: 1px solid black;">
												<label style="font-size: 11px;">Place Of Delivery</label><br/>
												<span style="font-size:10px;"><?php $place_of_delivery_upper = strtoupper($place_of_delivery);
												echo nl2br($place_of_delivery_upper);?></span>
											</td>
											<td style="text-align:center;border-bottom: 1px solid black;">
												<label style="font-size: 11px;">Number of Original B/L's</label><br/>
												<span style="font-size:10px;"><?php $place_of_delivery_upper = strtoupper($no_of_bl);
												echo nl2br($place_of_delivery_upper);?></span>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>	
								<td style="height: 350px;vertical-align: top;padding-top: 5px;">
									<table width="100%" class="table_style" border="0">
										<tr>
											<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
												<tbody>
													<tr>
														<td style="width:29%;"><span style="font-size:11px"><strong>Container Nos. / Marks &amp; Nos.</strong></span><p>&nbsp;</p></td>
														<td style="width: 42%;"><span style="font-size:11px"><strong>No.of Containers / Packages / Description of Goods</strong></span><p>&nbsp;</p></td>
														<td style="width: 19%;"><span style="font-size:11px"><strong>Gross Weight.</strong></span><p>&nbsp;</p></td>
														<td style="width: 10%;"><strong><span style="font-size:11px">Cube (m3)</span></strong><p>&nbsp;</p></td>
													</tr>
													<tr>
														<td><span style="font-size:10px;"><?php $container_no_upper = strtoupper($container_no);
												echo nl2br($container_no);?></span></td>
														<td><span style="font-size:10px;"><?php $goods_upper = strtoupper($goods);
												echo nl2br($goods_upper);?></span></td>
														<td><span style="font-size:10px;"><?php $gross_weight_upper = strtoupper($gross_weight);
												echo nl2br($gross_weight_upper);?></span></td>
														<td><span style="font-size:10px;"><?php $cube_measure_upper = strtoupper($cube_measure);
												echo nl2br($cube_measure_upper);?></span></td>
													</tr>
												</tbody>
											</table>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<table border="0" width="100%" class="table_style">
										<tr>
											<td style="vertical-align: top;border-right: 1px solid black;width:30%;">
											<label style="font-size: 11px;">Freight Charges</label><br/>
												<span style="font-size:10px;"><?php $freight_charges_upper = strtoupper($freight_charges);
												echo nl2br($freight_charges_upper);?></span>
											</td>
											<td style="width:70%;">
											<span style="font-size: 9px;text-align: justify;">
											The goods and materials are accepted and dealt with subject to the standard conditions printed overleaf.<br/><br/>Taken in charge inapparent good order &nbsp;and condition , unless otherwise noted herein, at&nbsp;the place of receipt for transport and delivery as mentioned above.<br/><br/>One of these original bills of Lading must be surrendered duly endorsed in exchange for the goods. In witness whereof the original Bills of<br/><br/> Lading all of this tenorand date have been signed in the number started below, one of which being accomplished the other(s) to be void.
											</span>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<table border="0" width="100%" class="table_style">
										<tr style="height: 90px;vertical-align: top;">
											<td style="border-right: 1px solid black;width:57%">
											<label style="font-size: 11px;">For Delivery of Goods</label><br/>
											<span style="font-size:10px;"><?php $delivery_of_goods_upper = strtoupper($delivery_of_goods);
											echo nl2br($delivery_of_goods_upper);?></span></td>
											<td style="border-right: 1px solid black;width:16%">
											<label style="font-size: 11px;">Freight Payment at</label><br/><span style="font-size:10px;"><?php $freight_payment_upper = strtoupper($freight_payment);
											echo nl2br($freight_payment_upper);?></span></td>
											<td style="border-right: 1px solid black;width:12%">
											<label style="font-size: 11px;">Place Of Issue</label><br/><span style="font-size:10px;"><?php $place_issue_upper =  strtoupper($place_issue);
											echo nl2br($place_issue_upper);?></span></td>
											<td>
											<label style="font-size: 11px;">Date Of Issue</label><br/><span style="font-size:10px;"><?php echo date("d/m/Y", strtotime($date_of_issue));?></span></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>
<style>
	.lb1 {}
	.floaright{float:right; text-align:right; font-weight:normal!important; }
	.floaright label{ font-size:14px; line-height:normal; font-weight:normal !important; }
	.floaleft label{ font-size:14px; line-height:normal; font-weight:normal !important; }
	.floaleft{float:left; text-align:left; font-weight:normal!important; }
	.mar {margin-top:-20px; }
	.blue-line {background-color:#3366FF; height:5px; margin-top:20px;}
	.tg  {border-collapse:collapse;border-spacing:0;border-color:#ccc;}
	.tg td{font-family:Arial, sans-serif; text-align:right;font-size:20px;border-style:solid;padding:5px 5px; border-width:0px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;}
	.tg th{font-family:Arial, sans-serif; text-align:right;font-size:20px;font-weight:normal;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#f0f0f0;}
	.tg .tg-e3zv{font-weight:bold}
	.tg .tg-76tn{background-color:#efefef}
	.CSSTableGenerator {
		margin:0px;padding:0px;
		width:100%;
		border:1px solid #c4c4c4;
		
		-moz-border-radius-bottomleft:0px;
		-webkit-border-bottom-left-radius:0px;
		border-bottom-left-radius:0px;
		
		-moz-border-radius-bottomright:0px;
		-webkit-border-bottom-right-radius:0px;
		border-bottom-right-radius:0px;
		
		-moz-border-radius-topright:0px;
		-webkit-border-top-right-radius:0px;
		border-top-right-radius:0px;
		
		-moz-border-radius-topleft:0px;
		-webkit-border-top-left-radius:0px;
		border-top-left-radius:0px;
	}.CSSTableGenerator table{
	    border-collapse: collapse;
	        border-spacing: 0;
		width:100%;
		height:100%;
		margin:0px;padding:0px;
	}.CSSTableGenerator tr:last-child td:last-child {
		-moz-border-radius-bottomright:0px;
		-webkit-border-bottom-right-radius:0px;
		border-bottom-right-radius:0px;
	}
	.CSSTableGenerator table tr:first-child td:first-child {
		-moz-border-radius-topleft:0px;
		-webkit-border-top-left-radius:0px;
		border-top-left-radius:0px;
	}
	.CSSTableGenerator table tr:first-child td:last-child {
		-moz-border-radius-topright:0px;
		-webkit-border-top-right-radius:0px;
		border-top-right-radius:0px;
	}.CSSTableGenerator tr:last-child td:first-child{
		-moz-border-radius-bottomleft:0px;
		-webkit-border-bottom-left-radius:0px;
		border-bottom-left-radius:0px;
	}.CSSTableGenerator tr:hover td{
		
	}
	.CSSTableGenerator tr:nth-child(odd){ background-color:#e5e5e5; }
	.CSSTableGenerator tr:nth-child(even)    { background-color:#ffffff; }.CSSTableGenerator td{
		vertical-align:middle;
		border:1px solid #c4c4c4;
		border-width:0px 1px 1px 0px;
		text-align:left;
		padding:7px;
		font-size:13px;
		font-family:Arial;
		font-weight:normal;
		color:#000000;
	}.CSSTableGenerator tr:last-child td{
		border-width:0px 1px 0px 0px;
	}.CSSTableGenerator tr td:last-child{
		border-width:0px 0px 1px 0px;
	}.CSSTableGenerator tr:last-child td:last-child{
		border-width:0px 0px 0px 0px;
	}
	.CSSTableGenerator tr:first-child td{
		background:-o-linear-gradient(bottom, #cccccc 5%, #b2b2b2 100%);	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #cccccc), color-stop(1, #b2b2b2) );
		background:-moz-linear-gradient( center top, #cccccc 5%, #b2b2b2 100% );
		filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#cccccc", endColorstr="#b2b2b2");	background: -o-linear-gradient(top,#cccccc,b2b2b2);
		background-color:#cccccc;
		border:0px solid #c4c4c4;
		text-align:center;
		border-width:0px 0px 1px 1px;
		font-size:14px;
		font-family:Arial;
		font-weight:bold;
		color:#000000;
	}
	.CSSTableGenerator tr:first-child:hover td{
		background:-o-linear-gradient(bottom, #cccccc 5%, #b2b2b2 100%);	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #cccccc), color-stop(1, #b2b2b2) );
		background:-moz-linear-gradient( center top, #cccccc 5%, #b2b2b2 100% );
		filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#cccccc", endColorstr="#b2b2b2");	background: -o-linear-gradient(top,#cccccc,b2b2b2);

		background-color:#cccccc;
	}
	.CSSTableGenerator tr:first-child td:first-child{
		border-width:0px 0px 1px 0px;
	}
	.CSSTableGenerator tr:first-child td:last-child{
		border-width:0px 0px 1px 1px;
	}
</style>