<!doctype html>
<html>
    <head>
        <meta charset="GBK">
        <title><?php  echo isset($page_title) && $page_title != '' ? $page_title.'_' : ''; ?>365租售宝经纪人版</title>
        <meta name="renderer" content="webkit">
        <link href="<?= STATIC_SOURCE_URL ?>/min/?g=zsbcss&WebsiteVersion=<?=WebsiteVersion?>" rel="stylesheet" type="text/css">
        <!--<link href="http://esf.fz.house365.com/min/?g=zsbcss&WebsiteVersion=<?/*=WebsiteVersion*/?>" rel="stylesheet" type="text/css">-->
        <script type="text/javascript"> var GB_CITY = '<?=GB_CITY?>';</script>
        <script type="text/javascript" src="<?= STATIC_SOURCE_URL ?>/min/?g=zsbjs&WebsiteVersion=<?=WebsiteVersion?>"></script>
        <!--<script type="text/javascript" src="http://esf.fz.house365.com/min/?g=zsbjs&WebsiteVersion=<?/*=WebsiteVersion*/?>"></script>-->
        <?php 
        if (isset($js) && $js != '') {
            echo $js;
        }
        
        if (isset($css) && $css != '') {
            echo $css;
        }
        ?>
    </head>
    <body >
        <?php
            /**
             * Get Phone
             * @param int $type
             * @return string
             */
            function getPhone($type = 1)
            {
                $modelBroker = new Broker_model();
                $databaseSlave = $modelBroker->getDatabaseSlave();
                $result = $databaseSlave
                    ->where('type =', $type)
                    ->select('telno')
                    ->get('telno_config')
                    ->result_array();
                $phone = isset($result[0]['telno']) ? $result[0]['telno'] : '';
                return $phone;
            }
        ?>
        <!--头部 开始-->
        <div id="header">
            <div class="welInner">
                <div class="layout">
                    <div id="logo" style='position: relative;'> <img alt="HOUSE365租售宝" src="<?= STATIC_SOURCE_URL ?>/zsb/images/v1.0/new_logo_01.jpg" /><span style="display: block; width: 225px; position: absolute; top: 0px; font-size: 12px; height: 49px; line-height: 62px; color: rgb(231, 231, 231); cursor: pointer; left: 130px;">客服热线:<?=getPhone(4)?></span></div>
                    <div class="welRight">
                        <div class="portraitBox">
                            <div class="portraitBoxIn">
                                <p class="name">您好，<a href="/ucenter_information/index/" class="link"><?=$header_data_arr['truename']?>(<?=$header_data_arr['username']?>)</a></p>
                            </div>
                        </div>
                        <div class="icoLink">
			<?php $show_message = isset($show_message) ? $show_message : 0;  if($show_message==1 && ($message_num[0]!=0 or $message_num[1]!=0 or $message_num[2]!=0 or $message_num[4]!=0)){ ?>
                            <div class="topXbox">
                                <div class="topXboxInner">
                                    <div class="closeTopX"><span class="closeS" title="关闭" id="jsCloseS">χ</span></div>
                                   <?php if($message_num[0]>0){?> <p class="item"><span class="tex"><span class="num" style="color:#F47A37;"><?=$message_num[0]?></span>条未读公告通知</span><a href="/ucenter_message/index/" target="_blank">查看</a></p><?php }?>
                                   <?php if($message_num[1]>0){?> <p class="item"><span class="tex"><span class="num" style="color:#F47A37;"><?=$message_num[1]?></span>条未读系统消息</span><a href="/ucenter_message/index/?type=system" target="_blank">查看</a></p><?php }?>
                                   <?php if($message_num[2]>0){?> <p class="item"><span class="tex"><span class="num" style="color:#F47A37;"><?=$message_num[2]?></span>条未读店铺留言</span><a href="/ucenter_message/index/?type=shop" target="_blank">查看</a></p><?php }?>
                                </div>
                            </div>
                        <?php }?>
                            <div class="icoLinkInner" id="jsIcoLinkInner"> <a class="link link1" href="/ucenter_message/index/" title="消息"> <span id="totalId" class="number"><?php if($message_num[4]>0){?> <em class="leftIco"></em><em class="in"><?=$message_num[4]?></em> <em class="rightIco"></em> <?php }?></span> </a>
                                <div class="icoLinkInnerList">
                                    <dl class="list">
                                        <dd class="item"><a href="/ucenter_message/index/" class="lin">公告通知 <span class="numBox"><?php if($message_num[0]>0){?>(<em class="num"><?=$message_num[0]?></em>)<?php }?></span></a></dd>
                                        <dd class="item"><a href="/ucenter_message/index/?type=system" class="lin">系统消息 <span class="numBox"><?php if($message_num[1]>0){?>(<em class="num"><?=$message_num[1]?></em>)<?php }?></span></a></dd>
                                        <dd class="item"><a href="/ucenter_message/index/?type=shop" class="lin">店铺留言 <span class="numBox"><?php if($message_num[2]>0){?>(<em class="num"><?=$message_num[2]?></em>)<?php }?></span></a></dd>                                    
                                    </dl>
                                </div>
                            </div>
                        </div>
                        <div class="icoLink">
                            <div class="icoLinkInner"><a class="link link3" target="_blank" href="<?=GB_WO_HELP?>" title="帮助中心"></a></div>
                        </div>
                        <div class="icoLink">
                            <div class="icoLinkInner" id="jsIcoLinkInner2"><a class="link link4" href="#" title="更多"></a>
                                <div class="icoLinkInnerList" style="display: none;">
                                    <dl class="list">
                                        <dd class="item"><a href="<?=GB_SELL_URL?>" target="_blank" class="lin">二手房</a></dd>
                                        <dd class="item"><a href="<?=GB_RENT_URL?>" target="_blank" class="lin">租房</a></dd>
                                        <dd class="item"><a href="<?=GB_XIAOQU_INDEX_URL?>" target="_blank" class="lin">小区</a></dd>
                                        <dd class="item"><a href="<?=$header_data_arr['agent_url']?>" target="_blank" class="lin">我的店铺</a></dd>
                                    </dl>
                                </div>
                            </div>
                        </div>
                        <div class="icoLink">
                            <div class="icoLinkInner"><a class="link link2" href="/login/quit/" title="安全退出"></a></div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="nav">
                <div class="inner">
                    <div class="layout clearfix">
                        <dl class="list">
                           <?php $memu_key = $memu_key != '' ? $memu_key : '';   ?>

                            <dd class="item <?php if($memu_key=='index') echo 'itemOn'; ?>"><a href="<?=GB_WO_URL?>" class="link"><span class="tex">首页</span></a></dd>
                            
                            
                            <dd class="item <?php if($memu_key=='house_manage') echo 'itemOn'; ?>"><a href="<?=$header_house_url?>" class="link"><span class="tex">房源管理</span></a></dd>

                            <dd class="item <?php if($memu_key=='statics') echo 'itemOn'; ?>"><a href="/statistics_analysis/today/" class="link"><span class="tex">统计分析</span></a></dd>
							
							<?php
								$url = $this->config->item('url_market');
								if(empty($url)){
									$url = '/market_index/';
								}
							?>
                            <dd class="item <?php if($memu_key=='market') echo 'itemOn'; ?>"> <a href="<?php echo $url; ?>" class="link"><span class="tex">营销中心</span></a> </dd>

                            <dd class="item <?php if($memu_key=='shop') echo 'itemOn'; ?>"><a href="/shop/shop_house_recommend/" class="link"><span class="tex">店铺管理</span></a></dd>
                            
                            <dd class="item <?php if($memu_key=='ucenter') echo 'itemOn'; ?> "><a href="/ucenter_growth/" class="link"><span class="tex">个人中心</span></a></dd>
                            
                            <?php if (!empty($functionSwitch['question'])) { ?>
                            <dd class="item <?php if($memu_key=='question') echo 'itemOn'; ?> "><a href="/ask/to_answer/" class="link"><span class="tex">问答</span></a></dd>
                            <?php } ?>
				
							<?php //if (!empty($functionSwitch['payment'])) { ?>
							<?php 
								/*$config = $this->config->item('is_pay');
								if($config === false){
									$config = true;
								}else{
									if($config == 1){
										$config = true;
									}else{
										$config = false;
									}
								}
								if($config):*/

								$config = $this->config->item('is_pay');
								if(!empty($config))
								{
							?>
							<dd class="item <?php if($memu_key=='payment') echo 'itemOn'; ?> "><a href="/payment/" class="link"><span class="tex">支付中心</span></a></dd>
							<?php }?>
							<?php //} ?>

                            <?php
                            $realHouse = $this->config->item('is_open_real_house');
                            if (!empty($realHouse) && $realHouse == 1 ) {?>
                                <dd class="item <?php if($memu_key=='realHouse') echo 'itemOn'; ?> "><a href="/realHouse/marginAccount/" class="link"><span class="tex">真房源管理</span></a></dd>
                            <?php }?>

                            <dd class="item appDown"><a target="_blank" href="<?=GB_ZSB_APP?>" class="linkLast">App下载</a></dd>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
