{include file="$template_path/html/header.html"}
</head>
<body class="">
{include file="$template_path/html/user-header-self.html"}

<div class="space-items clear bg-lgray b-b" id="items">
  <div class="container">
    <div class="row">
      <div class="container m-b-md text-center">
        <ul class="nav navbar-nav space-nav ">
          {include file="$template_path/users/tabsy.html"}
        </ul>

      </div>
    </div>
  </div>
</div>
{if $payments_data}
<section class="clearfix">
  <div class="container pos-rlt m-b-lg m-xs-t-none m-xs-b-none">


    {$errorMessage}

    <div class="row">

      <div class="col-xs-12 col-sm-12 col-md-6 col-md-offset-3 m-t-lg m-b-lg m-xs-t-none m-xs-b-none">
        <section class="panel no-shadow p-t-sm m-t-lg m-b-lg m-xs-t-none m-xs-b-md">
          <div class="panel-heading text-black h3 h3-xs">选择支付方式</div>
          <div class="panel-body">
            {foreach from=$payments_data item=pm}

            <div class="radioimgs clearfix m-b-md" id="radioimgs">
              <div class="radioitem radio-inline i-checks">
                <input class="checkbox" checked="checked" id="paymentway_1" name="paymentway" type="radio" value="0" />
                <i></i>
                <label for="paymentway_1"><img class="option" src="{$template_data}img/alipay.jpg" width="435px" alt="使用支付宝支付"/></label>
              </div>

              <!--&lt;!&ndash;代理支付&ndash;&gt;-->
              <!--<div class="radioitem clr">-->
              <!--<input checked="checked" id="paymentway" name="paymentway" type="radio" value="1" />-->
              <!--<label for="paymentway"><img class="option" src="{$template_data}img/chinabank.jpg" width="435px" alt="使用mobanboxPay支付"/></label>-->
              <!--</div>-->



              <!--网银在线-->
              <!--<div class="radioitem clr">
                <input id="paymentway_2" type="radio" name="paymentway" value="1" />
                <label for="paymentway_2"><img class="option" src="{$template_data}img/chinabank.jpg" alt=  "使用网银在线支付"/></label>
              </div>-->

            </div>
            <div class="submitbtn clr" id="submitbtn">
              <div style="">{$pm.form[0]}</div>
              <!--<div style="display:none;">{$pm.form[1]}</div>-->
            </div>


            {/foreach}
          </div>

          {literal}
          <script type="text/javascript">
            seajs.use(["jq", "datavalid"], function($, dvo){
              var btns = $("#submitbtn").find("div");
              $("#radioimgs").find("input[type='radio']").each(function(e){
                $(this).click(function(){
                  btns.eq(e).show().siblings("div").hide();
                });
              });
            });
          </script>
          {/literal}

        </section>

      </div>


    </div>
</section>

{/if}

{include file="$template_path/html/user-footer.html"}
</body>
</html>