<?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">
                    <?php echo $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' id="day" name='stime' value='<?php echo $stime;?>'  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-{%d-30}',maxDate:'%y-%M-{%d-1}'})"/>
                                    </div>
                                    <span class="fg">一</span>
                                    <div class="fgInput ">
									<input readonly type="text" class="Wdate input_text w126" style='cursor:pointer' name='etime' value='<?php echo $etime;?>'  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-{%d-30}',maxDate:'%y-%M-{%d-1}'})"/>
                                    </div>
<!--                                    <p class="textFg textFg2">&nbsp;&nbsp;</p>-->
<!--                                    <p class="textFg textFg2">&nbsp;&nbsp;</p>-->
<!--                                    <p class="textFg textFg2">&nbsp;&nbsp;</p>-->
                                    <p class="textFg textFg6">类型：</p>
                                    <div class="fgInput jsFgInput" >
                                        <div class="imitateSelect">
                                            <label class="labelImitate">急推</label>
                                            <input type="text" name='type2'  class="imitate imitateIe" value="<?=$types[$type]?>" readonly />
                                            <input type="hidden" name='type' value="<?=$type?>" class="jsImitateHidden"/>
                                            <div class="listImitate">
                                                <dl class="inner">
                                                    <?php foreach($types as $k=>$v) {
                                                        echo '<dd><a class="link" oid="'.$k.'" href="####">'.$v.'</a></dd>';
                                                    }  ?>
                                                </dl>
                                            </div>
                                        </div>
                                    </div>
                                    <p class="textFg textFg6">房源编号：</p>
                                    <div class="fgInput ">
                                        <input type="text" name='houseid'  class="input_text w100" value="<?=$houseid?>" />
                                    </div>
                                    <div class="fgInput" > 
                                        <input class="downReportBtn btnCon radius5" type="submit" value="搜索" style="float:left;margin-left: 8px;">
                                    </div>

                                </div>
                            </dd>
                        </dl>
                    </div>
					<style>
                        .labelMakeTable .table4 td {width: 20%;}
                    </style>
                <div class="belongBox labelMakeTable radius5">
                    <table class="table table4">
                        <tr class="bg">
                            <td><b>类型</b></td>
                            <td><b>房源编号</b></td>
<!--                            <td><b>加入时间</b></td>-->
<!--                            <td><b>到期时间</b></td>-->
                            <td><b>操作时间</b></td>
                            <td><b>操作原因</b></td>
                            <td><b>IP</b></td>
<!--                            <td><b>有效性</b></td>-->
                        </tr>
                        <?php if($list && is_array($list) && !empty($list)) { ?>
                        <?php foreach ($list as $v) {?>
                                <tr>
<!--                                    <td class="td">--><?//=house_tag::getTblText($v['tbl'])?><!--</td>-->
                                    <td class="td"><?= $type==1?"放心看":"急推"?></td>
                                    <td class="td"><?=$v['rowid']?></td>
<!--                                    <td class="td">--><?//=date("Y-m-d H:i:s",$v['addtime'])?><!--</td>-->
                                    <td class="td"><?=$v['operatetime']?date("Y-m-d H:i:s",$v['operatetime']):date("Y-m-d H:i:s",$v['ctime'])?></td>
<!--                                    <td class="td">--><?//=$v['reason']?><!--</td>-->

                                    <td class="td"><?=($v['reason']==0 && $v['esta']==1)?'添加':house_tag::getReasonText($type,$v['reason'])?></td>
                                    <td class="td"><?=$v['ip']?></td>
                                <tr>
                        <?php   } ?>
                        <?php } else { ?>
                        <tr>
                            <td class="td" colspan='5'>没有符合您搜索条件的记录</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>