<html>
<head>
	<title><?php echo $menu_label ?></title>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/custom/css/print.css">
</head>
<body>
	<div id="print_paper">
		<table cellpadding="0" cellspacing="0" border="0">  
			<tr>
				<td width="60%" align="left" valign="top">
					<div class="div_company" style="margin-top:10px;">
						<span class="normal_bold"><?php echo $this->load->model('file/m_new_company')->get_company_name($this->session->userdata('company')); ?> - <?php echo $detail->BranchName ?></span>
						<hr />
						<span class="normal"><?php echo $this->load->model('setup/m_branchinfo')->get_address($this->session->userdata('branch')); ?></span> 
					</div>
					<div style="padding-top:17px;"> 
						<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
							<tr>
								<td width="75" align="left" valign="top">
									<span class="normal_bold">Customer</span>	
									<br /><br /><br />
									<span class="normal_bold">Ship To</span>	
								</td>
								<td width="5" align="center" valign="top">
									<span>:</span>								
								</td>
								<td align="left" valign="top">
									<div class="div_vendor">
										<span class="normal_bold"><?php echo $detail->CustomerName; ?></span>
										<br />
										<span class="small"><?php echo $detail->BillingAddress; ?></span> 
										<br />
										<hr />
										<span class="normal"><?php echo $detail->CustomerName; ?></span>
										<br />
										<span class="small"><?php echo $detail->ShippingAddress; ?></span> 
										<br />
									</div>								
								</td>
							</tr>
						</table>
					</div>		
				</td>
				<td width="10">&nbsp;</td>
				<td align="center" valign="top">
					<span class="big_bold"><?php echo $menu_label ?></span>
					<div class="div_kanan" >
						<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
							<tr>
								<td height="40" align="left" valign="top">
									<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
										<tr class="list">
											<td width="150" align="left" valign="top">
												<div class="left">
													<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
														<tr><td align="left"><span class="normal_bold">Cust. PO. Date</span></td></tr>
														<tr><td align="right"><span class="small"><?php echo date("d M Y", strtotime($detail->CustPODate)); ?>&nbsp;&nbsp;</span></td></tr>
													</table>
												</div>
											</td>
											<td width="155" align="left" valign="top">
												<div class="right">
													<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
														<tr><td align="left">&nbsp;&nbsp;<span class="normal_bold">Cust. PO. Number</span></td></tr>
														<tr><td align="right"><span class="small"><?php echo $detail->CustPONumber; ?></span></td></tr>
													</table>
												</div>
											</td>
										</tr>
										<tr class="last">
											<td width="150" align="left" valign="top">
												<div class="left">
													<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
														<tr><td align="left"><span class="normal_bold">SQ. Date</span></td></tr>
														<tr><td align="right"><span class="small"><?php echo date("d M Y", strtotime($detail->SQuoDate)); ?>&nbsp;&nbsp;</span></td></tr>
													</table>
												</div>
											</td>
											<td width="155" align="left" valign="top">
												<div class="right">
													<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
														<tr><td align="left">&nbsp;&nbsp;<span class="normal_bold">SQ. Number</span></td></tr>
														<tr><td align="right"><span class="small"><?php echo $detail->SQuoNumber; ?></span></td></tr>
													</table>
												</div>
											</td>
										</tr>
									</table>
								</td>
							</tr> 	
						</table>
					</div>
					<div class="div_salesman">
						<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">	
							<tr class="list"><td height="25" align="left" valign="top"><span class="normal_bold">Salesman</span></td></tr>
							<tr class="last"><td align="left" valign="top"><span class="normal"><?php echo $detail->EmployeeName; ?></span></td></tr>
						</table>
					</div>
				</td>
			</tr>
			<tr><td colspan="3" height="10">&nbsp;</td></tr>
			<tr><td colspan="3" >
				<table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
					<tr class="head">
						<th height="30" width="100" align="center" valign="middle"><span class="normal_bold">Item</span></th>
						<th align="center" valign="middle"><span class="normal_bold">Description</span></th>
						<th width="40" align="center" valign="middle"><span class="normal_bold">Qty</span></th>
						<th width="50" align="center" valign="middle"><span class="normal_bold">Unit</span></th>
						<th width="60" align="center" valign="middle"><span class="normal_bold">Price</span></th>
						<th width="100" align="center" valign="middle"><span class="normal_bold">Amount</span></th>
					</tr>
					<?php foreach($list as $rows) : ?>
					<tr>
						<td class="list" align="left"><span class="normal"><?php echo $rows->ItemCode; ?></span></td>
						<td class="list" align="left"><span class="normal"><?php echo $rows->ItemDesc; ?></span></td>
						<td class="list" align="center"><span class="normal"><?php echo $rows->ItemQty; ?></span></td>
						<td class="list" align="left"><span class="normal"><?php echo $rows->ItemUnit; ?></span></td>
						<td class="list" align="right"><span class="normal"><?php echo $rows->ItemPrice; ?></span></td>
						<td class="list" align="right"><span class="normal"><?php echo $rows->ItemAmount; ?></span></td>     
					</tr>
					<?php endforeach; ?>
					<tr>
						<td class="last">&nbsp;</td>
						<td class="last">&nbsp;</td>
						<td class="last">&nbsp;</td>
						<td class="last">&nbsp;</td>
						<td class="last">&nbsp;</td>
						<td class="last">&nbsp;</td>     
					</tr>
				</table>
			</td></tr>
			<tr><td colspan="3" height="10">&nbsp;</td></tr>
			<tr>
				<td width="60%" align="left" valign="top">
					<fieldset>
						<legend style="margin-left:10px;">Description</legend>
						<span class="normal">
							<P align="justify">
								<?php echo character_limiter($detail->SQuoDesc, 225); ?>
							</p>
						</span>
					</fieldset>
				</td>
				<td width="10">&nbsp;</td>
				<td align="center" valign="top">&nbsp;
					
				</td>
			</tr>
		</table>
	</div>
</body>
</html>