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()) { echo '<script>Ajax("wallpapers/index", "conteudo", "");</script>'; die; } if (!verifica_nivel('informacoes', 'L')) { echo $LANG['general']['you_tried_to_access_a_restricted_area']; die; } if (!verifica_nivel('informacoes', 'E')) { $disable = 'disabled'; } $clinica = new TClinica(); $clinica->LoadInfo(); if (isset($_POST['Salvar'])) { $_POST['cnpj'] = ajusta_cnpj($_POST['cnpj'], 1); $obrigatorios[1] = 'nomefantasia'; $obrigatorios[] = 'proprietario'; $i = $j = 0; foreach ($_POST as $post => $valor) { $i++; if (array_search($post, $obrigatorios) && $valor == "") { $j++; $r[$j] = '<font color="#FF0000">'; } } if (strlen($_POST['cnpj']) <= 11) { $cpfbool = true;
* Rua Laudemira Maria de Jesus, 51 - Lourdes * Arcos - MG - CEP 35588-000 * * */ 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(); $receita = new TReceita(); $receita->Codigo_Paciente = $_GET['codigo']; $receita->LoadInfo(); if ($receita->Receita == '') { $receita->SalvarNovo(); } if (isset($_POST['send'])) { $receita->Receita = htmlspecialchars(trim($_POST['receita']), ENT_QUOTES); $receita->Salvar(); } $paciente->LoadPaciente($_GET['codigo']); $clinica->LoadInfo(); $receita->LoadInfo(); ?> <br />