loadHelper('vxcloadcsshelper'); $cssHelper = new VxcLoadCssHelper(); $cssHelper->loadCss(); $document->addScript(JURI::base().'includes/js/joomla.javascript.js'); $modelManufacturingOrders =& $this->getModel('manufacturingorders'); $abbs =& $modelManufacturingOrders->getMaterials(); if (JRequest::getVar('layout')!='showlegend') { $document->addScript(JURI::base().'components/com_vxc/assets/js/attachevent.js'); $js=" function OnPluginClose() { SqueezeBox.close(); } function VXLCloseEvent() { var loader=null; if (window.frames['modal'] && window.frames['modal'].gLoader); loader = window.frames['modal'].gLoader; if (loader) loader.SendToPlugin('PLUGIN_CLOSE',null,''); document.adminForm.submit(); } var width,height; function UpdateSize() { if (!SqueezeBox.isOpen) return; var curw,curh,str; curw=document.body.parentNode.offsetWidth; curh=document.body.parentNode.offsetHeight; if (curw<1) curw=1; if (curh<1) curh=1; if (curw!=width || curh!=height) { SqueezeBox.resize(SqueezeBox.options.size, true); } width=curw; height=curh; } function OnLoad() { for (var i=0;iaddStyleSheet('components/com_vxc/assets/css/vxc.css'); $document->addScriptDeclaration($js); JHTML::_('behavior.modal','a.modal',null); $this->loadHelper('admintabshelper'); $tabs = new AdminTabsHelper(); $menu = $tabs->render(); $orders =& $modelManufacturingOrders->getData(); $pagination =& $modelManufacturingOrders->getPagination(); $lists = & $modelManufacturingOrders->getList(); $modelManuStates =& $this->getModel('manufacturestates'); $manufacturestates=& $modelManuStates->getData(); $this->assignRef('manufacturestates',$manufacturestates); $franchises =& $modelManufacturingOrders->getFranchises(); $users =& $modelManufacturingOrders->getUsers(); $modelUser =& $this->getModel('user'); $this->assignRef('canPrepay',$modelUser->checkPrivilege('Can prepay')); $modelOrderAttribute =& $this->getModel('orderattribute'); $modelMillingQueue =& $this->getModel('millqueue'); $millingqueue =& $modelMillingQueue->getQueue(); $this->assignRef('millingqueue', $millingqueue); $this->assignRef('orders', $orders); $this->assignRef('pagination', $pagination); $this->assignRef('lists', $lists); $this->assignRef('menu', $menu); $this->assignRef('franchises', $franchises); $this->assignRef('users', $users); $this->assignRef('att',$modelOrderAttribute); } $this->assignRef('abbs',$abbs); parent::display($tpl); }// function }// class ?>