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; case 'changeView': $_SESSION['iType'] = $_POST['TU_TYPE']; break; case 'deleteGroup': G::LoadClass('groups'); $oGroup = new Groups(); $oGroup->removeUserOfGroup($_POST['GRP_UID'], $_POST['USR_UID']); $_GET['sUserUID'] = $_POST['USR_UID']; $G_PUBLISH = new Publisher(); $G_PUBLISH->AddContent('view', 'users/users_Tree'); G::RenderPage('publish', 'raw'); break;
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; case 'saveSubprocessDetails': //$aTask=$oTask->load($_POST['form']['TASKS']); //$aTask=$oTask->load($_POST['form']['PRO_UID']); $out = array(); $in = array(); if (isset($_POST['VAR_OUT']) && $_POST['VAR_OUT'] != '') { $varOut = explode('|', $_POST['VAR_OUT']); $aVarOut1 = G::json_decode($varOut[0]); $aVarOut2 = G::json_decode($varOut[1]); for ($i = 1; $i <= count($aVarOut1); $i++) { $out[$aVarOut1[$i - 1]] = $aVarOut2[$i - 1]; }