URL direkt den id übergibt adm_program/modules/dates/dates.php?id=1
ich habe in der dates.php kleine Änderung jetzt funkt.
Code: Alles auswählen
if($req_id == 0)
{
// Bedingungen fuer die Rollenfreigabe hinzufuegen
if($g_current_user->getValue('usr_id') > 0)
{
$condition_login = '
AND ( dtr_rol_id IS NULL
OR dtr_rol_id IN (SELECT mem_rol_id
FROM '.TBL_MEMBERS.' mem2
WHERE mem2.mem_usr_id = '.$g_current_user->getValue('usr_id').'
AND mem2.mem_begin <= dat_begin
AND mem2.mem_end >= dat_end) ) ';
}
else
{
$condition_login = ' AND dtr_rol_id IS NULL ';
}
{ hab ich unterm der else verschoben
Code: Alles auswählen
// Bedingungen fuer die Rollenfreigabe hinzufuegen
if($g_current_user->getValue('usr_id') > 0)
{
$condition_login = '
AND ( dtr_rol_id IS NULL
OR dtr_rol_id IN (SELECT mem_rol_id
FROM '.TBL_MEMBERS.' mem2
WHERE mem2.mem_usr_id = '.$g_current_user->getValue('usr_id').'
AND mem2.mem_begin <= dat_begin
AND mem2.mem_end >= dat_end) ) ';
}
else
{
$condition_login = ' AND dtr_rol_id IS NULL ';
}
if($req_id == 0)
{