<!--头部 结束-->
<script type="text/javascript">
    function getRemindMessage() {
        $.ajax({
            type: "GET",
            url: "/ajax/get_remind_message/",
            data: {'uid': <?=$header_data_arr['uid']?>},
            success: function(data) {
                if (data == 'login') {
                    window.location.href = "/login/";
                } else {
                    var arrMessageNum = $.parseJSON(data);
                    if (arrMessageNum.length > 0) {
                        for (var i in arrMessageNum) {
                            if (arrMessageNum[i] <= 0 || i == 5) {
                                continue;
                            }
                            $('.list').children().eq(i).find('span').html('(<em class="num">'
                                    + arrMessageNum[i] + '</em>)');
                        }
                        if (arrMessageNum[5] > 0) {
                            $('#totalId').html('<em class="leftIco"></em><em class="in">'
                                    + arrMessageNum[5] + '</em> <em class="rightIco"></em> ');
                        }
                    }
                }
            }
        });
    }
    $(function() {
        //60秒获取是否有未读的消息机制
        //setInterval(getRemindMessage, 60000);
    });
</script>
<?php if(defined('NEED_ID_CARD') && NEED_ID_CARD == 1) {?>
    <div class="housecover1014"></div>
    <div class="housepop1014" style="display: none;">
        <div class="popwap cf">

            <div class="content"><!--2018-1-9 class 变动-->
                <h2>身份信息完善提醒！
                </h2>
                <p class="mt100"><!--2018-1-9 class 变动-->
                    亲爱的经纪人，由于您的后台身份证信息缺失，需要您花一点时间去申请补充完整后再使用，谢谢。</p>
                <p class="mt60"><!--2018-1-9 class 变动-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="<?php echo GB_WO_URL;?>/ucenter_information/index/?autoAlert=1">
                        <button class="hidepop">去申请</button>
                    </a>
                </p>
            </div>
        </div>
    </div>
    <style>
        .cf:after{ content:"\0020"; display:block; clear:both; height:0; font-size:0;}
        .cf{ zoom:1;}
        .fl{ float:left}
        .fr{ float:right}
        .housecover1014{ position: fixed; left: 0;top:0; background:rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient( GradientType = 0,startColorstr = "#60000000",endColorstr = "#60000000"); z-index: 19;}
        .housepop1014{ padding:10px;position: fixed; z-index: 20; background:url(http://esf.fz.house365.com/zsb/images/v1.0/house-bg.png) no-repeat; font-family: Microsoft yahei;height: 354px; z-index: 1000000;}
        .housepop1014 span.hidepop{ position: absolute; right:-10px;top:-10px; background: #FF0000; border-radius: 10px; color: #fff; height: 20px; width: 20px; text-align: center;cursor:pointer;}
        .housepop1014 .popwap button{font-family: Microsoft yahei;cursor:pointer; font-size:20px;color:#fff; border: none; background: url(http://esf.fz.house365.com/zsb/images/v1.0/house-btn.png) no-repeat; width: 240px; height: 48px; line-height: 48px; text-align: center; margin-top:20px ; }
        .housepop1014 .popwap{ width: 780px; height: 356px; font-size: 14px; line-height: 26px; }
        .housepop1014 .popwap p{ line-height:36px; padding:0;color: #666666; font-size: 18px;}
        .housepop1014 .popwap span{font-weight: 700; color: #FF0000;}
        .housepop1014 .popwap .fl{ width: 300px;}
        .housepop1014 .popwap .fl img{ margin-top: 68px; margin-left: 42px; width: 189px;}

        .housepop1014 .popwap .fr{ margin-top: 10px;+margin-top:40px; width: 480px;}
        .housepop1014 .popwap .fr h2{text-indent: 36px; color: #e53900; font-size: 28px; margin: 20px 0;}
        /* 2018-1-9 新增 */
        .mt100{margin-top:100px}
        .mt60{margin-top:60px}
        .housepop1014 .popwap .content{margin-top: 10px;+margin-top:40px;text-align: center;}
        .housepop1014 .popwap .content h2{text-indent: 36px; color: #e53900; font-size: 28px; margin: 20px 0;}
    </style>
    <script>
        $(document).ready(function(){
            ShowPop("housepop1014");
        });
        //弹出提示
        function ShowPop(show,obj){
            var bhs = $(window).height();
            var bws = $(window).width();
            $(".housecover1014").css({
                height:2 * bhs,
                width:bws,
                display:"block"
            });
            var name=show;
            var t=187;
            var l=400;
            $("." + show).css({
                "top":bhs/2 - t,
                "left":bws/2 - l
            });
            $("." + show).fadeIn(500);
        }
    </script>
<?php } ?>