<?php $this->load->view('header');?>

	<div class="row-fluid">
		<div class="span12">

			<!-- BEGIN PAGE TITLE & BREADCRUMB-->

			<h3 class="page-title"><?php echo $this->lang->line('hf_service_setting');?> </h3>

			<ul class="breadcrumb">

				<li><i class="icon-home"></i><a href="<?php echo base_url();?>home/"><?php echo $this->lang->line('hf_home');?></a> <i class="icon-angle-right"></i></li>
				<li><?php echo $this->lang->line('hf_setting');?> <i class="icon-angle-right"></i></li>
				<li><?php echo $this->lang->line('hf_service_setting');?></li>
			</ul>
			<!-- END PAGE TITLE & BREADCRUMB-->
		</div>
	</div>
	
	<div class="row-fluid">
		<div class="span12">
			<form id="currency_rate-form" class="form-horizontal" method="post" action="<?php echo base_url();?>setting/service_setting_submit/" onsubmit="return validateForm('currency_rate-form')">
				<?php 
					$alert_box = '';
					$alert_msg = '';
					
					if($this->session->userdata('form_msg_type') == 100) {
						$alert_box = 'success';
						$alert_msg = $this->session->userdata('form_msg');
					}
					else if($this->session->userdata('form_msg_type') == 200) {
						$alert_box = 'error';
						$alert_msg = $this->session->userdata('form_msg');
					}
					
					if($this->session->userdata('form_msg_type') == 100 OR $this->session->userdata('form_msg_type') == 200) {
						$this->session->unset_userdata(array('form_msg_type' => '', 'form_msg' => ''));
					}

					if( ! empty($alert_msg)) {
				?>
				<div class="alert alert-<?php echo $alert_box;?>">
					<button class="close" data-dismiss="alert"></button>
					<?php echo $alert_msg;?>
				</div>
				<?php }?>
				
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_min_convert');?></label>
					<div class="controls">
						<input type="text" id="min_convert" name="min_convert" class="m-wrap medium" value="<?php echo (isset($min_convert) ? $min_convert : '')?>" />
					</div>
				</div>	
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_min_transfer');?></label>
					<div class="controls">
						<input type="text" id="min_transfer" name="min_transfer" class="m-wrap medium" value="<?php echo (isset($min_transfer) ? $min_transfer : '')?>" />
					</div>
				</div>	
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_min_topup');?></label>
					<div class="controls">
						<input type="text" id="min_topup" name="min_topup" class="m-wrap medium" value="<?php echo (isset($min_topup) ? $min_topup : '')?>" />
					</div>
				</div>	
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_min_withdraw');?></label>
					<div class="controls">
						<input type="text" id="min_withdraw" name="min_withdraw" class="m-wrap medium" value="<?php echo (isset($min_withdraw) ? $min_withdraw : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_min_withdraw');?> (<?php echo $this->lang->line('currency_myr_without_symbol');?>)</label>
					<div class="controls">
						<input type="text" id="min_withdraw_2" name="min_withdraw_2" class="m-wrap medium" value="<?php echo (isset($min_withdraw_2) ? $min_withdraw_2 : '')?>" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_max_withdraw_per_day');?></label>
					<div class="controls">
						<input type="text" id="max_withdraw_per_day" name="max_withdraw_per_day" class="m-wrap medium" value="<?php echo (isset($max_withdraw_per_day) ? $max_withdraw_per_day : '')?>" />
					</div>
				</div>	
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_usdt_withdrawal_fee');?></label>
					<div class="controls">
						<input type="text" id="usdt_withdrawal_fee" name="usdt_withdrawal_fee" class="m-wrap medium" value="<?php echo (isset($usdt_withdrawal_fee) ? $usdt_withdrawal_fee : '')?>" />
					</div>
				</div>	
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_group_sales');?></label>
					<div class="controls">
						<input type="text" id="group_sales" name="group_sales" class="m-wrap medium" value="<?php echo (isset($group_sales) ? $group_sales : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_group_downlines');?></label>
					<div class="controls">
						<input type="text" id="group_downlines" name="group_downlines" class="m-wrap medium" value="<?php echo (isset($group_downlines) ? $group_downlines : '')?>" />
					</div>
				</div>				
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_topup_rate');?></label>
					<div class="controls">
						<input type="text" id="topup_rate" name="topup_rate" class="m-wrap medium" value="<?php echo (isset($topup_rate) ? $topup_rate : '')?>" /> %
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_withdrawal_rate');?></label>
					<div class="controls">
						<input type="text" id="withdrawal_rate" name="withdrawal_rate" class="m-wrap medium" value="<?php echo (isset($withdrawal_rate) ? $withdrawal_rate : '')?>" /> %
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_currency_in_rate');?></label>
					<div class="controls">
						<input type="text" id="currency_in_rate" name="currency_in_rate" class="m-wrap medium" value="<?php echo (isset($currency_in_rate) ? $currency_in_rate : '')?>" /> %
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_currency_out_rate');?></label>
					<div class="controls">
						<input type="text" id="currency_out_rate" name="currency_out_rate" class="m-wrap medium" value="<?php echo (isset($currency_out_rate) ? $currency_out_rate : '')?>" /> %
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_wallet_address');?> (OMNI.USDT)</label>
					<div class="controls">
						<input type="text" id="omni_usdt_address" name="omni_usdt_address" class="m-wrap medium" value="<?php echo (isset($omni_usdt_address) ? $omni_usdt_address : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_wallet_address');?> (ERC20.USDT)</label>
					<div class="controls">
						<input type="text" id="erc20_usdt_address" name="erc20_usdt_address" class="m-wrap medium" value="<?php echo (isset($erc20_usdt_address) ? $erc20_usdt_address : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_bank_name');?> (TH 1)</label>
					<div class="controls">
						<input type="text" id="bank_name_1" name="bank_name_1" class="m-wrap medium" value="<?php echo (isset($bank_name_1) ? $bank_name_1 : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('bank_account_holder');?> (TH 1)</label>
					<div class="controls">
						<input type="text" id="bank_account_holder_1" name="bank_account_holder_1" class="m-wrap medium" value="<?php echo (isset($bank_account_holder_1) ? $bank_account_holder_1 : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_bank_account_no');?> (TH 1)</label>
					<div class="controls">
						<input type="text" id="bank_account_no_1" name="bank_account_no_1" class="m-wrap medium" value="<?php echo (isset($bank_account_no_1) ? $bank_account_no_1 : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_bank_name');?> (TH 2)</label>
					<div class="controls">
						<input type="text" id="bank_name_2" name="bank_name_2" class="m-wrap medium" value="<?php echo (isset($bank_name_2) ? $bank_name_2 : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('bank_account_holder');?> (TH 2)</label>
					<div class="controls">
						<input type="text" id="bank_account_holder_2" name="bank_account_holder_2" class="m-wrap medium" value="<?php echo (isset($bank_account_holder_2) ? $bank_account_holder_2 : '')?>" />
					</div>
				</div>
				<div class="control-group" style="display: none;">
					<label class="control-label"><?php echo $this->lang->line('setting_bank_account_no');?> (TH 2)</label>
					<div class="controls">
						<input type="text" id="bank_account_no_2" name="bank_account_no_2" class="m-wrap medium" value="<?php echo (isset($bank_account_no_2) ? $bank_account_no_2 : '')?>" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><?php echo $this->lang->line('setting_security_key');?></label>
					<div class="controls">
						<input type="password" id="security_key" name="security_key" class="m-wrap medium" />
					</div>
				</div>
				<div class="form-actions">
					<input class="no_display" type="hidden" id="<?php echo $this->security->get_csrf_token_name(); ?>" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
					<button type="submit" class="btn blue"><i class="icon-ok"></i> <?php echo $this->lang->line('setting_submit');?></button>
				</div>
			</form>
		</div><!-- End span12 -->
		
	</div> <!-- End Row Fluid -->
	
<?php $this->load->view('footer');?>