. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ /** * New Admin User interface * @author Erik A. O. * @date Apr 5th, 2010 */ if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response; $G_MAIN_MENU = "processmaker"; $G_ID_MENU_SELECTED = "SETUP"; $G_PUBLISH = new Publisher; global $G_TMP_MENU; $oMenu = new Menu(); $oMenu->load('setup'); $toolItems = Array(); foreach( $oMenu->Options as $i=>$option) { $toolItems[] = Array( 'id' => $oMenu->Id[$i], 'link' => ($oMenu->Options[$i]!='')? $oMenu->Options[$i]: '#', 'onclick' => ($oMenu->JS[$i]!='')? $oMenu->JS[$i]: '', 'label' => $oMenu->Labels[$i], 'icon' => ($oMenu->Icons[$i]!='')? $oMenu->Icons[$i]: 'icon-pmlogo.png', 'target'=> ($oMenu->JS[$i]!='')? '': 'admToolsContent' ); } $template = new TemplatePower( PATH_TPL . 'setup' . PATH_SEP . 'tools.html' ); $template->prepare(); $template->assign ('LeftWidth', '230'); $template->assign ('contentHeight', '520'); if( isset($_GET['i18']) ){ $_SESSION['TOOLS_VIEWTYPE'] = true; $template->assign ('displayLanguageTool', 'block'); } else { $template->assign ('displayLanguageTool', 'none'); } if( isset($_GET['newSite']) ){ $template->assign ('displayNewSiteTool', 'block'); } else { $template->assign ('displayNewSiteTool', 'none'); } foreach($toolItems as $item) { $template->newBlock( 'tool_options'); foreach($item as $propertyName=>$propertyValue) $template->assign ($propertyName, $propertyValue); } $G_PUBLISH->AddContent('template', '', '', '', $template ); G::RenderPage('publish'); if(isset($_GET['module'])){ print " "; }