<?php /* Smarty version 3.1.27, created on 2021-01-23 15:34:46
         compiled from "/home/admin/web/surextrade.co/public_html/tmpl/deposit.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:561423857600c4216896a48_57960979%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c9206b35af1617aa768b2f4463cab068c0cfeacc' => 
    array (
      0 => '/home/admin/web/surextrade.co/public_html/tmpl/deposit.tpl',
      1 => 1606603630,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '561423857600c4216896a48_57960979',
  'variables' => 
  array (
    'currency_sign' => 0,
    'ab_formated' => 0,
    'fatal' => 0,
    'qplans' => 0,
    'frm' => 0,
    'errors' => 0,
    'min_deposit' => 0,
    'ps' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_600c421691a6a3_93856848',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_600c421691a6a3_93856848')) {
function content_600c421691a6a3_93856848 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/admin/web/surextrade.co/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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


  <div class="container-fluid page-body-wrapper">
	<div class="main-panel my-5">
		<div class="container">
			<div class="row "> 

<style> 
.initialx {
    display: block !important;
}



@media only screen and (min-width: 100px) and (max-width: 767px) {
    .col-6.col-md-6 h2 {
        text-align: center !important;
    }

    .col-6.col-md-6 p {
        text-align: center !important;
    }
}


</style>

 


		
			<div class="col-12">

				<div class="col-lg-12 col-md-12 grid-margin stretch-card">
					<div class="gcard">
						<div class="card-body">
						<div class="row mb-4">
							<div class="col-9 my-auto">							
							<h4 class="card-title">MAKE<b style="color:#46c4c4;"> DEPOSIT</b></h4>							<p> Enter your amount and select plan to make investment </p>							</div>	
							<div class="col-3">							
<div class="col-12 text-center " style="
    padding: 9px;
">						<p class="headbox">
									Account Balance
								</p>
						<h2 class="totalbalance-id" ><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['total']);?>

						</h2>
							<h2 style="display:none;" class="totalbalance-r">Loading...
						</h2>
							
				</div>
				</div>
				</div>
							<div class="row">
								<div class="col-md-12">
								    
<?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 }?>


<?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['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 }?>

<form method=post name="spendform">
<input type=hidden name=a value=deposit>

										<div class="row">
											<div class="col-12 mt-2">
												<div class="plan-selector">
													  													<div class="segmented-control btn-block">
														<input type=radio name=h_id data-id="plan_1" id='plan-1' value='1'  checked  onclick="updateCompound()">  <label for='plan-1' data-value="Beginner">Beginner</label>
													</div>
													  													<div class="segmented-control btn-block">
														<input type=radio name=h_id data-id="plan_2" id='plan-2' value='2'  onclick="updateCompound()">  <label for='plan-2' data-value="Advanced">Advanced</label>
													</div>
													  													<div class="segmented-control btn-block">
														<input type=radio name=h_id data-id="plan_3" id='plan-3' value='3'  onclick="updateCompound()">  <label for='plan-3' data-value="Competent">Competent</label>
													</div>
													  													<div class="segmented-control btn-block">
														<input type=radio name=h_id data-id="plan_4" id='plan-4' value='4'  onclick="updateCompound()">  <label for='plan-4' data-value="Proficient">Proficient</label>
													</div>
													  												
													 												</div>
											</div>
												<div class="col-12">										
										<div class="tab-content mt-4 mb-4">
											 											<div class="card-block tab-pane" id="plan_1">
												<div class="module__account-main__col col__100">
													
													<div class="container">
														 														<div class="row">
<div class="col-md-12 " style="
    padding: 12px;
">																<div class="module__account-main__cont">
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">after 24 HOURS</span>
																		<span class="module__account-main__str-3">20%</span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Min Deposit:</span>
																		
																		<span style="display:none;" class="module__account-main__str-3"><span id="mainvalue-1">$30.00 - $499.00</span></span>
																		<span class="module__account-main__str-3"><span id="mindep-1">$30.00 - $499.00</span></span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Max Deposit:</span>
																		<span class="module__account-main__str-3"><span id="maxdep-1">$30.00 - $499.00</span></span>
																	</div>
															
																</div>
															</div>
															
														</div>
														 													</div>
												</div>
											</div>
											 											<div class="card-block tab-pane" id="plan_2">
												<div class="module__account-main__col col__100">
													
													<div class="container">
														 														<div class="row">
<div class="col-md-12 " style="
    padding: 12px;
">																<div class="module__account-main__cont">
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">AFTER 48 HOURS</span>
																		<span class="module__account-main__str-3">50%</span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Min Deposit:</span>
																		
																		<span style="display:none;" class="module__account-main__str-3"><span id="mainvalue-2">$500.00 - $50000.00</span></span>
																		<span class="module__account-main__str-3"><span id="mindep-2">$500.00 - $50000.00</span></span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Max Deposit:</span>
																		<span class="module__account-main__str-3"><span id="maxdep-2">$500.00 - $50000.00</span></span>
																	</div>
															
																</div>
															</div>
															
														</div>
														 													</div>
												</div>
											</div>
											 											<div class="card-block tab-pane" id="plan_3">
												<div class="module__account-main__col col__100">
													
													<div class="container">
														 														<div class="row">
<div class="col-md-12 " style="
    padding: 12px;
">																<div class="module__account-main__cont">
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">AFTER 3 DAYS</span>
																		<span class="module__account-main__str-3">100%</span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Min Deposit:</span>
																		
																		<span style="display:none;" class="module__account-main__str-3"><span id="mainvalue-3">$1000.00 - $100000.00</span></span>
																		<span class="module__account-main__str-3"><span id="mindep-3">$1000.00 - $100000.00</span></span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Max Deposit:</span>
																		<span class="module__account-main__str-3"><span id="maxdep-3">$1000.00 - $100000.00</span></span>
																	</div>
															
																</div>
															</div>
															
														</div>
														 													</div>
												</div>
											</div>
											 											<div class="card-block tab-pane" id="plan_4">
												<div class="module__account-main__col col__100">
													
													<div class="container">
														 														<div class="row">
<div class="col-md-12 " style="
    padding: 12px;
">																<div class="module__account-main__cont">
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">AFTER 5 DAYS</span>
																		<span class="module__account-main__str-3">120%</span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Min Deposit:</span>
																		
																		<span style="display:none;" class="module__account-main__str-3"><span id="mainvalue-4">$2000.00 - $200000.00</span></span>
																		<span class="module__account-main__str-3"><span id="mindep-4">$2000.00 - $200000.00</span></span>
																	</div>
																	<div class="module__account-main__row-2 row">
																		<span class="module__account-main__str-2">Max Deposit:</span>
																		<span class="module__account-main__str-3"><span id="maxdep-4">$2000.00 - $200000.00</span></span>
																	</div>
															
																</div>
															</div>
															
														</div>
														 													</div>
												</div>
											</div>
											 										
											 										</div>
									</div>
										</div>
									</div>

</div>
<div class="col-12  mt-2">
<div class="form-group">
<label class="form__label form__label_btc" id="input_label">
													
<input type=text name=amount class="form-control form-control-lg JsInput" value='<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['min_deposit']->value);?>
'>
													</label>
												</div>
											</div>

								

<p> Payment Gateways </p>
<div class="row mt-3">
    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['p'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['name'] = 'p';
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['ps']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total']);
?>
       <?php if ($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['status']) {?>
        <div class="col-lg-3 col-s-12">
            <div class="wallets-block-item">
                <input class="wallet-input" type=radio name=type value="process_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
" <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['p']['index'] == 0) {?>checked<?php }?> data-id="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
" id="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
">
            <label class="wallet-box" for="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
">
    			<img class="svg_ps_coin" src="styles/assets/images/bo/svg/coins/yellow/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
.svg" alt=""><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['name']);?>
</label>
    		</div>
    	</div>
         
       <?php }?>
    <?php endfor; endif; ?>
</div>

<p> Pay from account</p>
<div class="row mt-3">
    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['p'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['name'] = 'p';
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['ps']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total']);
?>
   <?php if ($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['balance'] > 0 && $_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['status'] == 1) {?>
   <div class="col-lg-3 col-s-12">
        <div class="wallets-block-item">
            

<input class="wallet-input" type=radio name=type value="account_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
" data-id="account_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
" id="account_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
" checked>
<label class="wallet-box" for="account_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
">
<img class="svg_ps_coin" src="styles/assets/images/bo/svg/coins/yellow/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id']);?>
.svg" alt="">Balance <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ps']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['name']);?>
</label>
		
			</div>
					</div>
   <?php }?>
<?php endfor; endif; ?>
</div>

<div>
    <div class="row align-items-center">
        <div class="col-3 align-items">
            <table cellspacing=0 cellpadding=2 border=0>
                <tr>
                    <td align=right>
                        <small>
                        </small>
                    </td>
                </tr>
                <tr id="coumpond_block" style="display:none">
                    <td>
                        Compounding(%):
                    </td>
                    <td align=right>
                        <select name="compound" class=inpts id="compound_percents">
                        </select>
                    </td>
                </tr>
                <input type=submit value="Deposit" class="btn btn-block btn_deposit">
            </table>

</form>

<?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);

}
}
?>