. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ try { global $RBAC; switch ($RBAC->userCanAccess( 'PM_REASSIGNCASE' )) { case - 2: G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' ); G::header( 'location: ../login/login' ); die(); break; case - 1: G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' ); G::header( 'location: ../login/login' ); die(); break; } G::LoadClass( 'case' ); $oCase = new Cases(); $aCases = array (); $aUsers = array (); $c = 0; if (isset( $_POST['USERS'] )) { if (is_array( $_POST['USERS'] )) { foreach ($_POST['USERS'] as $sKey => $sUser) { if ($sUser != '') { $c ++; $oCase->reassignCase( $_POST['APPLICATIONS'][$sKey], $_POST['INDEXES'][$sKey], $_POST['USR_UID'], $sUser ); $aCases[] = $_POST['APPLICATIONS'][$sKey]; $aUsers[] = $sUser; } } } } G::LoadClass( 'case' ); $oCase = new Cases(); require_once 'classes/model/Users.php'; $oUser = new Users(); $sText = ''; foreach ($aCases as $sKey => $sCase) { $aCase = $oCase->loadCase( $sCase ); $aUser = $oUser->load( $aUsers[$sKey] ); $sText .= $aCase['TITLE'] . ' => ' . $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' (' . $aUser['USR_USERNAME'] . ')' . '
'; } $G_MAIN_MENU = 'processmaker'; $G_SUB_MENU = 'users'; $G_ID_MENU_SELECTED = 'USERS'; $G_ID_SUB_MENU_SELECTED = 'USERS'; $G_PUBLISH = new Publisher(); $aMessage['USR_UID'] = $_POST['USR_UID']; $aMessage['MESSAGE'] = $sText; if ($_POST['CONT'] != $c) $aMessage['EVA'] = G::LoadTranslation( 'ID_CASESREASSIGN' ); // else $aMessage['EVA'] = ''; $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'users/users_ReassignShowInfo', '', $aMessage ); G::RenderPage( 'publish' ); } catch (Exception $oException) { die( $oException->getMessage() ); }