diff --git a/content/student/studentDBDML.php b/content/student/studentDBDML.php index 81091475e..d7378810c 100644 --- a/content/student/studentDBDML.php +++ b/content/student/studentDBDML.php @@ -43,6 +43,7 @@ require_once('../../include/akte.class.php'); require_once('../../include/konto.class.php'); require_once('../../include/dokument.class.php'); require_once('../../include/studiensemester.class.php'); +require_once('../../include/betriebsmittelperson.class.php'); $user = get_uid(); @@ -887,6 +888,30 @@ if(!$error) else $return = false; } + elseif(isset($_POST['type']) && $_POST['type']=='deletebetriebsmittel') + { + //Loescht eine Buchung + if(isset($_POST['betriebsmittel_id']) && is_numeric($_POST['betriebsmittel_id']) && + isset($_POST['person_id']) && is_numeric($_POST['person_id'])) + { + $btm = new betriebsmittelperson($conn, null,null, true); + + if($btm->delete($_POST['betriebsmittel_id'], $_POST['person_id'])) + { + $return = true; + } + else + { + $errormsg = $btm->errormsg; + $return = false; + } + } + else + { + $return = false; + $errormsg = 'Fehlerhafte Parameteruebergabe'; + } + } else { $return = false; diff --git a/content/student/studentbetriebsmitteloverlay.xul.php b/content/student/studentbetriebsmitteloverlay.xul.php new file mode 100644 index 000000000..3026c4ee6 --- /dev/null +++ b/content/student/studentbetriebsmitteloverlay.xul.php @@ -0,0 +1,199 @@ +, + * Andreas Oesterreicher and + * Rudolf Hangl . + */ + +header("Cache-Control: no-cache"); +header("Cache-Control: post-check=0, pre-check=0",false); +header("Expires Mon, 26 Jul 1997 05:00:00 GMT"); +header("Pragma: no-cache"); +header("Content-type: application/vnd.mozilla.xul+xml"); +require_once('../../vilesci/config.inc.php'); +echo ''; + +?> + + + + + + + + + + + + + + + + + + + + + + + + + +