<!--{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 href="javascript:;">礼物管理</a><span lay-separator="">/</span>
      <a href="javascript:;">赠送记录</a><span lay-separator=""></span>
    </div>
  </div>
  <!--//Top End -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">赠送人UID：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="sfromuid" id="sfromuid" class="layui-input" value="<!--{if $sfromuid > 0}--><!--{$sfromuid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">接收人UID：</div>
        <div class="layui-input-inline input-120">
          <input type="text" name="stouid" id="stouid" class="layui-input" value="<!--{if $stouid > 0}--><!--{$stouid}--><!--{/if}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">是否付费：</div>
        <div class="layui-input-inline input-120">
          <select name="sfee" id="sfee">
            <option value="">不限</option>
            <option value="1"<!--{if $sfee == '1'}--> selected<!--{/if}-->>是</option>
            <option value="2"<!--{if $sfee == '2'}--> selected<!--{/if}-->>否</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">支付类型：</div>
        <div class="layui-input-inline input-120">
          <select name="spaytype" id="spaytype">
            <option value="">不限</option>
            <option value="1"<!--{if $spaytype == '1'}--> selected<!--{/if}-->>余额支付</option>
            <option value="2"<!--{if $spaytype == '2'}--> selected<!--{/if}-->>在线支付</option>
          </select>
        </div>
      </div>

      <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>
  <!--//search End -->
  </form>
  
  <div class="oe_table_wrap layui-form">
    
    <div class="oe_tbl_tool clearfix">
      <div class="oe_gnbar clearfix">
        <div class="select btn fl">
          <input type="checkbox" name="allid[]" lay-skin="primary" title="全选" lay-filter="selectAll">
        </div>
        <div class="btn del fl del_line" f="handle-array" data-form="myform" data-text="确定要删除吗？">
          <i class="layui-icon layui-icon-delete"></i>
          <span>删除</span>
        </div>
      </div>
      <div class="oe_tongji_bar clearfix current">
        <span><b><!--{$total}--></b> 条记录</span>
      </div>
    </div>
    
    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&a=del" method="post">
    <input type="hidden" name="a" id="a" value="del" />
    <table class="layui-table">
      <thead>
        <tr>
          <th width="8%">ID</th>
          <th width="10%">礼物</th>
          <th width="15%">赠送人</th>
          <th width="15%">接收人</th>
          <th width="8%">赠送时间</th>
          <th width="8%">费用(<!--{$config.moneyname}-->)</th>
          <th width="15%">支付状态</th>
          <th width="10%">接收人收益</th>
          <th>备注</th>
        </tr> 
      </thead>
      
      <!--{if empty($giftrecord)}-->
      <tr>
        <td colspan="9" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $giftrecord as $volist}-->
      <tr>
        <td class="text_center check">
          <input type="checkbox" lay-skin="primary" name="id[]" class="selall" value="<!--{$volist.recordid}-->" />
          <!--{$volist.recordid}-->
        </td>
        <td class="text_center">
          <img src="<!--{$volist.imgurl}-->" width="40px" height="40px" f="viewimg" /><br />
          <!--{$volist.giftname}-->
        </td>
        <td class="drop">
          &nbsp;
          <div class="down">
            <div><img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.from.headimg_0}-->" width="20px" height="20px" f="zoom_avatar" preload="0" /></div>
            <div class="sub">
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.from.headimg}-->" f="viewimg" />
            </div>
          </div>
          <!--{if $volist.from.gender=='1'}-->
          <i class="iconfont icon-nan" title="男"></i>
          <!--{else}-->
          <i class="iconfont icon-nv" title="女"></i>
          <!--{/if}-->
          <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$volist.fromuid}-->" target="_blank">
          <!--{$volist.from.username}-->/<!--{$volist.fromuid}-->
          </a><br />
          &nbsp;
          <!--{$volist.from.age}-->岁 
          <!--{hook mod="var" item="marry" type="text" value=$volist.from.marry}--> 
          <!--{area type="text" value=$volist.from.dist2}--> 
        </td>
        <td class="drop">
          &nbsp;
          <div class="down">
            <div><img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.to.headimg_0}-->" width="20px" height="20px" f="zoom_avatar" preload="0" /></div>
            <div class="sub">
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.to.headimg}-->" f="viewimg" />
            </div>
          </div>
          <!--{if $volist.to.gender=='1'}-->
          <i class="iconfont icon-nan" title="男"></i>
          <!--{else}-->
          <i class="iconfont icon-nv" title="女"></i>
          <!--{/if}-->
          <a href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$volist.touid}-->" target="_blank">
          <!--{$volist.to.username}-->/<!--{$volist.touid}-->
          </a>
          <br />
          &nbsp;
          <!--{$volist.to.age}-->岁 
          <!--{hook mod="var" item="marry" type="text" value=$volist.to.marry}--> 
          <!--{area type="text" value=$volist.to.dist2}--> 
        </td>
        <td class="text_center">
          <!--{$volist.sendtime|date_format:"%Y-%m-%d"}--><br />
          <!--{$volist.sendtime|date_format:"%H:%M:%S"}-->
        </td>
        <td class="text_center">
          <!--{doubleval($volist.fee)}-->
        </td>
        <td class="text_center">
          <!--{if $volist.fee > 0}-->
            <!--{if $volist.paystatus == '1'}-->
            <font color="green">已支付</font>
            <!--{if $volist.paytype == '2'}-->
            (在线支付)
            <!--{else}-->
            (余额支付)
            <!--{/if}-->
            <br />
            <!--{$volist.paytime|date_format:"%Y-%m-%d %H:%M"}-->
            <!--{else}-->
            未支付
            <!--{/if}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{if $volist.income > 0}-->
            <!--{doubleval($volist.income)}-->
            <!--{if $volist.paytype == '2'}-->
            (元)
            <!--{else}-->
            (<!--{$config.moneyname}-->)
            <!--{/if}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center">
          <!--{$volist.remark}-->
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    
    <div class="oe_page_box"><!--{$showpage}--></div>

  </div>
</div>
<script type="text/javascript">
$(function(){
    //预载图片
    preload_img();
});
</script>
<!--{/if}-->
</body>
</html>