<?php /* Smarty version 2.6.22, created on 2017-11-13 22:16:35
         compiled from E:%5Cwamp%5Cwww/templates/home/default//items/purchase_panel.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'E:\\wamp\\www/templates/home/default//items/purchase_panel.html', 29, false),array('modifier', 'escape', 'E:\\wamp\\www/templates/home/default//items/purchase_panel.html', 60, false),)), $this); ?>
<?php if (check_login_bool ( )): ?>
<div class="fancy-purchase-panel box box-radius-3x" style="display: none">
  <div class="inner-boundary">
    <div class="inner-border">
      <div class="buycen">

        <div class="box-header">
          <h2>支付方式</h2>
          <small>在线购买<?php echo $this->_tpl_vars['item']['name']; ?>
</small>
        </div>
        <div class="box-tool" style="top: 24px;">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span class="text-lt" aria-hidden="true">
              <i class="icon-cross2 text-lg"></i>
            </span>
          </button>
        </div>
        <div class="text-center b-t">
          <div class="row-col">
            <div class="row-cell p-x p-y-md">
              <div class="inline m-b">
                <a class="btn btn-icon btn-social w-64 rounded btn-social-colored orange-700" title="支付宝在线支付">
                  <i class="icon-zfb text-lg blue-400" style="vertical-align: -4px;"></i>
                  <i class="icon-zfb text-lg skin"></i>
                </a>
              </div>
              <div class="buynow">
                <h3 class="m-b"><a href="#" class="buynow-submit">在线支付</a></h3>
                <p>使用在线支付工具支付<?php echo $this->_tpl_vars['currency']['symbol']; ?>
<strong class="buynow-figure price text-danger" style="vertical-align: 0;"><?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></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="paymethod" />
                  <input class="none" type="submit" name="buy" value="<?php echo $this->_tpl_vars['lang']['purchase']; ?>
"/>
                </form>
                <h3>
                  <a href="#" class="buynow-submit btn btn-sm btn-outline b-skin text-skin">在线支付</a>
                </h3>
              </div>
            </div>
            <div class="row-cell p-x p-y-md dker">
              <div class="inline m-b">
                <a class="btn btn-icon btn-social w-64 rounded btn-social-colored" title="使用账户余额支付">
                  <i class="icon-yueee text-lg orange-600"></i>
                  <i class="icon-yueee text-lg red"></i>
                </a>
              </div>
              <div class="prepaid">
                <h3 class="m-b">
                  <a href="#" class="prepaid-submit pos-rlt"><?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"))); ?>
                  余额支付
                    <b class="label text-xs rounded danger up m-l-xs" style="position: absolute; top:6px;">优惠</b>
                  </a>
                </h3>
                <p>使用您的余额<?php echo $this->_tpl_vars['currency']['symbol']; ?>

                  <strong class="price" style="vertical-align: 0;"><?php echo ((is_array($_tmp=$_SESSION['user']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</strong>
                  支付<?php echo $this->_tpl_vars['currency']['symbol']; ?>

                  <strong class="buynow-figure price text-danger" style="vertical-align: 0;"><?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>
                </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 id="stored-item-category" type="hidden" value="<?php $_from = $this->_tpl_vars['item']['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['e']):
?><?php $_from = $this->_tpl_vars['e']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['c']):
        $this->_foreach['foo']['iteration']++;
?><?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?><?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name']; ?>
<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php endforeach; endif; unset($_from); ?>">
                  <input type="hidden" name="licence" id="licence" value="regular" />
                  <input type="hidden" name="pay_method" value="deposit" />
                  <input class="none" type="submit" name="buy" value="<?php echo $this->_tpl_vars['lang']['purchase']; ?>
"/>
                </form>
                <h3>
                  <a href="#" class="prepaid-submit btn btn-sm btn-outline b-skin text-skin"><?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>
                </h3>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php else: ?>
<div class="modal-content">
  <div class="modal-header no-borders">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
      <span class="text-lt" aria-hidden="true">
        &times;
      </span>
    </button>
  </div>
  <div class="modal-body p-b-lg">

    <div class="row">

      <h2 class="text-center text-black m-b-lg m-t-none h2-xs">
        请登录之后才能继续操作
      </h2>

      <div class="col-xs-5 col-xs-offset-1">
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_up/" class="btn btn-outline b-skin text-skin btn-lg btn-index btn-block">创建账号</a>

      </div>

      <div class="col-xs-5">
        <!--<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:;" onclick="document.getElementById('licence').submit();" class="btn btn-outline text-danger b-danger btn-lg btn-index btn-block">登录</a>
        </form>-->
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
sign_in/" class="btn btn-outline text-danger b-danger btn-lg btn-index btn-block">登录</a>
      </div>

    </div>

  </div>
</div>
<?php endif; ?>