<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<?php require APPPATH.'/views/'.TEMPLATE_NAME.'/page_css.php'; ?>
<div class="centreInner ">
    <div class="mainInner radius5 "> 
        <!---->
        <div class="personalBox_top">
            <?= $person ?>
        </div>
        <!---->
        <div class="titleTabBox">
            <?= $tabs ?>
        </div>
        <!---->

                <form id="search_form" name="search_form" method="get" action="">
                    <div class="branchCommon_p_box">
                        <div class="marketing_table_box"> 
                            <?php if ($bid == '') { ?>
                            <div class="branchCommon_p branchCommon_m">
                                <div class="none_house_box">
                                    <div class="info">
                                        您还没有选择竞投词哦！选择了具体的竞投词<br/>我们才能为您提供该词的往期竞投参考数据。<br/><a href="/market_bid_rent/hotword/on/<?=$houseId?>/" class="link">去选择竞投词&gt;&gt;</a>
                                    </div>
                                </div>
                            </div>
                            <?php } else if ($bidHistoryRecord) { ?>
                            <div class="branchCommon_p branchCommon_p_2">
                                <table class="table">
                                    <tbody><tr class="bg">
                                            <th class="th w165">关键词</th>
                                            <th class="th w155">竞投状态</th>
                                            <th class="th">实时状态</th>
                                        </tr>
                                    </tbody></table>
                            </div>
                            <?php foreach($bidHistoryRecord as $v) { ?>
                            <div class="branchCommon_p branchCommon_m">
                                <table class="table">
                                    <tbody><tr>
                                            <td class="td w165"><strong class="blod name_c"><?=$v['keyword']?></strong>
                                                <p class="time_c"><?=substr(date('Y.m.d', strtotime($v['tg_start_time'])),0,10)?>-<?=substr(date('Y.m.d', strtotime($v['tg_end_time'])),0,10)?></p></td>
                                            <td class="td w155"><?=$v['bid_status']?></td>
                                            <td class="td"><div class="sata_tex_fg sata_tex_fg_t">共有<span class="blod num"><?=$v['number']?></span>人出价，竞投成功的房豆投入情况</div><div style="padding-left:153px;">
                                                    <?=$v['record_list']?></div></td>
                                        </tr>
                                    </tbody></table>
                            </div>
                            <?php } ?>
                            <?php } else { ?>
                            <div class="branchCommon_p branchCommon_m">
                                <div class="none_house_box">
                                    <div class="info">
                                        本期为第一期竞投，暂时还没有竞投参考数据哦！<br/>下期开始就有参考数据了。<br/>俗话说，千里之行始于足下，要想开单就从参与竞投开始吧！

                                    </div>
                                </div>
                            </div>
                            <?php } ?>

                        </div>

                        <!--翻页-->
                        <div class="picPreviewPagBox">
                            <?=$page?>
                        </div>
                        <!----> 
                    </div>

                </form>
 
            <!--竞投说明 -->
            <?php require APPPATH.'views/'.TEMPLATE_NAME.'/market_bid_rent/bid_rent_ruler.php' ?>
        </div>
    </div>
</div>