<?php
$menu_arr = array(
    'qa_manage'  => array('class'=>'a01', 'title'=>'待解决问题', 'url'=>'/ask/to_answer/'),
    'qa_manage1'      => array('class'=>'a02', 'title'=>'全部问题', 'url'=>'/ask/all_qa/'),
    'qa_manage2'       => array('class'=>'a03', 'title'=>'我的问答', 'url'=>'/ask/my_qa/'),
    'sell_modify'      => array('class'=>'a04', 'title'=>'发布出售', 'url'=>'/sell/add/'),
    'sell_manage'       => array('class'=>'a05', 'title'=>'管理出售', 'url'=>'/sell/manage/active/'),
    'sell_manage_invalid' => array('class'=>'a05', 'title'=>'管理出售', 'url'=>'/sell/manage/invalid/'),
    'sell_manage_frozen' => array('class'=>'a05', 'title'=>'管理出售', 'url'=>'/sell/manage/frozen/'),
    'buy_match_manage'   => array('class'=>'a06', 'title'=>'求购匹配', 'url'=>'/house_demands/buy/'),
    'rent_modify'      => array('class'=>'a07', 'title'=>'发布出租', 'url'=>'/rent/add/'),
    'rent_manage'       => array('class'=>'a08', 'title'=>'管理出租', 'url'=>'/rent/manage/active/'),
    'rent_manage_invalid' => array('class'=>'a08', 'title'=>'管理出租', 'url'=>'/rent/manage/invalid/'),
    'rent_manage_frozen' => array('class'=>'a08', 'title'=>'管理出租', 'url'=>'/rent/manage/frozen/'),
    'rent_match_manage'  => array('class'=>'a09', 'title'=>'求租匹配', 'url'=>'/house_demands/rent/'),
    'exchange_gift'     => array('class'=>'a10', 'title'=>'礼品兑换', 'url'=>''),
    'personal_house'    => array('class'=>'a11', 'title'=>'本区个人房源', 'url'=>'/personal_house/sell/'),
    'market/block_expert'      => array('class'=>'a12', 'title'=>'小区专家', 'url'=>'/market_block_expert/'),
    'market/block_expert_apply_not'      => array('class'=>'a12', 'title'=>'小区专家', 'url'=>'/market_block_expert/'),
    'shop_house_recommend'    => array('class'=>'a13', 'title'=>'店铺房源推荐', 'url'=>'/shop/shop_house_recommend/'),
    'shop_set_basic'          => array('class'=>'a14', 'title'=>'店铺基本设置', 'url'=>'/shop/shop_set_basic/'),
    'ucenter/my_growth'         => array('class'=>'a15', 'title'=>'我的成长', 'url'=>'/ucenter_growth/'),
    'statistics_analysis/today'        => array('class'=>'a16', 'title'=>'使用概况', 'url'=>'/statistics_analysis/today/'),
    'statistics_analysis/log'           => array('class'=>'a17', 'title'=>'使用日志', 'url'=>'/statistics_analysis/log/'),
    'statistics_analysis/label'           => array('class'=>'a17', 'title'=>'使用日志', 'url'=>'/statistics_analysis/label/'),
    'statistics_analysis/login_history'           => array('class'=>'a17', 'title'=>'使用日志', 'url'=>'/statistics_analysis/login_history/'),
    'statistics_analysis/violation'           => array('class'=>'a17', 'title'=>'使用日志', 'url'=>'/statistics_analysis/violation/'),
    'statistics_analysis/click'        => array('class'=>'a18', 'title'=>'点击统计', 'url'=>'/statistics_analysis/click/'),
    'statistics_analysis/refresh'      => array('class'=>'a19', 'title'=>'刷新统计', 'url'=>'/statistics_analysis/refresh/'),
    'market_analysis'   => array('class'=>'a20', 'title'=>'市场分析', 'url'=>''),
    'statistics_analysis/checkport' => array('class'=>'a21', 'title'=>'端口自检', 'url'=>'/statistics_analysis/checkport/'),
    'ucenter/my_information'   => array('class'=>'a22', 'title'=>'基本资料管理', 'url'=>'/ucenter_information/index/'),
    'ucenter/my_message_list'=> array('class'=>'a23', 'title'=>'消息管理', 'url'=>'/ucenter_message/index/'), 
    'manage_credit'     => array('class'=>'a24', 'title'=>'房豆查看', 'url'=>''),
    'market_index'      => array('class'=>'a25', 'title'=>'营销中心', 'url'=>'/market_index/'),
    'house_auction'     => array('class'=>'a26', 'title'=>'房源竞投', 'url'=>''),
    'supply_block'      => array('class'=>'a27', 'title'=>'小区完善', 'url'=>''),
    //'ucenter/my_history'=> array('class'=>'a28', 'title'=>'成长足迹', 'url'=>'/ucenter_history/exp/'),
    'my_medal'          => array('class'=>'a29', 'title'=>'我的勋章', 'url'=>''),
    'market_bid_block_expert/index'      => array('class'=>'a12', 'title'=>'小区专家', 'url'=>'/market_bid_block_expert/index/'),
    'market_bid_block_expert/history'      => array('class'=>'a12', 'title'=>'小区专家', 'url'=>'/market_bid_block_expert/history/'),
    'market_bid_house_manage/all'      => array('class'=>'a37', 'title'=>'二手房房源竞投', 'url'=>'/market_bid_house_manage/all/'),
    'market_bid_house_manage/on'      => array('class'=>'a37', 'title'=>'二手房房源竞投', 'url'=>'/market_bid_house_manage/on/'),
    'market_bid_house_manage/history'      => array('class'=>'a37', 'title'=>'二手房房源竞投', 'url'=>'/market_bid_house_manage/history/'),
    'market_bid_rent_manage/all'      => array('class'=>'a38', 'title'=>'租房房源竞投', 'url'=>'/market_bid_rent_manage/all/'),
    'market_bid_rent_manage/on'      => array('class'=>'a38', 'title'=>'租房房源竞投', 'url'=>'/market_bid_rent_manage/on/'),
    'market_bid_rent_manage/history'      => array('class'=>'a38', 'title'=>'租房房源竞投', 'url'=>'/market_bid_rent_manage/history/'),
    'payment_index' => array('class'=>'a30', 'title'=>'首页', 'url'=>'/payment/'),   
    'payment_recharge' => array('class'=>'a31', 'title'=>'立即充值', 'url'=>'/payment/recharge/'),   
    'payment_transaction' => array('class'=>'a32', 'title'=>'交易记录', 'url'=>'/payment/transaction/'),
    'vas/vas_packing' => array('class'=>'a33', 'title'=>'房源包装', 'url'=>'/vas_packing_house/'),
    //'vas/school_house' => array('class'=>'a34', 'title'=>'定投推广', 'url'=>'/vas_set_promot/schoolHouse/'),
    'loan_index' => array('class'=>'a35', 'title'=>'鑫蕴通贷款', 'url'=>'/my_loan/index/'),  
	'complain/complain' => array('class'=>'a36', 'title'=>'举报有奖', 'url'=>'/my_complain/complain/'), 
	'feedback' => array('class'=>'yz1', 'title'=>'意见反馈', 'url'=>'/my_feedback/feedback/'), 
	'tag_index' => array('class'=>'bq1', 'title'=>'标签零售', 'url'=>'/tag_index/'),
	'tag_index/record' => array('class'=>'bq1', 'title'=>'标签零售记录', 'url'=>'/tag_index/record/'),  
);
?>
<!--左边 导航 开始 itemOn-->
<div id="asideBox">
<div class="layout asideBox">
    <div class="aside">
        <dl class="list">
            <?php    
            foreach($menu_left_arr as $menu)
            {
                $selected = '';
                if(is_array($menu)&& !empty($menu)) 
                {
                    $menuKey = $menu[0];
                    $selected = in_array($page_key, $menu) ? 'on':'';
                } else {
                    $menuKey = $menu;
                    $selected = $menuKey == $page_key ? 'on':'';
                }
                if(isset($menu_arr[$menuKey]))
                {
            ?>
                <dd class="dd <?=$selected?>">
                    <a class="a <?=$menu_arr[$menuKey]['class']?>" href="<?=$menu_arr[$menuKey]['url']?>">
                        <?=$menu_arr[$menuKey]['title']?>
                    </a>
                </dd>
            <?php
                }
            }
            ?>
        </dl>
    </div>
</div>
</div>
<!--左边 导航 结束-->