<!--  2016-1-14 添加星级样式 -------start------- -->

<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;}
    .scoreStatisticalIndex{
        height: 16px;
        margin-top: 2px;
        margin-bottom: 1px;
    }
    .scoreStatisticalIndex .star_level{
        display: inline-block;width: 16px;
        height: 16px;background: url("<?=STATIC_SOURCE_URL?>/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("<?=STATIC_SOURCE_URL?>/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 collect-con">
            <div class="belongBox belongBox_p radius5">
                <div class="personalPInner clearfix">
                    <p class="collect-icon">放心看导购：</p>
                    <ul class="collect-voice">
                        <li>&middot; 深挖热点，独家定制房源导购，深度契合平台买房客户心理，为您的“放心看”房源提供多渠道曝光，流量蹭蹭蹭上涨。成交，就这么简单！</li>
                        <li>&middot; 针对“放心看”房源进行主题式包装，PC端和APP端多渠道推广，增加房源的曝光量，促进成交。</li>
                        <li>&middot; 经纪人只需加入放心看，在后台参与活动，填写房源编号进行报名，即可享受独家包装推广。</li>
                    </ul>
                </div>

            </div>
            <div class="belongBox belongBox_p radius5 collect-wap">
                <div class="personalPInner clearfix">
                    <div class="titleTabBox">
                        <div class="titleTab">
                            <div class="titleTabB clearfix">
                                <dl class="list">
                                    <dd class="item itemOn">
                                        <a class="link" href="/guide_project"> 我要推广</a>
                                    </dd>
                                    <dd class="item">
                                        <a class="link" href="/guide_project/my_apply"> 推广记录</a>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                    </div>

                    <div class="cf collect-read">
                        <?=form_open(uri_string(),array('method'=>'POST','name'=>'search_form'))?>
                        <div class="branchCommon branchCommon_pay radius5 ">
                            <div class="hd">
                                <table class="tableExpert">
                                    <tbody>
                                    <tr>
                                        <td class="td " width="100">
                                            <div class="">专题</div>
                                        </td>
                                        <td class="td"width="100">
                                            <div class="">房源要求</div>
                                        </td>
                                        <td class="td"width="100">
                                            <div class="">征集时间</div>
                                        </td>
                                        <td class="td "width="100">
                                            <div class="">状态</div>
                                        </td>
                                        <td class="td "width="100">
                                            <div class="">操作</div>
                                        </td>

                                    </tr>
                                    </tbody>
                                </table>
                            </div>

                            <div class="mod">
                                <?php if($project_info){?>
                                <table class="tableExpert tableExpert_no">
                                    <!--无记录-->
                                    <tbody>
                                    <?php foreach ($project_info as $key=>$value){?>
                                    <tr>

                                        <td class="td"width="100">
                                            <div class="">
                                                <?php echo $value['project_title'];?>
                                            </div>
                                        </td>
                                        <td class="td"width="100">
                                            <div class="">
                                                <?php echo $value['project_house_standard'];?>
                                            </div>
                                        </td>
                                        <td class="td"width="100">
                                            <div class="">
                                                <?php echo $value['apply_time'];?>
                                            </div>
                                        </td>
                                        <td class="td"width="100">
                                            <div class="">
                                                <?php echo $value['apply_status'];?>
                                            </div>
                                        </td>
                                        <td class="td"width="100">
                                            <div class="">
                                                <input type="button" style="height:20px;width: 40px;" class="btn autoBtn btnCon apply" value="申请" data-id="<?=$value['id']?>">
                                            </div>
                                        </td>

                                    </tr>
                                    <?php }?>
                                    </tbody>
                                </table>
                                <?php }else{ ?>
                                    <div style="text-align:center;font-size: 14px;">当前暂无推广专题</div>
                                <?php }?>
                            </div>

                        </div>
                        <!--翻页-->
                        <?php if (!empty($pagination)) { ?>
                            <div class="picPreviewPagBox">
                                <div class="picPreviewPag">
                                    <?php echo $pagination; ?>
                                </div>
                                <input type='hidden' name='page' value='1'>
                            </div>
                        <?php } ?>
                        <!--结束-->
                        <?=form_close()?>
                    </div>

                </div>

            </div>
        </div>

    </div>
</div>
<div class="dialog radius5" id="jsDialog_13_32" >
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span class="close close-win" title="关闭">Χ</span> </div>
    <div class="mod">
        <div class="text">
            当前推广仅限放心看用户参加，是否立即加入？
        </div>
        <div style="text-align:center; padding-top:8px;">
            <a href="/realHouse/marginAccount/" target="_blank" class="btn savePrjoect btnConColor radius5" >确定</a>
            <a href="####" class="btn btnCon radius5 close-win">取消</a>
        </div>
    </div>
</div>
<!--脚部-->
<script>
    $(function(){
        $('.apply').on('click',function () {
            var guide_project_id = $(this).attr('data-id');
            $.ajax({
                'url' : '/guide_project/is_guide_apply'
                ,'type': 'get'
                ,'data': {guide_project_id:guide_project_id}
                ,'dataType':'json'
                ,success:function (data) {
                    if(data.code == 1){
                        window.open("/guide_project/guide_apply?guide_project_id="+guide_project_id);
                    }else if(data.code == 2){
                        openWin("jsDialog_13_32");
                    }else{
                        alert(data.msg);
                    }
                }
            })
        })
    })
</script>