$breakfile = 'nursing-station-info.php' . URL_APPEND;
     break;
 case 'update':
     //$_POST['nr']=$_POST['ward_nr'];
     if ($ward_obj->updateWard($ward_nr, $_POST)) {
         //update number of beds
         foreach ($roomBedsArr as $careRoom => $anzahl) {
             $dataArrRoomAnzahl = array('nr' => $careRoom, 'nr_of_beds' => $anzahl);
             //print_r($dataArrRoomAnzahl);
             $ward_obj->updateRoomNumberBeds($dataArrRoomAnzahl);
         }
         //update room info
         foreach ($roomInfoArr as $careRoom => $info) {
             $dataArrRoomInfo = array('nr' => $careRoom, 'info' => $info);
             //print_r($dataArrRoomInfo);
             $ward_obj->updateRoomInfo($dataArrRoomInfo);
         }
         //header("location:../inpatient/inpatient.php".URL_REDIRECT_APPEND."&edit=0&mode=show&ward_id=$ward_nr&ward_nr=$ward_nr");
         if ($ward =& $ward_obj->getWardInfo($ward_nr)) {
             $rooms =& $ward_obj->getAllActiveRoomsInfo();
             $rows = true;
             extract($ward);
         } else {
             header('location:nursing-station-info.php' . URL_REDIRECT_APPEND);
             exit;
         }
         $breakfile = 'nursing-station-info.php' . URL_APPEND;
         break;
         //exit;
     } else {
         echo $ward_obj->getLastQuery() . "<br>{$LDDbNoSave}";