<style>
th, td {
  text-align: center;
  vertical-align: middle;
}

.table>thead>tr>th {
  text-align: center !important;
  vertical-align: middle !important;
}
</style>

<h1 class="page-title"> Order Details </h1>

<div class="row">
	<div class="col-md-12">
		<div class="portlet box blue-hoki">
			<div class="portlet-title">
				<div class="caption">
					<i class="fa fa-cogs"></i><strong>Order : <?php echo getSOData($so_id, "order_no"); ?></strong> 
				</div>
			</div>
			<div class="portlet-body">	
				<div class="tabbable-line">
					<ul class="nav nav-tabs nav-tabs-lg">
						<?php if(getSOData($so_id, "po_id") <> null){ ?>
						<li class="active">
							<a href="#podetails" data-toggle="tab" aria-expanded="true"> Purchase Order </a>
						</li>
						<li>
							<a href="#sodetails" data-toggle="tab" aria-expanded="false"> Shipping Order </a>
						</li>
						<?php }else{ ?>	
						<li class="active">
							<a href="#sodetails" data-toggle="tab" aria-expanded="true"> Shipping Order </a>
						</li>
						<?php } ?>		
						<?php if(getSOData($so_id, "status") <> 0){ ?>
						<li>
							<a href="#arrangements" data-toggle="tab" aria-expanded="false"> Arrangements </a>
						</li>
						<?php } ?>						
					</ul>
					<div class="tab-content form">	
						<?php if(getSOData($so_id, "po_id") <> null){ ?>
						<div class="tab-pane fade active in" id="podetails">
							<div class="form-horizontal">
								<div class="form-body">
									<h3 class="form-section">Buyer Details</h3>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Order No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "order_no"); ?> </p>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Marking :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "marking"); ?> </p>
												</div>
											</div>
										</div>
															
									</div>
									<div class="row">
										
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Company Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_name"); ?> </p>
												</div>
											</div>
										</div>	
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Company Address :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_address"); ?> </p>
												</div>
											</div>
										</div>
									</div>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Tax No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_tax_no"); ?> </p>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Company City :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_city"); ?> </p>
												</div>
											</div>
										</div>
									</div>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Order Type :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo (checkSOExist($po_id) ? "PO & SO"  : "PO"); ?> </p>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Company Zip :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_zip"); ?> </p>
												</div>
											</div>
										</div>
									</div>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Purchase No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "purchase_no"); ?> </p>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Company State :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_zip"); ?> </p>
												</div>
											</div>
										</div>						
									</div>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Contact Person :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_contact_person"); ?> </p>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Contact Person No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "company_contact_person_no"); ?> </p>
												</div>
											</div>
										</div>	
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Order Created :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "created_on"); ?> </p>
												</div>
											</div>
										</div>										
									</div>
									
									<div class="row">
										<div class="col-md-6">
											<h3 class="form-section">Forwarder Details</h3>
											<div class="form-group">
												<label class="control-label col-md-4">Company Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getCompanyData(getPOData($po_id, "forwarder_id"),"company_id", "name"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Tel No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getCompanyData(getPOData($po_id, "forwarder_id"),"company_id", "company_no"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Fax :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getCompanyData(getPOData($po_id, "forwarder_id"),"company_id", "company_fax"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Contact Person :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getCompanyData(getPOData($po_id, "forwarder_id"),"company_id", "contact_person"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Contact Person No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getCompanyData(getPOData($po_id, "forwarder_id"),"company_id", "contact_person_no"); ?> </p>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<h3 class="form-section">Supplier Details</h3>
											<div class="form-group">
												<label class="control-label col-md-4">Supplier Company Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "supplier_company_name"); ?> </p>													
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Supplier Contact Person :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "supplier_contact_person"); ?> </p>													
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Supplier Contact Person No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "supplier_contact_person_no"); ?> </p>													
												</div>
											</div>
										</div>
									</div>
									
									<h3 class="form-section">Bank Details</h3>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Bank Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "bank_name"); ?> </p>													
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Bank Address :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "bank_address"); ?> </p>													
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Account Number :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "bank_acc_no"); ?> </p>													
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Swift Code :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "bank_swiftcode"); ?> </p>													
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Currency :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getPOData($po_id, "order_currency"); ?> </p>													
												</div>
											</div>
											<?php $order_remarks = json_decode(getPOData($po_id, "order_remark"), true); ?>
											<?php foreach($order_remarks as $key => $order_remark){ ?>
												<div class="form-group">
													<label class="control-label col-md-4"><?php echo $order_remark['form_name']; ?> :</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo $order_remark['form_value']; ?> </p>													
													</div>
												</div>
											<?php } ?>
										</div>
									</div>
											
									<h3 class="form-section">Purchase Order Items</h3>
									<div class="form-horizontal">
										<table class="table table-striped table-hover table-bordered dataTable">
											<thead>
												<th> No   		 </th>
												<th> Item Code   </th>
												<th> Model No    </th>
												<th> Description </th>
												<th> Quantity    </th>
												<th> UOM         </th>
												<th> Unit Price  </th>
												<th> Sub Total   </th>
											</thead>
											<tbody>
											<?php $POItems = getPOItems($po_id); $x = 1;?>
											<?php foreach($POItems as $key => $POItem){ ?>
												<tr>
													<td><?php echo $x; ?></td>
													<td><?php echo $POItem['item_code']; ?></td>
													<td><?php echo $POItem['model_no']; ?></td>
													<td><?php echo $POItem['description']; ?></td>
													<td><?php echo $POItem['quantity']; ?></td>
													<td><?php echo $POItem['uom']; ?></td>
													<td><?php echo $POItem['unit_price']; ?></td>
													<td><?php echo  number_format((float)$POItem['subtotal'], 2, '.', '') ." (".getPOData($po_id,"order_currency") . ")"; ?></td>
												</tr>
												<?php $x++; ?>
												
											<?php } ?>
											</tbody>
										</table>
										<div class="row">
											<div class="col-md-6">
												<div class="form-group">
													<label class="control-label col-md-3">Remark :</label>
													<div class="col-md-9">
														<p class="form-control-static"> <?php echo getPOData($po_id, "item_remark"); ?> </p>
													</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="well">
													<div class="row static-info align-reverse">
														<div class="col-md-3 name"> Total : </div>
														<div class="col-md-8 value"> <?php echo  number_format((float)getPOTotal($po_id), 2, '.', '') ." (".getPOData($po_id,"order_currency") . ")" ; ?> </div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						
						<div class="tab-pane fade" id="sodetails">
						<?php }else{ ?>
						<div class="tab-pane fade active in" id="sodetails">
						<?php } ?>
							<div class="form-horizontal">
								<div class="form-body">
									<h3 class="form-section">Order Details</h3>
									<div class="row">
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label col-md-4">Order No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "order_no"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Marking :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "marking"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Supplier Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "supplier_company_name"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Supplier Contact Person :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "supplier_contact_person"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Supplier Contact Person No :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "supplier_contact_person_no"); ?> </p>
												</div>
											</div>
										</div>						
									</div>
									
									<div class="row">
										<div class="col-md-6">
											<h3 class="form-section">Warehouse Details</h3>
											<div class="form-group">
												<label class="control-label col-md-4">Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "warehouse_name"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Address :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "warehouse_address"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">City :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "warehouse_city"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Postcode :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "warehouse_zip"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">State :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "warehouse_state"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Country :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "warehouse_country"); ?> </p>
												</div>
											</div>
										</div>
										
										<div class="col-md-6">
											<h3 class="form-section">Delivery Details</h3>
											<div class="form-group">
												<label class="control-label col-md-4">Name :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "delivery_name"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Address :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "delivery_address"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">City :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "delivery_city"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Postcode :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "delivery_zip"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">State :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "delivery_state"); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Country :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo getSOData($so_id, "delivery_country"); ?> </p>
												</div>
											</div>
										</div>
									</div>
									
									
									<h3 class="form-section">Packaging List</h3>
									<div class="form-horizontal">
										<table class="table table-striped table-hover table-bordered dataTable">
											<thead>
												<tr>
													<th rowspan="2"> No   		 </th>
													<th rowspan="2"> Description </th>
													<th rowspan="2"> Model       </th>
													<th rowspan="2"> Qty         </th>
													<th rowspan="2"> UOM         </th>
													<th colspan="3"> CBM		 </th>
													<th colspan="2"> Weight		 </th>
													<th rowspan="2"> Photo   	 </th>
												</tr>
												<tr>
													<td>Height</td>
													<td>Width</td>
													<td>Depth</td>
													<td>Gross</td>
													<td>Nett</td>
												</tr>
											</thead>
											<tbody>
											<?php $SOItems = getSOItems($so_id); $x = 1;?>
											<?php foreach($SOItems as $key => $SOItem){ ?>
												<tr>
													<td><?php echo $x; ?></td>
													<td><?php echo $SOItem['description']; ?></td>
													<td><?php echo $SOItem['model_no']; ?></td>
													<td><?php echo $SOItem['packaging_quantity']; ?></td>
													<td><?php echo $SOItem['packaging_type']; ?></td>
													<td><?php echo $SOItem['packaging_height']; ?></td>
													<td><?php echo $SOItem['packaging_width']; ?></td>
													<td><?php echo $SOItem['packaging_depth']; ?></td>
													<td><?php echo $SOItem['packaging_gross']; ?></td>
													<td><?php echo $SOItem['packaging_nett']; ?></td>
													<td><img style="max-width: 100px; max-height: 100px;" src="<?php if($SOItem['image'] <> null){ echo $SOItem['image'];}else{ echo "http://www.placehold.it/200/EFEFEF/AAAAAA&amp;text=no+image";} ?>"></td>
												</tr>
												<?php $x++; ?>
												
											<?php } ?>
											</tbody>
										</table>										
									</div>									
								</div>
							</div>
						</div>
						<?php if(getSOData($so_id, "status") <> 0){ ?>
						<div class="tab-pane fade" id="arrangements">
							<div class="form-horizontal">
								<div class="form-body">
									<?php if(getSOData($so_id, "status") >= 1){ ?>
									<div class="row">
										<h3 class="form-section">Warehouse Arrangements</h3>
										<div class="form-horizontal">
											<table class="table table-striped table-hover table-bordered dataTable">
												<thead>
													<tr>
														<th> No   		          </th>
														<th> Product Description  </th>
														<th> Total Ctn (Nominal)  </th>
														<th> Measurement (Nominal)</th>
														<th> Weight (Nominal)     </th>
														<th> Total Ctn (Actual)   </th>
														<th> CBM (Actual)         </th>
														<th> Weight (Actual)      </th>
														<th> Status           	  </th>
														<th> Photo           	  </th>
													</tr>
												</thead>
												<tbody>
												<?php $WAItems = getWAItems($so_id); $x = 1;?>
												<?php foreach($WAItems as $key => $WAItem){ ?>
													<tr>
														<td><?php echo $x; ?></td>
														<td><?php echo getSOItem($WAItem['so_item_id'], "description"); ?></td>
														<td><?php echo getSOItem($WAItem['so_item_id'], "packaging_quantity"); ?></td>
														<td><?php echo getSOItem($WAItem['so_item_id'], 'packaging_height') . "x" . getSOItem($WAItem['so_item_id'], 'packaging_width') . "x" . getSOItem($WAItem['so_item_id'], 'packaging_depth'); ?></td>
														<td><?php echo getSOItem($WAItem['so_item_id'], "packaging_gross"); ?></td>
														<td><?php echo $WAItem['actual_ctn']; ?></td>
														<td><?php echo $WAItem['actual_height_ctn'] . "x" . $WAItem['actual_width_ctn'] . "x" . $WAItem['actual_depth_ctn']; ?></td>
														<td><?php echo $WAItem['actual_weight_ctn']; ?></td>
														<td><?php echo ($WAItem['status'] == 1 ? "Unmatched" : "Matched")  ?></td>
														<td><img style="max-width: 100px; max-height: 100px;" src="<?php if($WAItem['image'] <> null){ echo $WAItem['image'];}else{ echo "http://www.placehold.it/200/EFEFEF/AAAAAA&amp;text=no+image";} ?>"></td>
													</tr>
													<?php $x++; ?>
													
												<?php } ?>
												</tbody>
											</table>										
										</div>
									</div>
									<?php } ?>
									<div class="row">	
										<?php if(getSOData($so_id, "status") >= 2){ ?>
										<div class="col-md-6">
											<h3 class="form-section">Shipment Arrangements</h3>
											<div class="form-group">
												<label class="control-label col-md-4">ETD :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo date("d/m/Y", strtotime(getSAData($so_id, "etd"))); ?> </p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">ETA :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php echo date("d/m/Y", strtotime(getSAData($so_id, "eta"))); ?> </p>													
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-4">Released Date :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php if (getSAData($so_id, "release_date") <> null) { echo date("d/m/Y", strtotime(getSAData($so_id, "release_date"))); }else{ echo "N/A"; }?> </p>
												</div>
											</div>
										</div>
										<?php } ?>
										<?php if(getSOData($so_id, "status") >= 3){ ?>
										<div class="col-md-6">
											<h3 class="form-section">Delivery Arrangements</h3>
											<div class="form-group">
												<label class="control-label col-md-4">Delivery Type :</label>
												<div class="col-md-8">
													<p class="form-control-static"> <?php if(getDAData($so_id, "delivery_type") == 1){ echo "Inhouse Services"; }elseif(getDAData($so_id, "delivery_type") == 2){ echo "Courier Services"; }elseif(getDAData($so_id, "delivery_type") == 3){ echo "Outsource Services"; }elseif(getDAData($so_id, "delivery_type") == 4){ echo "Self Collect"; } ?> </p>
												</div>
											</div>
											
											<?php if(getDAData($so_id, "delivery_type") == 1 || getDAData($so_id, "delivery_type") == 3 ){ ?>
												<div class="form-group">
													<label class="control-label col-md-4">Delivery Date :</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "delivery_date"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Driver Name:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "driver_contact_person"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Driver Contact:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "driver_contact_person_no"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Vehicle No:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "vehicle_no"); ?> </p>
													</div>
												</div>
											<?php }elseif(getDAData($so_id, "delivery_type") == 2){ ?>
												<div class="form-group">
													<label class="control-label col-md-4">Courier Service:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "courier_service_name"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Tracking No:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "tracking_no"); ?> </p>
													</div>
												</div>
											<?php }elseif(getDAData($so_id, "delivery_type") == 4){ ?>
												<div class="form-group">
													<label class="control-label col-md-4">Warehouse:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo get_warehouse(getDAData($so_id, "warehouse_id"), "warehouse_name"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Contact Person:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_contact_person"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Contact Person No:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_contact_person_no"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">Address:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_address"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">City:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_zip"); ?>  <?php echo getDAData($so_id, "warehouse_city"); ?> </p>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-4">State:</label>
													<div class="col-md-8">
														<p class="form-control-static"> <?php echo getDAData($so_id, "warehouse_state"); ?> </p>
													</div>
												</div>
											<?php } ?>
										</div>
										<?php } ?>
									</div>									
								</div>
							</div>							
						</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>