<?php
include_once './ControladorMedico.php';

$controlador = new ControladorMedico();

$LaudosPendente = $controlador->ListaLaudos();

include_once '../include/header.php';
include '../include/menu/menu.php';
?>
<script src="js/js_laudos.js"></script>
<div class="container">
    <div id="Modal"></div>
    <div id="FormAlterado"></div>

    <div class='div-ajax-carregamento-pagina'>
	<img src="../include/img/load.gif" style='padding-top: 15%;'>
	<p>Aguarde, carregando laudos...</p>
    </div>
    <?php
    if ($LaudosPendente) {
	$CData = new Data();
	?>
        <table  class="table table-condensed table-hover table-striped table-responsive tabela grid-data">
    	<thead>
    	    <tr>
    		<th data-column-id='id' data-type='numeric' data-identifier='true'>ID</th>
    		<th data-column-id="funcionario" data-order="asc">Funcionário</th>
    		<th data-column-id="empresa">Empresa</th>
    		<th data-column-id="funcao">Função</th>
    		<th data-column-id="data">Data</th>
<?php

include_once './ControladorMedico.php';

$controlador = new ControladorMedico();

$ItemLaudoId = $_REQUEST["ItemLaudoId"];

if (!$ItensLaudo = $controlador->ListaTermosLaudo($ItemLaudoId)) {
    echo "<h5 align='center'><span class='label label-danger'>Nenhum termo foi definido para este laudo.<br><br>Entre em contato com a clínica e solicite o cadastro dos termos padrão</span></h5>";
    exit();
}

$Html = '
<form method="POST" action="" class="form-horizontal" id="form_itens_alterado">
    <table class="table table-condensed table-hover table-striped table-responsive">
	<thead>
	    <tr>
		<th align="center">Termo</th>
		<th align="center">Selecionar</th>
	    </tr>
	</thead>
	<tbody>';

$cont = 0;
while ($linha = $ItensLaudo->fetchObject()){
    $cont++;

    $Html.= '<tr> 
    		<td>
    		    <div class="form-group">
<?php
include_once './ControladorMedico.php';
?>
<link rel="stylesheet" href="css/layoutLaudar.css" />
<?php
$controlador = new ControladorMedico();

$LaudosPendentePaciente = $controlador->LaudosPendentesPaciente();

$DadosPaciente = $controlador->DadosPaciente();

$ListaCodLaudos = $controlador->CodLaudosPendente();


if ((!$LaudosPendentePaciente) OR ( !$DadosPaciente)) {
    echo $Html = "<h3 align='center'><span class='label label-danger'>Nenhum arquivo para o laudo</span></h3>";
    exit();
}

$DadosPaciente = $DadosPaciente->fetchObject();

$CData = new Data();

//Dados do paciente
$Html = '<table border="1" class="table table-condensed table-hover table-striped table-responsive tabela">
	    <tr>
		<th>Funcionário:</th>
		<td>' . $DadosPaciente->FUNCIONARIO . '</td>
		<td>' . $CData->CalculaIdade($CData->convertDataBrasileira($DadosPaciente->DATA_NASCIMENTO)) . " ANOS" . '</td>
	    </tr>
	    <tr>
<?php include_once './ControladorMedico.php';?>


<?php
$ControladorMedico = new ControladorMedico();

$DadosPaciente = $ControladorMedico->DadosPaciente();

$CodItem = $ControladorMedico->CodigoItenOit($_GET["LaudoId"]);

if ($DadosPaciente) {
    $DadosPaciente = $DadosPaciente->fetchObject();
    $CData = new Data();
}
?>
<?php include_once '../include/header.php';?>
<br><br>
<script src="js/js_laudos.js"></script>
<script src="js/js_oit_alterado.js"></script>
<table border="1" class="table table-condensed table-hover table-striped table-responsive tabela">
    <tr>
	<th>Funcionário:</th>
	<td><?php echo $DadosPaciente->FUNCIONARIO?></td>
	<td><?php echo $CData->CalculaIdade($CData->convertDataBrasileira($DadosPaciente->DATA_NASCIMENTO)) . " ANOS"?> </td>
    </tr>
    <tr>
	<th>Função:</th>
	<td colspan=2><?php echo$DadosPaciente->FUNCAO?></td>
    </tr>
</table>
<form id="OitAlterado" method="post">
示例#5
0
<?php

include '../conf/Database.php';
include '../conf/MControladorGenerico.php';
include '../conf/ControladorGenerico.php';
include_once './ControladorMedico.php';

$ControladorMedico = new ControladorMedico();

$_1a = $_POST["1a"];
$_1b = $_POST["1b"];
$_2a = $_POST["2a"];
$_2b_pequenas_opacidades_primarias = $_POST["2b_pequenas_opacidades_primarias"];
$_2b_pequenas_opacidades_secundarias = $_POST["2b_pequenas_opacidades_secundarias"];
$_2b_zonas_d = $_POST["2b_zonas_d"];
$_2c_profusao = $_POST["2c_profusao"];
$_2c_grandes_opacidades = $_POST["2c_grandes_opacidades"];
$_3a = $_POST["3a"];
$_3b_placas_neurais = $_POST["3b_placas_neurais"];
$_3b_parede_em_perfil_local = $_POST["3b_parede_em_perfil_local"];
$_3b_parede_em_perfil_calcificacao = $_POST["3b_parede_em_perfil_calcificacao"];
$_3b_frontal_local = $_POST["3b_frontal_local"];
$_3b_frontal_calcificacao = $_POST["3b_frontal_calcificacao"];
$_3b_diafragma_local = $_POST["3b_diafragma_local"];
$_3b_diafragma_calcificacao = $_POST["3b_diafragma_calcificacao"];
$_3b_outros_locais_local = $_POST["3b_outros_locais_local"];
$_3b_outros_locais_calcificacao = $_POST["3b_outros_locais_calcificacao"];
$_3b_combinado_0d = $_POST["3b_combinado_0d"];
$_3b_combinado_0e = $_POST["3b_combinado_0e"];
$_3b_combinado_d = $_POST["3b_combinado_d"];
$_3b_combinado_e = $_POST["3b_combinado_e"];