$f->setAktiv("FALSE");
         $f->save();
     }
     $action = 'show';
     $what = 'fach';
     include 'controller/show.php';
     break;
 case 'raum':
     if (key_exists('update', $_POST)) {
         // alle aktiven updaten
         foreach ($_POST as $key => $value) {
             if (substr($key, 0, 4) == 'raum') {
                 $raum_id = substr($key, 4);
                 $r = new Raum();
                 $r->load($raum_id);
                 $r->setName($_POST[$key]);
                 $r->save();
             }
         }
     } else {
         // aus †bergabevariablen zu deaktivierende klasse_id bestimmen
         foreach ($_POST as $key => $value) {
             if (substr($key, 0, 7) === 'deaktiv') {
                 $raum_id = substr($key, 7);
             }
         }
         $r = new Raum();
         $r->load($raum_id);
         $r->setAktiv("FALSE");
         $r->save();
     }
                 echo '<h3>Upload Successful!</h3>';
             } else {
                 echo '<h3>ERROR</h3>';
             }
         }
     } else {
         echo '<h3>No file has been selected.</h3>';
     }
     $action = 'show';
     $what = 'raum';
     include 'controller/show.php';
     break;
 case 'raum':
     $raum = $_POST['raum'];
     $r = new Raum();
     $r->setName($raum);
     $r->setAktiv(TRUE);
     $r->save();
     $action = 'show';
     $what = 'raum';
     include 'controller/show.php';
     break;
 case 'fach':
     $fach = $_POST['fach'];
     $f = new Fach();
     $f->setName($fach);
     $f->setAktiv(TRUE);
     $f->save();
     $action = 'show';
     $what = 'fach';
     include 'controller/show.php';