<?php /* Smarty version 3.1.27, created on 2025-07-03 19:42:37
         compiled from "/home/ewfdahxt/public_html/tmpl/deposit.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:626561826866dd2d83d556_76410675%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9e57c652bb6d63d4dfff71bd18e7ac13c7152ed3' => 
    array (
      0 => '/home/ewfdahxt/public_html/tmpl/deposit.tpl',
      1 => 1749991331,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '626561826866dd2d83d556_76410675',
  'variables' => 
  array (
    'fatal' => 0,
    'qplans' => 0,
    'frm' => 0,
    'errors' => 0,
    'currency_sign' => 0,
    'plans' => 0,
    'plan' => 0,
    'o' => 0,
    'min_deposit' => 0,
    'dps' => 0,
    'p' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6866dd2d890c93_82098208',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6866dd2d890c93_82098208')) {
function content_6866dd2d890c93_82098208 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/ewfdahxt/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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

	<!-- Hor-Content -->
			<div class="hor-content main-content">
				<div class="container">

					<!--Page header-->
					<div class="page-header">

						<div class="page-leftheader">
							<ol class="breadcrumb">
								<li class="breadcrumb-item"><a href="./"><i class="fe fe-home mr-2 fs-14"></i>Home</a>
								</li>
								<li class="breadcrumb-item active" aria-current="page"><a href="#">Account Deposit</a>
								</li>
							</ol>
						</div>


					</div>
					<!--End Page header-->

					<!-- Row-1 -->
					<center>
						<div class="" id="packages">
							<h3>Investment Packages</h3>
						</div>
					</center>

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

<?php if ($_smarty_tpl->tpl_vars['fatal']->value == 'one_per_month') {?>
You can deposit once a month only.
<?php }?>

<?php } else { ?>


<?php echo '<script'; ?>
 language="javascript"><!--
function openCalculator(id)
{

  w = 225; h = 400;
  t = (screen.height-h-30)/2;
  l = (screen.width-w-30)/2;
  window.open('?a=calendar&type=' + id, 'calculator' + id, "top="+t+",left="+l+",width="+w+",height="+h+",resizable=1,scrollbars=0");


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

  for (i = 0; i < document.spendform.h_id.length; i++)
  {
    if (document.spendform.h_id[i].value == id)
    {
      document.spendform.h_id[i].checked = true;
    }
  }

  <?php }?>


}

function updateCompound() {
  var id = 0;
  var tt = document.spendform.h_id.type;
  if (tt && tt.toLowerCase() == 'hidden') {
    id = document.spendform.h_id.value;
  } else {
    for (i = 0; i < document.spendform.h_id.length; i++) {
      if (document.spendform.h_id[i].checked) {
        id = document.spendform.h_id[i].value;
      }
    }
  }

  var cpObj = document.getElementById('compound_percents');
  if (cpObj) {
    while (cpObj.options.length != 0) {
      cpObj.options[0] = null;
    }
  }

  if (cps[id] && cps[id].length > 0) {
    document.getElementById('coumpond_block').style.display = '';

    for (i in cps[id]) {
      cpObj.options[cpObj.options.length] = new Option(cps[id][i]);
    }
  } else {
    document.getElementById('coumpond_block').style.display = 'none';
  }
}
var cps = {};
--><?php echo '</script'; ?>
>


<?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'deposit_success') {?>
<h3>The deposit has been successfully saved.</h3>
<br><br>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'deposit_saved') {?>
<h3>The deposit has been saved. It will become active when the administrator checks statistics.</h3><br><br>
<?php }?>

<br>
<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['less_min']) {?>
Sorry, you can deposit not less than <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['less_min']);?>
 with selected processing<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['greater_max']) {?>
Sorry, you can deposit not greater than <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['greater_max']);?>
 with selected processing<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['not_enough_funds']) {?>
You have no enough funds to complete the operation.<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['ec_forbidden']) {?>
Sorry, deposit with selected processing is temproary forbidden.<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['cannot_invest_this_plan_anymore']) {?>
Sorry, you cannot invest this plan anymore<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['external_deposits_disabled']) {?>
Deposit to this plan from external processing is forbidden.
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['internal_deposits_disabled']) {?>
Deposit to this plan from balance is forbidden.
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_ps']) {?>
Please, select funds source.
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['deposits_amount_exeeded']) {?>
Your total deposit in &quot;<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['errors']->value['deposits_amount_exeeded']['plan'], ENT_QUOTES, 'UTF-8', true));?>
&quot; should not more than <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['errors']->value['deposits_amount_exeeded']['amount_limit']));?>
<br><br>
<?php }?>
<?php }?>
	<!-- Row -->
					<div class="row">
<?php
$_from = $_smarty_tpl->tpl_vars['plans']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['plan'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['plan']->_loop = false;
$_smarty_tpl->tpl_vars['__foreach_fplans'] = new Smarty_Variable(array('iteration' => 0));
foreach ($_from as $_smarty_tpl->tpl_vars['plan']->value) {
$_smarty_tpl->tpl_vars['plan']->_loop = true;
$_smarty_tpl->tpl_vars['__foreach_fplans']->value['iteration']++;
$_smarty_tpl->tpl_vars['__foreach_fplans']->value['first'] = $_smarty_tpl->tpl_vars['__foreach_fplans']->value['iteration'] == 1;
$foreach_plan_Sav = $_smarty_tpl->tpl_vars['plan'];
?>
<div class="col-md-4">
<div class="panel price  panel-color">
<?php
$_from = $_smarty_tpl->tpl_vars['plan']->value['plans'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['o'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['o']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['o']->value) {
$_smarty_tpl->tpl_vars['o']->_loop = true;
$foreach_o_Sav = $_smarty_tpl->tpl_vars['o'];
?>
<div class="panel-body text-center pt-0"><br>
<center><img src="bb/lg.png" ></center><br>
<div class="price-title" style="color: #fff; font-size: 30px;"><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</div><br>
<p class="lead font-weight-semibold"><strong><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['o']->value['percent']);?>
 /</strong> %</p></div>
<?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?>
<form method=post name="spendform">
<input type=hidden name=a value=deposit>
<ul class="list-group list-group-flush text-center">
<?php
$_from = $_smarty_tpl->tpl_vars['plan']->value['plans'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['o'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['o']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['o']->value) {
$_smarty_tpl->tpl_vars['o']->_loop = true;
$foreach_o_Sav = $_smarty_tpl->tpl_vars['o'];
?>
<li class="list-group-item"><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['plan']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</li>
<li class="list-group-item">Min. Deposit: <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['o']->value['min_deposit']));?>
</li>
<li class="list-group-item">Max. Deposit: <?php if ($_smarty_tpl->tpl_vars['o']->value['max_deposit'] == 0) {?>&infin;<?php } else {
echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['o']->value['max_deposit']));
}?></li>
<?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?>
<li>
<div class="row">
<div class="col-lg">
<input class="form-control" align=center placeholder="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['o']->value['min_deposit']);?>
" type="text" name="amount" value='<?php echo smarty_modifier_myescape(amount_smarty_format((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['amount'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['min_deposit']->value : $tmp)));?>
' >
<select class="form-control" name="type">
<option value="0">Select Crypto</option>
<?php
$_from = $_smarty_tpl->tpl_vars['dps']->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'];
?>
<option value="process_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['type'] == "process_".((string)$_smarty_tpl->tpl_vars['p']->value['id'])) {?>checked<?php }?> data-fiat="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['fiat']);?>
" ><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>
</option>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
<?php
$_from = $_smarty_tpl->tpl_vars['dps']->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'];
?>
<option value="account_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['type'] == "account_".((string)$_smarty_tpl->tpl_vars['p']->value['id'])) {?>checked<?php }?> data-fiat="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['fiat']);?>
" <?php if ($_smarty_tpl->tpl_vars['p']->value['available'] <= 0) {?>disabled<?php }?> ><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>
 - <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['available'],$_smarty_tpl->tpl_vars['p']->value['id']));?>
</option>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
</select>
<input type="hidden" name=h_id value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['plan']->value['id']);?>
" <?php if ((((isset($_smarty_tpl->tpl_vars['__foreach_fplans']->value['first']) ? $_smarty_tpl->tpl_vars['__foreach_fplans']->value['first'] : null) == 1) && (!$_smarty_tpl->tpl_vars['frm']->value['h_id'])) || ($_smarty_tpl->tpl_vars['frm']->value['h_id'] == $_smarty_tpl->tpl_vars['plan']->value['id'])) {?> checked <?php }?> onclick="updateCompound()">
</div>
</div>
</li>
</ul>
<div class="panel-footer text-center border-right-0 border-left-0">
<button type="submit" class="btn btn-lg btn-primary btn-block">Deposit Now!</button>
</div>
</form>
</div>
</div>
<?php
$_smarty_tpl->tpl_vars['plan'] = $foreach_plan_Sav;
}
?>
</div>
					<!-- End Row -->
					<!-- End Row-1 -->

				</div>
			</div>
			<!-- End hor-content-->
		</div>

<?php echo '<script'; ?>
 language=javascript>
/*
for (i = 0; i<document.spendform.type.length; i++) {
  if ((document.spendform.type[i].value.match(/^process_/))) {
    document.spendform.type[i].checked = true;
    break;
  }
}
*/
updateCompound();
<?php echo '</script'; ?>
>


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

}
}
?>