<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">财务管理</a><span lay-separator="">/</span>
      <a><cite>在线支付记录</cite></a>
    </div>
    <div class="oe_tool_bar ft" style="display: none;">
      <button class="layui-btn layui-btn-sm search" id="but_submit_search" lay-submit lay-filter="searchform2">
        <i class="layui-icon layui-icon-search"></i>
        搜索
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->
  
  <div class="oe_searchbar layui-form">
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">&nbsp;UID：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="suserid" id="suserid" class="layui-input" value="<!--{if $suserid > 0}--><!--{$suserid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">用户名：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="susername" id="susername" class="layui-input" value="<!--{$susername}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">姓名：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="struename" id="struename" class="layui-input" value="<!--{$struename}-->" />
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">单&#12288;号：</div>
        <div class="layui-input-inline">
          <input type="text" name="spaynum" id="spaynum" class="layui-input" value="<!--{$spaynum}-->" />
        </div>
      </div>
    </div>
    
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">标题：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="stitle" id="stitle" class="layui-input" value="<!--{$stitle}-->" />
        </div>
      </div>

      <div class="layui-inline">
        <div class="layui-form-label">日&#12288;期：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="sdate" id="sdate" class="layui-input" placeholder="年-月-日" value="<!--{$sdate}-->" /> 
        </div>
        <div class="layui-form-label">-</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="edate" id="edate" class="layui-input" placeholder="年-月-日" value="<!--{$edate}-->" />
        </div>
      </div>
      <script type="text/javascript">
      layui.use('laydate', function(){
          $laydate = layui.laydate;
          $laydate.render({
              elem: "#sdate"
          });
          $laydate.render({
              elem: "#edate"
          });
      });
      </script>
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
    </div>
    
    <div class="layui-form-item">
      <div class="layui-form-label">类&#12288;型：</div>
      <div class="label_box">
        <input type="hidden" name="stype" id="stype" value="<!--{$stype}-->" />
        <span f="but_search_cat" data-val="" data-input="stype"<!--{if empty($stype)}--> class="current"<!--{/if}-->>不限</span>
        <span f="but_search_cat" data-val="recharge" data-input="stype"<!--{if $stype == 'recharge'}--> class="current"<!--{/if}-->>会员充值</span>
        <span f="but_search_cat" data-val="vip" data-input="stype"<!--{if $stype == 'vip'}--> class="current"<!--{/if}-->>会员开通VIP</span>
        <span f="but_search_cat" data-val="freesid" data-input="stype"<!--{if $stype == 'freesid'}--> class="current"<!--{/if}-->>解锁信件</span>
        <span f="but_search_cat" data-val="viewcontact" data-input="stype"<!--{if $stype == 'viewcontact'}--> class="current"<!--{/if}-->>会员查看微信</span>
        <!--//0.02.08-->
        <span f="but_search_cat" data-val="selfrz" data-input="stype"<!--{if $stype == 'selfrz'}--> class="current"<!--{/if}-->>会员实名认证</span>

        <!--//0.06.28-->
        <span f="but_search_cat" data-val="sendgift" data-input="stype"<!--{if $stype == 'sendgift'}--> class="current"<!--{/if}-->>赠送礼物</span>
        
      </div>
    </div>
    
    <div class="layui-form-item">
      <div class="layui-form-label">状&#12288;态：</div>
      <div class="label_box">
        <input type="hidden" name="sflag" id="sflag" value="<!--{$sflag}-->" />
        <span f="but_search_cat" data-val="0" data-input="sflag"<!--{if $sflag == '0'}--> class="current"<!--{/if}-->>不限</span>
        <span f="but_search_cat" data-val="1" data-input="sflag"<!--{if $sflag == '1'}--> class="current"<!--{/if}-->>待支付</span>
        <span f="but_search_cat" data-val="2" data-input="sflag"<!--{if $sflag == '2'}--> class="current"<!--{/if}-->>成功</span>
        <span f="but_search_cat" data-val="3" data-input="sflag"<!--{if $sflag == '3'}--> class="current"<!--{/if}-->>失败</span>
      </div>
    </div>
    
    <input type="hidden" name="sbefore" id="sbefore" value="<!--{$sbefore}-->" />
    
  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">
    <div class="oe_tbl_tool clearfix">
      <div class="oe_search_time clearfix" style="margin-left:0px;">
        <span f="but_search_cat" data-val="0" data-input="sbefore"<!--{if $sbefore == '0'}--> class="current"<!--{/if}-->>全部</span>
        <span f="but_search_cat" data-val="1" data-input="sbefore"<!--{if $sbefore == '1'}--> class="current"<!--{/if}-->>今天</span>
        <span f="but_search_cat" data-val="2" data-input="sbefore"<!--{if $sbefore == '2'}--> class="current"<!--{/if}-->>昨天</span>
        <span f="but_search_cat" data-val="7" data-input="sbefore"<!--{if $sbefore == '7'}--> class="current"<!--{/if}-->>最近7天</span>
        <span f="but_search_cat" data-val="30" data-input="sbefore"<!--{if $sbefore == '30'}--> class="current"<!--{/if}-->>最近30天</span>
      </div>
      
      <div class="oe_tongji_bar clearfix">
        <span>在线支付(成功)：<b>￥<!--{countdata type="tj" mod="payorder" field="amount" where="v.paystatus='10' AND (v.sdkid>999 OR v.sdkid<999)<!--{$where}-->"}--></b></span>
        
        <span>余额支付(成功)：<em>￥<!--{countdata type="tj" mod="payorder" field="amount" where="v.paystatus='10' AND v.sdkid='999'<!--{$where}-->"}--></em></span>
      </div>
      <div class="oe_tongji_bar clearfix current">
        <span><b><!--{$total}--></b> 条记录</span>
      </div>
    </div>
  
    <table class="layui-table">
      <thead>
        <tr>
          <th width="6%">ID</th>
          <th width="12%">单号</th>
          <th width="10%">用户名</th>
          <th width="7%">姓名</th>
          <th width="10%">类型</th>
          <th>标题</th>
          <th width="8%">金额</th>
          <th width="9%">时间</th>
          <th width="10%">支付方式</th>
          <th width="6%">状态</th>
        </tr> 
      </thead>
      
      <!--{if empty($payorder)}-->
      <tr>
        <td colspan="10" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $payorder as $volist}-->
      <tr>
        <td class="text_center"><!--{$volist.orderid}--></td>
        <td class="text_center"><!--{$volist.paynum}--></td>
        <td class="text_center">
          <!--{if $volist.userid > 0}-->
          <!--{$volist.username}-->
          <!--{else}-->
            --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if !empty($volist.truename)}-->
          <!--{$volist.truename}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        
        <td class="text_center">
          <!--{if $volist.paytype == "vip"}-->
          会员开通VIP
          <!--{elseif $volist.paytype == "taocan"}-->
          会员开通VIP
          <!--{elseif $volist.paytype == "recharge"}-->
          会员充值
          <!--{elseif $volist.paytype == "freesid"}-->
          解锁信件
          <!--{elseif $volist.paytype == "viewcontact"}-->
          会员查看微信
          <!--{elseif $volist.paytype == "selfrz"}-->
          会员实名认证
          <!--{elseif $volist.paytype == "qzform"}-->
          会员加入<!--{$config.qunname}-->
          <!--{else}-->
          其他
          <!--{/if}-->
        </td>
        
        <td class="text_center"><!--{$volist.title}--></td>
        <td class="text_center">
          ¥<!--{doubleval($volist.amount)}-->
        </td>
        <td class="text_center">
          <!--{$volist.addtime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.addtime|date_format:"%H:%M:%S"}-->
        </td>
        <td class="text_center">
          <!--{if !empty($volist.sdktitle)}-->
          <!--{$volist.sdktitle}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.paystatus == '10'}-->
          <font color="green">成功</font>
          <!--{elseif $volist.paystatus == '11'}-->
          <font color="red">失败</font>
          <!--{else}-->
          <font color="gray">待支付</font>
          <!--{/if}-->
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    <div class="oe_page_box"><!--{$showpage}--></div>

  </div>
</div>
<!--{/if}-->

</body>
</html>