<?php 
foreach($list as $v) {  ?>
<div id="bid<?=$v['bid_id']?>" class="m_item clearfix">
    <div class="status_bor status_inner radius5 status_bor2">
        <div class="clearfix">
            <div class="pic_box_m pic_box_m_01">
                <div class="pic_show pic_show02" style="height:160px;">
                    <div class="pic pic_02"><a ><img alt="" width="160" height="120" src="<?=$v['block_image']?>"></a></div>
                    <div class="info02">
                        <span style="width: 80px;" class="block_name"><a class="link" href="<?=  get_blockinfo_url($v['block_id'])?>" target="_blank" ><?=$v['block_name']?></a></span>
                    </div>
                </div>
                <div class="hot_box"><span class="title">搜索热度：</span>
                    <div class="hot_bg">
                        <?=BlockLevelHeat::friendlyShow($v['block_heat_level'])?>
                    </div>
                </div>
            </div>
            <div class="status_box_m status_box_m02">
                <div class="status_m_inner status_m_inner0<?=$v['timeRing']?>">
                    <div class="t_sata"><?=$v['bid_status_str']?></div>
                    <div class="t_tex">剩余</div>
                    <div class="t_time"><?=date("F d,Y H:i:s",strtotime($v['time']))?></div>
                </div>
                <div>
                    <span style="padding-left: 58px;">本期推广时间</span>
                    <span class="time"><?=date("Y.m.d",strtotime($v['tg_start_time']))?>-<?=date("Y.m.d",strtotime($v['tg_end_time']))?></span>
                </div>
            </div>
            <div class="logbuch_box_m logbuch_box_m02">
                <div class="item_title">目前有 <strong class="color_title"><?=$v['number']?></strong>人已出价</div>
                <div class="tex" style="margin-bottom: 5px;">目前房豆投入情况</div>
                <div class="fraction_rank_box" style="margin-bottom: 6px;">
                    <?=$growthBrokerBidBlockExpert->rankList($v['record'],$bidPeriodsStatus,null,$v['my_record'],$v['bid']['max_win_number'])?>
                </div>
                <?php if($v['all_prev_stat']) { ?>
                <p>截止到上期，已有<?=$v['all_prev_stat']['number']?>人参与</p>
                <p>竞投成功：最高<?=$v['all_prev_stat']['max']?>房豆，最低<?=$v['all_prev_stat']['min']?>房豆</p>
                <?php } else { ?>
                <p>&nbsp;</p>
                <p>截止到上期,还没有人参与</p>
                <?php } ?>

            </div>
        </div>
    </div>
    <div class="status_bor status_fun radius5 status_bor2">
        <?php  
        $tuiHuan = '';
          if($v['winFlag']>0&&$v['winFlag']<=4) {
            $stateAuction = "stateAuction1";
            $fen = "投入".$v['my_score']."房豆";
          } else if($v['winFlag']=='-1') {
            $stateAuction = "stateAuction3";
            $fen = "";
          } else {
            $stateAuction = "stateAuction2";
            $fen = "投入".$v['my_score']."房豆";
            $tuiHuan = '房豆已退还';
          } ?>
        <div class="stateAuction <?=$stateAuction?>">
            <div class="inner"><?=$fen?></div>
        </div>
        <div class="stateAuction2Text"><?=$tuiHuan?></div>
    </div>

</div>
<?php } ?>
