get_session(); $registry = $appbox->get_registry(); require_once($registry->get('GV_RootPath') . "lib/classes/deprecated/inscript.api.php"); $request = http_request::getInstance(); $parm = $request->get_parms("action", "usr", "cgus", "date", "bas", "col"); $tab = null; if ($parm['action'] == 'PRINT') { $inscriptions = giveMeBases(); phrasea::headers(); ?> $baseInsc) { if (($baseInsc['CollsCGU'] || $baseInsc['Colls']) && $baseInsc['inscript'] && $sbasId == $parm['bas']) {// il y a des coll ou s'inscrire ! $pot = false; if ($baseInsc['CGU']) { //je pr�sente la base echo '

' . phrasea::sbas_names($sbasId) . '

'; $pot = '

' . str_replace(array("\r\n", "\n", "\n"), "
", (string) $baseInsc['CGU']) . '

'; } $found = false; foreach ($baseInsc['CollsCGU'] as $collId => $collDesc) { if ($parm['col'] == $collId) { echo '

' . str_replace(array("\r\n", "\n", "\n"), "
", (string) $collDesc['CGU']) . '

'; $found = true; } } } } if ( ! $found) echo $pot; ?>