 <nav class="breadcrumb"> 五折卡模块 <span class="c-gray en">&gt;</span> 商家流水信息 </nav>
	
<style>
	.fa-search:before {
    content: "\f002";
    color: #ddd;
	vertical-align: initial;
	}
	.edt{padding-left:30px;}
	.t-p {width: 125px;float: left;font-size: 18px; margin-top: 20px;color: #000;margin-left: 0px!important;}
	.screening {
    margin-bottom: 15px;
   }
	
	.selectmr { margin-right: 15px;width: 80px;border-radius: 5px;text-align: center;margin-left: 10px;height: 28px;padding-left: 18px; text-indent: 3px!important;vertical-align: sub;}
	.table td {
    text-align: center;
    background-color: #fff;
    border: 1px solid;
    color: #333;
    border-color: #ddd;}
	.table th {
    text-align: center;
    background-color: #eee;
    border: 1px solid;
    color: #333;
    border-color: #ddd;}
	.bs-example { padding: 0px!important;width: 100%!important; margin-left: 0px!important;position: static;}
	
	.fenye ul li {
    float: left;
    margin-left: 5px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    font-weight: bold;
    cursor: pointer;
    
    }
	

.wzkmk-sjls{width: 100%;min-width: 960px;padding-left: 30px;padding-right: 40px;}    
</style>
	
	<div class="" role="main">
	
		<div style="width:100%;border-bottom: 1px solid #e5e5e5;"><li class="edt"  style="font-size: 28px; color: #7d7d7d;vertical-align: middle; padding-top: 15px; padding-bottom: 15px;">商家流水信息</div>
	<div class="wzkmk-sjls">
        
     
		<div class="title-box" style="border:0!important;">
			<p class="t-p" style="width: 200px;">商家消费记录</p>
		</div>
           <form method='post' action='<?php echo site_url('admin/shoporder/index');?>' id='search'>
        <div class="screening">
            <span>商家ID</span>
            <input type="text" name="sid" style="vertical-align: middle;border-radius: 6px;margin-left: 10px;height: 28px;" class="h5a-input form-control dateinput" value="<?php echo $search_sid != 0 ? $search_sid : '';?>">
            <span style="margin-left: 50px;">使用权益</span>
            <select name="level" class="selectmr">
                <?php foreach($all_level as $value => $name) {  ?>
                <option value="<?php echo $value;?>" <?php if($value == $search_level){ ?> selected = "selected" <?php }?> ><?php echo $name;?></option>
                <?php } ?>
            </select>
           
            <button class="serach" type="button" onclick="search.submit()" style="  margin-top: 2px;"><img src="<?php echo asset_url('images/search.png');?>" alt=""></button>
        </div>
    </form>

		<div class="bs-example m_table_box">
            <table >
                <thead>
                    <tr>
                        <th class="s-thead">商家id</th>
                        <th class="s-thead">商家名</th>
                        <th class="s-thead">消费用户名</th>
                        <th class="s-thead">使用权益</th>
                        <th class="s-thead">价格</th>
                        <th class="s-thead">折后价</th>
                        <th class="s-thead">时间</th>
                    </tr>
                </thead>
                <tbody>
                 <?php foreach($list as $v){ ?>
                 <tr>
                        <td><?php echo $v['sid'];?></td>
                        <td><?php echo $v['name'];?></td>
                        <td><?php echo $v['username'];?></td>
                        <td><?php echo $v['level'] == 1 ? '普通' : '高级';?></td>
                        <td><?php echo $v['price'];?>元</td>
                        <td><?php echo $v['discount_price'];?>元</td>
                        <td><?php echo date('Y-m-d H:i:s',$v['create_time']);?></td>
                </tr>
                 <?php } ?>              
                </tbody>
            </table>
            <?php echo $pageinfo;?>
        </div>
         </div> 
	</div>
    <script type="text/javascript" src="<?php echo asset_url('js/paging.js');?>"></script>