. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ /* Permissions */ switch ($RBAC->userCanAccess( 'PM_CASES' )) { 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; } /* Includes */ G::LoadClass( 'case' ); /* Process the info */ try { $oCase = new Cases(); if (isset( $_POST['APP_UIDS'] )) { $ids = explode( ',', $_POST['APP_UIDS'] ); foreach ($ids as $id) { $oCase->removeCase( $id ); } if (count( $_POST['APP_UIDS'] ) > 1) { echo 'The Case was deleted successfully'; } else { echo 'All Cases were deleted successfully'; } } } catch (Exception $e) { echo $e->getMessage(); }