{include file="headera.tpl"}
  <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="main-content">

                <div class="page-content">
<div class="container">
    <div class="row content">
{if $fatal}

{if $fatal == 'one_per_month'}
You can deposit once a month only.
{/if}

{else}

{literal}
<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");

{/literal}
  {if $qplans > 1}
{literal}
  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;
    }
  }
{/literal}
  {/if}
{literal}

}

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 = {};
--></script>
{/literal}

{if $frm.say eq 'deposit_success'}
<h3>The deposit has been successfully saved.</h3>
<br><br>
{/if}

{if $frm.say eq 'deposit_saved'}
<h3>The deposit has been saved. It will become active when the administrator checks statistics.</h3><br><br>
{/if}

<br>
{if $errors}
{if $errors.less_min}
Sorry, you can deposit not less than {$currency_sign}{$errors.less_min} with selected processing<br><br>
{/if}
{if $errors.greater_max}
Sorry, you can deposit not greater than {$currency_sign}{$errors.greater_max} with selected processing<br><br>
{/if}
{if $errors.not_enough_funds}
You have no enough funds to complete the operation.<br><br>
{/if}
{if $errors.ec_forbidden}
Sorry, deposit with selected processing is temproary forbidden.<br><br>
{/if}
{if $errors.cannot_invest_this_plan_anymore}
Sorry, you cannot invest this plan anymore<br><br>
{/if}
{if $errors.no_ps}
Please, select funds source.
{/if}
{/if}

<br>
        <div class="col-sm-12 text-left">
             <div class="card my-4">
        <h5 class="card-header bg-primary text-white">Make a deposit</h5>
       
        <div class="card-body">
<form method=post name="spendform">
<input type=hidden name=a value=deposit>


             <div class="row my-3">
                            <div class="col-md-4">
                                <div class="card card-pricing">
                                    <div class="card-body text-center">
                                        <h2 class="card-pricing-price">4%</h2>
                                        <span class="card-pricing-icon text-primary">
                                            <i class="fe-bar-chart"></i>
                                        </span>
                                        <h2 class="card-pricing-price"> ROI </h2>
                                        <ul class="card-pricing-features">
                                            <li>Min  - $200</li>
                                            <li>Max  - $4999</li>
                                            <li>Duration - 5 Days</li>
                                            <li>Instant Withdrawals</li>
                                            
                                            <li>Fast Support</li>
                                            
                                        </ul>
                                       
                                    </div>
                                </div> <!-- end Pricing_card -->
                            </div> <!-- end col -->

                            <div class="col-md-4">
                                <div class="card card-pricing">
                                    <div class="card-body text-center">
                                        <h2 class="card-pricing-price">4.5%</h2>
                                        <span class="card-pricing-icon text-primary">
                                            <i class="fe-bar-chart"></i>
                                        </span>
                                        <h2 class="card-pricing-price"> ROI </h2>
                                        <ul class="card-pricing-features">
                                            <li>Min  - $5000</li>
                                            <li>Max  - $9999</li>
                                            <li>Duration - 5 Days</li>
                                            <li>Instant Withdrawals</li>
                                             
                                            <li>Fast Support</li>
                                        </ul>
                                       
                                    </div>
                                </div> <!-- end Pricing_card -->
                            </div> <!-- end col -->

                            <div class="col-md-4">
                                <div class="card card-pricing">
                                    <div class="card-body text-center">
                                        <h2 class="card-pricing-price">5%</h2>
                                        <span class="card-pricing-icon text-primary">
                                            <i class="fe-bar-chart"></i>
                                        </span>
                                        <h2 class="card-pricing-price">ROI </h2>
                                        <ul class="card-pricing-features">
                                            <li>Min  - $10000</li>
                                            <li>Max  - $19999</li>
                        
                                             <li>Duration - 7 Days</li>
                                             <li>Instant Withdrawals</li>
                                            <li>Fast Support</li>
                                        </ul>
                                       
                                    </div>
                                </div> <!-- end Pricing_card -->
                            </div> <!-- end col -->
                            
                           
                        </div>
                        <div class="row my-3">
                            <div class="col-md-4">
                                <div class="card card-pricing">
                                    <div class="card-body text-center">
                                        <h2 class="card-pricing-price">5.5%</h2>
                                        <span class="card-pricing-icon text-primary">
                                            <i class="fe-bar-chart"></i>
                                        </span>
                                        <h2 class="card-pricing-price"> ROI </h2>
                                        <ul class="card-pricing-features">
                                            <li>Min  - $20000</li>
                                            <li>Max  - Unlimited</li>
                                            <li>Duration - 5 Days</li>
                                            <li>Instant Withdrawals</li>
                                            
                                            <li>Fast Support</li>
                                            
                                        </ul>
                                       
                                    </div>
                                </div> <!-- end Pricing_card -->
                            </div> <!-- end col -->

                         

                          
                        </div>
                     
                        

                       
                            
                           
                            
                        </div>
<label class="form-label">Your Account Balance</label>
<input  class="form-control"  value='{$currency_sign}{$ab_formated.total}' disabled>
      <br>
<br>
<label class="form-label">Select Package</label>

<select name=h_id class="form-control">
{section name=plans loop=$plans}
 <option value='{$plans[plans].id}'>{$plans[plans].name}</option>
{/section}
 </select>
<br>
<br>

<label class="form-label">Select Payment Method</label>
<select name=type class="form-control">
{section name=p loop=$ps}
   {if $ps[p].balance > 0 and $ps[p].status == 1}
<option value="account_{$ps[p].id}" {if $frm.type == "account_`$ps[p].id`"}checked{/if} >Account {$ps[p].name}</option> 
   {/if}
{/section}
{section name=p loop=$ps}
   {if $ps[p].status}
<option value="process_{$ps[p].id}" {if $frm.type == "process_`$ps[p].id`"}checked{/if}{if !$frm.type && $smarty.section.p.index == 0}checked{/if} >Spend funds from {$ps[p].name}</option>
   {/if}
{/section}
  </select>
<br>
<br>
<br>
<label class="form-label">Enter Amount</label>
<br>
<input class="form-control" name=amount value='{$frm.amount|default:$min_deposit|amount_format}' placeholder="Deposit Amount">
<br>
</div>
<div class="card-footer text-muted">
    <button type=submit value="Spend" class="btn btn-primary ml-auto">Deposit</button>

</div>

</form>
{literal}
<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();
</script>
{/literal}

{/if}

</div>
                            </div>
                        </div>

                    </div>

{include file="footera.tpl"}