* */ include "../lib/config.inc.php"; include "../lib/func.inc.php"; include "../lib/classes.inc.php"; require_once '../lang/' . $idioma . '.php'; header("Content-type: text/html; charset=ISO-8859-1", true); if (!checklog()) { die($frase_log); } include "../timbre_head.php"; $paciente = new TPacientes(); $clinica = new TClinica(); $atestado = new TAtestado(); $atestado->Codigo_Paciente = $_GET['codigo']; $atestado->LoadInfo(); if ($atestado->Atestado == '') { $atestado->SalvarNovo(); } if (isset($_POST['send'])) { $atestado->Atestado = utf8_decode(htmlspecialchars(utf8_encode($_POST['atestado']), ENT_QUOTES | ENT_COMPAT, 'utf-8')); $atestado->Salvar(); } $paciente->LoadPaciente($_GET['codigo']); $clinica->LoadInfo(); $atestado->LoadInfo(); ?> <br /> <div align="center"><font size="4"><b><?php echo $LANG['reports']['certificate']; ?>