- 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_birthdetail.php
blob109ed683369b7f705ec371bf47a4d989bd192b07
1 <table border=0 cellpadding=1 cellspacing=1 width=100% class="frame">
2 <?php
3 if($rows){
4 # Get the field names
5 $fields=&$obj->coreFieldNames();
7 while(list($z,$x)=each($fields)){
8 if($x=='status') break;
9 if(empty($birth[$x])||stristr('nr,encounter_nr,delivery_date,pid',$x)) continue;
13 <tr bgcolor="#fefefe">
14 <td><FONT color="#006600"><b><?php echo $LD[$x]; ?></b></td>
15 <td>
16 <?php
17 switch($x){
18 // header('Location:aufnahme_daten_zeigen.php'.URL_REDIRECT_APPEND.'&encounter_nr='.$encounter_nr.'&origin=admit&sem=isadmitted&target=entry');
20 case 'parent_encounter_nr': echo'<a href="aufnahme_daten_zeigen.php'.URL_APPEND.'&encounter_nr='.$birth[$x].'&origin=admit&target='.$target.'">'.$birth[$x].'</a>'; break;
21 case 'delivery_date': echo formatDate2Local($birth[$x],$date_format); break;
22 case 'c_s_reason': echo nl2br($birth[$x]); break;
23 case 'delivery_mode':
24 $buf=&$obj->getDeliveryMode($birth[$x]);
25 if(isset($$buf['LD_var'])&&$$buf['LD_var']) echo $$buf['LD_var'];
26 else echo $buf['name'];
27 break;
28 case 'feeding':
29 $buf=&$obj->getFeedingType($birth[$x]);
30 if(isset($$buf['LD_var'])&&$$buf['LD_var']) echo $$buf['LD_var'];
31 else echo $buf['name'];
32 break;
33 case 'disease_category':
34 $buf=&$obj->getDiseaseCategory($birth[$x]);
35 if(isset($$buf['LD_var'])&&$$buf['LD_var']) echo $$buf['LD_var'];
36 else echo $buf['name'];
37 break;
38 case 'outcome':
39 $buf=&$obj->getOutcome($birth[$x]);
40 if(isset($$buf['LD_var'])&&$$buf['LD_var']) echo $$buf['LD_var'];
41 else echo $buf['name'];
42 break;
43 case 'born_before_arrival':
44 if($birth[$x]) echo $LDYes;
45 else echo $LDNo;
46 break;
47 case 'posterio_occipital_position':
48 if($birth[$x]) echo $LDYes;
49 else echo $LDNo;
50 break;
51 case 'face_presentation':
52 if($birth[$x]) echo $LDYes;
53 else echo $LDNo;
54 break;
55 case 'classification': echo nl2br($birth[$x]); break;
56 default: echo $birth[$x];
58 ?></td>
59 </tr>
61 <?php
65 </table>
66 <?php
67 if($parent_admit&&$edit) {
69 <p>
70 <img <?php echo createComIcon($root_path,'bul_arrowgrnlrg.gif','0','absmiddle'); ?>>
71 <a href="<?php echo $thisfile.URL_APPEND.'&pid='.$HTTP_SESSION_VARS['sess_pid'].'&target='.$target.'&mode=new&allow_update='.$allow_update; ?>">
72 <?php
73 if($rows) echo $LD['update_bd'];
74 else echo $LDEnterNewRecord; ?>
75 </a>
76 <?php