From a30093ec7e6d8327e3a940dc45b378ce80266ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 9 Jan 2008 16:46:46 +0000 Subject: [PATCH] --- cis/menu.html | 8 +- content/lvplanung/stpl-details-dialog.js.php | 49 ++++ content/lvplanung/stpl-details-dialog.xul.php | 221 ++++++++++++++++++ content/lvplanung/stpl-week-overlay.js.php | 79 ++++++- content/pdfExport.php | 10 +- content/student/studentkontoneudialog.js.php | 2 +- content/tempusDBDML.php | 5 + include/stundenplan.class.php | 41 +++- 8 files changed, 406 insertions(+), 9 deletions(-) create mode 100644 content/lvplanung/stpl-details-dialog.js.php create mode 100644 content/lvplanung/stpl-details-dialog.xul.php diff --git a/cis/menu.html b/cis/menu.html index cac80bcf9..1396ae0bd 100644 --- a/cis/menu.html +++ b/cis/menu.html @@ -128,7 +128,7 @@ -  Weiterbildung +  Weiterbildung - + + + + + diff --git a/content/lvplanung/stpl-details-dialog.js.php b/content/lvplanung/stpl-details-dialog.js.php new file mode 100644 index 000000000..7f20ff460 --- /dev/null +++ b/content/lvplanung/stpl-details-dialog.js.php @@ -0,0 +1,49 @@ +, + * Andreas Oesterreicher and + * Rudolf Hangl . + */ + +require_once('../../vilesci/config.inc.php'); +require_once('../../include/functions.inc.php'); + +$conn = pg_pconnect(CONN_STRING); + +$user = get_uid(); +loadVariables($conn, $user); +?> + +// **** +// * Laedt die zu bearbeitenden Daten +// **** +function StplDetailsInit(datum) +{ + document.getElementById('stpl-details-dialog-box-datum').value=datum; +} + +// **** +// * Speichern der Daten +// **** +function StplDetailsSpeichern() +{ + if(window.opener.STPLDetailSave(document)) + window.close(); + else + this.focus(); +} \ No newline at end of file diff --git a/content/lvplanung/stpl-details-dialog.xul.php b/content/lvplanung/stpl-details-dialog.xul.php new file mode 100644 index 000000000..59b0c3f1a --- /dev/null +++ b/content/lvplanung/stpl-details-dialog.xul.php @@ -0,0 +1,221 @@ +, + * 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'); +require_once('../../include/stundenplan.class.php'); +require_once('../../include/functions.inc.php'); +require_once('../../include/studiengang.class.php'); +require_once('../../include/datum.class.php'); + +if(!$conn = pg_pconnect(CONN_STRING)) + die('Fehler beim Connecten zur DB'); + +echo ''."\n"; + +echo ''; +echo ''; +echo ''; + +if(isset($_GET['id']) && is_numeric($_GET['id'])) + $id=$_GET['id']; +else + $id=''; + +$datum_obj = new datum(); + +loadVariables($conn, get_uid()); + +$stundenplan = new stundenplan($conn, $db_stpl_table, null, true); + +if(!$stundenplan->load($id)) + die('Fehler beim Laden der Daten'); + +$studiengang = new studiengang($conn, null, true); +$studiengang->load($stundenplan->studiengang_kz); + +?> + + + +