- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / registration_admission / gui_bridge / default / gui_show_drg.php
blob057f925fc64fb5f3bbab06465387103a033b90c3
1 <?php
2 if($rows){
3 ?>
4 <script language="javascript" >
5 <!--
6 function openDRGComposite(enr,edit,isd){
7 <?php if($cfg['dhtml'])
8 echo '
9 w=window.parent.screen.width;
10 h=window.parent.screen.height;';
11 else
12 echo '
13 w=800;
14 h=650;';
17 drgcomp_<?php echo $HTTP_SESSION_VARS['sess_pid'].$sid; ?>=window.open("<?php echo $root_path ?>modules/drg/drg-composite-start.php<?php echo URL_REDIRECT_APPEND."&display=composite&pn=\"+enr+\"&edit=\"+edit+\"&is_discharged=\"+isd+\"&ln=$name_last&fn=$name_first&bd=$date_birth"; ?>","drgcomp_<?php echo $encounter_nr.$sid; ?>","menubar=no,resizable=yes,scrollbars=yes, width=" + (w-15) + ", height=" + (h-60));
18 window.drgcomp_<?php echo $HTTP_SESSION_VARS['sess_pid'].$sid; ?>.moveTo(0,0);
20 //-->
21 </script>
22 <table border=0 cellpadding=0 cellspacing=0 width=100%>
23 <tr bgcolor="#f6f6f6" valign="top">
24 <td <?php echo $tbg; ?>><FONT SIZE=-1 FACE="Arial" color="#000066">&nbsp;</td>
25 <td <?php echo $tbg; ?>><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDDate; ?></td>
26 <td <?php echo $tbg; ?>><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDEncounterNr; ?></td>
27 <td <?php echo $tbg; ?>><FONT SIZE=-1 FACE="Arial" color="#000066"><?php echo $LDShow; ?></td>
28 </tr>
29 <?php
30 while($row=$drg_obj->FetchRow()){
31 $buf=1;
32 if($row['is_discharged']) $buf=0;
34 <tr bgcolor="#fefefe" valign="top">
35 <td><FONT SIZE=-1 FACE="Arial"><?php if($buf) echo '<img '.createComIcon($root_path,'check2.gif','0','',TRUE).'>'; else echo '&nbsp;'; ?></td>
36 <td><FONT SIZE=-1 FACE="Arial"><?php echo @formatDate2Local($row['encounter_date'],$date_format); ?></td>
37 <td><FONT SIZE=-1 FACE="Arial"><a href="javascript:openDRGComposite('<?php echo $row['encounter_nr'] ?>','<?php echo $buf; ?>','<?php echo $row['is_discharged'] ?>')"><?php echo $row['encounter_nr']; ?></a></td>
38 <td><a href="javascript:openDRGComposite('<?php echo $row['encounter_nr'] ?>','<?php echo $buf; ?>','<?php echo $row['is_discharged'] ?>')"><img <?php echo createComIcon($root_path,'info2.gif','0','',TRUE); ?></td>
39 </tr>
41 <?php
44 </table>
45 <?php