<!doctype html>
<html>
    <head>
        <meta charset="GBK">
        <title><?php  echo isset($page_title) && $page_title != '' ? $page_title.'_' : ''; ?>365租售宝经纪人版</title>
        <link href="<?= STATIC_SOURCE_URL ?>/min/?g=zsbcss" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="<?= STATIC_SOURCE_URL ?>/min/?g=zsbjs"></script>
        <?php 
        if (isset($js) && $js != '') {
            echo $js;
        }
        
        if (isset($css) && $css != '') {
            echo $css;
        }
        ?>
    </head>
    <body >
        <!--头部 开始-->
        <div id="header">
            <div class="welInner">
                <div class="layout">
                    <div id="logo"> <a href="<?=GB_WO_URL?>"><img src="http://esf.s.house365.com/zsb/images/v1.0/new_logo3.png" alt="HOUSE365租售宝"></a> </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>
                            <dd class="item <?php if($memu_key=='market') echo 'itemOn'; ?>"> <a href="/market_index/" 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>
                            <dd class="item <?php if($memu_key=='question') echo 'itemOn'; ?> "><a href="/ask/to_answer/" class="link"><span class="tex">问答</span></a></dd>
							<dd class="item <?php if($memu_key=='payment') echo 'itemOn'; ?> "><a href="/payment/" class="link"><span class="tex">支付中心</span></a></dd>
                            <dd class="item appDown"><a target="_blank" href="<?=GB_ZSB_APP?>" class="linkLast">下载租售宝手机客户端</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>