<?php /* Smarty version 2.6.22, created on 2014-02-09 22:56:20
         compiled from D:/Program+Files/Ampps/www//zipmarket/apps/items/views/purchase_panel.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'D:/Program Files/Ampps/www//zipmarket/apps/items/views/purchase_panel.html', 7, false),array('modifier', 'escape', 'D:/Program Files/Ampps/www//zipmarket/apps/items/views/purchase_panel.html', 28, false),)), $this); ?>
<?php if (check_login_bool ( )): ?>
  <div class="fancy-purchase-panel shadowed" style="display: none">
    <div class="inner-boundary">
      <div class="inner-border">
        <div class="buynow">
            <h2 class="underlined"><a href="#" class="buynow-submit"><?php echo $this->_tpl_vars['lang']['buy_now_paypal']; ?>
 <span>به وسلیه درگاهای بانکی</span></a></h2>
           <p>خرید محصول به صورت آنلاین به مبلغ <strong class="buynow-figure"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['price'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
</strong> <?php echo $this->_tpl_vars['currency']['symbol']; ?>
 ، پرداخت به وسیله تمامی کارت های عضو شتاب<br>
                <small class="surcharge">(شامل 1.5 درصد کارمزد بانکی)</small>
                <a href="#" class="buynow-submit"><img alt="PayPal Options" height="27" src="/static/img/paypal_options.jpg" width="202" /></a>
            </p>

      <form id="buynow-form" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['item']['id']; ?>
/" method="post">
      <input type="hidden" name="licence" id="licence" value="regular" />
      <input type="hidden" name="pay_method" value="paypal" />
       <input type="submit" name="buy" value="<?php echo $this->_tpl_vars['lang']['purchase']; ?>
"/>
      </form>      
        </div>

        <span class="or">or</span>

        <div class="prepaid">
          <h2 class="underlined"><a href="#" class="prepaid-submit"><?php $this->assign('foo', ((is_array($_tmp=$this->_tpl_vars['item']['your_profit'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f"))); ?>
خرید با موجودی حساب</a></h2>
          <p><?php echo $this->_tpl_vars['lang']['pay']; ?>
 <strong class="prepaid-figure"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['prepaid_price'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
</strong> <?php echo $this->_tpl_vars['currency']['symbol']; ?>
 از موجودی حساب شما . موجودی شما : <strong><?php echo ((is_array($_tmp=$_SESSION['user']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
</strong><br/>
<small>( <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
deposit/">شارژ حساب شما </a>)</small>
          </p>
      <form id="prepaid-form" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['item']['id']; ?>
/" method="post">
        <input id="stored-item-name" type="hidden" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
        <input type="hidden" name="licence" id="licence" value="regular" />
      <input type="hidden" name="pay_method" value="deposit" />
        <input type="submit" name="buy" value="<?php echo $this->_tpl_vars['lang']['purchase']; ?>
"/>
      </form>      
		</div>
        <a class="close-panel" href="#">Close</a>
      </div>
    </div>
  </div>
  <?php else: ?>
<div class="account-required panel shadowed" style="display: none">
  <div class="inner-boundary">
    <h2>برای پرداخت شما باید وارد سایت شوید</h2>
    <div class="choices">
      <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_up/" role="button" class="choices__signup btn-icon update auto-width">ثبت نام در سایت</a>
      <span>یا</span>
	  <form id="licence" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['item']['id']; ?>
/" method="post">

        <input type="hidden" name="licence" id="licence" value="regular" />

      <a href="javascript:;" role="button" onclick="document.getElementById('licence').submit();" class="choices__signin btn-icon submit auto-width">ورود به سایت</a>
	  </form>
    </div>
    <a class="close-panel" href="#"></a>
  </div>
</div>
<?php endif; ?> 