<!--标签零售样式-->
<style>
#asideBox .bq1 { background: url("<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/bq_sprites.png") no-repeat 0 -138px ;}
#asideBox .on .bq1{ background: url("<?=STATIC_SOURCE_URL?>/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/'.TEMPLATE_NAME.'/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>
<div id="centre" class="layout">
    <div class="centreInner ">
        <div class="mainInner radius5 " style="height:800px;"> 
            <!---->
            <div class="personalBox_top">
                <?= $person ?>
            </div>
            <!---->
			
			<?php echo $hotword;?>

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

            <form id="search_form" name="search_form" method="get" action="">
                <div class="branchCommon_p_box">
                    <?php if ($cBidPeriods['status'] == 1 || $data_info) { ?>
                            <?php 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>
                                            <?php
                                            $statusStr = '';
                                            if ($cBidPeriods['status'] == 1) {
                                                $statusStr = '竞投中';
                                                $style = 'style="color:#0f9b40;"';
                                            } else {
                                                $style = '';
                                                $statusStr = '竞投结束';
                                            }
                                            ?>
                                            <th class="th w95" <?=$style?>><?=$statusStr?></th>
                                            <th class="th w85">推广时间</th>
                                            <th class="th w140">操作</th>
                                        </tr>
                                        <?php
                                        foreach ($data_info as $key => $row) {
                                            ?>
                                            <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:220px;">
                                                        <a href="<?=get_sellinfo_url($row['house_id'])?>" target="_blank">
                                                            <?=$row['content']?></a></div></td>
                                                <td class="td"><?=$house['infotype'][$row['infotype']]?></td>
                                                <td class="td">
                                                    <?php
                                                    foreach ($row['bid_status'] as $v) {
                                                        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']];
                                                            }
                                                        }
                                                    }
                                                    ?>
                                                </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 if ($row['esta'] == 1) { ?>
                                                        <?php if ($row['isstar']!=3) { ?>
                                                            <div class="info_tex"><a href="/sell/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->generateBidHouseUrl($row['house_id'],$row['block_id']);
															?>
															<span style="color:#666;">/</span> 
															<?php 
															 echo $self->generateBidHouseUrlHot($row['house_id'],$row['content']);
															?>

															<br>

                                                            <?php
                                                            if(!empty($functionSwitch['growthBidHouseDistrict']))
                                                            {
                                                                echo $self->generateBidHouseDistrictUrl($row['house_id'],$row['district']);
                                                            }

                                                            if(!empty($functionSwitch['growthBidHouseDistrict']) && !empty($functionSwitch['growthBidHouseStreet']))
                                                            {
                                                                echo '<span style="color:#666;">&nbsp;/&nbsp;</span>';
                                                            }

                                                            if(!empty($functionSwitch['growthBidHouseStreet']))
                                                            {
                                                                echo $self->generateBidHouseStreetUrl($row['house_id'],$row['streetname']);
                                                            }
                                                            ?>
                                                            </div>
                                                        <?php } ?>
                                                    <?php } else if ($row['esta'] == 2) { ?>
                                                        <div class="info_tex"><a href="/sell/manage/invalid/" class="link_fun" target="_blank">房源已失效<br/>快去激活&gt;&gt;</a></div>
                                                    <?php } else { ?>
                                                        <div class="info_tex"><a href="/sell/add/" class="link_fun" target="_blank">房源不满足竞投条件<br/>快去发布&gt;&gt;</a></div>
                <?php } ?>
                                                </td>
                                            </tr>

                                <?php } ?>
                                    </table>
                                </div>
                    
        <?php } else { ?>
                                <div class="none_house_box">
                                    <div class="info">
                                        很遗憾，本期您还没有参与房源竞投哦！<br>
                                        <a href="/market_bid_house_manage/all/" class="link">赶快去竞投吧&gt;&gt;</a>
                                    </div>
                                </div>
                            <?php } ?>

                    <?php } else if ($cBidPeriods['status'] == 3) { ?>
                        <div class="none_house_box">
                            <div class="info">
                                提示：很遗憾，上期竞投已结束，您没有参与，可别错过下期了哦！
                                <br>
                            </div>
                        </div>
                    <?php } else { ?>
                        <div class="none_house_box">
                            <div class="info">
                                很遗憾，上期竞投已经结束，离下期竞投开始还剩<span class='time'><?php echo date("F d,Y H:i:s", strtotime($cBidPeriods['start_time'])); ?></span>，<br>可别错过下期了哦！
                                <br>

                            </div>
                        </div>
    <?php }
?>
                </div>
                <div class="picPreviewPagBox">
                        <?=$page?>
                    </div>
        </div>
    </div>
</div>
<!--脚部-->

<?php require APPPATH.'/views/'.TEMPLATE_NAME.'/market_bid_house_manage/foot.php'; ?>




