{if check_login_bool()}


<div class="modal-content zhifu no-radius">
  <div class="modal-body m-t-lg m-b-lg">

    <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-top:-30px; font-size:30px;">
      <span class="text-lt" aria-hidden="true">
        &times;
      </span>
    </button>


    <div class="row" style="position:relative;">



      <h1 style="position:absolute; top:30%; left:47%; text-align:center; color:#f2f2f2;">Or</h1>

      <div class="col-sm-6">

        <div class="text-center buynow">
          <div class="row">

          <a href="###" class="inline-block hover">
            <span class="i-s i-s-3x">
              <i class="i i-hexagon2 i-s-base text-grays hover-rotate"></i>
              <i class="i icon-credit-card i-1x text-white"></i>
            </span>
          </a>

          </div>
          <h2>在线支付</h2>

          <p>使用在线支付工具支付{$currency.symbol}<strong class="buynow-figure">{$item.price|string_format:"%.0f"}</strong>元。<br />余额支付可享受优惠哦</p>
          <form id="buynow-form" action="/{$languageURL}items/{$item.id}/" method="post">
            <input type="hidden" name="licence" id="licence" value="regular" />
            <input type="hidden" name="pay_method" value="paymethod" />
            <input type="hidden" name="buy" value="在线支付"/>
          </form>
          <h2><a href="#" class="buynow-submit btn btn-default m-t-sm">在线支付</a></h2>
        </div>

      </div>


      <div class="col-sm-6">

        <div class="text-center prepaid">
          <a href="###" class="inline-block hover">
            <span class="i-s i-s-3x">
              <i class="i i-hexagon2 i-s-base text-success hover-rotate"></i>
              <i class="i icon-wallet i-1x text-white"></i>
            </span>
          </a>
          <h2>余额支付</h2>
          <p>使用您的余额{$currency.symbol}<strong>{$smarty.session.user.total|string_format:"%.2f"}</strong>元<br />
          支付作品{$currency.symbol}<strong class="buynow-figure text-success">{$item.prepaid_price|string_format:"%.0f"}</strong>元。(<a href="/{$languageURL}deposit/">点击充值</a>)</p>
          <form id="prepaid-form" action="/{$languageURL}items/{$item.id}/" method="post">
            <input id="stored-item-name" type="hidden" value="{$item.name|escape}">
            <input id="stored-item-category" type="hidden" value="{foreach from=$item.categories item=e}{foreach from=$e item=c name=foo}{if !$smarty.foreach.foo.last}{$categories[$c].name}{/if}{/foreach}{/foreach}">
            <input type="hidden" name="licence" id="licence" value="regular" />
            <input type="hidden" name="pay_method" value="deposit" />
            <input type="hidden" name="buy" value="{$lang.purchase}"/>
          </form>
          <h2><a href="#" class="prepaid-submit btn btn-success m-t-sm">{assign var=foo value=$item.your_profit|string_format:"%.0f"}余额支付 ( <small class="text-white">优惠</small> )<!--{$lang.purchase}--></a></h2>
        </div>


      </div>

    </div>

  </div>
</div>



{else}







<div class="modal-content" style="margin-top: 200px;">
  <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="/{$languageURL}sign_up/" class="btn btn-ghost-info btn-lg btn-index btn-block">创建账号</a>

      </div>

      <div class="col-xs-5">


        <form id="licence" action="/{$languageURL}items/{$item.id}/" method="post">
          <input type="hidden" name="licence" id="licence" value="regular" />
          <a href="javascript:;" onclick="document.getElementById('licence').submit();" class="btn btn-ghost-danger btn-lg btn-index btn-block">登录</a>
        </form>

      </div>

    </div>

  </div>
</div>


{/if}

