message = "TypeSpecial '__USER_ID' not exists"; echo json_encode($jsonData); exit; } $query = V::get('q', '', $_REQUEST); $rawRows = null; $jsonData = array(); $queryParams = array(); $rows = $typeSpecialUserId->getValuesWithExports($query, $queryParams); if($DBG){echo'
rows('.$query.') (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($rows);echo'
';} foreach ($rows as $kID => $vItem) { $itemJson = new stdClass(); $itemJson->id = $vItem->id; $itemJson->name = $vItem->param_out; if (!empty($vItem->exports)) { $itemJson->exports = $vItem->exports; } $jsonData[] = $itemJson; } echo json_encode($jsonData); break; } case 'ProcesMenu__Proces_filtr_id': { $typeSpecialProces = TypespecialVariable::getInstance(-1, '__PROCES'); if (!$typeSpecialProces) { $jsonData = new stdClass(); $jsonData->message = "TypeSpecial '__PROCES' not exists"; echo json_encode($jsonData); exit; } $query = V::get('q', '', $_REQUEST); $rawRows = null; $jsonData = array(); $queryParams = array(); $rows = $typeSpecialProces->getValuesWithExports($query, $queryParams); if($DBG){echo'
rows('.$query.') (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($rows);echo'
';} foreach ($rows as $kID => $vItem) { $itemJson = new stdClass(); $itemJson->id = $vItem->id; $itemJson->name = $vItem->param_out; if (!empty($vItem->exports)) { $itemJson->exports = $vItem->exports; } $jsonData[] = $itemJson; } echo json_encode($jsonData); break; } case 'ProcesMenu__Zasob_filtr_id': { $typeSpecialZasob = TypespecialVariable::getInstance(-1, '__ZASOB'); if (!$typeSpecialZasob) { $jsonData = new stdClass(); $jsonData->message = "TypeSpecial '__ZASOB' not exists"; echo json_encode($jsonData); exit; } $query = V::get('q', '', $_REQUEST); $rawRows = null; $jsonData = array(); $queryParams = array(); $rows = $typeSpecialZasob->getValuesWithExports($query, $queryParams); if($DBG){echo'
rows('.$query.') (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($rows);echo'
';} foreach ($rows as $kID => $vItem) { $itemJson = new stdClass(); $itemJson->id = $vItem->id; $itemJson->name = $vItem->param_out; if (!empty($vItem->exports)) { $itemJson->exports = $vItem->exports; } $jsonData[] = $itemJson; } echo json_encode($jsonData); break; } } exit; } case 'PROCES_FOR_TABLE': { $tblId = V::get('tblId', 0, $_REQUEST, 'int'); $tableProcesInitIds = ACL::getTableProcesInitIds($tblId); $tableProcesIdsCSV = implode(",", $tableProcesInitIds); $url = Request::getPathUri() . "procesy5.php?task=CRM_PROCES&filtr_id={$tableProcesIdsCSV}&filtr_ids=%2B&filtr_ob=%2B&filtr_img=%2B"; if (!headers_sent()) { header('HTTP/1.1 303 See Other'); header('Location: '.$url); } else { ?>

dalej

Moje Procesy $userAcl = User::getAcl(); $usedProcesInitIds = $userAcl->getUserProcesInitIds(); $userProcesIdsCSV = implode(",", $usedProcesInitIds); $url = Request::getPathUri() . "procesy5.php?task=CRM_PROCES&filtr_id={$userProcesIdsCSV}&filtr_ids=%2B&filtr_ob=%2B&filtr_img=%2B"; if (!headers_sent()) { header('HTTP/1.1 303 See Other'); header('Location: '.$url); } else { ?>

dalej