Пример #1
0
function Main()
{
    header('Content-Type: text/html; charset=iso-8859-1');
    $ht = new HashTable();
    $e = new Exame();
    $retorno = "";
    if ($_POST['context'] == 'N') {
        $ht->AddItem("imgs", $e->ListaArquivosExame($_SESSION['caso'], $_SESSION['exame'], "img"));
        $ht->AddItem("docs", $e->ListaArquivosExame($_SESSION['caso'], $_SESSION['exame'], "doc"));
        $retorno = $ht->ToXML();
    } else {
        $c = new Conteudo();
        $retorno = $c->Lista($_SESSION['caso']);
    }
    echo Comuns::Idioma($retorno);
}
Пример #2
0
function TrataDadosConteudos($template)
{
    if (isset($_SESSION['caso']) && $_SESSION['caso'] != 0) {
        $c = new Conteudo();
        $_SESSION['conteudo'] = 0;
        $template = str_replace("<!--tabconteudos-->", $c->Lista($_SESSION['caso']), $template);
    } else {
        $template = "@lng[Erro ao localizar o caso de estudo]";
    }
    return $template;
}