<?php
/**
 * 我的成长页面的模板文件
 */
?>

<!--  2016-1-14 添加星级样式 -------start------- -->
<style>
.scoreStatisticalIndex{
    height: 16px;
    margin-top: 2px;
    margin-bottom: 1px;
}
.scoreStatisticalIndex .star_level{
    display: inline-block;width: 16px;
    height: 16px;background: url("http://esf.fz.house365.com/zsb/images/v1.0/xing_add_2016_1_14.png") no-repeat 0px -29px;
}
.scoreStatisticalIndex .on{
    display: inline-block;width: 16px;
    height: 16px;background: url("http://esf.fz.house365.com/zsb/images/v1.0/xing_add_2016_1_14.png") no-repeat 0px 0px;
}

.fl{
    float: left;
}
.yx_start_level{
    margin-right: 44px;float: left;
}
.yx_info_p{
    line-height: 21px;
}
.personalPInner .item .yx_info_p_wid{
    width: 261px;
}

.personalPInner .item .clorG{
    color: #52c06c;
}
.personalPInner .item .clorY_p{
    display: inline-block;
    line-height: 24px;
    *line-height:21px;
}
</style>

<!--  2016-1-14 添加星级样式 -------end------- -->
<div id="centre" class="layout">
    <div class="centreInner ">
        <div class="mainInner radius5 "> 
            <!---->
            <div class="belongBox belongBox_p radius5">
                <div class="personalPInner clearfix">
                    <div class="photo radius5"> <a href="<?=$info['agent_url']?>" target="_blank" class="picLink"> <img alt="" src="<?= $info['smallphoto'] ?>" height="100" width="75"> </a></div>

                    <!---->
                    <div class="inner inner_p">
                        <div class="nameBox"><span class="bold mr45">&nbsp;姓名：<span class="color1"><?= $info['truename'] ?></span></span></div>
                        <div class="innerInfo">
                            <div class="item clearfix">
                              
                              
                                <div class="scoreStatisticalIndex yx_start_level">
                                   <?php $starlevel =$broker_new_info[0]['starlevel'];?>
									<?php for ($i=0;$i<$starlevel;$i++){?>
										<span class="star_level on"></span>
									<?php }?>
									<?php for ($i=0;$i<5-$starlevel;$i++){?>
										<span class="star_level "></span>
									<?php }?>
                                </div>
                                <p class="info info_p yx_info_p yx_info_p_wid">剩余 <?php if($broker_new_info[0]['distance_month']) {?><strong class="b_p clorG clorY_p2"><?php echo $broker_new_info[0]['distance_month'];?></strong> 月 <?php }?><?php if($broker_new_info[0]['distance_days']) {?><strong class="b_p clorG clorY_p2"><?php echo $broker_new_info[0]['distance_days'];?></strong> 天<?php }?>无违规记录将升级为<strong class="b_p clorY clorY_p2"><?php if($broker_new_info[0]['starlevel']==5) {?><?php echo $broker_new_info[0]['starlevel'];?><?php } else {?><?php echo $broker_new_info[0]['starlevel']+1;?><?php }?></strong>星</p>
                                <p class="info info_p"><a class="link_p" target="_blank" href="http://zsb.house365.com/help/nj/?p=598">什么是升级？</a></p>
                          
                            </div>
                            <div class="item clearfix">
                                <label class="label label_p">房&nbsp;&nbsp;&nbsp;豆：</label>
                                <p class="info info_n"><span class="clorY clorY_p"><?= $info['credit'] ?></span></p>
                                <p class="info info_p_auto"> <a href="<?=$payment_model->get_module_url('recharge')?>" target="_blank"><img alt="立即充值" src="<?= STATIC_SOURCE_URL ?>/zsb/images/v1.0/chongzhi.png"></a>&nbsp;&nbsp;<a target="_blank" class="link_p" href="http://zsb.house365.com/help/nj/?p=876">什么是房豆？</a>
                                                                    &nbsp;<a target="_blank" href="http://zsb.house365.com/help/nj/?p=518" class="link">获取房豆说明</a></p>
                            </div>
                        </div>
                    </div>
                    <div class="clear clearZoom"></div>
                    
                </div>

                <!----> 

            </div>
            <!---->

            <!--做任务赚房豆-->
            <?php if($taskData) {
                require APPPATH.'/views/ucenter/task.php';
            } ?>
            
            <?=$my_privilege?>
            
            <!----> 
        </div>
    </div>
</div>

<script type='text/javascript'>
     $(".time").each(function() {
		var x = $(this).text();
		if(x.length) {
			$(this).countdown({
				htmlTemplate: "<span class='num'>%d</span>天<span class='num'>%h</span>时<span class='num'>%i</span>分<span class='num'>%s</span>秒",
				date: x,
				yearsText:'年',
				monthsText:'月',
				daysText:'天',
				hoursText:'时',
				minutesText:'分',
				secondsText:'秒',
                                servertime:'<?php echo microtime(true)*1000;?>'
			});
		}
	})
        
</script>