{include file="mheader.tpl"}
<!-- PAGE CONTENT -->
         
            <div class="header-title-breadcrumb element-box-shadow">
              <div class="container">
                  <div class="row">
                      <div class="col-md-7 col-sm-6 col-xs-12 text-left">
                        <h3>Make a Deposit</h3>
                      </div>
                      <div class="col-md-5 col-sm-6 col-xs-12 hide-on-tablet">
                          <ol class="breadcrumb text-right">
                            <li><a href="?a=account">Home</a></li> 
                            <li class="active">Deposit</li>
                          </ol>                    
                      </div>
                  </div>
              </div>
            </div>
            <div class="spacer_80"></div>
            
{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.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}

<form method=post name="spendform">
<input type=hidden name=a value=deposit>
<section class="pricing-section bg-12">
              <div class="pricing pricing--palden">
                  <div class="pricing__item">
                      <div class="pricing__deco">
                          <svg class="pricing__deco-img" version="1.1" id="Layer_1" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="100px" viewBox="0 0 300 100" enable-background="new 0 0 300 100" xml:space="preserve">
                              <path class="deco-layer deco-layer--1" opacity="0.6" fill="#FFFFFF" d="M30.913,43.944c0,0,42.911-34.464,87.51-14.191c77.31,35.14,113.304-1.952,146.638-4.729
    c48.654-4.056,69.94,16.218,69.94,16.218v54.396H30.913V43.944z" />
                              <path class="deco-layer deco-layer--2" opacity="0.6" fill="#FFFFFF" d="M-35.667,44.628c0,0,42.91-34.463,87.51-14.191c77.31,35.141,113.304-1.952,146.639-4.729
    c48.653-4.055,69.939,16.218,69.939,16.218v54.396H-35.667V44.628z" />
                              <path class="deco-layer deco-layer--3" opacity="0.7" fill="#FFFFFF" d="M43.415,98.342c0,0,48.283-68.927,109.133-68.927c65.886,0,97.983,67.914,97.983,67.914v3.716
    H42.401L43.415,98.342z" />
                              <path class="deco-layer deco-layer--4" fill="#FFFFFF" d="M-34.667,62.998c0,0,56-45.667,120.316-27.839C167.484,57.842,197,41.332,232.286,30.428
    c53.07-16.399,104.047,36.903,104.047,36.903l1.333,36.667l-372-2.954L-34.667,62.998z" />
                          </svg>
                          <div class="pricing__price"><span class="pricing__currency">%</span>5<span class="pricing__period">/ daily</span></div>
                          <h3 class="pricing__title text-bold">For 20 Days</h3>
                      </div>
                      <ul class="pricing__feature-list">
                          <li class="pricing__feature text-bold">15 Feb - 28 Feb</li>
                          <li class="pricing__feature text-bold">$10.00 - $250.00 / 105.00%</li>
                          <li class="pricing__feature text-bold">$251.00 - $700.00 / 107.00%</li>
                          <li class="pricing__feature text-bold">$701.00 - $1200.00 / 110.00%</li>
                          <li class="pricing__feature text-bold">$1201.00 - $1600.00 / 118.00%</li>
                          <li class="pricing__feature text-bold">$1601.00 - $2500.00 / 125.00%</li>
                          <li class="pricing__feature">1 TKA = 0.0014 ETH<br><span>Token rate</span></li>
                          <li class="pricing__feature">7 500 000<br><span>Hard cap</span></li>
                      </ul>
                      <a href="javascript:openCalculator('1')" class="btn btn-primary btn-xs button-element">Calculate Profit(%)</a>
                  </div>
                  <div class="pricing__item pricing__item--featured">
                      <div class="pricing__deco">
                          <svg class="pricing__deco-img" version="1.1" id="Layer_2" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="100px" viewBox="0 0 300 100" enable-background="new 0 0 300 100" xml:space="preserve">
                              <path class="deco-layer deco-layer--1" opacity="0.6" fill="#FFFFFF" d="M30.913,43.944c0,0,42.911-34.464,87.51-14.191c77.31,35.14,113.304-1.952,146.638-4.729
    c48.654-4.056,69.94,16.218,69.94,16.218v54.396H30.913V43.944z" />
                              <path class="deco-layer deco-layer--2" opacity="0.6" fill="#FFFFFF" d="M-35.667,44.628c0,0,42.91-34.463,87.51-14.191c77.31,35.141,113.304-1.952,146.639-4.729
    c48.653-4.055,69.939,16.218,69.939,16.218v54.396H-35.667V44.628z" />
                              <path class="deco-layer deco-layer--3" opacity="0.7" fill="#FFFFFF" d="M43.415,98.342c0,0,48.283-68.927,109.133-68.927c65.886,0,97.983,67.914,97.983,67.914v3.716
    H42.401L43.415,98.342z" />
                              <path class="deco-layer deco-layer--4" fill="#FFFFFF" d="M-34.667,62.998c0,0,56-45.667,120.316-27.839C167.484,57.842,197,41.332,232.286,30.428
    c53.07-16.399,104.047,36.903,104.047,36.903l1.333,36.667l-372-2.954L-34.667,62.998z" />
                          </svg>
                          <div class="pricing__price"><span class="pricing__currency">%</span>6<span class="pricing__period">/ Daily</span></div>
                          <h3 class="pricing__title text-bold">For 15 Days</h3>
                      </div>
                      <ul class="pricing__feature-list">
                          <li class="pricing__feature text-bold">1 Mar - 15 Mar</li>
                          <li class="pricing__feature text-bold">$10.00 - $250.00 / 105.00%</li>
                          <li class="pricing__feature text-bold">$251.00 - $700.00 / 107.00%</li>
                          <li class="pricing__feature text-bold">$701.00 - $1200.00 / 110.00%</li>
                          <li class="pricing__feature text-bold">$1201.00 - $1600.00 / 118.00%</li>
                          <li class="pricing__feature text-bold">$1601.00 - $2500.00 / 125.00%</li>
                          <li class="pricing__feature">1 TKA = 0.0014 ETH<br><span>Token rate</span></li>
                          <li class="pricing__feature">5 000 000<br><span>Hard cap</span></li>
                      </ul>
                      
                      
                      <a href="javascript:openCalculator('2')" class="btn btn-primary btn-xs button-element">Calculate Profit(%)</a>
                  </div>
                  <div class="pricing__item">
                      <div class="pricing__deco">
                          <svg class="pricing__deco-img" version="1.1" id="Layer_3" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="100px" viewBox="0 0 300 100" enable-background="new 0 0 300 100" xml:space="preserve">
                              <path class="deco-layer deco-layer--1" opacity="0.6" fill="#FFFFFF" d="M30.913,43.944c0,0,42.911-34.464,87.51-14.191c77.31,35.14,113.304-1.952,146.638-4.729
    c48.654-4.056,69.94,16.218,69.94,16.218v54.396H30.913V43.944z" />
                              <path class="deco-layer deco-layer--2" opacity="0.6" fill="#FFFFFF" d="M-35.667,44.628c0,0,42.91-34.463,87.51-14.191c77.31,35.141,113.304-1.952,146.639-4.729
    c48.653-4.055,69.939,16.218,69.939,16.218v54.396H-35.667V44.628z" />
                              <path class="deco-layer deco-layer--3" opacity="0.7" fill="#FFFFFF" d="M43.415,98.342c0,0,48.283-68.927,109.133-68.927c65.886,0,97.983,67.914,97.983,67.914v3.716
    H42.401L43.415,98.342z" />
                              <path class="deco-layer deco-layer--4" fill="#FFFFFF" d="M-34.667,62.998c0,0,56-45.667,120.316-27.839C167.484,57.842,197,41.332,232.286,30.428
    c53.07-16.399,104.047,36.903,104.047,36.903l1.333,36.667l-372-2.954L-34.667,62.998z" />
                          </svg>
                          <div class="pricing__price"><span class="pricing__currency">%</span>7<span class="pricing__period">/ Daily</span></div>
                          <h3 class="pricing__title text-bold">For 10 Days</h3>
                      </div>
                      <ul class="pricing__feature-list">
                          <li class="pricing__feature text-bold">15 Mar - 31 Mar</li>
                          <li class="pricing__feature text-bold">$10.00 - $250.00 / 105.00%</li>
                          <li class="pricing__feature text-bold">$251.00 - $700.00 / 107.00%</li>
                          <li class="pricing__feature text-bold">$701.00 - $1200.00 / 110.00%</li>
                          <li class="pricing__feature text-bold">$1201.00 - $1600.00 / 118.00%</li>
                          <li class="pricing__feature text-bold">$1601.00 - $2500.00 / 125.00%</li>
                          <li class="pricing__feature">1 TKA = 0.0014 ETH<br><span>Token rate</span></li>
                          <li class="pricing__feature">10 000 000<br><span>Hard cap</span></li>
                      </ul>
                      
                      <a href="javascript:openCalculator('3')" class="btn btn-primary btn-xs button-element">Calculate Profit(%)</a>
                  </div>
                  <div class="spacer_30"></div>
                  <div class="col-lg-6">
                        <div class="form-group">
                          <label for="inputType" class="col-lg-12 control-label">Select Plan</label>
                          <div class="col-lg-12 select-form">
                            <select class="form-control input-type-1" id="inputType" name="h_id">
                                {section name=plans loop=$plans}
                              <option value="{$plans[plans].id}">{$plans[plans].name}</option>
                                {/section}
                            </select>
                          </div>
                          <div class="spacer_30"></div>
                      <label for="inputType" class="col-lg-12 control-label">Payment Method</label>
                      <div class="col-lg-12 select-form">
 

    <select class="form-control input-type-1" id="inputType" name="type">
{section name=p loop=$ps}
   {if $ps[p].balance > 0 and $ps[p].status == 1}
   <option value='account_{$ps[p].id}'>Balance {$ps[p].name}</option>
   
   {/if}
{/section}
{section name=p loop=$ps}
   {if $ps[p].status}
 <option value='process_{$ps[p].id}'>{$ps[p].name}</option>
  {/if}
{/section}

     </select> 
     </div>
     <div class="spacer_30"></div>
     <label for="inputType" class="col-lg-12 control-label">Your Account Balance ({$currency_sign})</label>
                      <div class="col-lg-12">
                <input type="text" value='{$currency_sign}{$ab_formated.total}' class="form-control input-type-1" id="inputType" disabled >
                </div>
                <div class="spacer_30"></div>
     <label for="inputType" class="col-lg-12 control-label">Enter Deposit Amount</label>
                      <div class="col-lg-12">
                <input type="text" name=amount value='{$min_deposit}' class="form-control input-type-1" id="inputType">
                </div>
                
        </div>
        <div class="spacer_30"></div>
        <div class="col-lg-12">
                  <input type=submit value="Spend" class="form-control-event text-bold">
                  </div>
 </div>
              </div>
              
           </section>
           </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}
<a href="#" class="scrollToTop"><i class="fa fa-chevron-up text-white" aria-hidden="true"></i></a>
</div>
         
{include file="mfooter.tpl"}