<?php require APPPATH.'/views/'.TEMPLATE_NAME.'/page_css.php'; ?>
<div id="centre" class="layout">
    <div class="centreInner ">
        <div class="mainInner radius5 "> 
            <!--头部 tab 开始-->
            <div class="titleTabBox">
                <div class="titleTab">
                    <?=$tab?>
                </div>
            </div>
            <!--头部 tab 结束-->

            <div class="statisticsReport">
                <?=form_open(uri_string(),array('method'=>'POST','name'=>'search_form'))?>
                <div class="forms ">
                    <dl class="list">
                        <dd class="list_item clearfix">
                            <label class="label">选择时间：</label>
                            <div class="fields">
                                <div class="fgInput ">
									<input readonly type="text" class="Wdate input_text w126" style='cursor:pointer' name='count_day' value='<?php echo $count_day;?>'  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-{%d-30}',maxDate:'%y-%M-{%d-1}'})"/>
                                </div>

                                <!---->
                                <p class="textFg textFg2">&nbsp;</p>
                                <div class="fgInput" > 
                                <input class="downReportBtn btnCon radius5" type="submit" value="搜索" style="float:left;"></div>
                            </div>
                        </dd>
                    </dl>
                </div>
                <div class="belongBox labelMakeTable radius5">
                    <table class="table table02">
                        <tr class="bg">
                            <td><b>时间</b></td>
                            <td><b>IP</b></td>
                        </tr>
                        <?php if($list&&is_array($list)&&!empty($list)) { 
                            foreach($list as $v) { ?>
                        <tr>
                            <td><?=date("Y-m-d H:i:s",$v['logintime'])?></td>
                            <td><?=$v['ip']?></td>
                        </tr>
                        <?php } } else { ?>
                        <tr>
                            <td colspan="2" class="td">没有符合您搜索条件的记录</td>
                        </tr>
                        <?php } ?>
                    </table>
                </div>
                <!--翻页-->
				<?php if (!empty($pagination)) { ?>
				<div class="picPreviewPagBox">
				<div class="picPreviewPag">
				<?php echo $pagination; ?>
				</div>
				<input type='hidden' name='page' value='1'>
				</div>
				<?php } ?>
				<!--结束-->
				<?=form_close()?>
            </div>
            <!----> 
        </div>
    </div>
</div>