<?php $this->load->view('header');?>
		
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            &nbsp;
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url();?>"><?php echo $this->lang->line('hf_home');?></a></li>
              <li class="breadcrumb-item"><?php echo $this->lang->line('hf_convert');?></li>
			  <li class="breadcrumb-item active"><?php echo $this->lang->line('hf_account_convert');?></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

	<!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title"><?php echo $this->lang->line('hf_account_convert');?></h3>

            <div class="card-tools">
              <b class="text-success"><?php echo $this->lang->line('wallet_1');?>:</b> 
			  <span><?php echo (isset($v_unit) ? $v_unit : '');?></span> &nbsp;|&nbsp; 
			  <b class="text-success"><?php echo $this->lang->line('wallet_2');?>:</b> 
			  <span><?php echo (isset($v_unit2) ? $v_unit2 : '');?></span> &nbsp;|&nbsp; 
			  <b class="text-success"><?php echo $this->lang->line('wallet_3');?>:</b> 
			  <span><?php echo (isset($v_unit3) ? $v_unit3 : '');?></span>
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
			<form class="form-horizontal" id="convert-form">
				<div class="form-group row">
					<label for="transaction_type" class="col-sm-2 col-form-label"><?php echo $this->lang->line('convert_type');?></label>
					<div class="col-sm-3">
						<select class="form-control" id="transaction_type" name="transaction_type">
						    <option value="1"><?php echo $this->lang->line('wallet_2') . ' => ' . $this->lang->line('wallet_1');?></option>
							<option value="2"><?php echo $this->lang->line('wallet_1') . ' => ' . $this->lang->line('wallet_3');?></option>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="transaction_amount" class="col-sm-2 col-form-label"><?php echo $this->lang->line('convert_amount');?></label>
					<div class="col-sm-3">
					  <input type="text" class="form-control" id="transaction_amount" name="transaction_amount" placeholder="<?php echo $this->lang->line('convert_amount_must_fill_in_message');?>">
					</div>
				</div>
				<div class="form-group row">
					<label for="security_password" class="col-sm-2 col-form-label"><?php echo $this->lang->line('convert_security_password');?></label>
					<div class="col-sm-3">
					  <input type="password" class="form-control" id="security_password" name="security_password" placeholder="<?php echo $this->lang->line('convert_security_password_must_fill_in_message');?>">
					</div>
				</div>
				<div class="form-group row">
					<div class="offset-sm-2 col-sm-10">
					  <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
					  <button onclick="convert_submit()" type="button" class="btn btn-primary"><?php echo $this->lang->line('convert_convert');?></button>
					</div>
				</div>
			</form>
          </div>
          <!-- /.card-body -->
        </div>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
		
<?php $this->load->view('footer');?>		