Пример #1
0
             $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}";
     }
     break;
 case 'close_ward':
     if ($ward_obj->hasPatient($ward_nr)) {
         header("location:nursing-station-noclose.php" . URL_REDIRECT_APPEND . "&ward_id={$ward_id}&ward_nr={$ward_nr}");
         exit;
     } else {
         switch ($close_type) {
             case 'temporary':
                 $ward_obj->closeWardTemporary($ward_nr);
                 break;
             case 'nonreversible':
                 $ward_obj->closeWardNonReversible($ward_nr);
                 break;
             case 're_open':
                 $ward_obj->reOpenWard($ward_nr);
         }
         header("location:nursing-station-info.php" . URL_REDIRECT_APPEND);
         exit;