Exemplo n.º 1
0
 * 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-15", true);
if (!checklog()) {
    die($frase_log);
}
include "../timbre_head.php";
$dentista = new TDentistas();
$dentista->LoadDentista($_GET['codigo_dentista']);
$especialidades = new TEspecialidades($dentista->RetornaDados('codigo_areaatuacao1'));
$area1 = $especialidades->GetDescricao();
$especialidades = new TEspecialidades($dentista->RetornaDados('codigo_areaatuacao2'));
$area2 = $especialidades->GetDescricao();
$especialidades = new TEspecialidades($dentista->RetornaDados('codigo_areaatuacao3'));
$area3 = $especialidades->GetDescricao();
?>
<p align="center"><font size="3"><b><?php 
echo $LANG['reports']['professional_sheet'];
?>
</b></font></p><br />
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tr>
    <th align="left"><?php 
echo $LANG['reports']['personal_information'];
?>
Exemplo n.º 2
0
         $dados = $usuario->RetornaTodosDados();
         $senha = $usuario->RetornaDados('senha');
         $ativo = $usuario->RetornaDados('ativo');
         break;
     case 'Funcionario':
         $usuario = new TFuncionarios();
         $usuario->LoadFuncionario($row[codigo]);
         $dados = $usuario->RetornaTodosDados();
         $senha = $usuario->RetornaDados('senha');
         $ativo = $usuario->RetornaDados('ativo');
         break;
     case 'Dentista':
         $usuario = new TDentistas();
         $usuario->LoadDentista($row[codigo]);
         $dados = $usuario->RetornaTodosDados();
         $senha = $usuario->RetornaDados('senha');
         $ativo = $usuario->RetornaDados('ativo');
 }
 if ($senha != md5($password)) {
     echo "<scr" . "ipt>alert('" . $LANG['wallpaper']['invalid_login'] . "'); Ajax('wallpapers/index', 'conteudo', '')</scr" . "ipt>";
 } elseif ($ativo == 'Não') {
     echo "<scr" . "ipt>alert('" . $LANG['wallpaper']['login_inactive'] . "'); Ajax('wallpapers/index', 'conteudo', '')</scr" . "ipt>";
 } else {
     foreach ($dados as $chave => $valor) {
         $_SESSION[$chave] = $valor;
     }
     $_SESSION[nivel] = $nivel;
     $_SESSION[nome_user] = $dados[nome];
     $_SESSION[session_user] = $usuario;
     echo "<script>Ajax('wallpapers/index', 'conteudo', '');</script>";
     echo "Hello";
Exemplo n.º 3
0
        </tr>
      </table>
      <table width="588" border="0" align="center" cellpadding="0" cellspacing="0">
<?php 
limpa_orcamentos();
$i = 0;
$query = mysql_query("SELECT * FROM `orcamento` WHERE `codigo_paciente` = '{$_GET['codigo']}' ORDER BY `codigo` ASC");
while ($row = mysql_fetch_array($query)) {
    if ($i % 2 === 0) {
        $td_class = 'td_even';
    } else {
        $td_class = 'td_odd';
    }
    $dentista = new TDentistas();
    $lista = $dentista->LoadDentista($row[cpf_dentista]);
    $nome = explode(' ', $dentista->RetornaDados('nome'));
    $nome = $nome[0] . ' ' . $nome[count($nome) - 1];
    ?>
      <tr class="<?php 
    echo $td_class;
    ?>
">
          <td width="15%">Orçamento <?php 
    echo $i + 1;
    ?>
</td>
          <td width="34%"><?php 
    echo $dentista->RetornaDados('titulo') . ' ' . $nome;
    ?>
</td>
          <td width="13%"><?php 
Exemplo n.º 4
0
 */
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-15", true);
if (!checklog()) {
    die($frase_log);
}
include "../timbre_head.php";
if ($_GET['codigo'] != '') {
    $paciente = new TPacientes();
    $paciente->LoadPaciente($_GET['codigo']);
    $dentista = new TDentistas();
    $dentista->LoadDentista($paciente->RetornaDados('codigo_dentistaprocurado'));
    $dentista_procurado = $dentista->RetornaDados('nome') != '' ? $dentista->RetornaDados('titulo') . ' ' . $dentista->RetornaDados('nome') : '';
    $dentista->LoadDentista($paciente->RetornaDados('codigo_dentistaatendido'));
    $dentista_atendido = $dentista->RetornaDados('nome') != '' ? '<b>' . $dentista->RetornaDados('titulo') . ' ' . $dentista->RetornaDados('nome') : '';
    $dentista->LoadDentista($paciente->RetornaDados('codigo_dentistaencaminhado'));
    $dentista_encaminhado = $dentista->RetornaDados('nome') != '' ? '<b>' . $dentista->RetornaDados('titulo') . ' ' . $dentista->RetornaDados('nome') : '';
}
?>
<p align="center"><font size="3"><b><?php 
echo $LANG['reports']['patient_sheet'];
?>
</b></font></p><br />
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <tr>
    <th align="left"><?php 
echo $LANG['reports']['personal_information'];
?>