<div class="kt-subheader   kt-grid__item" id="kt_subheader" style="height:50px;margin-top:40px;">
	<div class="kt-container  kt-container--fluid ">
		<div class="kt-subheader__main">
			<h3 class="kt-subheader__title">
				Company Profile
			</h3>
			<span class="kt-subheader__separator kt-subheader__separator--v"></span>
			<div class="kt-subheader__breadcrumbs">
				<span class="kt-subheader__breadcrumbs-home"><i class="flaticon2-shelter"></i></span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Admin </span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Company Profile </span>
			</div>
		</div>
	</div>
</div>

<div class="kt-portlet kt-portlet--tabs" id="formCompany">
	<div class="kt-portlet__head">
		<div class="kt-portlet__head-toolbar">
			<ul class="nav nav-tabs nav-tabs-space-xl nav-tabs-line nav-tabs-bold nav-tabs-line-3x nav-tabs-line-brand" role="tablist">
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-general" role="tab">
						<i class="la la-briefcase"></i> General
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-addr" role="tab">
						<i class="flaticon-placeholder"></i> Address
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-workflow" role="tab">
						<i class="flaticon-settings-1"></i> Workflow
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-email-setting" role="tab">
						<i class="flaticon-email"></i> Email Setting
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-logo" role="tab">
						<i class="flaticon2-image-file"></i> Logo
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-location" role="tab">
						<i class="flaticon-home-1"></i> Location
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-bank" role="tab">
						<i class="flaticon-coins"></i> Bank Detail
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#company-others" role="tab">
						<i class="flaticon-list-1"></i> Invoice Setting
					</a>
				</li>
			</ul>
		</div>
		<div class="kt-portlet__head-toolbar" style="margin-top: 10px;">
			<div class="kt-portlet__head-group">
				<button type="button" class="btn btn-sm btn-icon btn-default btn-pill  btn-icon-md" onclick="closeFormCompany()"><i class="la la-close"></i></button>
			</div>
		</div>
	</div>

	<form class="kt-form kt-form--label-right" style="margin-bottom: 0px;">
		<div class="kt-portlet__body" >
			<div class="tab-content">
				<div class="tab-pane active" id="company-general" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">ID:</label>
						<div class="col-lg-1">
							<input type="text" id="txtCoyId" maxlength="12" size="12" class="form-control" placeholder="Auto" disabled>
						</div>
						<label class="col-lg-1 col-form-label">Code:</label>
						<div class="col-lg-1">
							<input type="text" id="txtCoyCode" maxlength="7" size="7" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Name:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyName" maxlength="60" size="60" class="form-control">
							<span id="taxestype_err_desc" style="color:Red;display:none">*</span>
						</div>
						<label class="col-lg-1 col-form-label">Ref No:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCoyRef" maxlength="20" size="20" class="form-control">
						</div>
					</div>
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Financial Year Starting Period:</label>
						<div class="col-lg-1">
							<select class="form-control kt-select2" id="txtFinancialMonth">
								<?php echo $this->getMonth() ; ?>
							</select>
						</div>
						<div class="col-lg-2">
							<select class="form-control kt-select2" id="txtFinancialYear">
								<?php echo $this->getFinancialYear() ; ?>
							</select>
						</div>
						<label class="col-lg-1 col-form-label">Company Reg No:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyRegNo" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Currency:</label>
						<div class="col-lg-2">
							<select class="form-control" id="cobCoyBaseCurrency">
							<?php echo $this->getCurrencyOption(); ?>
							</select>
						</div>
					</div>	
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit" style="display:none"></div>
					<div class="form-group row form-group-marginless" style="display:none">
						<label class="col-lg-1 col-form-label" >CPF CSN No:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyCpfNo" maxlength="15" size="15" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">CPF Ref Code:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyCpfRef" maxlength="2" size="2" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Bank:</label>
						<div class="col-lg-3">
							<select class="form-control kt-select2" id="cobCoyBank">
								<?php echo $this->getBank() ; ?>
							</select>
						</div>
					</div>	
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit" style="display:none"></div>
					<div class="form-group row form-group-marginless" style="display:none">
						<label class="col-lg-1 col-form-label">Bank Acct. No:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyAcctNo" maxlength="20" size="20" class="form-control">
						</div>
					</div>	
				</div>
				<div class="tab-pane" id="company-addr" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Address 1:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyAddr1" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Address 2:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyAddr2" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Address 3:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyAddr3" maxlength="40" size="40" class="form-control">
						</div>
					</div>	
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Address 4:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyAddr4" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Address 5:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyAddr5" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Tel No:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyTel" maxlength="15" size="15" class="form-control">
						</div>
					</div>
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Fax No:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyFax" maxlength="15" size="15" class="form-control">
						</div>
					</div>
				</div>
				<div class="tab-pane" id="company-workflow" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Service Code Prefix:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyActivityCodePrefix" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Length:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyActivityCodeLength" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Service Running #:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyActivityCodeRN" maxlength="20" size="20" class="form-control">
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Job Plan Code Prefix:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyGRCodePrefix" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Length:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyGRCodeLength" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Job Plan Running #:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyGRCodeRN" maxlength="20" size="20" class="form-control">
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Job Quotation Code Prefix:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyQuotationCodePrefix" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Length:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyQuotationCodeLength" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Job Quotation Running #:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyQuotationCodeRN" maxlength="20" size="20" class="form-control">
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Sales Quotation Code Prefix:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoySalesQuotationCodePrefix" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Length:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoySalesQuotationCodeLength" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Sales Quotation Running #:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoySalesQuotationCodeRN" maxlength="20" size="20" class="form-control">
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Sales Quotation Internal Prefix:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoySalesQuotationInternalPrefix" maxlength="20" size="20" class="form-control">
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Proforma Invoice Code Prefix:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyProformaInvoiceCodePrefix" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Length:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyProformaInvoiceCodeLength" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Proforma Invoice Running #:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyProformaInvoiceCodeRN" maxlength="20" size="20" class="form-control">
						</div>
					</div>
				</div>
				<div class="tab-pane" id="company-email-setting" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Mail Server:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyEmailSettingServer" maxlength="50" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Port No.:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyEmailSettingPort" maxlength="10" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Email Sender:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyEmailSettingSender" maxlength="50" size="20" class="form-control">
						</div>
					</div>
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Email Password:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyEmailSettingPassword" maxlength="50" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label"></label>
						<div class="col-lg-3">
							<label class="kt-checkbox kt-checkbox--success">
								<input type="checkbox" id="txtCoyEmailSettingAuth"> Enable Authentication
								<span></span>
							</label>
						</div>
						<label class="col-lg-1 col-form-label"></label>
						<div class="col-lg-3">
							<label class="kt-checkbox kt-checkbox--success">
								<input type="checkbox" id="txtCoyEmailSettingSSL"> Enable SSL
								<span></span>
							</label>
						</div>
					</div>
				</div>
				<div class="tab-pane" id="company-logo" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Logo File:</label>
						<div class="col-lg-3">
							<div class="custom-file">
								<input class="custom-file-input" id="fileLogo" type="file" name="fileLogo">
								<label class="custom-file-label" for="fileLogo"></label>
							</div>
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Image:</label>
						<div class="col-lg-3">
							<div style="margin-top:5px;" id="imgCompanyLogo">
								<img id="imgLogo" width="200px" height="100px" border="1"/>
							</div>
							<span class="kt-form__help">
								Size : 200(w) x 100(h). Format : png,jpg,jpeg
							</span>
						</div>
						<div class="col-lg-3">
							<button type="button" id="btnCompanyLogoUpload" class="btn btn-success btn-elevate">
								<span>
									<i class="fa flaticon-add"></i>
									<span>Upload</span>
								</span>
							</button>
							<button type="button" id="btnCompanyLogoRemove" class="btn btn-label-google">
								<span>
									<i class="fa flaticon-delete"></i>
									<span>Remove</span>
								</span>
							</button>
						</div>	
					</div>	 
					<div id="setting_upload" style="margin-top:10px;display:none;">
						<div><span id="setting_upload_mesg">Uploading file .....</span></div>
						<div style="margin-top:10px"><img src="image/uploading.gif"></div>
					</div>  
				</div>
				<div class="tab-pane" id="company-location" role="tabpanel">
					<div class="form-group m-form__group row" style="margin-left:10px;">
						<div class="col-lg-2 col-xl-2">
							<button onclick="addCompanyLocation();" type="button" data-demo="default" class="btn btn-outline-info m-btn m-btn--icon m-btn--outline">
								<span>
									<i class="la la-plus"></i>
									<span>Add Location</span>
								</span>
							</button>
     					</div>
					</div>
					<div class="m-section__content col-md-6" >
     					<table id="tblCompanyLocation" class="table table-bordered m-table m-table--border-brand m-table--head-bg-brand" >
						  	<thead>
						    	<tr>
								<th width="5%">No.</th>
						    		<th width="30%">
						    			Name
						    		</th>
						    		<th width="60%">
						    			Address
						    		</th>
						    		<th style="text-align:center;" width="5%">Action</th>
						    	</tr>
						  	</thead>

						  <tbody id="tblCompanyLocationBody" >
						  </tbody>
						</table>	
 					</div>
				</div>
				<div class="tab-pane" id="company-bank" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Bank Name:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCoyBankName" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-2 col-form-label">Account Name:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCoyBankAccountName" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-2 col-form-label">Account Number:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCoyBankAccountNumber" maxlength="40" size="40" class="form-control">
						</div>
					</div>	
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">Bank Code:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCoyBankCode" maxlength="40" size="40" class="form-control">
						</div>
						<div class="col-lg-1"></div>
						<label class="col-lg-1 col-form-label">Branch Code:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCoyBankBranchCode" maxlength="40" size="40" class="form-control">
						</div>
						<label class="col-lg-3 col-form-label">Swift Code:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCoyBankSwiftCode" maxlength="15" size="15" class="form-control">
						</div>
					</div>
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>					
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">PayNow QR File:</label>
						<div class="col-lg-3">
							<div class="custom-file">
								<input class="custom-file-input" id="filePaynowQRCode" type="file" name="filePaynowQRCode">
								<label class="custom-file-label" for="filePaynowQRCode"></label>
							</div>
						</div>
						<div class="col-lg-2">
							<button type="button" id="btnBankPayNowQRUpload" class="btn btn-success btn-elevate">
								<span>
									<i class="fa flaticon-add"></i>
									<span>Upload</span>
								</span>
							</button>
						</div>
					</div>
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">PayNow QR Code:</label>
						<div class="col-lg-3">
							<div style="margin-top:5px;">
								<img id="imgPaynowQRCode" width="150px" height="150px" border="1"/>
							</div>
							<span class="kt-form__help">
							Size : 150(w) x 150(h). Format : png, jpg, jpeg
							</span>
						</div>
						<div class="col-lg-2">
							<button type="button" id="btnBankPayNowQRRemove" class="btn btn-label-google">
								<span>
									<i class="fa flaticon-delete"></i>
									<span>Remove</span>
								</span>
							</button>
						</div>	 
						<div id="setting_upload_paynowqr" style="margin-top:10px;display:none;">
							<div><span id="setting_upload_mesg">Uploading file .....</span></div>
							<div style="margin-top:10px"><img src="image/uploading.gif"></div>
						</div> 
					</div>
				</div>
				<div class="tab-pane" id="company-others" role="tabpanel">
					<div class="form-group m-form__group row">
						<label class="col-lg-1 col-form-label">Invoice Title</label>
						<div class="col-lg-3">
							<input type="text" id="txtInvoiceTitle" class="form-control">
						</div>
						<label class="col-form-label"></label>
						<div class="col-lg-2 col-lg-2">
							<button onclick="addInvoiceTitle();" type="button" data-demo="default" class="btn btn-outline-info m-btn m-btn--icon m-btn--outline">
							<span>
								<i class="la la-plus"></i>
								<span>Add Title</span>
							</span>
						</button>
						</div>
					</div>
					<div class="m-section__contenthead col-md-6" style="width: 30%">
						<table class="table table-bordered m-table m-table--border-brand m-table--head-bg-brand">
							<thead>
									<tr>
										<th>
											Invoice Title
										</th>
										<th style="width:5%;text-align: center;">
											Default
										</th>
										<th style="width: 50px;text-align: center;">
											Action
										</th>
									</tr>
							</thead>
							<tbody  id="invoice-title-list">
							</tbody>
						</table>	
					</div>
				</div>
			</div>
		</div>

		<div class="kt-portlet__foot">
			<div class="kt-form__actions">
					<button type="button" id="btnCoyAdd" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Add</button>
					<button type="button" id="btnCoyUpdate" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Update</button>
					<button type="button" id="btnCoyClear" class="btn btn-label-google"><i class="flaticon-delete"></i>Clear</button>
					<button type="button" id="btnCoyPrint" class="btn btn-label-instagram"><i class="fa fa-print"></i>Print</button>
			</div>
		</div>

	</form>
