<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head><title>Branches</title></head>
	
	<body style="width:auto; margin:auto">
<style type="text/css">
		  @media print {
			.noPrint { display: none; }
		  }
		</style>
		<div style="padding:2px">
			<a href="#" class="easyui-linkbutton noPrint" data-options="plain:true,iconCls:'icon-print'" onClick="window.print();">Print</a>
		</div><br />

		<table width="85%" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; margin-top:10px;">
			<tr>
                <td colspan="10" class="s0"><?php echo $this->load->model('file/m_new_company')->get_company_name($company_code); ?></td>
            </tr>
             <tr>
                <td height="40" colspan="10" class="s0"><?php echo $this->load->model('setup/m_branchinfo')->get_branch_name($branch_code); ?></td>
                
            </tr>
            <tr>
                <td colspan="10" class="s1">List Branch</td>
            </tr>
            <tr>
                <td colspan="10" class="s1">&nbsp;</td>
            </tr>
			<tr>
				<td width="" class="s4">Branch Code</td>
				<td width="" class="s4">Branch Name</td>
				<td width="" class="s4">Company Code</td>
				<td width="" class="s4">Region Code</td>
				<td width="" class="s4">Branch Address</td>
				<td width="" class="s4">Branch City</td>
				<td width="" class="s4">Branch State</td>
				<td width="" class="s4">Branch Country</td>
			</tr>
		  <?php	   
		foreach($list as $row){		   
		?>
			<tr>
				<td class="s5"><?php echo $row->BranchCode; ?></td>
				<td class="s3"><span class="s5"><?php echo $row->BranchName; ?></span></td>
				<td class="s5"><?php echo $row->CompanyCode; ?></td>
				<td class="s5"><?php echo $row->RegionCode; ?></td>
				<td class="s5"><?php echo $row->BranchAddress; ?></td>
				<td class="s5"><?php echo $row->BranchCity; ?></td>
				<td class="s5"><?php echo $row->BranchState; ?></td>
				<td class="s5"><?php echo $row->BranchCountry; ?></td>
			</tr> 
		<?php
		}	   
		?>
		</table>
	</body>
</html>

