Ejemplo n.º 1
0
     G::LoadClass('processMap');
     $oProcessMap = new ProcessMap();
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('propeltable', 'paged-table', 'users/users_AvailableUsers', $oProcessMap->getAvailableUsersCriteria($_GET['sTask'], $_GET['iType']));
     G::RenderPage('publish', 'raw');
     break;
 case 'assign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ((int) $_POST['TU_RELATION']) {
         case 1:
             echo $oTasks->assignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
         case 2:
             echo $oTasks->assignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
     }
     break;
 case 'ofToAssign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ((int) $_POST['TU_RELATION']) {
         case 1:
             echo $oTasks->ofToAssignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
         case 2:
             echo $oTasks->ofToAssignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']);
             break;
     }
     break;
Ejemplo n.º 2
0
     $sOutput = $oRoute->remove($oData->uid);
     echo $sOutput;
     break;
 case 'deleteEvent':
     $sOutput = $oEvent->remove($oData->uid);
     echo $sOutput;
     break;
 case 'assign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ($oData->TU_RELATION) {
         case 1:
             echo $oTasks->assignUser($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
         case 2:
             echo $oTasks->assignGroup($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
     }
     break;
 case 'ofToAssign':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
     switch ($oData->TU_RELATION) {
         case 1:
             echo $oTasks->ofToAssignUser($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
         case 2:
             echo $oTasks->ofToAssignGroup($oData->TAS_UID, $oData->USR_UID, $oData->TU_TYPE);
             break;
     }
     break;