Пример #1
0
function TrataDadosExames($template)
{
    if ($_REQUEST['k'] == 'E6117D81D00D25AA591D46468847915F') {
        $_SESSION['caso'] = base64_decode(urldecode($_REQUEST['m']));
    }
    if (isset($_SESSION['caso']) && $_SESSION['caso'] != 0) {
        $e = new Exame();
        $_SESSION['exame'] = 0;
        $template = str_replace("<!--tabexames-->", $e->ListaExamesCaso($_SESSION['caso']), $template);
        $template = str_replace("<!--perguntanorteadora-->", $e->CarregaPerguntaNorteadora($_SESSION['caso']), $template);
    } else {
        $template = "@lng[Erro ao localizar o caso de estudo. Caso] = " . $_REQUEST["k"];
    }
    return $template;
}