From 753e6bf50aeb4fd411dad0caa0bb93a97f060c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 2 Oct 2008 15:41:30 +0000 Subject: [PATCH] --- content/ToDo_Tempus.html | 63 +++++++--------------- content/dragboard.js.php | 6 +-- content/lvplanung/stpl-week-overlay.js.php | 49 +++++++++-------- content/tempus.js.php | 42 +++++++++++++-- content/tempus.xul.php | 4 ++ include/wochenplan.class.php | 4 +- 6 files changed, 92 insertions(+), 76 deletions(-) diff --git a/content/ToDo_Tempus.html b/content/ToDo_Tempus.html index 2073b749e..ce0f1b849 100644 --- a/content/ToDo_Tempus.html +++ b/content/ToDo_Tempus.html @@ -80,37 +80,6 @@ verplanten Stunden oder bei Raumvorschlag)
?
- - Bei Programmstart ignore_kollision auf "false" setzen
- - low
- - ?
- - - - Raumvorschläge für größere Räume, -wenn "Raumtyp" und "Raumtyp alternativ" belegt sind
- - med
- - ?
- - - - Schriftgröße ändern
- - high
- - ?
- - - - Lektoränderung durch Drag&Drop in Tempus einbauen - low - ?
- - Button für Kopie einzelner Lehreinheiten in @@ -200,16 +169,6 @@ sind.
?
- - Bei Verplanung aus einer Spezialgruppe, nur DIESE -Spezialgruppe verplanen (Auch wenn mehrere in der Lehreinheit -zugeordnet sind)
- - low
- - ?
- - In der Registerkarte "Ort" die Detailspalte "Planbezeichnung" einblenden
@@ -594,8 +553,8 @@ ist fehlerhaft
Aufwand [h] -
- + Raumvorschläge für größere Räume, +wenn "Raumtyp" und "Raumtyp alternativ" belegt sind

@@ -604,14 +563,28 @@ ist fehlerhaft
-
- + Schriftgröße ändern

+ + Lektoränderung durch Drag&Drop in Tempus einbauen +
+ +
+ + + Bei Verplanung aus einer Spezialgruppe, nur +DIESE +Spezialgruppe verplanen (Auch wenn mehrere in der Lehreinheit +zugeordnet sind) +
+ +
+ diff --git a/content/dragboard.js.php b/content/dragboard.js.php index 8a6fae863..daca4eb6f 100644 --- a/content/dragboard.js.php +++ b/content/dragboard.js.php @@ -508,7 +508,7 @@ var boardObserver= var grp=stplData.getAttribute("grp"); var pers_uid=stplData.getAttribute("pers_uid"); var ort=stplData.getAttribute("ort"); - var einheit=stplData.getAttribute("einheit"); + var einheit=stplData.getAttribute("gruppe"); var stunde=evt.target.getAttribute("stunde"); var new_datum=evt.target.getAttribute("datum"); @@ -521,7 +521,7 @@ var boardObserver= var url="content/lvplanung/timetable-week.xul.php"; url+=dropdata.data+"&new_stunde="+stunde+"&new_datum="+new_datum; url+="&type="+type+"&datum="+datum+"&ort="+ort+"&pers_uid="+pers_uid; - url+="&stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"&einheit="+einheit; + url+="&stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"&gruppe="+einheit; if (evt.target.tagName=="label" || dropdata.flavour.contentType=="application/tempus-lehrveranstaltung") url+="&new_ort="+new_ort; else @@ -531,7 +531,7 @@ var boardObserver= // Mehrfachauswahl anhaengen for (var i=0;icontent/lvplanung/timetable-week.xul.php"; - url+=attributes; - //alert(url); - if (url) - location.href=url; + StplSearchRoom(event); } } +function StplSearchRoom(event) +{ + var contentFrame=document.getElementById('iframeTimeTableWeek'); + var daten=document.getElementById('TimeTableWeekData'); + var datum=parseInt(daten.getAttribute("datum")); + var type=daten.getAttribute("stpl_type"); + var stg_kz=daten.getAttribute("stg_kz"); + var sem=daten.getAttribute("sem"); + var ver=daten.getAttribute("ver"); + var grp=daten.getAttribute("grp"); + var gruppe=daten.getAttribute("gruppe"); + var ort=daten.getAttribute("ort"); + var pers_uid=daten.getAttribute("pers_uid"); + var aktion=document.popupNode.getAttribute("aktion"); + aktion+="_single_search"; + var idList=document.popupNode.getAttribute("idList"); + + var attributes="\n?type="+type+"&datum="+datum+"&ort="+ort+"&pers_uid="+pers_uid+"\n&stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"\n&gruppe="+gruppe; + attributes+=idList+"&aktion="+aktion; + var url = "content/lvplanung/timetable-week.xul.php"; + url+=attributes; + //alert(url); + if (url) + location.href=url; +} + function onStplDelete(aktion) { var contentFrame=document.getElementById('iframeTimeTableWeek'); diff --git a/content/tempus.js.php b/content/tempus.js.php index 271e7f1fa..faf00fe5d 100644 --- a/content/tempus.js.php +++ b/content/tempus.js.php @@ -215,14 +215,27 @@ function studiensemesterChange(stsem, wert) return true; } -function variableChange(variable, id) +function toggleIgnoreKollision() +{ + if(getvariable('ignore_kollision')=='true') + variableChange('ignore_kollision','menu-prefs-ignore_kollision', 'false'); + else + variableChange('ignore_kollision','menu-prefs-ignore_kollision', 'true'); +} + +function variableChange(variable, id, wert) { item = document.getElementById(id); - if(item.getAttribute('checked')=='true') - checked='true'; + if(typeof(wert)==='undefined') + { + if(item.getAttribute('checked')=='true') + checked='true'; + else + checked='false'; + } else - checked='false'; + checked=wert; netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); @@ -249,11 +262,32 @@ function variableChange(variable, id) } else { + if(variable=='ignore_kollision') + updateignorekollision(); //Statusbar setzen document.getElementById("statusbarpanel-text").label = "Variable erfolgreich geaendert"; } } +// Aktualisiert die IngnoreKollision Anzeige +// sowohl in der Toolbar als auch im Menue +function updateignorekollision() +{ + var panel = document.getElementById('statusbarpanel-ignore_kollision'); + if(getvariable('ignore_kollision')=='true') + { + panel.label='Kollisionscheck AUS'; + panel.style.backgroundColor='red'; + document.getElementById('menu-prefs-ignore_kollision').setAttribute('checked','true'); + } + else + { + panel.label='Kollisionscheck AN'; + panel.style.backgroundColor=''; + document.getElementById('menu-prefs-ignore_kollision').setAttribute('checked','false'); + } +} + function getvariable(variable) { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); diff --git a/content/tempus.xul.php b/content/tempus.xul.php index c503530c3..9b7969f27 100644 --- a/content/tempus.xul.php +++ b/content/tempus.xul.php @@ -67,6 +67,7 @@ echo ''; key = "&menu-file-close.key;" observes = "menu-file-close:command" modifiers = "accel" /> + @@ -247,6 +248,9 @@ echo ''; /> + + oncommand="updateignorekollision()"/> + diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php index 260922b96..3eef306fb 100644 --- a/include/wochenplan.class.php +++ b/include/wochenplan.class.php @@ -680,7 +680,7 @@ class wochenplan // Kontext Menue echo ' - + '; @@ -924,7 +924,7 @@ class wochenplan // Ausgabe echo '