-
Notifications
You must be signed in to change notification settings - Fork 0
/
buscarpacienteautorizacao.php
executable file
·97 lines (77 loc) · 2.43 KB
/
buscarpacienteautorizacao.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!-- INCLUI O INICIO DO ARQUIVO -->
<?
include ("header.php");
//Busca o nome dos pacientes
$sqlp = "SELECT nome, codigo FROM pacientes";
$resultadop = mysql_query($sqlp);
?>
<script src="js/jquery.dataTables.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#tabelapaciente').dataTable( {
"aaSorting" : [[1 , "asc"]], //organiza a tabela de acordo com a 2 coluna
"lengthMenu": [ 10 ],
"language" : {
"search": "Procurar:",
"info": "Mostrando de _START_ a _END_ de _TOTAL_",
"lengthMenu": "Mostrando _MENU_ resultados",
"thousands": ".",
"paginate": {
"first": "Primeira",
"last": "Última",
"next": "Próximo",
"previous": "Anterior"
}
}
} );
} );
</script>
<!-- INICIO DO ARQUIVO -->
<body class="metro">
<br>
<img src="imagens/photo1.jpg" />
<center><img src="imagens/principal1.png" /></center>
<br><br>
<div class="grid">
<div class="row">
<? include ("menu.php"); ?>
<div class="span1"></div>
<div class="span10">
<div class="fichaautorizacao">
<div class="tab-control" data-role="tab-control">
<ul class="tabs">
<li class="active"><a href="#_page_1">Pacientes</a></li>
</ul>
<div class="frames">
<div class="frame" id="_page_1">
<table id="tabelapaciente" class="table striped dataTable">
<thead>
<tr>
<th class="text-left">Codigo</th>
<th class="text-left">Nome</th>
</tr>
</thead>
<tbody>
<?
while ($row = mysql_fetch_array($resultadop)) {
?>
<tr>
<td><a href="fichaautorizacao.php?codigoaut=<? echo $row[1];?>"><? echo $row[1];?></a></td>
<td><? echo utf8_encode($row[0]);?></td>
</tr>
<?}?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- FIM DO ARQUIVO -->
<!-- INCLUI O FIM DO ARQUIVO -->
<? include ("footer.php"); ?>