4 <script language
="javascript" >
6 function openDRGComposite(enr
,edit
,isd
){
7 <?php
if($cfg['dhtml'])
9 w=window.parent.screen.width;
10 h=window.parent.screen.height;';
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);
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"> 
;</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
>
30 while($row=$drg_obj->FetchRow()){
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 ' '; ?
></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
>