Пример #1
0
 /**
  * 单例
  * @return NavigatorHelper
  */
 public static function getInstance()
 {
     if (NULL == NavigatorHelper::$_instance) {
         NavigatorHelper::$_instance = new NavigatorHelper();
     }
     return NavigatorHelper::$_instance;
 }
Пример #2
0
 public function getUpdatePaymentAddressCustomer()
 {
     View::share(['navigator' => \NavigatorHelper::getNavigatorBarFE(), 'sideBar' => \NavigatorHelper::getSideBarFE()]);
     if (!Session::has('user')) {
         return redirect_errors('You login yet!');
     }
     $user = Session::get('user');
     if ($user['role_id'] != Role::CUS_ROLE_ID) {
         return redirect_errors('You are not Customer!');
     }
     $customer = new Customer();
     $cusInfo = $customer->with('user')->where('user_id', $user['id'])->first()->toArray();
     $current_City = Address::find($cusInfo['city_id'])->id;
     $cities = Address::where('parent_id', 0)->get()->toArray();
     $state = Address::find($cusInfo['state_id'])->toArray();
     return view('change_payment_address.index')->with(['info' => $cusInfo, 'currentCity' => $current_City, 'cities' => $cities, 'state' => $state]);
 }
Пример #3
0
                                <?php 
NavigatorHelper::getInstance()->printNavigator('adminhys/index', 'hysindex', '会议室设置');
?>
                                <?php 
NavigatorHelper::getInstance()->printNavigator('adminhys/admin', 'hysadmin', '会议室预定管理');
?>

                            </ul>
                        </li>
                        <li><a href="#">权限管理</a>
                            <ul>
                                <?php 
NavigatorHelper::getInstance()->printNavigator('rbacSet/authmanage', 'authmanage', '用户权限管理');
?>
                                <?php 
NavigatorHelper::getInstance()->printNavigator('rbacSet/assignToUsers', 'AssignToUsers', '用户职能分配');
?>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id="container">
        <div id="navTab" class="tabsPage">
            <div class="tabsPageHeader">
                <div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                    <ul class="navTab-tab">
                        <li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
                    </ul>