<style>
    .ediv{padding-bottom:20px}
    .elput{width: 20%;margin-left: 704px;}
    .elp{padding-left: 0px;}
    .elr{padding-left: 650px;padding-top: 5px;}
    .reset_bg{margin-top: 30px;}
	.edt{padding-left:30px;}
	.edr{padding-right:20px;}
	.loc{width: 33%;text-align:center;margin-top: 20px;}
	.subsy{text-align: right;border-radius: 0 0 6px 6px;box-shadow: inset 0 1px 0 #fff;margin-top: 30px;}
	.t-p {width: 125px;float: left;font-size: 18px;margin-top: 20px;color: #000;margin-left: 0px!important;}
	.bs-example {position: relative;border-color: #e5e5e5 #eee #eee;border-style: solid;padding: 0px!important;width: 100%!important;margin-left: 0px!important;  margin-bottom: 20px;}
	.h5a-btn.btn-primary {
    color: #ffffff;
    background-color: #6bb5c1;
    border-color: #4aa1af;
    background-color: #08EC08;
    border-radius: 6px;
}
	.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;
}
.wzkmk-yhxxlb{width: 100%;min-width: 960px;padding-left: 30px;padding-right: 40px;}
.title-box {width: 100%;overflow: hidden;margin-bottom: 20px; border: 0;
}
.wzkmk-dcex{  border: 0;font-size: 14px;width: 100px;border-radius: 4px;color: #FFF;margin-top: 2px; padding: 5px 0px;float: right;margin-top: 20px;}	
</style> 
 
 <nav class="breadcrumb"> 五折卡模块 <span class="c-gray en">&gt;</span> 用户信息列表 </nav>
	<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-yhxxlb">                  
    		<div class="title-box">
    			<p class="t-p">激活用户</p>			
                <button class="form_btn_B wzkmk-dcex" onclick="javascript:location.href='<?php echo site_url('admin/user/export');?>'">导出Excel</button>
    		</div>
    		<div class="bs-example m_table_box">
                <table >
                    <thead>
                        <tr>
                            <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>
                            <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 ($userinfo as $v) :?>
                         <tr>
    	                    <td><?php echo $v['username'];?></td>
    	                    <td><?php echo date('Y-m-d',$v['createtime']);?></td>
    	                    <td><?php echo $v['realname'];?></td>
    	                    <td><?php echo $v['tel'];?></td>
    	                    <td><?php echo $v['sex'];?></td>
    	                    <td><?php echo empty($v['age'])?'':$v['age'];?></td>
    	                    <td><?php echo $v['buys'];?></td>
                            <td><?php echo $v['level'];?></td>
                            <td>
                            <?php  
                            if(!empty($v['start_time']))
                            {
                                echo date('Y-m-d', $v['start_time']);
                            }
                            ?></td>
                            <td>
                            <?php  
                            if(!empty($v['end_time']))
                            { 
                                echo date('Y-m-d', $v['end_time']);
                            }
                            ?></td>
                            <td>
                                <?php 
                                if(! empty($v['type']))
                                {
                                 echo $v['type'] == 1 ? '激活' : '购买';
                                }
                            ?></td>
                        </tr> 
                        <?php endforeach;?>                  
                    </tbody>
                </table>
            </div>
                    <?php echo $pageinfo;?>
    	</div>
     </div>    
        <script type="text/javascript" src="<?php echo asset_url('js/paging.js');?>"></script>