<!--标签零售样式-->
<style>
#asideBox .bq1 { background: url("http://esf.s.house365.com/zsb/images/v1.0/bq_sprites.png") no-repeat 0 -138px ;}
#asideBox .on .bq1{ background: url("http://esf.s.house365.com/zsb/images/v1.0/bq_sprites.png") no-repeat 0 0 ;}
.bq-record{border-collapse: collapse; border-spacing: 0;table-layout: fixed;margin:20px 10px;}
.bq-record td,.bq-record th{border: solid 1px #d9d9d9; padding: 3px;text-align: center;height: 30px;width: 5%;}
.bq-record th{color:#333;background-color: #ebebeb;}
.bq-record td{color: #333;}
</style>
<!--标签零售样式结束-->
<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<?php require APPPATH.'/views/page_css.php'; ?>
<style type="text/css">
    .time .cd-time {
        color: #D10202;
        font-size: 12px;
        font-weight: bold;
        padding: 0 1px 0 3px;
    }
    .fraction_rank {
        margin: 10px 5px;
    }
    table .rank {
        color :#F57B38
    }
    table .rank02 {
        color:#000
    }
    .marketing_table_box {
        padding-top: 0px
    }
    .branchCommon_p_marketing .info_tex {
        padding-left: 5px; padding-right: 5px;
        text-align: center;
    }
</style>
<!--标签零售样式-->
<style>
#asideBox .bq1 { background: url("http://esf.s.house365.com/zsb/images/v1.0/bq_sprites.png") no-repeat 0 -138px ;}
#asideBox .on .bq1{ background: url("http://esf.s.house365.com/zsb/images/v1.0/bq_sprites.png") no-repeat 0 0 ;}
.bq-record{border-collapse: collapse; border-spacing: 0;table-layout: fixed;margin:20px 10px;}
.bq-record td,.bq-record th{border: solid 1px #d9d9d9; padding: 3px;text-align: center;height: 30px;width: 5%;}
.bq-record th{color:#333;background-color: #ebebeb;}
.bq-record td{color: #333;}
</style>
<!--标签零售样式结束-->
<div id="centre" class="layout">
    <div class="centreInner ">
        <div class="mainInner radius5 " style="height:800px;"> 
            <!---->
            <div class="personalBox_top">
                <?= $person ?>
            </div>
            <!---->

            <div class="titleTabBox">
                <?= $tab ?>
            </div>

            <form id="search_form" name="search_form" method="get" action="">
                <div class="forms functionBox functionBox2">
                    <dl class="list">
                        <dd class="list_item clearfix">
                            <div class="fields"> 
                                <!---->
                                <div class="fgInput jsFgInput">
                                    <div class="imitateSelect">
                                        <label class="labelImitate" >出租</label>
                                        <input class="imitate imitateIe" type="text"  readonly="">
                                        <input type="hidden" name="type" class="jsImitateHidden" value="{$infotype}"/>
                                        <div class="listImitate" >
                                            <dl class="inner">
                                                <dd><a href="####" class="link" oid='1'>出租</a></dd>
                                            </dl>
                                        </div>
                                    </div>
                                </div>
                                <p class="textFg textFg2">&nbsp;</p>

                                <!---->
                                <div class="fgInput jsFgInput">
                                    <?= $infotypeSelect ?>
                                </div>
                                <p class="textFg textFg2">&nbsp;</p>

                                <!---->
                                <div class="fgInput jsFgInput">
                                    <?= $k_idSelect ?>
                                </div>
                                <div class="fgInput nameInput " >
                                    <div class="fgInput jsNameInput jsFgInput">
                                        <label id="jsHouseNume" for="jsNameInputNF" class="labelPrev labelPrevN jslabelPrev">请输入小区名称</label>
                                        <input  type="text" class="input_text w170" id="jsNameInputNF" name="keywords" value="<?= $keywords ?>"/>
                                    </div>
                                </div>
                                <p class="textFg textFg2">&nbsp;</p>

                                <!---->
                                <div class="fgInput  nameInput "> 
                                    <!---->
                                    <p class="textFg textFg2">&nbsp;</p>
                                    <div class="fgInput" > <input type="submit"  style="cursor: pointer;" class="btn btnCon radius5" value="查询"> </div>
                                    <!----> 
                                </div>
                                <!----> 
                            </div>
                        </dd>
                    </dl>
                </div>
                
                <div class="branchCommon_p_box">
                    <?php if ($rows_all <= 0 && ($keywords != '' || $infotype != '')) { ?>
                    <div class="none_house_box">
                        <div class="info">
                            很遗憾，该搜索条件下您还没有匹配的有效房源哦！您可以
                            <br>1、换个搜索条件试试<br> 2、去发布房源吧<br>
                            <a href="/rent/add" class="link" target="_blank">赶快去发布房源吧&gt;&gt;</a>
                        </div>
                    </div>
                    <?php } else if ($rows_all > 0) { ?>
                    <div class="branchCommon_p branchCommon_p_2 branchCommon_p_marketing">
                        <table class="table">
                            <tr class="bg">
                                <th class="th w120">小区</th>
                                <th class="th">房源</th>
                                <th class="th w85">租售类型</th>
                                <th class="th w85">物业类型</th>
                                <?php 
                                        $statusStr = '';
                                        if ($cBidPeriods['status'] == 1) { 
                                                $statusStr = '竞投中';
                                                $style = 'style="color:#0f9b40;"';
                                        } else  {
                                                $style = '';
                                                $statusStr = '竞投结束';
                                        }
                                ?>
                                <th class="th w140" <?=$style?>><?=$statusStr?></th>
                                <th class="th w85">推广时间</th>
                                <th class="th w140">操作</th>
                            </tr>
                            <?php 
                            foreach($data_info as $key => $row) {
                                    $status = $row['status'];
                            ?>
                            <tr <?php if ($key % 2 != 0) {echo 'class="bg"';} ?>>
                                <td class="td"><div class="name blod">
                                        <?php echo csubstr($row['blockshowname'],0,6); ?></div></td>
                                <td class="td"><div class="info_tex"  style="width:200px;">
                                        <a href="<?php echo get_rentinfo_url($row['house_id']); ?>" target="_blank">
                                            <?=$row['content']?></a></div></td>
                                <td class="td">出租</td>
                                <td class="td"><?=$house['infotype'][$row['infotype']]?></td>
                                <td class="td">
                                    <?php if ($cBidPeriods['status'] == 2) { ?>
                                    上期竞投已结束<br>离下期开始还剩<br> <span class='time'><?php echo date("F d,Y H:i:s", strtotime($row['start_time']));?></span>
                                    <?php } else {
                                                    foreach($row['bid_status'] as $v) {
                                                            if ($v['words']) {
                                                                    echo '<p class="color_c">' . $v['words'] . '</p>';
                                                                    if ($cBidPeriods['status'] != 1) {
                                                                            if ($v['behavior'] == 1 || $v['behavior'] == 2) {
                                                                                    $cssColor = $v['behavior'] == 1 ? 's_color' : 'f_color';
                                                                                    echo '<span class = "' . $cssColor .'">' . $bidBehavior[$v['behavior']] . '</span>';
                                                                            } else {
                                                                                    echo $bidBehavior[$v['behavior']];
                                                                            }
                                                                    }
                                                            } else {
                                                                    echo $bidBehavior[$v['behavior']];
                                                            }
                                                    }
                                            
                                    } ?>
                                </td>
                                <td class="td"><?php echo date('m.d', strtotime($row['tg_start_time'])) . '-' . date('m.d', strtotime($row['tg_end_time']));?></td>
                                <td class="td">
                                    <?php 
                                    $vaidatetime = time() + 43200;
                                    if ($row['expiretime'] < $vaidatetime ) {
                                    ?>
                                    <div class="info_tex"><a href="/rent/add/" class="link_fun" target="_blank">房源有效期不足12小时<br/>重发房源&gt;&gt;</a></div>
                                    <?php } else if ($row['isstar']!=3){?>
                                    <div class="info_tex"><a href="/rent/modify/<?=$row['house_id']?>/" class="link_fun" target="_blank">多图房源才能参与<br/>快去优化&gt;&gt;</a></div>
                                    <?php } else { ?>
                                    选择竞投词<div class="info_tex info_tex02">
                                        <?php 
                                         echo $self->generateBidRentUrl($row['house_id'],$row['block_id']);
                                        ?>
                                        <span style="color:#666;">/</span> 
                                        <?php 
                                         echo $self->generateBidRentUrlHot($row['house_id'],$row['content']);
                                        ?>
                                    </div>
                                    <?php } ?>
                                </td>
                            </tr>

                            <?php } ?>
                        </table>
                    </div>
                    <?php } else { ?>
                    <div class="none_house_box">
                        <div class="info">
                            很遗憾，您还没有发布过任何房源，有房源才能参与房源竞投哦！<br>
                            <a href="/rent/add/" class="link" target="_blank">赶快去发布房源吧&gt;&gt;</a>
                        </div>
                    </div>
                    <?php }  ?>
                    <div class="picPreviewPagBox">
                        <?=$page?>
                    </div>
                    <input type="hidden" name="tab" value="all">
                    </form>
                    <?php if ($arrHotSearchWords) { ?> 
                    <div class="personalBox_top">
                        <div class="personalBox radius5 inner">
                            <div class="hotWord">
                                <div class="nameWord">本期热搜词库：</div>
                                <div class="infoWord">
                                    <?php foreach($arrHotSearchWords as $value) { ?>
                                    <span><?=$value?></span>
                                    <?php } ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php } ?>
                </div>
        </div>
    </div>
</div>
<!--脚部-->
<?php require APPPATH.'/views/market_bid_rent_manage/foot.php'; ?>


