{include file="public/seller_top" /} 
<div class="seller_main w1200">
    {include file="public/seller_left" /}
    <div class="seller_right">
        <div class="seller_items">
            {include file="public/seller_items" /}
        </div>
        
        
<form method="get" action="" target="_self">
  <table class="search-form">
    <tr>
      <td></td>
      <th>账单状态</th>
      <td class="w160"><select name="bill_state">
          <option>{$Think.lang.ds_please_choose}</option>
          <option {if condition="$Think.get.bill_state eq BILL_STATE_CREATE"}selected{/if} value="<?php echo BILL_STATE_CREATE;?>">已出账</option>
          <option {if condition="$Think.get.bill_state eq BILL_STATE_STORE_COFIRM"}selected{/if} value="<?php echo BILL_STATE_STORE_COFIRM;?>">商家已确认</option>
          <option {if condition="$Think.get.bill_state eq BILL_STATE_SYSTEM_CHECK"}selected{/if} value="<?php echo BILL_STATE_SYSTEM_CHECK?>">平台已审核</option>
          <option {if condition="$Think.get.bill_state eq BILL_STATE_SUCCESS"}selected{/if} value="<?php echo BILL_STATE_SUCCESS?>">结算完成</option>
        </select></td>
      <th>结算单号</th>
      <td class="w160"><input type="text" class="text w150" name="ob_no" value="{$Think.get.ob_no}" /></td>
      <td class="w70 tc"><label class="submit-border">
          <input type="submit" class="submit" value="{$Think.lang.ds_common_search}" />
        </label></td>
    </tr>
  </table>
</form>
<table class="dssc-default-table">
  <thead>
    <tr>
      <th class="w10"></th>
      <th>结算单号</th>
      <th>起止时间</th>
      <th>本期应收</th>
      <th>结算状态</th>
      <th>付款日期</th>
      <th class="w120">{$Think.lang.ds_handle}</th>
    </tr>
  </thead>
  <tbody>
    <?php if (!empty($bill_list) && is_array($bill_list)) { ?>
    <?php foreach($bill_list as $bill_info) { ?>
    <tr class="bd-line">
      <td></td>
      <td><?php echo $bill_info['ob_no'];?></td>
      <td><?php echo date('Y-m-d',$bill_info['ob_start_date']).' - '.date('Y-m-d',$bill_info['ob_end_date']);?></td>
      <td><?php echo $bill_info['ob_result_totals'];?></td>
      <td><?php echo billState($bill_info['ob_state']);?></td>
      <td><?php echo $bill_info['ob_state'] == BILL_STATE_SUCCESS ? date('Y-m-d',$bill_info['ob_pay_date']) : '';?></td>
      <td><a href="{:url('/home/sellervrbill/show_bill',['ob_no'=>$Think.param.ob_no])}">{$Think.lang.ds_view}</a></td>
    </tr>
    <?php }?>
    <?php } else { ?>
    <tr>
      <td colspan="20" class="norecord"><div class="warning-option"><i class="icon-warning-sign"></i><span>{$Think.lang.no_record}</span></div></td>
    </tr>
    <?php } ?>
  </tbody>
  <tfoot>
    <?php if (!empty($bill_list) && is_array($bill_list)) { ?>
    <tr>
      <td colspan="20"><div class="pagination">分页等完善</div></td>
    </tr>
    <?php } ?>
  </tfoot>
</table>
<script type="text/javascript">
$(function(){
    $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
    $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
        
        
        
        
        
        
    </div>
</div>
{include file="public/mall_footer" /}