<!--标签零售样式-->
<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
    }
</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="forms functionBox functionBox2">
                    <dl class="list">
                        <dd class="list_item clearfix">
                            <div class="fields"> 
                                <!---->
                                <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>换个关键词试试吧！
                            </div>
                        </div>
                    <?php } else { ?>
                        <?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 w95">竞投词</th>
                                        <th class="th" style="width:130px;">我的结果</th>
                                        <th class="th"  style="width:300px;">实时状态</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); ?><br/>
                                                    <span style="font-size:12px; color:#4c4c4c;">
            <?php echo date('m.d', strtotime($row['tg_start_time'])) . '-' . date('m.d', strtotime($row['tg_end_time'])); ?></span></div></td>
                                            <td class="td"><div class="info_tex" style="width:200px; *padding-top:5px; *padding-bottom:5px;">
                                                    <a href="<?=get_sellinfo_url($row['house_id'])?>" target="_blank">
                                                        <?=$row['content']?>[出售][<?=$house['infotype'][$row['infotype']]?>]</a></div></td>
                                            <td class="td">
                                                <?php
                                                foreach ($row['bid_status'] as $v) {
                                                    echo '<p><strong class="blod">' . $v['words'] . '</strong>';
                                                }
                                                ?>
                                            </td>
                                            <td class="td">
                                                <?php
                                                foreach ($row['bid_status'] as $v) {
                                                    if ($v['behavior'] == 1) {
                                                        $cssColor = 's_color';
                                                        $rtnCredit = '';
                                                    } else {
                                                        $cssColor = 'f_color';
                                                        $rtnCredit = ' 已返还';
                                                    }
                                                    ?>

                                                    <p><span class="<?=$cssColor?> m_l_10"><?=$bidBehavior[$v['behavior']]?></span><br/>投入<span class="color_c m_l_10"><?=$v['score']?></span>房豆<?=$rtnCredit?></p>
                                                <?php } ?>
                                            </td>
                                            <td class="td">
                                                <?php foreach ($row['record_list'] as $keyRl => $rl) { ?>
                                                    <div style="float:left;padding-left:10px;">共有<span class="blod num"><?=$row['number'][$keyRl]?></span>人出价<?=$rl?></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 } ?>
                </div>
                    <div class="picPreviewPagBox">
                        <?=$page?>
                    </div>
        </div>
    </div>
</div>
<!--脚部-->
<?php require APPPATH . '/views/'.TEMPLATE_NAME.'/market_bid_house_manage/foot.php'; ?>




