Initial import.
[siap.git] / site / content / diagnosticos / view.php
CommitLineData
696f20d5
MS
1<?\r
2include("../../../_system/app.php");\r
3include("../../inc/structure/posApp.php");\r
4$selected = 'diagnosticos';\r
5\r
6$load->config('classes/Diagnostico.php');\r
7$o_diagnostico = new Diagnostico();\r
8$rowDiagnostico = $o_diagnostico->findDiagnoticoById($input->get('id',true));\r
9if($rowDiagnostico->EOF){\r
10 redir('index.php');\r
11 die;\r
12}\r
13?>\r
14<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
15<html>\r
16 <head>\r
17 <? include("../../inc/structure/header.php"); ?>\r
18 <script src="../../../_system/js/popup.js" type="text/javascript"></script>\r
19 <title><?= $cfg["site_title"]; ?></title>\r
20 <script>\r
21 function zoom(){\r
22 var p = new Popup(500,400);\r
23 // p.template = 2;\r
24 // p.overflow = "hidden";\r
25 p.open("../../inc/structure/popup_zoom.php?path=../../../upload/sis_imagem/IDIDID.jpg&id=<?=$input->encode($rowDiagnostico->fields('id'));?>");\r
26 }\r
27 </script>\r
28 </head>\r
29 <body oncontextmenu="return false;">\r
30 <table cellspacing="0" cellpadding="0" width="100%" height="100%">\r
31 <?include('../../inc/structure/topo.php');?>\r
32 <tr height="100%">\r
33 <td>\r
34 <table cellspacing="0" cellpadding="0" align="center" width="994">\r
35 <tr>\r
36 <td>\r
37 <div>\r
38 <?swf("../../swf/common/titulo.swf",330,30,"txt=DIAGNÓSTICOS","","transparent");?>\r
39 </div>\r
40 <br /><br />\r
41 <table cellspacing="0" cellpadding="0">\r
42 <tr>\r
43 <td colspan="100%">\r
44 <div>\r
45 <b><?=$rowDiagnostico->fields('nome');?></b>\r
46 </div>\r
47 <div style="margin-top:3px; margin-bottom:3px;">\r
48 <i><?=$rowDiagnostico->fields('especialidade');?></i>\r
49 </div>\r
50 <? if($rowDiagnostico->fields('cid10') != ''){?>\r
51 <div>\r
52 <i><?=$rowDiagnostico->fields('cid10');?></i>\r
53 </div>\r
54 <? }?>\r
55 </td>\r
56 </tr>\r
57 <tr height="330">\r
58 <td width="410">\r
59 <table cellspacing="0" cellpadding="0">\r
60 <tr>\r
61 <td style="padding-bottom:15px;padding-top:15px;padding-top:15px;">\r
62 <?=nl2br($rowDiagnostico->fields('texto'));?>\r
63 </td>\r
64 </tr>\r
65 <tr>\r
66 <td style="font-size:10px;">\r
67 <?=$o_diagnostico->orgaosrelacionados($rowDiagnostico->fields('id'));?>\r
68 </td>\r
69 </tr>\r
70 <tr>\r
71 <td style="padding-top:25px;">\r
72 <img src="../../img/pt/bt/voltar.jpg" <?=$o_html->alt('Voltar');?> style="cursor:pointer;" onclick="javascript: window.history.back();" />\r
73 </td>\r
74 </tr>\r
75 </table>\r
76 </td>\r
77 <td style="border-left:1px solid #DABA89; padding-left:10px;" width="280">\r
78 <div style="margin-bottom:15px;">\r
79 <img src="../../img/pt/tit/imagensrelacionadasdiagnostico.gif" <?=$o_html->alt('Imagens Relacionadas');?> />\r
80 </div>\r
81 <?=$o_diagnostico->getImgesRelacionadas($rowDiagnostico->fields('id'));?>\r
82 </td>\r
83 <td style="border-left:1px solid #DABA89; padding-left:10px;" width="280">\r
84 <div style="margin-bottom:15px;">\r
85 <img src="../../img/pt/tit/casosdeestudorelacionados.gif" <?=$o_html->alt('Casos de Estudo Relacionados');?> />\r
86 </div>\r
87 <?=$o_diagnostico->casosdeestudorelacionados($rowDiagnostico->fields('id'));?>\r
88 </td>\r
89 </tr>\r
90 </table>\r
91 </td>\r
92 </tr>\r
93 </table>\r
94 </td>\r
95 </tr>\r
96 <?include('../../inc/structure/rodape.php');?>\r
97 </table>\r
98 </body>\r
99</html>\r
100<? include("../../inc/structure/footer.php"); ?>