</div>
<!-- end:: Content -->

<div class="kt-portlet kt-portlet--mobile">
	<div class="kt-portlet__head kt-portlet__head--lg">
		<div class="kt-portlet__head-label">
			<span class="kt-portlet__head-icon">
				<i class="kt-font-brand flaticon2-line-chart"></i>
			</span>
			<h3 class="kt-portlet__head-title">
				Form Company Profile
			</h3>
			<div class="kt-portlet__head-toolbar" style="margin-left: 25px;">
				<div class="kt-portlet__head-wrapper">
					<div class="kt-portlet__head-actions">
						<button type="button" onclick="showFormCompany();" class="btn btn-brand btn-elevate btn-icon-sm">
							<i class="la la-plus"></i>
							New Entry
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="kt-portlet__body">
		<!--begin: Datatable -->
		<div class="sbg-company-table"></div>
		<!--end: Datatable -->
	</div>
</div>

<script type="text/javascript">
var coy_url = "<?php echo Util::convertLink("Company") ; ?>" ;
<?php  include (PATH_CODE . "js/admin/company.js") ; ?>
</script>

<!-- =========================================================================== -->

<!-- <div id="sbg-company-entry" style="width:710px;margin: 5px 5px 5px 5px;">
	<div id="company-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#company-general">General</a></li>
            <li style="display:none"><a href="#company-iras">IRAS</a></li>
			<li><a href="#company-addr">Address</a></li>
			<li><a href="#company-workflow">Workflow</a></li>
			<li><a href="#company-email-setting">Email Setting</a></li>
			<li><a href="#company-logo">Logo</a></li>
			<span class="sbg-tab-title">Company Profile</span>
		</ul>
		<div id="company-general" style="height:220px;">
			<table>
				<tr>
					<td style="text-align:right;width:120px;"><span>ID : </span></td>
					<td style="width:150px"><input type="text" maxlength="12" size="12" id="txtCoyId" value="Auto" disabled="disabled" /></td>
					<td style="text-align:right;width:120px;"><span>Code : </span></td>
					<td style="width:200px"><input type="text" maxlength="12" size="12" id="txtCoyCode" /><span id="coy_err_code" style="color:Red;display:none">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Name : </span></td>
                    <td colspan="2"><input type="text" maxlength="60" size="40" id="txtCoyName" />
					<span id="coy_err_name" style="color:Red;display:none">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Ref No : </span></td>
					<td colspan="2"><input type="text" maxlength="20" size="20" id="txtCoyRef" /></span></td>
				</tr>
                <tr style="display:none">
					<td style="text-align:right;"><span>CPF CSN No : </span></td>
					<td colspan="2"><input type="text" maxlength="15" size="20" id="txtCoyCpfNo" /><span>&nbsp;&nbsp;(e.g. 209904795BPTE01)</span>
					<span id="coy_err_cpfno" style="color:Red;display:none">*</span></td>
				</tr>
				<tr style="display:none">
					<td style="text-align:right;"><span>CPF Ref Code : </span></td>
					<td colspan="2"><input type="text" maxlength="2" size="5" id="txtCoyCpfRef" /><span>&nbsp;&nbsp;(two digit payment advice code)
					<span id="coy_err_cpfref" style="color:Red;display:none">*</span></td>
				</tr>
				<tr style="display:none">
					<td style="text-align:right;"><span>Bank : </span></td>
					<td colspan="2"><select id="cobCoyBank"><?php //echo $this->getBank() ; ?></select></td>
				</tr>
				<tr style="display:none">
					<td style="text-align:right;"><span>Bank Acct. No : </span></td>
					<td colspan="2"><input type="text" maxlength="20" size="20" id="txtCoyAcctNo" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Financial Year Starting Period : </span></td>
					<td colspan="2">
                        <select id="txtFinancialMonth"><?php //echo $this->getMonth(); ?></select>
                        <select id="txtFinancialYear"><?php //echo $this->getFinancialYear(); ?></select>
                    </td>
				</tr>
				<tr>
					<td style="text-align:right;width:130px"><span>Company Reg No : </span></td>
					<td style="width:470px;"><input type="text" maxlength="20" size="30" id="txtCoyRegNo" />
					<span id="coy_err_regno" style="color:Red;display:none">*</span></td>
				</tr>

			</table>
		</div>
		<div id="company-iras" style="height:220px;display:none" >
			<table>
				<tr>
					<td style="text-align:right"><span>Tax Ref No Type : </span></td>
					<td><select id="cobCoyRegType"><?php //echo $this->getRegType() ; ?></select>
					<span id="coy_err_regtype" style="color:Red;display:none">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Authorised Person : </span></td>
					<td><input type="text" maxlength="15" size="20" id="txtCoyAuthName" />
					<span id="coy_err_authname" style="color:Red;display:none">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Designation : </span></td>
					<td><input type="text" maxlength="30" size="30" id="txtCoyAuthTitle" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Contact No : </span></td>
					<td><input type="text" maxlength="20" size="20" id="txtCoyAuthTel" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>EGM/AGM Date : </span></td>
					<td><input type="text" maxlength="4" size="6" id="txtCoyEgm" />
					<span>&nbsp;(MMDD)</span>
					</td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Bonus Date : </span></td>
					<td><input type="text" maxlength="4" size="6" id="txtCoyBonus" />
					<span>&nbsp;(MMDD)</span>
					</td>
				</tr>
			</table>
		</div>
		<div id="company-addr" style="height:220px;">
			<table>
				<tr>
					<td style="text-align:right;width:100px;"><span>Address : </span></td>
					<td style="width:500px"><input type="text" maxlength="40" size="50" id="txtCoyAddr1" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span></span></td>
					<td><input type="text" maxlength="40" size="50" id="txtCoyAddr2" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span></span></td>
					<td><input type="text" maxlength="40" size="50" id="txtCoyAddr3" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span></span></td>
					<td><input type="text" maxlength="40" size="50" id="txtCoyAddr4" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span></span></td>
					<td><input type="text" maxlength="40" size="50" id="txtCoyAddr5" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Tel No : </span></td>
					<td><input type="text" maxlength="60" size="50" id="txtCoyTel" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Fax No : </span></td>
					<td><input type="text" maxlength="60" size="50" id="txtCoyFax" /></td>
				</tr>
			</table>
		</div>
		<div id="company-workflow" style="height:100px;">
			<select id="cobWorkFlow" style="display:none" ><?php //echo $this->getWorkFlow() ; ?></select>
			<table>
				<tr style="display:none">
					<td style="text-align:right"> Proration of claim : 
					</td>
					<td><select id="cmbProration"> <?php //echo $this->getProration(); ?> </select>
					</td>
					<td style="text-align:right"> Cut-off Month : 
					</td>
					<td><select id="cmbProrationMonth"> <?php //echo $this->getProrationMonth(); ?> </select>
					</td>
				</tr>
				<tr style="display:none">
					<td style="text-align:right"> Reason when rejecting claim
					</td>
					<td><select id="cmbClaimRejectReason">
						<?php //echo $this->getClaimRejectReason() ?>
					</select>
					</td>
					<td style="text-align:right"> Clearing Account : 
					</td>
					<td><input type="text" maxlength="20" size="20" id="txtCoyClearingAccount" />
					</td>
				</tr>
				<tr>
					<td style="text-align:right"> Service Code Prefix : 
					</td>
					<td><input type="text" maxlength="20" size="20" id="txtCoyActivityCodePrefix" />
					</td>
					<td style="text-align:right"> Length : 
					</td>
					<td><input type="text" maxlength="20" size="20" id="txtCoyActivityCodeLength" />
					</td>
				</tr>
				<tr>
					<td style="text-align:right">Service Running # :
					</td>
					<td><input type="text" maxlength="20" size="20" id="txtCoyActivityCodeRN" />
					</td>
				</tr>
			</table>
		</div>
        
        <div id="company-email-setting" style="height:220px;">
			<table>
				<tr>
					<td style="text-align:right;width:150px;"><span>Mail Server : </span></td>
					<td style="width:500px"><input type="text" maxlength="50" size="50" id="txtCoyEmailSettingServer" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Port No. : </span></td>
					<td><input type="text" maxlength="10" size="10" id="txtCoyEmailSettingPort" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Email Sender : </span></td>
					<td><input type="text" maxlength="50" size="50" id="txtCoyEmailSettingSender" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Email Password : </span></td>
					<td><input type="password" maxlength="50" size="50" id="txtCoyEmailSettingPassword" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"></td>
					<td><input id="txtCoyEmailSettingAuth" type="checkbox"/><label for="txtCoyEmailSettingAuth">Enable Authentication</label></td>
				</tr>
				<tr>
					<td style="text-align:right;"></td>
					<td><input id="txtCoyEmailSettingSSL" type="checkbox"/><label for="txtCoyEmailSettingSSL">Enable SSL</label></td>
				</tr>
			</table>
        </div>
        
		<div id="company-logo" style="height:150px;">
			<table>
				<tr>
					<td colspan="2">Logo File :
						<input type="file" id="fileLogo" name="fileLogo" size="60"></input>
					</td>
				</tr>
				<tr>
					<td style="width:400px;" id="imgCompanyLogo">
						<div style="margin-top:5px"><img id="imgLogo" width="200px" height="100px" border="1" src=""></img></div>
						<div style="margin-top:5px">Size : 200(w) x 100(h). Format : png,jpg,jpeg</div>
					</td>
					<td style="width:200px;vertical-align:top">
						<div style="margin-top:10px;">
							<input id="btnCompanyLogoUpload" type="button" value="Upload">&nbsp;&nbsp;</input>
							<input id="btnCompanyLogoRemove" type="button" value="Remove"></input>
						</div>
						<div id="setting_upload" style="margin-top:10px;display:none;">
							<div><span id="setting_upload_mesg">Uploading file .....</span></div>
							<div style="margin-top:10px"><img src="image/uploading.gif"></div>
						</div>
					</td>
				</tr>
			</table>
		</div>
		
	</div>
	
	<div class="ui-widget-content ui-corner-all" style="height:40px;margin-top:2px;">
		<div class="sbg-entry-error" style="width:300px;">
			<span id="coy_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnCoyAdd" type="button" value="Add"></input>
			<input id="btnCoyUpdate" type="button" value="Update"></input>
			<input id="btnCoyClear" type="button" value="Clear"></input>
			<input id="btnCoyPrint" type="button" value="Print"></input>
		</div>
	</div>
</div>

<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-company-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 400px;">Name</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-company-data" style="overflow: auto;">
            <table id="sbg-company-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td>
				<td style="width:400px"></td>
				<td style="width:25px"></td>
				<td style="width:25px"></td>
			</tr>
			<?php //echo $this->getList() ; ?>
            </table>
        </div>
	</div>
</div> 
<script type="text/javascript">
var coy_url = "<?php //echo Util::convertLink("Company") ; ?>" ;
<?php  //include (PATH_CODE . "js/admin/company.js") ; ?>
</script> -->