loadHelper('vxcloadcsshelper'); $cssHelper = new VxcLoadCssHelper(); $cssHelper->loadCss(); $this->loadHelper('admintabshelper'); $tabs = new AdminTabsHelper(); $menu = $tabs->render(); $modelTemplates =& $this->getModel('templates'); $templates =& $modelTemplates->getData(); $this->assignRef('templates',$templates); $modelCustomModel =& $this->getModel('custommodel'); $modelId = JRequest::getVar('modelid'); $modelCustomModel->SetId($modelId); $customModel =& $modelCustomModel->getData(); $this->assignRef('currentModel',$customModel); $modelCustomModels =& $this->getModel('custommodels'); $customModels =& $modelCustomModels->getData(); $this->assignRef('customModels',$customModels); $modelUserPrefabModel =& $this->getModel('userprefabmodel'); $this->assignRef('users',$modelCustomModels->getUsers()); $userId = JRequest::getVar('userid'); if (!$userId) { $userId = LegacyHelper::getUserId(); JRequest::setVar('userid',$userId); } $modelUser =& $this->getModel('user'); $modelUser->SetId($userId); $userObj =& $modelUser->getData(); $this->assignRef('user',$userObj); $userModels =& $modelUserPrefabModel->getModelsByUser($userId); $this->assignRef('userModels',$userModels); /* $modelCustomModels =& $this->getModel('custommodels'); $orders =& $modelCustomModels->getData(); $pagination =& $modelPendingOrders->getPagination(); $lists = & $modelPendingOrders->getList(); $modelCurrentBatch =& $this->getModel('currentbatch'); $currentBatch =& $modelCurrentBatch->getBatch(); $modelUser =& $this->getModel('user'); $isFranchiseManager = $modelUser->checkPrivilege('Franchise manager'); $this->assignRef('isFranchiseManager', $isFranchiseManager); $this->assignRef('currentbatch', $currentBatch); $this->assignRef('orders', $orders); $this->assignRef('pagination', $pagination); $this->assignRef('lists', $lists); */ $this->assignRef('menu', $menu); parent::display($tpl); }// function }// class ?>