{if check_login_bool()}
<div class="fancy-purchase-panel box shadowed" style="display: none">
  <div class="inner-boundary">
    <div class="inner-border p-t-lg p-b-lg p-l-lg p-r-lg">
      <div class="row buycen clr">
        <div class="col-sm-5 buynow">
          <h3 class="underlined"><a href="#" class="buynow-submit">在线支付</a></h3>
          <p>使用在线支付工具支付宝支付{$currency.symbol}<strong class="buynow-figure price text-lg text-danger">{$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="submit" class="btn btn-danger" name="buy" value="{$lang.purchase}"/>
          </form>
        </div>
        <div class="col-sm-2"><span class="text-skin" style="padding-top:30px; display: block; font-size: 30px">or</span></div>
        <div class="col-sm-5 prepaid">
          <h3 class="underlined"><a href="#" class="prepaid-submit">{assign var=foo value=$item.your_profit|string_format:"%.0f"}
            余额支付</a></h3>
          <p>使用您的余额{$currency.symbol}<strong class="">{$smarty.session.user.total|string_format:"%.2f"}</strong>支付{$currency.symbol}<strong class="buynow-figure price text-lg text-danger">{$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="submit" class="btn btn-success" name="buy" value="{$lang.purchase}"/>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
{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="/{$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="/{$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-outline text-danger b-danger btn-lg btn-index btn-block">登录</a>
        </form>

      </div>

    </div>

  </div>
</div>


{/if}