<?php /* Smarty version 3.1.27, created on 2024-04-03 13:49:47
         compiled from "/home/ganstrades/public_html/tmpl/internal_transfer.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:651216618660d5e7bceac20_10358165%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '40767519ea7a75b1a4a8b1dc5ffb1cfd7e77eb70' => 
    array (
      0 => '/home/ganstrades/public_html/tmpl/internal_transfer.tpl',
      1 => 1704204380,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '651216618660d5e7bceac20_10358165',
  'variables' => 
  array (
    'say' => 0,
    'fatals' => 0,
    'settings' => 0,
    'errors' => 0,
    'frm' => 0,
    'preview' => 0,
    'amount' => 0,
    'user' => 0,
    'ec' => 0,
    'comment' => 0,
    'currency' => 0,
    'fee' => 0,
    'minimum_internal_transfer_fee' => 0,
    'to_send' => 0,
    'to_receive' => 0,
    'userinfo' => 0,
    'currency_sign' => 0,
    'have_hold' => 0,
    'ps' => 0,
    'p' => 0,
    'wfch' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_660d5e7bd86808_07313218',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_660d5e7bd86808_07313218')) {
function content_660d5e7bd86808_07313218 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/ganstrades/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

$_smarty_tpl->properties['nocache_hash'] = '651216618660d5e7bceac20_10358165';
echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>


                <!-- PAGE-NAVIGATOR -->
        <section id="page-navigator">
            <div class="container-fluid">
                <div aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="/">Home</a></li>
                        <li class="breadcrumb-item"><a href="/"
                                                       class="cursor-inherit">Internal Transfer</a>
                        </li>
                    </ol>
                </div>
            </div>
        </section>
        <!-- /PAGE-NAVIGATOR -->
        </header>
    <!-- DASHBOARD-HEADER -->

    <main id="page-container">
        <?php echo $_smarty_tpl->getSubTemplate ("left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

         <section id="dashboard">
        <div class="dashboard-wrapper add-fund pb-50">
            <div class="row">
                <div class="col-md-12">
                    <div class="card secbg">
                        <div class="card-body ">

                            <div class="table-responsive">

<?php if ($_smarty_tpl->tpl_vars['say']->value == 'processed') {?>
<div class="success">Internal transfer has been successfully completed.</div>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['fatals']->value) {?>

<?php if ($_smarty_tpl->tpl_vars['fatals']->value['forbidden']) {?><div class="error">Internal transfers are forbidden.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['fatals']->value['no_deposits']) {?><div class="error">You can not send funds before you make any deposit.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['fatals']->value['times_limit']) {?><div class="error">You can send internal transfer <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_times']);?>
 per <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['limit_transfer_period_date']);?>
 only.</div><?php }?>

<?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['turing_image']) {?><div class="error">Invalid turing image</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['user_not_found']) {?><div class="error">The recipient's username entered has not been found or has been suspended.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['less_min']) {?><div class="error">You can transfer the amount not less <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['less_min']);?>
 only.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['too_big_amount']) {?><div class="error">You have no such amount on your balance.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['too_big_amount_plus_fee']) {?><div class="error">You have no enough funds to complte the transaction. Total amount you should have to send <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['frm']->value['amount'],$_smarty_tpl->tpl_vars['frm']->value['ec']));?>
 + fee is <b><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['too_big_amount_plus_fee']);?>
</b>.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['greater_max']) {?><div class="error">Maximum amount you can send is <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['greater_max']);?>
.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_transaction_code']) {?><div class="error">Invalid Transaction Code.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_tfa_code']) {?><div class="error">You have entered invalid 2FA code.</div><?php }?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['preview']->value) {?>

<form method=post>
<input type=hidden name=a value=internal_transfer>
<input type=hidden name=action value=confirm>
<input type=hidden name=amount value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['amount']->value);?>
">
<input type=hidden name=account value="<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['username'], ENT_QUOTES, 'UTF-8', true));?>
">
<input type=hidden name=ec value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ec']->value);?>
">
<input type=hidden name=comment value="<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['comment']->value, ENT_QUOTES, 'UTF-8', true));?>
">
<table cellspacing=0 cellpadding=2 border=0 class="form internal_transfer_confirm table table table-hover table-striped text-white">
<tr>
 <th>Payment System:</th>
 <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency']->value);?>
</td>
</tr>
<tr>
 <th>Recipient:</th>
 <td><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['username'], ENT_QUOTES, 'UTF-8', true));?>
</td>
</tr>
<tr>
 <th>Fee:</th>
 <td>
<?php if ($_smarty_tpl->tpl_vars['fee']->value > 0) {?>
  <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['internal_transfer_fee']);?>
% (min. <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['minimum_internal_transfer_fee']->value,$_smarty_tpl->tpl_vars['ec']->value));?>
)
<?php } else { ?>
We have no fee for this operation.
<?php }?>
</td>
</tr>
<tr>
 <th>Debit Amount:</th>
 <td><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['to_send']->value,$_smarty_tpl->tpl_vars['ec']->value));?>
</td>
</tr>
<tr>
 <th>Credit Amount:</th>
 <td><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['to_receive']->value,$_smarty_tpl->tpl_vars['ec']->value));?>
</td>
</tr>
<?php if ($_smarty_tpl->tpl_vars['comment']->value) {?>
<tr>
 <th>With comments:</th>
 <td><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['comment']->value, ENT_QUOTES, 'UTF-8', true));?>
</th>
</tr>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code'] && $_smarty_tpl->tpl_vars['userinfo']->value['transaction_code']) {?>
<tr>
 <th>Transaction Code:</th>
 <td><input type="password" name="transaction_code" class="form-control" size=15></td>
</tr>
<?php }?>
<?php echo $_smarty_tpl->getSubTemplate ("captcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>"internal_transfer"), 0);
?>

<?php if ($_smarty_tpl->tpl_vars['userinfo']->value['tfa_settings']['withdraw']) {?>
<tr>
 <th>2FA Code:</th>
 <td><input type="text" name="tfa_code" class="form-control" size=15> <input type="hidden" name="tfa_time" id="tfa_time"></td>
</tr>

<?php echo '<script'; ?>
 language=javascript>
document.getElementById('tfa_time').value = (new Date()).getTime();
<?php echo '</script'; ?>
>

<?php }?>
<tr>
 <td colspan=2><br><input type=submit value="Confirm" class="btn btn-primary"></td>
</tr></table>
</form>

<?php } else { ?>

<form method=post>
<input type=hidden name=a value=internal_transfer>
<input type=hidden name=action value=preview>
<input type=hidden name=say value="">

<table cellspacing=0 cellpadding=2 border=0 class="table table table-hover table-striped text-white ">
<tr>
 <td>Account Balance:</td>
 <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<b><?php echo smarty_modifier_myescape(amount_smarty_format($_smarty_tpl->tpl_vars['userinfo']->value['balance_totals']['balance']));?>
</b></td>
</tr>
</table>

<table cellspacing=0 cellpadding=2 border=0 class="table table table-hover table-striped text-white ">
<tr>
 <th></th>
 <th>Processing</th>
 <th>Available</th>
<?php if ($_smarty_tpl->tpl_vars['have_hold']->value) {?>
 <th>On Hold</th>
<?php }?>
</tr>
<?php $_smarty_tpl->tpl_vars["wfch"] = new Smarty_Variable(1, null, 0);?>
<?php
$_from = $_smarty_tpl->tpl_vars['ps']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['p']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
$foreach_p_Sav = $_smarty_tpl->tpl_vars['p'];
?>
<tr>
 <td><?php if ($_smarty_tpl->tpl_vars['p']->value['available'] > 0) {?><input type="radio" name="ec" value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['ec'] == $_smarty_tpl->tpl_vars['p']->value['id'] || $_smarty_tpl->tpl_vars['wfch']->value) {
$_smarty_tpl->tpl_vars["wfch"] = new Smarty_Variable(0, null, 0);?>checked<?php }?>><?php }?></td>
 <td><img src="images/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
.gif" width=44 height=17 align=absmiddle> <?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</td>
 <td><b><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['available'],$_smarty_tpl->tpl_vars['p']->value['ec']));?>
</b></td>
<?php if ($_smarty_tpl->tpl_vars['have_hold']->value) {?>
 <td><b style="color:gray"><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['hold'],$_smarty_tpl->tpl_vars['p']->value['ec']));?>
</b></td>
<?php }?>
</tr>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
</table>



<table cellspacing=0 cellpadding=2 border=0 class="table table table-hover table-striped text-white ">
<tr>
 <td colspan=2>&nbsp;</td>
</tr>
<tr>
 <td>Transfer (<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
):</td>
 <td><input type=text name=amount value="<?php if ($_smarty_tpl->tpl_vars['frm']->value['amount']) {
echo smarty_modifier_myescape(mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['amount'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8'));
} else { ?>10.00<?php }?>" class="form-control" size=15></td>
</tr><tr>
 <td>To Account:</td>
 <td><input type=text name=account value="<?php echo smarty_modifier_myescape(mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['account'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8'));?>
" class="form-control" size=15></td>
</tr><tr>
 <td colspan=2><textarea name=comment class="form-control" cols=45 rows=4><?php if ($_smarty_tpl->tpl_vars['frm']->value['comment']) {
echo smarty_modifier_myescape(mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['comment'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8'));
} else { ?>Your comment<?php }?></textarea>
</tr>
<tr>
 <td>&nbsp;</td>
 <td><input type=submit value="Send" class="btn btn-primary"></td>
</tr></table>
</form>

<?php }?>

<?php }?>

 </div>
 </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    </main>
</div>
<!-- /DASHBOARD-PAGE-LAYOUT -->

<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);

}
}
?>