<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">
				Currency Master
			</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">
					Service </span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Currency Master </span>
			</div>
		</div>
	</div>
</div>

<div class="kt-portlet kt-portlet--tabs" id="formCurrency">
	<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="#currency-general" role="tab">
						<i class="la la-briefcase"></i> General
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#currency-rate" role="tab">
						<i class="flaticon-edit-1"></i> Rate
					</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="closeFormCurrency()"><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" style="padding-bottom: 0px;">
			<div class="tab-content">
				<div class="tab-pane active" id="currency-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="txtCurrencyId" maxlength="10" size="10" 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="txtCurrencyRef" maxlength="7" size="7" class="form-control">
						</div>
					</div>
					<div class="kt-separator kt-separator--border-dashed kt-separator--portlet-fit"></div>
					<div class="form-group row">
						<label class="col-lg-1 col-form-label">Description:</label>
						<div class="col-lg-3">
							<input type="text" id="txtCurrencyDesc" maxlength="30" size="30" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Conversion Rate:</label>
						<div class="col-lg-1">
							<input type="text" id="txtCurrencyRate" maxlength="15" size="15" class="form-control">
							<span id="taxestype_err_desc" style="color:Red;display:none">*</span>
						</div>
					</div>
				</div>
				<div class="tab-pane" id="currency-rate" role="tabpanel">
					<div class="form-group m-form__group row">
						<label class="col-lg-1 col-form-label">From:</label>
						<div class="col-lg-2">
							<select class="form-control kt-select2" id="cobCurrencyFrom">
								<?php echo $this->getCurrencyList() ; ?>
							</select>
						</div>
						<label class="col-lg-1 col-form-label">Rate:</label>
						<div class="col-lg-2">
							<input type="text" id="txtCurrencyRateFrom" maxlength="15" size="15" class="form-control">
						</div>
     					<div class="col-lg-2 col-xl-2">
							<button onclick="addCurrencyRate();" 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 Limit</span>
								</span>
							</button>
     					</div>
     				</div>	
     				<div class="m-section__content col-md-6" >
     					<table id="tblPercentagesDetail" class="table table-bordered m-table m-table--border-brand m-table--head-bg-brand" >
						  	<thead>
						    	<tr>
						    		<th width="50%">
						    			From
						    		</th>
						    		<th width="40%">
						    			Rate
						    		</th>
						    		<th width="10%"></th>
						    	</tr>
						  	</thead>

						  <tbody id="tblCurrencyRate" style="">
						  </tbody>
						</table>	
 					</div>
				</div>

			</div>
		</div>

		<div class="kt-portlet__foot">
			<div class="kt-form__actions ">
				<button type="button" id="btnCurrencyAdd" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Add</button>
				<button type="button" id="btnCurrencyUpdate" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Update</button>
				<button type="button" id="btnCurrencyClear" class="btn btn-label-google"><i class="flaticon-delete"></i>Clear</button>
				<button type="button" id="btnCurrencyPrint" 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 Currency Master
			</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="showFormCurrency();" 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-currency-table"></div>
		<!--end: Datatable -->
	</div>
</div>

<script type="text/javascript">
var currency_url = "<?php echo Util::convertLink("Currency") ; ?>" ;
<?php include (PATH_CODE . "js/activity/currency.js") ; ?>
</script>

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

<!-- <div id="sbg-currency-entry" style="width:610px;margin: 5px 5px 5px 5px;">
	<div id="currency-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#currency-general">General</a></li>
			<li><a href="#currency-rate">Rate</a></li>
			<span class="sbg-tab-title">Currency Master</span>
		</ul>
		<div id="currency-general" style="height:200px;">
			<table>
				<tr>
					<td style="text-align:right;width:150px;"><span>ID : </span></td>
					<td style="width:480px"><input type="text" maxlength="10" size="10" id="txtCurrencyId" value="Auto" disabled="disabled" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Description : </span></td>
					<td><input type="text" maxlength="30" size="40" id="txtCurrencyDesc" /><span id="currency_err_desc" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Conversion rate : </span></td>
					<td>
						<input type="text" maxlength="15" size="15" id="txtCurrencyRate" /><span id="currency_err_rate" style="color:red;display:none;padding-left:5px">*</span>
						(<?php //echo $this->getBaseCurrencyOrg(); ?> is currency base)
					</td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Code : </span></td>
					<td>
						<input type="text" maxlength="3" size="4" id="txtCurrencyRef" /><span id="currency_err_ref" style="color:red;display:none;padding-left:5px">*</span>
					</td>
				</tr>
			</table>
		</div>
		<div id="currency-rate" style="height:200px;">
			<table>
				<tr>
					<td style="width:30px"></td>
					<td style="width:50px;text-align: right">From : </td>
                    <td style="width:100px"><select id="cobCurrencyFrom"><?php //echo $this->getCurrencyList(); ?></select></td>
					<td style="width:50px;text-align: right">Rate : </td>
                    <td style="width:200px"><input type="text" style="text-align: right" maxlength="15" size="15" id="txtCurrencyRateFrom" value="1.000000"/></td>
                    <td style="width:40px;text-align:center"><a href="javascript:" onclick="addCurrencyRate()"><img src="image/add.png" title="Add Limit" style="width:24px;height:24px"></img></a></td>
				</tr>
			</table>
			<div class="ui-widget-content ui-corner-all" style="overflow: auto;height:150px;">
                <table style="width:100%">
                    <tr class="ui-widget-header">
                        <th style="width: 45%">From</th><th style="width: 45%">Rate</th><th style="width: 10%"></th>
                    </tr>
				</table>
				<table style="width:100%" id="tblCurrencyRate" class="sbg-table-list" cellspacing="0">
					
				</table>
			</div>
		</div>
	</div>
	<div class="ui-widget-content ui-corner-all" style="height:50px;margin-top:2px;">
		<div class="sbg-entry-error" style="width:300px;">
			<span id="currency_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnCurrencyAdd" type="button" value="Add"></input>
			<input id="btnCurrencyUpdate" type="button" value="Update"></input>
			<input id="btnCurrencyClear" type="button" value="Clear"></input>
			<input id="btnCurrencyPrint" type="button" value="Print"></input>
		</div>
	</div>
</div>

<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-currency-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 400px;">Description</td>
                <td style="width: 100px;">Rate</td>
                <td style="width: 50px;">Ref</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-currency-data" style="overflow: auto;">
            <table id="sbg-currency-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td>
				<td style="width:400px"></td>
				<td style="width:100px"></td>
				<td style="width:50px"></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 currency_url = "<?php //echo Util::convertLink("Currency") ; ?>" ;
<?php //include (PATH_CODE . "js/activity/currency.js") ; ?>
</script> -->