- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / registration_admission / neonatal_classifications.php
blob3f1e43915d011adf8f8ed65a91accad5fcb5e092
1 <?php
2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
5 $lang_tables[]='actions.php';
6 define('LANG_FILE','obstetrics.php');
7 $local_user='aufnahme_user';
8 require_once($root_path.'include/inc_front_chain_lang.php');
9 # Create obstetrics object and get all neonatal classifications
10 require_once($root_path.'include/care_api_classes/class_obstetrics.php');
11 $neo=new Obstetrics;
12 $classif= &$neo->Classifications();
13 $rows=$neo->LastRecordCount();
15 ?><?php html_rtl($lang); ?>
16 <!-- Generated by AceHTML Freeware http://freeware.acehtml.com -->
17 <head>
18 <?php echo setCharSet(); ?>
19 <title><?php echo $LD['classification']; ?></title>
22 <script language="JavaScript">
23 <!-- Script Begin
24 function process(d) {
25 if(0==<?php echo $rows ?>) return false;
26 clo=false;
27 wd=window.opener.document.report.classification;
28 for(i = 0; i<<?php echo $rows ?>; i++){
29 eval("if(d.c"+i+".checked) {wd.value=wd.value + d.c"+i+".value + \"\\n\"; clo=true;}");
32 if(clo) window.close();
33 else return false;
35 // Script End -->
36 </script>
37 </head>
38 <body onLoad="if (window.focus) window.focus()"><font face=arial>
40 <form name="classif" onSubmit="return process(this)">
41 <table border=0 cellpadding=0 cellspacing=0 bgcolor="#efefef">
42 <tr>
43 <td>
45 <table border=0 cellspacing=1>
48 <tr>
49 <td background="../../gui/img/common/default/tableHeaderbg.gif">
50 <font face=arial color="#efefef" size=3><b><?php echo $LD['classification'] ?> </b>
51 </td>
52 </tr>
54 <?php
55 //echo $mode;
56 if ($rows)
58 ?>
59 <tr bgcolor="#ffffff">
60 <td ><font face=arial size=2>
61 <?php
62 $c=0;
63 while($row=$classif->FetchRow()){
64 if(isset($$row['LD_var'])&&!empty($$row['LD_var'])) $buffer= $$row['LD_var'];
65 else $buffer= $row['name'];
66 echo '<nobr><input type="checkbox" name="c'.$c.'" value="'.$buffer.'">&nbsp;'.$buffer.'</nobr><br>
68 $c++;
71 &nbsp;
72 </td>
73 </tr>
74 <?php
76 ?> </table>
78 </td>
79 </tr>
80 </table>
81 <input type="submit" value="<?php echo $LDOk ?>">
82 <input type="button" value="<?php echo $LDClose ?>" onClick="window.close()">
84 </form>
88 </font>
89 </body>
90 </html>