From c1386ee2683e9e700e0a197aa7577f32a14c267b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 23 Jun 2014 11:20:36 +0000 Subject: [PATCH] Notizen zu Lehreinheiten --- content/bindings.xml.php | 20 ++- .../lvplanung/lehrveranstaltungoverlay.js.php | 15 +- .../lehrveranstaltungoverlay.xul.php | 4 + content/lvplanung/stpl-details-dialog.js.php | 4 +- content/lvplanung/stpl-details-dialog.xul.php | 13 +- .../lvplanung/stpl-details-overlay.xul.php | 2 +- content/lvplanung/stpl-week-overlay.js.php | 7 +- content/lvplanung/stpl-week-overlay.xul.php | 20 ++- content/notiz.xml.php | 49 ++++-- content/notizdialog.js.php | 29 +++ content/notizdialog.xul.php | 95 ++++++++++ content/planner.js.php | 4 +- content/projekt/projekt.overlay.js.php | 4 +- content/projekt/projektphase.overlay.js.php | 4 +- content/projekt/projekttask.overlay.js.php | 2 +- content/student/studentdetailoverlay.xul.php | 4 +- content/student/studentenoverlay.xul.php | 2 +- content/student/studentoverlay.js.php | 2 +- content/tempus.js.php | 2 +- content/tempus.xul.php | 3 + include/notiz.class.php | 166 +++++++++++++----- rdf/lehreinheit-lvplan.rdf.php | 12 +- rdf/notiz.rdf.php | 24 ++- skin/tempus.css | 17 ++ soap/notiz.soap.php | 10 +- soap/notiz.wsdl.php | 1 + system/checksystem.php | 18 +- 27 files changed, 419 insertions(+), 114 deletions(-) create mode 100644 content/notizdialog.js.php create mode 100644 content/notizdialog.xul.php diff --git a/content/bindings.xml.php b/content/bindings.xml.php index 2b39cad76..d208e9e75 100644 --- a/content/bindings.xml.php +++ b/content/bindings.xml.php @@ -596,13 +596,13 @@ echo ''; - - - + + + - - - + + + @@ -667,18 +667,19 @@ echo ''; @@ -757,6 +758,7 @@ echo ''; netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor'); editor.contentDocument.designMode = 'on'; + editor.style.backgroundColor="#FFFFFF"; ]]> diff --git a/content/lvplanung/lehrveranstaltungoverlay.js.php b/content/lvplanung/lehrveranstaltungoverlay.js.php index 6ad59cf6c..64fa9d7cf 100644 --- a/content/lvplanung/lehrveranstaltungoverlay.js.php +++ b/content/lvplanung/lehrveranstaltungoverlay.js.php @@ -706,12 +706,15 @@ function LeAuswahl() //Noten Tab aktivieren LehrveranstaltungNotenDisableFields(false); - //Noten Tab ausblenden + //Noten Tab einblenden //document.getElementById('lehrveranstaltung-tab-noten').collapsed=false; //Noten Laden LehrveranstaltungNotenLoad(lehrveranstaltung_id); + //Notizen Tab ausblenden + //document.getElementById('lehrveranstaltung-tab-notizen').collapsed=true; + LeDetailDisableFields(true); //Details zuruecksetzen LeDetailReset(); @@ -723,9 +726,12 @@ function LeAuswahl() LehrveranstaltungNotenDisableFields(true); LehrveranstaltungNotenTreeUnload(); - //Noten Tab einblenden + //Noten Tab ausblenden //document.getElementById('lehrveranstaltung-tab-noten').collapsed=true; + //Notizen Tab einblenden + //document.getElementById('lehrveranstaltung-tab-notizen').collapsed=false; + document.getElementById('lehrveranstaltung-toolbar-neu').disabled=true; document.getElementById('lehrveranstaltung-toolbar-del').disabled=false; } @@ -890,6 +896,11 @@ function LeAuswahl() { debug(e); } + + // Notizen Laden + var lehreinheitnotiz = document.getElementById('lehrveranstaltung-box-notizen'); + lehreinheitnotiz.LoadNotizTree('','','','','','','','',lehreinheit_id); + } //******** LehreinheitMitarbeiter **********// diff --git a/content/lvplanung/lehrveranstaltungoverlay.xul.php b/content/lvplanung/lehrveranstaltungoverlay.xul.php index 79c0107df..5c4949108 100644 --- a/content/lvplanung/lehrveranstaltungoverlay.xul.php +++ b/content/lvplanung/lehrveranstaltungoverlay.xul.php @@ -229,11 +229,15 @@ echo ' + + + + diff --git a/content/lvplanung/stpl-details-dialog.js.php b/content/lvplanung/stpl-details-dialog.js.php index e6c5ce90c..c861ca1e5 100644 --- a/content/lvplanung/stpl-details-dialog.js.php +++ b/content/lvplanung/stpl-details-dialog.js.php @@ -30,7 +30,7 @@ loadVariables($user); // **** // * Laedt die zu bearbeitenden Daten // **** -function StplDetailsInit(datum, mitarbeiter_uid) +function StplDetailsInit(datum, mitarbeiter_uid,id) { document.getElementById('stpl-details-dialog-box-datum').value=datum; document.getElementById('stpl-details-dialog-menulist-lektor').value=mitarbeiter_uid; @@ -45,4 +45,4 @@ function StplDetailsSpeichern() 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 index f58ef328f..2ab45e91b 100644 --- a/content/lvplanung/stpl-details-dialog.xul.php +++ b/content/lvplanung/stpl-details-dialog.xul.php @@ -37,7 +37,7 @@ echo ''."\n"; echo ''; echo ''; echo ''; - + if(isset($_GET['id']) && is_numeric($_GET['id'])) $id=$_GET['id']; else @@ -60,7 +60,7 @@ $studiengang->load($stundenplan->studiengang_kz); + + + + + + + diff --git a/content/planner.js.php b/content/planner.js.php index a3d6ee1ae..550a96144 100755 --- a/content/planner.js.php +++ b/content/planner.js.php @@ -68,7 +68,7 @@ function onLoad() //Notizen des Users laden notiz = document.getElementById('box-notizen'); - notiz.LoadNotizTree('','','','','','','', getUsername()); + notiz.LoadNotizTree('','','','','','','', getUsername(),''); } catch(e) { @@ -88,4 +88,4 @@ function loadURL(event) var url = event.target.getAttribute('value'); if (url) contentFrame.setAttribute('src', url); -} \ No newline at end of file +} diff --git a/content/projekt/projekt.overlay.js.php b/content/projekt/projekt.overlay.js.php index cbf1edda1..ae977b9de 100755 --- a/content/projekt/projekt.overlay.js.php +++ b/content/projekt/projekt.overlay.js.php @@ -170,7 +170,7 @@ function onselectProjekt() //Notizen zu einem Projekt Laden notiz = document.getElementById('box-projekt-notizen'); - notiz.LoadNotizTree(projekt_kurzbz,'','','','','','', ''); + notiz.LoadNotizTree(projekt_kurzbz,'','','','','','', '',''); ressource = document.getElementById('box-projekt-ressourcen'); ressource.LoadRessourceTree(projekt_kurzbz,''); @@ -422,4 +422,4 @@ function ProjektPrintProjektbeschreibung() return false; } window.open('content/projektbeschreibung.php?xsl=Projektbeschr&xml=projektbeschreibung.rdf.php&projekt_kurzbz='+id); -} \ No newline at end of file +} diff --git a/content/projekt/projektphase.overlay.js.php b/content/projekt/projektphase.overlay.js.php index 65aa98d47..b54ff8640 100755 --- a/content/projekt/projektphase.overlay.js.php +++ b/content/projekt/projektphase.overlay.js.php @@ -177,7 +177,7 @@ function onselectTreeProjektphase() //Notizen zu einer Phase Laden notiz = document.getElementById('box-projektphase-notizen'); - notiz.LoadNotizTree('',projektphase_id,'','','','','', ''); + notiz.LoadNotizTree('',projektphase_id,'','','','','', '',''); ressource = document.getElementById('box-projekt-ressource-phase'); ressource.LoadRessourceTree('',projektphase_id); @@ -423,4 +423,4 @@ function clb_deleteProjektphase(respObj) datasourceTreeProjektphase.Refresh(false); //non blocking ProjektmenueRefresh() SetStatusBarText('Eintrag wurde entfernt'); -} \ No newline at end of file +} diff --git a/content/projekt/projekttask.overlay.js.php b/content/projekt/projekttask.overlay.js.php index 3817aefcf..9b3052fff 100755 --- a/content/projekt/projekttask.overlay.js.php +++ b/content/projekt/projekttask.overlay.js.php @@ -472,7 +472,7 @@ function onselectProjekttask() //Notizen zu eines Tasks Laden notiz = document.getElementById('box-projekttask-notizen'); - notiz.LoadNotizTree('','',projekttask_id,'','','','', ''); + notiz.LoadNotizTree('','',projekttask_id,'','','','', '',''); //Mantis Tab reset document.getElementById('textbox-projekttask-mantis-issue_summary').value=bezeichnung; diff --git a/content/student/studentdetailoverlay.xul.php b/content/student/studentdetailoverlay.xul.php index 3a3a6994d..50d267058 100644 --- a/content/student/studentdetailoverlay.xul.php +++ b/content/student/studentdetailoverlay.xul.php @@ -124,7 +124,7 @@ echo '';