loadHelper('vxcloadcsshelper'); $cssHelper = new VxcLoadCssHelper(); $cssHelper->loadCss(); $this->loadHelper('admintabshelper'); $tabs = new AdminTabsHelper(); $menu = $tabs->render(); JHTML::_('behavior.modal','a.modal',null); $document->addScript(JURI::base().'includes/js/joomla.javascript.js'); $modelShippingBatchs =& $this->getModel('shippingbatchs'); $batchs =& $modelShippingBatchs->getData(); $pagination =& $modelShippingBatchs->getPagination(); $lists = & $modelShippingBatchs->getList(); $editBatchs = JRequest::getVar('editBatchs','array',array()); $batchId = JRequest::getVar('batchId'); $modelBatch =& $this->getModel('batch'); $modelBatch->SetId($batchId); $batch = $modelBatch->getData(); $batch->orders =& $modelBatch->getOrders(); $modelCurrentUser =& $this->getModel('user'); $userObj =& $modelCurrentUser->getData(); $this->assignRef('isManager',$modelCurrentUser->checkPrivilege('Can ship')); $this->assignRef('user', $userObj); $this->assignRef('editBatchs', $editBatchs); $this->assignRef('batchs', $batchs); $this->assignRef('batch', $batch); $this->assignRef('pagination', $pagination); $this->assignRef('lists', $lists); $this->assignRef('menu', $menu); parent::display($tpl); }// function }// class ?>