mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
Notizen zu Lehreinheiten
This commit is contained in:
@@ -596,13 +596,13 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
<content>
|
<content>
|
||||||
<xul:vbox flex="1" style="margin: 5px;">
|
<xul:vbox flex="1" style="margin: 5px;">
|
||||||
<xul:toolbar>
|
<xul:toolbar>
|
||||||
<xul:toolbarbutton tooltiptext="Fett" image="../skin/images/bold.png" stlye="font-weight: bold;" oncommand="document.getBindingParent(this).setBold()"/>
|
<xul:toolbarbutton tooltiptext="Fett" image="<?php echo APP_ROOT; ?>skin/images/bold.png" stlye="font-weight: bold;" oncommand="document.getBindingParent(this).setBold()"/>
|
||||||
<xul:toolbarbutton tooltiptext="Kursiv" image="../skin/images/italic.png" style="font-style: italic;" oncommand="document.getBindingParent(this).setItalic()"/>
|
<xul:toolbarbutton tooltiptext="Kursiv" image="<?php echo APP_ROOT; ?>skin/images/italic.png" style="font-style: italic;" oncommand="document.getBindingParent(this).setItalic()"/>
|
||||||
<xul:toolbarbutton tooltiptext="Unterstrichen" image="../skin/images/underline.png" style="text-decoration: underline" oncommand="document.getBindingParent(this).setUnderline()"/>
|
<xul:toolbarbutton tooltiptext="Unterstrichen" image="<?php echo APP_ROOT; ?>skin/images/underline.png" style="text-decoration: underline" oncommand="document.getBindingParent(this).setUnderline()"/>
|
||||||
<xul:toolbarseparator />
|
<xul:toolbarseparator />
|
||||||
<xul:toolbarbutton tooltiptext="Linksbündig" image="../skin/images/justifyleft.png" oncommand="document.getBindingParent(this).setJustifyLeft()"/>
|
<xul:toolbarbutton tooltiptext="Linksbündig" image="<?php echo APP_ROOT; ?>skin/images/justifyleft.png" oncommand="document.getBindingParent(this).setJustifyLeft()"/>
|
||||||
<xul:toolbarbutton tooltiptext="Zentriert" image="../skin/images/justifycenter.png" oncommand="document.getBindingParent(this).setJustifyCenter()"/>
|
<xul:toolbarbutton tooltiptext="Zentriert" image="<?php echo APP_ROOT; ?>skin/images/justifycenter.png" oncommand="document.getBindingParent(this).setJustifyCenter()"/>
|
||||||
<xul:toolbarbutton tooltiptext="Rechtsbündig" image="../skin/images/justifyright.png" oncommand="document.getBindingParent(this).setJustifyRight()"/>
|
<xul:toolbarbutton tooltiptext="Rechtsbündig" image="<?php echo APP_ROOT; ?>skin/images/justifyright.png" oncommand="document.getBindingParent(this).setJustifyRight()"/>
|
||||||
<xul:toolbarseparator />
|
<xul:toolbarseparator />
|
||||||
<xul:toolbarbutton label="Format" type="menu">
|
<xul:toolbarbutton label="Format" type="menu">
|
||||||
<xul:menupopup>
|
<xul:menupopup>
|
||||||
@@ -667,18 +667,19 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
</getter>
|
</getter>
|
||||||
<setter>
|
<setter>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
|
||||||
if(val)
|
if(val)
|
||||||
{
|
{
|
||||||
editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor');
|
var editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor');
|
||||||
editor.contentDocument.designMode = 'off';
|
editor.contentDocument.designMode = 'off';
|
||||||
this.disabled_state=true;
|
this.disabled_state=true;
|
||||||
|
editor.style.backgroundColor="#EEEEEE";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor');
|
var editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor');
|
||||||
editor.contentDocument.designMode = 'on';
|
editor.contentDocument.designMode = 'on';
|
||||||
this.disabled_state=false;
|
this.disabled_state=false;
|
||||||
|
editor.style.backgroundColor="#FFFFFF";
|
||||||
}
|
}
|
||||||
]]>
|
]]>
|
||||||
</setter>
|
</setter>
|
||||||
@@ -757,6 +758,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||||
editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor');
|
editor = document.getAnonymousElementByAttribute(this ,'anonid', 'wysiwyg-editor');
|
||||||
editor.contentDocument.designMode = 'on';
|
editor.contentDocument.designMode = 'on';
|
||||||
|
editor.style.backgroundColor="#FFFFFF";
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
|||||||
@@ -706,12 +706,15 @@ function LeAuswahl()
|
|||||||
//Noten Tab aktivieren
|
//Noten Tab aktivieren
|
||||||
LehrveranstaltungNotenDisableFields(false);
|
LehrveranstaltungNotenDisableFields(false);
|
||||||
|
|
||||||
//Noten Tab ausblenden
|
//Noten Tab einblenden
|
||||||
//document.getElementById('lehrveranstaltung-tab-noten').collapsed=false;
|
//document.getElementById('lehrveranstaltung-tab-noten').collapsed=false;
|
||||||
|
|
||||||
//Noten Laden
|
//Noten Laden
|
||||||
LehrveranstaltungNotenLoad(lehrveranstaltung_id);
|
LehrveranstaltungNotenLoad(lehrveranstaltung_id);
|
||||||
|
|
||||||
|
//Notizen Tab ausblenden
|
||||||
|
//document.getElementById('lehrveranstaltung-tab-notizen').collapsed=true;
|
||||||
|
|
||||||
LeDetailDisableFields(true);
|
LeDetailDisableFields(true);
|
||||||
//Details zuruecksetzen
|
//Details zuruecksetzen
|
||||||
LeDetailReset();
|
LeDetailReset();
|
||||||
@@ -723,9 +726,12 @@ function LeAuswahl()
|
|||||||
LehrveranstaltungNotenDisableFields(true);
|
LehrveranstaltungNotenDisableFields(true);
|
||||||
LehrveranstaltungNotenTreeUnload();
|
LehrveranstaltungNotenTreeUnload();
|
||||||
|
|
||||||
//Noten Tab einblenden
|
//Noten Tab ausblenden
|
||||||
//document.getElementById('lehrveranstaltung-tab-noten').collapsed=true;
|
//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-neu').disabled=true;
|
||||||
document.getElementById('lehrveranstaltung-toolbar-del').disabled=false;
|
document.getElementById('lehrveranstaltung-toolbar-del').disabled=false;
|
||||||
}
|
}
|
||||||
@@ -890,6 +896,11 @@ function LeAuswahl()
|
|||||||
{
|
{
|
||||||
debug(e);
|
debug(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notizen Laden
|
||||||
|
var lehreinheitnotiz = document.getElementById('lehrveranstaltung-box-notizen');
|
||||||
|
lehreinheitnotiz.LoadNotizTree('','','','','','','','',lehreinheit_id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//******** LehreinheitMitarbeiter **********//
|
//******** LehreinheitMitarbeiter **********//
|
||||||
|
|||||||
@@ -229,11 +229,15 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/lehrveranstaltungnotenov
|
|||||||
<tab id="lehrveranstaltung-tab-detail" label="Details" />
|
<tab id="lehrveranstaltung-tab-detail" label="Details" />
|
||||||
<tab id="lehrveranstaltung-tab-lektor" label="Lektorenzuteilung" />
|
<tab id="lehrveranstaltung-tab-lektor" label="Lektorenzuteilung" />
|
||||||
<tab id="lehrveranstaltung-tab-noten" label="Noten" />
|
<tab id="lehrveranstaltung-tab-noten" label="Noten" />
|
||||||
|
<tab id="lehrveranstaltung-tab-notizen" label="Notizen" />
|
||||||
</tabs>
|
</tabs>
|
||||||
<tabpanels id="lehrveranstaltung-tabpanels-main" flex="1">
|
<tabpanels id="lehrveranstaltung-tabpanels-main" flex="1">
|
||||||
<vbox id="lehrveranstaltung-detail" />
|
<vbox id="lehrveranstaltung-detail" />
|
||||||
<vbox id="lehrveranstaltung-lektorzuteilung" />
|
<vbox id="lehrveranstaltung-lektorzuteilung" />
|
||||||
<vbox id="lehrveranstaltung-noten" />
|
<vbox id="lehrveranstaltung-noten" />
|
||||||
|
<vbox id="lehrveranstaltung-notiz">
|
||||||
|
<box class="Notiz" flex="1" id="lehrveranstaltung-box-notizen"/>
|
||||||
|
</vbox>
|
||||||
</tabpanels>
|
</tabpanels>
|
||||||
</tabbox>
|
</tabbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ loadVariables($user);
|
|||||||
// ****
|
// ****
|
||||||
// * Laedt die zu bearbeitenden Daten
|
// * 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-box-datum').value=datum;
|
||||||
document.getElementById('stpl-details-dialog-menulist-lektor').value=mitarbeiter_uid;
|
document.getElementById('stpl-details-dialog-menulist-lektor').value=mitarbeiter_uid;
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ $studiengang->load($stundenplan->studiengang_kz);
|
|||||||
|
|
||||||
<window id="stpl-details-dialog" title="Details"
|
<window id="stpl-details-dialog" title="Details"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
onload="StplDetailsInit('<?php echo $datum_obj->convertISODate($stundenplan->datum); ?>','<?php echo $stundenplan->mitarbeiter_uid; ?>'); document.getElementById('stpl-details-dialog-textbox-titel').focus();"
|
onload="StplDetailsInit('<?php echo $datum_obj->convertISODate($stundenplan->datum); ?>','<?php echo $stundenplan->mitarbeiter_uid; ?>','<?php echo $id; ?>'); document.getElementById('stpl-details-dialog-textbox-titel').focus();"
|
||||||
>
|
>
|
||||||
|
|
||||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/lvplanung/stpl-details-dialog.js.php" />
|
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/lvplanung/stpl-details-dialog.js.php" />
|
||||||
@@ -69,11 +69,10 @@ $studiengang->load($stundenplan->studiengang_kz);
|
|||||||
<commandset>
|
<commandset>
|
||||||
<command id="stpl-details-dialog-command-save" oncommand="StplDetailsSpeichern()"/>
|
<command id="stpl-details-dialog-command-save" oncommand="StplDetailsSpeichern()"/>
|
||||||
</commandset>
|
</commandset>
|
||||||
|
<vbox id="stpl-details-dialog-detail">
|
||||||
<vbox>
|
|
||||||
|
|
||||||
<textbox id="stpl-details-dialog-textbox-id" hidden="true" value="<?php echo $id; ?>"/>
|
<textbox id="stpl-details-dialog-textbox-id" hidden="true" value="<?php echo $id; ?>"/>
|
||||||
|
|
||||||
|
|
||||||
<groupbox id="stpl-details-dialog-groupbox" flex="1">
|
<groupbox id="stpl-details-dialog-groupbox" flex="1">
|
||||||
<caption label="Details"/>
|
<caption label="Details"/>
|
||||||
<grid id="stpl-details-dialog-grid-detail" style="overflow:auto;margin:4px;" flex="1">
|
<grid id="stpl-details-dialog-grid-detail" style="overflow:auto;margin:4px;" flex="1">
|
||||||
|
|||||||
@@ -463,7 +463,7 @@ function STPLDetailEdit()
|
|||||||
if(reservierung=='true')
|
if(reservierung=='true')
|
||||||
alert('Reservierungen koennen hier nicht editiert werden');
|
alert('Reservierungen koennen hier nicht editiert werden');
|
||||||
else
|
else
|
||||||
window.open('<?php echo APP_ROOT; ?>content/lvplanung/stpl-details-dialog.xul.php?id='+id,'Details', 'height=500,width=450,left=100,top=100,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
window.open('<?php echo APP_ROOT; ?>content/lvplanung/stpl-details-dialog.xul.php?id='+id,'Details', 'height=500,width=600,left=100,top=100,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||||
}
|
}
|
||||||
|
|
||||||
// ****
|
// ****
|
||||||
@@ -667,3 +667,8 @@ function TimetableDeleteEntries()
|
|||||||
if (url && doIt)
|
if (url && doIt)
|
||||||
location.href=url;
|
location.href=url;
|
||||||
}
|
}
|
||||||
|
function StplWeekOpenNotiz(item)
|
||||||
|
{
|
||||||
|
var lehreinheit_id=item.getAttribute('lehreinheit_id');
|
||||||
|
window.open('<?php echo APP_ROOT; ?>content/notizdialog.xul.php?lehreinheit_id='+lehreinheit_id,'Details', 'height=500,width=600,left=100,top=100,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||||
|
}
|
||||||
|
|||||||
@@ -169,25 +169,33 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/stpl-details-overlay.xul
|
|||||||
tooltiptext="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#raumtypalternativ" />
|
tooltiptext="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#raumtypalternativ" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
<vbox flex="1">
|
||||||
<label value="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrverband"
|
<label value="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrverband"
|
||||||
tooltiptext="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#anmerkung" />
|
tooltiptext="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#anmerkung" />
|
||||||
|
</vbox>
|
||||||
<toolbarbutton
|
<toolbarbutton
|
||||||
label="KW: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#start_kw "
|
label="KW: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#start_kw"
|
||||||
tooltiptext="Zu KW rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#start_kw springen"
|
tooltiptext="Zu KW rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#start_kw springen"
|
||||||
onclick="onJumpDateRel(event);"
|
onclick="onJumpDateRel(event);"
|
||||||
|
class="stplweekoverlay-toolbarbutton"
|
||||||
kw="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#start_kw"
|
kw="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#start_kw"
|
||||||
/>
|
/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lektor" />
|
<label value="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lektor" />
|
||||||
<label value="WR: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#wochenrythmus"
|
<label value="WR: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#wochenrythmus Bl: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#stundenblockung"
|
||||||
tooltiptext="Wochenrythmus"/>
|
tooltiptext="Wochenrythmus" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="Offen: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#offenestunden / rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#semesterstunden"
|
<label value="Offen: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#offenestunden / rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#semesterstunden"
|
||||||
tooltiptext="Stunden: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#verplant / rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#semesterstunden" />
|
tooltiptext="Stunden: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#verplant / rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#semesterstunden" />
|
||||||
<label value="Block: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#stundenblockung"
|
<toolbarbutton align="start"
|
||||||
tooltiptext="Stundenblockung" />
|
label="Notizen: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#anzahl_notizen"
|
||||||
|
lehreinheit_id="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehreinheit_id"
|
||||||
|
onclick="StplWeekOpenNotiz(this)"
|
||||||
|
class="stplweekoverlay-toolbarbutton"
|
||||||
|
/>
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|||||||
+32
-17
@@ -42,9 +42,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
</xul:popupset>
|
</xul:popupset>
|
||||||
<xul:toolbox>
|
<xul:toolbox>
|
||||||
<xul:toolbar >
|
<xul:toolbar >
|
||||||
<xul:toolbarbutton anonid="toolbarbutton-notiz-neu" label="Neue Notiz" oncommand="document.getBindingParent(this).NeueNotiz()" image="../skin/images/NeuDokument.png" tooltiptext="Neue Notiz anlegen" />
|
<xul:toolbarbutton anonid="toolbarbutton-notiz-neu" label="Neue Notiz" oncommand="document.getBindingParent(this).NeueNotiz()" image="<?php echo APP_ROOT;?>skin/images/NeuDokument.png" tooltiptext="Neue Notiz anlegen" />
|
||||||
<xul:toolbarbutton anonid="toolbarbutton-notiz-del" label="Loeschen" oncommand="document.getBindingParent(this).Loeschen()" image="../skin/images/DeleteIcon.png" disabled="true" tooltiptext="Notiz löschen"/>
|
<xul:toolbarbutton anonid="toolbarbutton-notiz-del" label="Loeschen" oncommand="document.getBindingParent(this).Loeschen()" image="<?php echo APP_ROOT;?>skin/images/DeleteIcon.png" disabled="true" tooltiptext="Notiz löschen"/>
|
||||||
<xul:toolbarbutton anonid="toolbarbutton-notiz-aktualisieren" label="Aktualisieren" oncommand="document.getBindingParent(this).RefreshNotiz()" image="../skin/images/refresh.png" tooltiptext="Liste neu laden"/>
|
<xul:toolbarbutton anonid="toolbarbutton-notiz-aktualisieren" label="Aktualisieren" oncommand="document.getBindingParent(this).RefreshNotiz()" image="<?php echo APP_ROOT;?>skin/images/refresh.png" tooltiptext="Liste neu laden"/>
|
||||||
<xul:toolbarbutton anonid="toolbarbutton-notiz-filter" label="Filter" type="menu">
|
<xul:toolbarbutton anonid="toolbarbutton-notiz-filter" label="Filter" type="menu">
|
||||||
<xul:menupopup>
|
<xul:menupopup>
|
||||||
<xul:menuitem label="Alle Notizen anzeigen" oncommand="document.getBindingParent(this).LoadNotizTree(document.getBindingParent(this).getAttribute('projekt_kurzbz'),document.getBindingParent(this).getAttribute('projektphase_id'),document.getBindingParent(this).getAttribute('projekttask_id'),document.getBindingParent(this).getAttribute('uid'),document.getBindingParent(this).getAttribute('person_id'),document.getBindingParent(this).getAttribute('prestudent_id'),document.getBindingParent(this).getAttribute('bestellung_id'), document.getBindingParent(this).getAttribute('user'), null);" tooltiptext="Alle Notizen anzeigen"/>
|
<xul:menuitem label="Alle Notizen anzeigen" oncommand="document.getBindingParent(this).LoadNotizTree(document.getBindingParent(this).getAttribute('projekt_kurzbz'),document.getBindingParent(this).getAttribute('projektphase_id'),document.getBindingParent(this).getAttribute('projekttask_id'),document.getBindingParent(this).getAttribute('uid'),document.getBindingParent(this).getAttribute('person_id'),document.getBindingParent(this).getAttribute('prestudent_id'),document.getBindingParent(this).getAttribute('bestellung_id'), document.getBindingParent(this).getAttribute('user'), null);" tooltiptext="Alle Notizen anzeigen"/>
|
||||||
@@ -58,7 +58,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
datasources="rdf:null" ref="http://www.technikum-wien.at/notiz/liste"
|
datasources="rdf:null" ref="http://www.technikum-wien.at/notiz/liste"
|
||||||
onclick="document.getBindingParent(this).updateErledigt(event);"
|
onclick="document.getBindingParent(this).updateErledigt(event);"
|
||||||
onselect="document.getBindingParent(this).edit(event);"
|
onselect="document.getBindingParent(this).edit(event);"
|
||||||
flags="dont-build-content"
|
flags="dont-build-content" style="min-height: 60px"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xul:treecols>
|
<xul:treecols>
|
||||||
@@ -151,7 +151,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
<xul:box class="WYSIWYG" anonid="textbox-notiz-text" flex="1"/>
|
<xul:box class="WYSIWYG" anonid="textbox-notiz-text" flex="1"/>
|
||||||
</xul:row>
|
</xul:row>
|
||||||
<xul:row>
|
<xul:row>
|
||||||
<xul:label value="Start"/>
|
<xul:label value="Gültig von"/>
|
||||||
<xul:hbox>
|
<xul:hbox>
|
||||||
<xul:box class="Datum" anonid="box-notiz-start"/>
|
<xul:box class="Datum" anonid="box-notiz-start"/>
|
||||||
<xul:label value="Erledigt "/>
|
<xul:label value="Erledigt "/>
|
||||||
@@ -159,13 +159,13 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
</xul:hbox>
|
</xul:hbox>
|
||||||
</xul:row>
|
</xul:row>
|
||||||
<xul:row>
|
<xul:row>
|
||||||
<xul:label value="Ende"/>
|
<xul:label value="Gültig bis"/>
|
||||||
<xul:hbox flex="1">
|
<xul:hbox>
|
||||||
<xul:box class="Datum" anonid="box-notiz-ende"/>
|
<xul:box class="Datum" anonid="box-notiz-ende"/>
|
||||||
<xul:label value="Verfasser"/>
|
<xul:label value="Verfasser"/>
|
||||||
<xul:textbox anonid="textbox-notiz-verfasser" disabled="true"/>
|
<xul:label anonid="textbox-notiz-verfasser" disabled="true"/>
|
||||||
</xul:hbox>
|
</xul:hbox>
|
||||||
</xul:row>
|
</xul:row>
|
||||||
<xul:row>
|
<xul:row>
|
||||||
<xul:label value="Bearbeiter"/>
|
<xul:label value="Bearbeiter"/>
|
||||||
<xul:hbox>
|
<xul:hbox>
|
||||||
@@ -189,6 +189,10 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
|
|
||||||
</xul:hbox>
|
</xul:hbox>
|
||||||
</xul:row>
|
</xul:row>
|
||||||
|
<xul:row>
|
||||||
|
<xul:label value="Letzte Änderung"/>
|
||||||
|
<xul:label anonid="label-notiz-updateamum" value=""/>
|
||||||
|
</xul:row>
|
||||||
</xul:rows>
|
</xul:rows>
|
||||||
</xul:grid>
|
</xul:grid>
|
||||||
<xul:hbox>
|
<xul:hbox>
|
||||||
@@ -248,7 +252,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
getService(Components.interfaces.nsIXULSortService);
|
getService(Components.interfaces.nsIXULSortService);
|
||||||
sortService.sort(tree, treecol.getAttribute('sort'), direction);
|
sortService.sort(tree, treecol.getAttribute('sort'), direction);
|
||||||
treecol.parentNode.parentNode.builder.rebuild();
|
treecol.parentNode.parentNode.builder.rebuild();
|
||||||
debug('sorted in dir:'+direction);
|
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
@@ -287,6 +291,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'box-notiz-ende').value='';
|
document.getAnonymousElementByAttribute(this ,'anonid', 'box-notiz-ende').value='';
|
||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'menulist-notiz-bearbeiter').value='';
|
document.getAnonymousElementByAttribute(this ,'anonid', 'menulist-notiz-bearbeiter').value='';
|
||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'checkbox-notiz-erledigt').checked=false;
|
document.getAnonymousElementByAttribute(this ,'anonid', 'checkbox-notiz-erledigt').checked=false;
|
||||||
|
document.getAnonymousElementByAttribute(this ,'anonid', 'label-notiz-updateamum').value='';
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
@@ -328,6 +333,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
var person_id = this.getAttribute('person_id');
|
var person_id = this.getAttribute('person_id');
|
||||||
var prestudent_id = this.getAttribute('prestudent_id');
|
var prestudent_id = this.getAttribute('prestudent_id');
|
||||||
var bestellung_id = this.getAttribute('bestellung_id');
|
var bestellung_id = this.getAttribute('bestellung_id');
|
||||||
|
var lehreinheit_id = this.getAttribute('lehreinheit_id');
|
||||||
|
|
||||||
var soapBody = new SOAPObject("saveNotiz");
|
var soapBody = new SOAPObject("saveNotiz");
|
||||||
//soapBody.appendChild(new SOAPObject("username")).val('joe');
|
//soapBody.appendChild(new SOAPObject("username")).val('joe');
|
||||||
@@ -350,6 +356,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
notiz.appendChild(new SOAPObject("person_id")).val(person_id);
|
notiz.appendChild(new SOAPObject("person_id")).val(person_id);
|
||||||
notiz.appendChild(new SOAPObject("prestudent_id")).val(prestudent_id);
|
notiz.appendChild(new SOAPObject("prestudent_id")).val(prestudent_id);
|
||||||
notiz.appendChild(new SOAPObject("bestellung_id")).val(bestellung_id);
|
notiz.appendChild(new SOAPObject("bestellung_id")).val(bestellung_id);
|
||||||
|
notiz.appendChild(new SOAPObject("lehreinheit_id")).val(lehreinheit_id);
|
||||||
soapBody.appendChild(notiz);
|
soapBody.appendChild(notiz);
|
||||||
|
|
||||||
var sr = new SOAPRequest("saveNotiz",soapBody);
|
var sr = new SOAPRequest("saveNotiz",soapBody);
|
||||||
@@ -422,8 +429,6 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
{
|
{
|
||||||
|
|
||||||
var soapBody = new SOAPObject("deleteNotiz");
|
var soapBody = new SOAPObject("deleteNotiz");
|
||||||
//soapBody.appendChild(new SOAPObject("username")).val('joe');
|
|
||||||
//soapBody.appendChild(new SOAPObject("passwort")).val('waschl');
|
|
||||||
soapBody.appendChild(new SOAPObject("notiz_id")).val(notiz_id);
|
soapBody.appendChild(new SOAPObject("notiz_id")).val(notiz_id);
|
||||||
|
|
||||||
var sr = new SOAPRequest("deleteNotiz",soapBody);
|
var sr = new SOAPRequest("deleteNotiz",soapBody);
|
||||||
@@ -554,7 +559,9 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
ende = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#ende" ));
|
ende = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#ende" ));
|
||||||
verfasser = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#verfasser_uid" ));
|
verfasser = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#verfasser_uid" ));
|
||||||
bearbeiter = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#bearbeiter_uid" ));
|
bearbeiter = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#bearbeiter_uid" ));
|
||||||
|
updateamum = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#updateamum" ));
|
||||||
erledigt = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#erledigt" ));
|
erledigt = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#erledigt" ));
|
||||||
|
|
||||||
if(erledigt=='true')
|
if(erledigt=='true')
|
||||||
erledigt=true;
|
erledigt=true;
|
||||||
else
|
else
|
||||||
@@ -567,6 +574,8 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'box-notiz-ende').value=ende;
|
document.getAnonymousElementByAttribute(this ,'anonid', 'box-notiz-ende').value=ende;
|
||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'textbox-notiz-verfasser').value=verfasser;
|
document.getAnonymousElementByAttribute(this ,'anonid', 'textbox-notiz-verfasser').value=verfasser;
|
||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'checkbox-notiz-erledigt').checked=erledigt;
|
document.getAnonymousElementByAttribute(this ,'anonid', 'checkbox-notiz-erledigt').checked=erledigt;
|
||||||
|
document.getAnonymousElementByAttribute(this ,'anonid', 'label-notiz-updateamum').value=updateamum;
|
||||||
|
|
||||||
if(bearbeiter!='')
|
if(bearbeiter!='')
|
||||||
{
|
{
|
||||||
menulist = document.getAnonymousElementByAttribute(this ,'anonid', 'menulist-notiz-bearbeiter');
|
menulist = document.getAnonymousElementByAttribute(this ,'anonid', 'menulist-notiz-bearbeiter');
|
||||||
@@ -636,6 +645,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
<parameter name="prestudent_id"/>
|
<parameter name="prestudent_id"/>
|
||||||
<parameter name="bestellung_id"/>
|
<parameter name="bestellung_id"/>
|
||||||
<parameter name="user"/>
|
<parameter name="user"/>
|
||||||
|
<parameter name="lehreinheit_id"/>
|
||||||
<parameter name="erledigt"/>
|
<parameter name="erledigt"/>
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
@@ -661,6 +671,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
this.setAttribute('prestudent_id',prestudent_id);
|
this.setAttribute('prestudent_id',prestudent_id);
|
||||||
this.setAttribute('bestellung_id',bestellung_id);
|
this.setAttribute('bestellung_id',bestellung_id);
|
||||||
this.setAttribute('user',user);
|
this.setAttribute('user',user);
|
||||||
|
this.setAttribute('lehreinheit_id',lehreinheit_id);
|
||||||
|
|
||||||
//Wenn kein Erledigt Parameter uebergeben wird, dann wird die zuletzt
|
//Wenn kein Erledigt Parameter uebergeben wird, dann wird die zuletzt
|
||||||
//verwendete Einstellung verwendet
|
//verwendete Einstellung verwendet
|
||||||
@@ -680,6 +691,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
datasource = datasource+"&prestudent_id="+encodeURIComponent(prestudent_id);
|
datasource = datasource+"&prestudent_id="+encodeURIComponent(prestudent_id);
|
||||||
datasource = datasource+"&bestellung_id="+encodeURIComponent(bestellung_id);
|
datasource = datasource+"&bestellung_id="+encodeURIComponent(bestellung_id);
|
||||||
datasource = datasource+"&user="+encodeURIComponent(user);
|
datasource = datasource+"&user="+encodeURIComponent(user);
|
||||||
|
datasource = datasource+"&lehreinheit_id="+encodeURIComponent(lehreinheit_id);
|
||||||
|
|
||||||
//Wenn es als Parameter uebergeben wird, ist es ein boolean, sonst ein String
|
//Wenn es als Parameter uebergeben wird, ist es ein boolean, sonst ein String
|
||||||
if((typeof erledigt=="boolean" && erledigt==true) || (typeof erledigt=="string" && erledigt=='true'))
|
if((typeof erledigt=="boolean" && erledigt==true) || (typeof erledigt=="string" && erledigt=='true'))
|
||||||
@@ -796,6 +808,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
var person_id = this.getAttribute('person_id');
|
var person_id = this.getAttribute('person_id');
|
||||||
var prestudent_id = this.getAttribute('prestudent_id');
|
var prestudent_id = this.getAttribute('prestudent_id');
|
||||||
var bestellung_id = this.getAttribute('bestellung_id');
|
var bestellung_id = this.getAttribute('bestellung_id');
|
||||||
|
var lehreinheit_id = this.getAttribute('lehreinheit_id');
|
||||||
|
|
||||||
var opener_id = this.getAttribute('id');
|
var opener_id = this.getAttribute('id');
|
||||||
|
|
||||||
@@ -808,6 +821,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
param = param+'&person_id='+encodeURIComponent(person_id);
|
param = param+'&person_id='+encodeURIComponent(person_id);
|
||||||
param = param+'&prestudent_id='+encodeURIComponent(prestudent_id);
|
param = param+'&prestudent_id='+encodeURIComponent(prestudent_id);
|
||||||
param = param+'&bestellung_id='+encodeURIComponent(bestellung_id);
|
param = param+'&bestellung_id='+encodeURIComponent(bestellung_id);
|
||||||
|
param = param+'&lehreinheit_id='+encodeURIComponent(lehreinheit_id);
|
||||||
|
|
||||||
param = param+'&opener_id='+encodeURIComponent(opener_id);
|
param = param+'&opener_id='+encodeURIComponent(opener_id);
|
||||||
if(id!=undefined)
|
if(id!=undefined)
|
||||||
@@ -831,11 +845,12 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
var prestudent_id = this.getAttribute('prestudent_id');
|
var prestudent_id = this.getAttribute('prestudent_id');
|
||||||
var bestellung_id = this.getAttribute('bestellung_id');
|
var bestellung_id = this.getAttribute('bestellung_id');
|
||||||
var user = this.getAttribute('user');
|
var user = this.getAttribute('user');
|
||||||
|
var lehreinheit_id = this.getAttribute('lehreinheit_id');
|
||||||
|
|
||||||
if(projekt_kurzbz!='' || projektphase_id!='' || projekttask_id!=''
|
if(projekt_kurzbz!='' || projektphase_id!='' || projekttask_id!=''
|
||||||
|| uid!='' || person_id!='' || prestudent_id!='' || bestellung_id!='' || user!='')
|
|| uid!='' || person_id!='' || prestudent_id!='' || bestellung_id!='' || user!='' || lehreinheit_id!='')
|
||||||
{
|
{
|
||||||
this.LoadNotizTree(projekt_kurzbz,projektphase_id,projekttask_id,uid,person_id,prestudent_id,bestellung_id, user);
|
this.LoadNotizTree(projekt_kurzbz,projektphase_id,projekttask_id,uid,person_id,prestudent_id,bestellung_id, user, lehreinheit_id);
|
||||||
}
|
}
|
||||||
document.getAnonymousElementByAttribute(this ,'anonid', 'textbox-notiz-verfasser').value=getUsername();
|
document.getAnonymousElementByAttribute(this ,'anonid', 'textbox-notiz-verfasser').value=getUsername();
|
||||||
</constructor>
|
</constructor>
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2014 fhcomplete.org
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation; either version 2 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* Authors: Andreas Oesterreicher <[email protected]> and
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
|
||||||
|
// ****
|
||||||
|
// * Laedt die zu bearbeitenden Daten
|
||||||
|
// ****
|
||||||
|
function NotizInit(projekt_kurzbz, projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, user, lehreinheit_id)
|
||||||
|
{
|
||||||
|
var notizbox = document.getElementById('notiz-dialog-box-notiz');
|
||||||
|
notizbox.LoadNotizTree(projekt_kurzbz,projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, user, lehreinheit_id);
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2014 fhcomplete.org
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation; either version 2 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* Authors: Andreas Oesterreicher <[email protected]> and
|
||||||
|
*/
|
||||||
|
|
||||||
|
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");
|
||||||
|
|
||||||
|
include('../config/vilesci.config.inc.php');
|
||||||
|
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
|
||||||
|
echo '<?xml-stylesheet href="'.APP_ROOT.'content/datepicker/datepicker.css" type="text/css"?>';
|
||||||
|
|
||||||
|
echo '<?xml-stylesheet href="'.APP_ROOT.'skin/tempus.css" type="text/css"?>';
|
||||||
|
echo '<?xml-stylesheet href="'.APP_ROOT.'content/bindings.css" type="text/css"?>';
|
||||||
|
|
||||||
|
if(isset($_GET['projekt_kurzbz']))
|
||||||
|
$projekt_kurzbz=$_GET['projekt_kurzbz'];
|
||||||
|
else
|
||||||
|
$projekt_kurzbz='';
|
||||||
|
|
||||||
|
if(isset($_GET['projektphase_id']) && is_numeric($_GET['projektphase_id']))
|
||||||
|
$projektphase_id=$_GET['projektphase_id'];
|
||||||
|
else
|
||||||
|
$projektphase_id='';
|
||||||
|
|
||||||
|
if(isset($_GET['projekttask_id']) && is_numeric($_GET['projekttask_id']))
|
||||||
|
$projekttask_id=$_GET['projekttask_id'];
|
||||||
|
else
|
||||||
|
$projekttask_id='';
|
||||||
|
|
||||||
|
if(isset($_GET['uid']))
|
||||||
|
$uid=$_GET['uid'];
|
||||||
|
else
|
||||||
|
$uid='';
|
||||||
|
|
||||||
|
if(isset($_GET['person_id']) && is_numeric($_GET['person_id']))
|
||||||
|
$person_id=$_GET['person_id'];
|
||||||
|
else
|
||||||
|
$person_id='';
|
||||||
|
|
||||||
|
if(isset($_GET['prestudent_id']) && is_numeric($_GET['prestudent_id']))
|
||||||
|
$prestudent_id=$_GET['prestudent_id'];
|
||||||
|
else
|
||||||
|
$prestudent_id='';
|
||||||
|
|
||||||
|
if(isset($_GET['bestellung_id']) && is_numeric($_GET['bestellung_id']))
|
||||||
|
$bestellung_id=$_GET['bestellung_id'];
|
||||||
|
else
|
||||||
|
$bestellung_id='';
|
||||||
|
|
||||||
|
if(isset($_GET['user']) && is_numeric($_GET['user']))
|
||||||
|
$user=$_GET['user'];
|
||||||
|
else
|
||||||
|
$user='';
|
||||||
|
|
||||||
|
if(isset($_GET['lehreinheit_id']) && is_numeric($_GET['lehreinheit_id']))
|
||||||
|
$lehreinheit_id=$_GET['lehreinheit_id'];
|
||||||
|
else
|
||||||
|
$lehreinheit_id='';
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<window id="notiz-dialog" title="Notiz"
|
||||||
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
|
onload="NotizInit(<?php echo "'".$projekt_kurzbz."','".$projektphase_id."','".$projekttask_id."','".$uid."','".$person_id."','".$prestudent_id."','".$bestellung_id."','".$user."','".$lehreinheit_id."'";?>)"
|
||||||
|
>
|
||||||
|
|
||||||
|
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/notizdialog.js.php" />
|
||||||
|
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/functions.js.php" />
|
||||||
|
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jquery.js"></script>
|
||||||
|
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqSOAPClient.js"></script>
|
||||||
|
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqXMLUtils.js"></script>
|
||||||
|
|
||||||
|
<vbox flex="1">
|
||||||
|
<box class="Notiz" flex="1" id="notiz-dialog-box-notiz" />
|
||||||
|
</vbox>
|
||||||
|
</window>
|
||||||
@@ -68,7 +68,7 @@ function onLoad()
|
|||||||
|
|
||||||
//Notizen des Users laden
|
//Notizen des Users laden
|
||||||
notiz = document.getElementById('box-notizen');
|
notiz = document.getElementById('box-notizen');
|
||||||
notiz.LoadNotizTree('','','','','','','', getUsername());
|
notiz.LoadNotizTree('','','','','','','', getUsername(),'');
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ function onselectProjekt()
|
|||||||
|
|
||||||
//Notizen zu einem Projekt Laden
|
//Notizen zu einem Projekt Laden
|
||||||
notiz = document.getElementById('box-projekt-notizen');
|
notiz = document.getElementById('box-projekt-notizen');
|
||||||
notiz.LoadNotizTree(projekt_kurzbz,'','','','','','', '');
|
notiz.LoadNotizTree(projekt_kurzbz,'','','','','','', '','');
|
||||||
|
|
||||||
ressource = document.getElementById('box-projekt-ressourcen');
|
ressource = document.getElementById('box-projekt-ressourcen');
|
||||||
ressource.LoadRessourceTree(projekt_kurzbz,'');
|
ressource.LoadRessourceTree(projekt_kurzbz,'');
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ function onselectTreeProjektphase()
|
|||||||
|
|
||||||
//Notizen zu einer Phase Laden
|
//Notizen zu einer Phase Laden
|
||||||
notiz = document.getElementById('box-projektphase-notizen');
|
notiz = document.getElementById('box-projektphase-notizen');
|
||||||
notiz.LoadNotizTree('',projektphase_id,'','','','','', '');
|
notiz.LoadNotizTree('',projektphase_id,'','','','','', '','');
|
||||||
|
|
||||||
ressource = document.getElementById('box-projekt-ressource-phase');
|
ressource = document.getElementById('box-projekt-ressource-phase');
|
||||||
ressource.LoadRessourceTree('',projektphase_id);
|
ressource.LoadRessourceTree('',projektphase_id);
|
||||||
|
|||||||
@@ -472,7 +472,7 @@ function onselectProjekttask()
|
|||||||
|
|
||||||
//Notizen zu eines Tasks Laden
|
//Notizen zu eines Tasks Laden
|
||||||
notiz = document.getElementById('box-projekttask-notizen');
|
notiz = document.getElementById('box-projekttask-notizen');
|
||||||
notiz.LoadNotizTree('','',projekttask_id,'','','','', '');
|
notiz.LoadNotizTree('','',projekttask_id,'','','','', '','');
|
||||||
|
|
||||||
//Mantis Tab reset
|
//Mantis Tab reset
|
||||||
document.getElementById('textbox-projekttask-mantis-issue_summary').value=bezeichnung;
|
document.getElementById('textbox-projekttask-mantis-issue_summary').value=bezeichnung;
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
|||||||
</template>
|
</template>
|
||||||
</menulist>
|
</menulist>
|
||||||
<label value="Matrikelnummer" control="student-detail-textbox-matr_nr"/>
|
<label value="Matrikelnummer" control="student-detail-textbox-matr_nr"/>
|
||||||
<hbox><textbox id="student-detail-textbox-matr_nr" disabled="true" maxlength="10" size="15"/></hbox>
|
<hbox><textbox id="student-detail-textbox-matr_nr" disabled="true" maxlength="32" size="15"/></hbox>
|
||||||
<label value="Sprache" control="student-detail-menulist-sprache" />
|
<label value="Sprache" control="student-detail-menulist-sprache" />
|
||||||
<menulist id="student-detail-menulist-sprache" disabled="true"
|
<menulist id="student-detail-menulist-sprache" disabled="true"
|
||||||
datasources="<?php echo APP_ROOT ?>rdf/sprache.rdf.php" flex="1"
|
datasources="<?php echo APP_ROOT ?>rdf/sprache.rdf.php" flex="1"
|
||||||
@@ -199,7 +199,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
|||||||
<row>
|
<row>
|
||||||
<label value="UID" control="student-detail-textbox-uid"/>
|
<label value="UID" control="student-detail-textbox-uid"/>
|
||||||
<hbox><textbox id="student-detail-textbox-uid" readonly="true" maxlength="16" size="16"/></hbox>
|
<hbox><textbox id="student-detail-textbox-uid" readonly="true" maxlength="16" size="16"/></hbox>
|
||||||
<label value="Personenkennzeichen" control="student-detail-textbox-matrikelnummer"/>
|
<hbox><label id="student-detail-label-matrikelnummer" value="Personenkennzeichen" control="student-detail-textbox-matrikelnummer"/></hbox>
|
||||||
<hbox><textbox id="student-detail-textbox-matrikelnummer" readonly="true" maxlength="15" size="15"/></hbox>
|
<hbox><textbox id="student-detail-textbox-matrikelnummer" readonly="true" maxlength="15" size="15"/></hbox>
|
||||||
<!--<label value="Studiengang" control="student-detail-textbox-studiengang_kz"/>-->
|
<!--<label value="Studiengang" control="student-detail-textbox-studiengang_kz"/>-->
|
||||||
<textbox id="student-detail-menulist-studiengang_kz" disabled="true" hidden="true" />
|
<textbox id="student-detail-menulist-studiengang_kz" disabled="true" hidden="true" />
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ else
|
|||||||
class="sortDirectionIndicator"
|
class="sortDirectionIndicator"
|
||||||
sort="rdf:http://www.technikum-wien.at/student/rdf#dual_bezeichnung" onclick="StudentTreeSort()"/>
|
sort="rdf:http://www.technikum-wien.at/student/rdf#dual_bezeichnung" onclick="StudentTreeSort()"/>
|
||||||
<splitter class="tree-splitter"/>
|
<splitter class="tree-splitter"/>
|
||||||
<treecol id="student-treecol-dual" label="Matrikelnummer" flex="1" hidden="true" persist="hidden, width, ordinal"
|
<treecol id="student-treecol-matrnr" label="Matrikelnummer" flex="1" hidden="true" persist="hidden, width, ordinal"
|
||||||
class="sortDirectionIndicator"
|
class="sortDirectionIndicator"
|
||||||
sort="rdf:http://www.technikum-wien.at/student/rdf#matr_nr" onclick="StudentTreeSort()"/>
|
sort="rdf:http://www.technikum-wien.at/student/rdf#matr_nr" onclick="StudentTreeSort()"/>
|
||||||
<splitter class="tree-splitter"/>
|
<splitter class="tree-splitter"/>
|
||||||
|
|||||||
@@ -1416,7 +1416,7 @@ function StudentAuswahl()
|
|||||||
|
|
||||||
// Notizen laden
|
// Notizen laden
|
||||||
var studentnotiz = document.getElementById('student-box-notizen');
|
var studentnotiz = document.getElementById('student-box-notizen');
|
||||||
studentnotiz.LoadNotizTree('','','','',person_id,'','','');
|
studentnotiz.LoadNotizTree('','','','',person_id,'','','','');
|
||||||
|
|
||||||
// Selektierungsfunktion der Addons aufrufen
|
// Selektierungsfunktion der Addons aufrufen
|
||||||
for(i in addon)
|
for(i in addon)
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ function onLoad()
|
|||||||
|
|
||||||
//Notizen des Users laden
|
//Notizen des Users laden
|
||||||
notiz = document.getElementById('box-notizen');
|
notiz = document.getElementById('box-notizen');
|
||||||
notiz.LoadNotizTree('','','','','','','', getUsername());
|
notiz.LoadNotizTree('','','','','','','', getUsername(),'');
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ echo '<?xml-stylesheet href="datepicker/datepicker.css" type="text/css"?>';
|
|||||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/tempus.js.php" />
|
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/tempus.js.php" />
|
||||||
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
|
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
|
||||||
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/DragAndDrop.js"/>
|
<script type="application/x-javascript" src="<?php echo APP_ROOT; ?>content/DragAndDrop.js"/>
|
||||||
|
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jquery.js"></script>
|
||||||
|
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqSOAPClient.js"></script>
|
||||||
|
<script type="text/javascript" language="JavaScript" src="<?php echo APP_ROOT; ?>include/js/jqXMLUtils.js"></script>
|
||||||
|
|
||||||
<commandset id="maincommands">
|
<commandset id="maincommands">
|
||||||
<command id="menu-file-close:command" oncommand="closeWindow();"/>
|
<command id="menu-file-close:command" oncommand="closeWindow();"/>
|
||||||
|
|||||||
+118
-46
@@ -63,7 +63,7 @@ class notiz extends basis_db
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$qry = "SELECT * FROM public.tbl_notiz WHERE notiz_id='".addslashes($notiz_id)."'";
|
$qry = "SELECT * FROM public.tbl_notiz WHERE notiz_id=".$this->db_add_param($notiz_id, FHC_INTEGER);
|
||||||
|
|
||||||
if($this->db_query($qry))
|
if($this->db_query($qry))
|
||||||
{
|
{
|
||||||
@@ -76,7 +76,7 @@ class notiz extends basis_db
|
|||||||
$this->bearbeiter_uid=$row->bearbeiter_uid;
|
$this->bearbeiter_uid=$row->bearbeiter_uid;
|
||||||
$this->start=$row->start;
|
$this->start=$row->start;
|
||||||
$this->ende=$row->ende;
|
$this->ende=$row->ende;
|
||||||
$this->erledigt=($row->erledigt=='t'?true:false);
|
$this->erledigt=$this->db_parse_bool($row->erledigt);
|
||||||
$this->insertamum=$row->insertamum;
|
$this->insertamum=$row->insertamum;
|
||||||
$this->insertvon=$row->insertvon;
|
$this->insertvon=$row->insertvon;
|
||||||
$this->updateamum=$row->updateamum;
|
$this->updateamum=$row->updateamum;
|
||||||
@@ -110,7 +110,7 @@ class notiz extends basis_db
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$qry = "Delete FROM public.tbl_notiz WHERE notiz_id='".addslashes($notiz_id)."'";
|
$qry = "Delete FROM public.tbl_notiz WHERE notiz_id=".$this->db_add_param($notiz_id, FHC_INTEGER);
|
||||||
|
|
||||||
if(!$this->db_query($qry))
|
if(!$this->db_query($qry))
|
||||||
{
|
{
|
||||||
@@ -149,31 +149,31 @@ class notiz extends basis_db
|
|||||||
$qry='BEGIN;INSERT INTO public.tbl_notiz (titel, text, verfasser_uid,
|
$qry='BEGIN;INSERT INTO public.tbl_notiz (titel, text, verfasser_uid,
|
||||||
bearbeiter_uid, start, ende, erledigt, insertamum, insertvon,
|
bearbeiter_uid, start, ende, erledigt, insertamum, insertvon,
|
||||||
updateamum, updatevon) VALUES('.
|
updateamum, updatevon) VALUES('.
|
||||||
$this->addslashes($this->titel).', '.
|
$this->db_add_param($this->titel).', '.
|
||||||
$this->addslashes($this->text).', '.
|
$this->db_add_param($this->text).', '.
|
||||||
$this->addslashes($this->verfasser_uid).','.
|
$this->db_add_param($this->verfasser_uid).','.
|
||||||
$this->addslashes($this->bearbeiter_uid).','.
|
$this->db_add_param($this->bearbeiter_uid).','.
|
||||||
$this->addslashes($this->start).','.
|
$this->db_add_param($this->start).','.
|
||||||
$this->addslashes($this->ende).','.
|
$this->db_add_param($this->ende).','.
|
||||||
($this->erledigt?'true':'false').','.
|
$this->db_add_param($this->erledigt,FHC_BOOLEAN).','.
|
||||||
$this->addslashes($this->insertamum).','.
|
$this->db_add_param($this->insertamum).','.
|
||||||
$this->addslashes($this->insertvon).','.
|
$this->db_add_param($this->insertvon).','.
|
||||||
$this->addslashes($this->updateamum).','.
|
$this->db_add_param($this->updateamum).','.
|
||||||
$this->addslashes($this->updatevon).');';
|
$this->db_add_param($this->updatevon).');';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$qry='UPDATE public.tbl_notiz SET '.
|
$qry='UPDATE public.tbl_notiz SET '.
|
||||||
'titel='.$this->addslashes($this->titel).', '.
|
'titel='.$this->db_add_param($this->titel).', '.
|
||||||
'text='.$this->addslashes($this->text).', '.
|
'text='.$this->db_add_param($this->text).', '.
|
||||||
'verfasser_uid='.$this->addslashes($this->verfasser_uid).', '.
|
'verfasser_uid='.$this->db_add_param($this->verfasser_uid).', '.
|
||||||
'bearbeiter_uid='.$this->addslashes($this->bearbeiter_uid).', '.
|
'bearbeiter_uid='.$this->db_add_param($this->bearbeiter_uid).', '.
|
||||||
'start='.$this->addslashes($this->start).', '.
|
'start='.$this->db_add_param($this->start).', '.
|
||||||
'ende='.$this->addslashes($this->ende).', '.
|
'ende='.$this->db_add_param($this->ende).', '.
|
||||||
'erledigt='.($this->erledigt?'true':'false').', '.
|
'erledigt='.$this->db_add_param($this->erledigt,FHC_BOOLEAN).', '.
|
||||||
'updateamum='.$this->addslashes($this->updateamum).', '.
|
'updateamum='.$this->db_add_param($this->updateamum).', '.
|
||||||
'updatevon='.$this->addslashes($this->updatevon).' '.
|
'updatevon='.$this->db_add_param($this->updatevon).' '.
|
||||||
'WHERE notiz_id='.$this->addslashes($this->notiz_id).';';
|
'WHERE notiz_id='.$this->db_add_param($this->notiz_id,FHC_INTEGER).';';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->db_query($qry))
|
if($this->db_query($qry))
|
||||||
@@ -207,7 +207,7 @@ class notiz extends basis_db
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->errormsg = "Fehler beim Speichern des Datensatzes".$qry;
|
$this->errormsg = 'Fehler beim Speichern des Datensatzes';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -219,15 +219,16 @@ class notiz extends basis_db
|
|||||||
public function saveZuordnung()
|
public function saveZuordnung()
|
||||||
{
|
{
|
||||||
$qry = "INSERT INTO public.tbl_notizzuordnung(notiz_id, projekt_kurzbz, projektphase_id, projekttask_id,
|
$qry = "INSERT INTO public.tbl_notizzuordnung(notiz_id, projekt_kurzbz, projektphase_id, projekttask_id,
|
||||||
uid, person_id, prestudent_id, bestellung_id) VALUES(".
|
uid, person_id, prestudent_id, bestellung_id, lehreinheit_id) VALUES(".
|
||||||
$this->addslashes($this->notiz_id).','.
|
$this->db_add_param($this->notiz_id, FHC_INTEGER).','.
|
||||||
$this->addslashes($this->projekt_kurzbz).','.
|
$this->db_add_param($this->projekt_kurzbz).','.
|
||||||
$this->addslashes($this->projektphase_id).','.
|
$this->db_add_param($this->projektphase_id, FHC_INTEGER).','.
|
||||||
$this->addslashes($this->projekttask_id).','.
|
$this->db_add_param($this->projekttask_id, FHC_INTEGER).','.
|
||||||
$this->addslashes($this->uid).','.
|
$this->db_add_param($this->uid).','.
|
||||||
$this->addslashes($this->person_id).','.
|
$this->db_add_param($this->person_id, FHC_INTEGER).','.
|
||||||
$this->addslashes($this->prestudent_id).','.
|
$this->db_add_param($this->prestudent_id, FHC_INTEGER).','.
|
||||||
$this->addslashes($this->bestellung_id).');';
|
$this->db_add_param($this->bestellung_id, FHC_INTEGER).','.
|
||||||
|
$this->db_add_param($this->lehreinheit_id, FHC_INTEGER).');';
|
||||||
|
|
||||||
if($this->db_query($qry))
|
if($this->db_query($qry))
|
||||||
{
|
{
|
||||||
@@ -235,10 +236,9 @@ class notiz extends basis_db
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->errormsg = 'Fehler beim Speichern der Daten'.$qry;
|
$this->errormsg = 'Fehler beim Speichern der Daten';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -253,9 +253,10 @@ class notiz extends basis_db
|
|||||||
* @param $prestudent_id
|
* @param $prestudent_id
|
||||||
* @param $bestellung_id
|
* @param $bestellung_id
|
||||||
* @param $user
|
* @param $user
|
||||||
|
* @param $lehreinheit_id
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function getNotiz($erledigt=null, $projekt_kurzbz=null, $projektphase_id=null, $projekttask_id=null, $uid=null, $person_id=null, $prestudent_id=null, $bestellung_id=null, $user=null)
|
public function getNotiz($erledigt=null, $projekt_kurzbz=null, $projektphase_id=null, $projekttask_id=null, $uid=null, $person_id=null, $prestudent_id=null, $bestellung_id=null, $user=null, $lehreinheit_id=null)
|
||||||
{
|
{
|
||||||
$qry = "SELECT
|
$qry = "SELECT
|
||||||
*
|
*
|
||||||
@@ -272,21 +273,24 @@ class notiz extends basis_db
|
|||||||
$qry.=" AND erledigt=false";
|
$qry.=" AND erledigt=false";
|
||||||
}
|
}
|
||||||
if($projekt_kurzbz!='')
|
if($projekt_kurzbz!='')
|
||||||
$qry.=" AND projekt_kurzbz='".addslashes($projekt_kurzbz)."'";
|
$qry.=" AND projekt_kurzbz=".$this->db_add_param($projekt_kurzbz);
|
||||||
if($projektphase_id!='')
|
if($projektphase_id!='')
|
||||||
$qry.=" AND projektphase_id='".addslashes($projektphase_id)."'";
|
$qry.=" AND projektphase_id=".$this->db_add_param($projektphase_id, FHC_INTEGER);
|
||||||
if($projekttask_id!='')
|
if($projekttask_id!='')
|
||||||
$qry.=" AND projekttask_id='".addslashes($projekttask_id)."'";
|
$qry.=" AND projekttask_id=".$this->db_add_param($projekttask_id, FHC_INTEGER);
|
||||||
if($uid!='')
|
if($uid!='')
|
||||||
$qry.=" AND uid='".addslashes($uid)."'";
|
$qry.=" AND uid=".$this->db_add_param($uid);
|
||||||
if($person_id!='')
|
if($person_id!='')
|
||||||
$qry.=" AND person_id='".addslashes($person_id)."'";
|
$qry.=" AND person_id=".$this->db_add_param($person_id, FHC_INTEGER);
|
||||||
if($prestudent_id!='')
|
if($prestudent_id!='')
|
||||||
$qry.=" AND prestudent_id='".addslashes($prestudent_id)."'";
|
$qry.=" AND prestudent_id=".$this->db_add_param($prestudent_id, FHC_INTEGER);
|
||||||
if($bestellung_id!='')
|
if($bestellung_id!='')
|
||||||
$qry.=" AND bestellung_id='".addslashes($bestellung_id)."'";
|
$qry.=" AND bestellung_id=".$this->db_add_param($bestellung_id, FHC_INTEGER);
|
||||||
if($user!='')
|
if($user!='')
|
||||||
$qry.=" AND (verfasser_uid='".addslashes($user)."' OR bearbeiter_uid='".addslashes($user)."')";
|
$qry.=" AND (verfasser_uid=".$this->db_add_param($user)." OR bearbeiter_uid=".$this->db_add_param($user).")";
|
||||||
|
if($lehreinheit_id!='')
|
||||||
|
$qry.=" AND lehreinheit_id=".$this->db_add_param($lehreinheit_id, FHC_INTEGER);
|
||||||
|
|
||||||
$qry.=' ORDER BY start, ende, titel';
|
$qry.=' ORDER BY start, ende, titel';
|
||||||
|
|
||||||
if($result = $this->db_query($qry))
|
if($result = $this->db_query($qry))
|
||||||
@@ -302,7 +306,7 @@ class notiz extends basis_db
|
|||||||
$obj->bearbeiter_uid=$row->bearbeiter_uid;
|
$obj->bearbeiter_uid=$row->bearbeiter_uid;
|
||||||
$obj->start=$row->start;
|
$obj->start=$row->start;
|
||||||
$obj->ende=$row->ende;
|
$obj->ende=$row->ende;
|
||||||
$obj->erledigt=($row->erledigt=='t'?true:false);
|
$obj->erledigt=$this->db_parse_bool($row->erledigt);
|
||||||
$obj->insertamum=$row->insertamum;
|
$obj->insertamum=$row->insertamum;
|
||||||
$obj->insertvon=$row->insertvon;
|
$obj->insertvon=$row->insertvon;
|
||||||
$obj->updateamum=$row->updateamum;
|
$obj->updateamum=$row->updateamum;
|
||||||
@@ -319,5 +323,73 @@ class notiz extends basis_db
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
|
||||||
|
*
|
||||||
|
|
||||||
|
* Laedt die Notizen
|
||||||
|
* @param $erledigt
|
||||||
|
* @param $projekt_kurzbz
|
||||||
|
* @param $projektphase_id
|
||||||
|
* @param $projekttask_id
|
||||||
|
* @param $uid
|
||||||
|
* @param $person_id
|
||||||
|
* @param $prestudent_id
|
||||||
|
* @param $bestellung_id
|
||||||
|
* @param $user
|
||||||
|
* @param $lehreinheit_id
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function getAnzahlNotizen($erledigt=null, $projekt_kurzbz=null, $projektphase_id=null, $projekttask_id=null, $uid=null, $person_id=null, $prestudent_id=null, $bestellung_id=null, $user=null, $lehreinheit_id=null)
|
||||||
|
{
|
||||||
|
$qry = "SELECT
|
||||||
|
count(*) as anzahl
|
||||||
|
FROM
|
||||||
|
public.tbl_notiz
|
||||||
|
LEFT JOIN public.tbl_notizzuordnung USING(notiz_id)
|
||||||
|
WHERE 1=1";
|
||||||
|
|
||||||
|
if(!is_null($erledigt))
|
||||||
|
{
|
||||||
|
if($erledigt)
|
||||||
|
$qry.=" AND erledigt=true";
|
||||||
|
else
|
||||||
|
$qry.=" AND erledigt=false";
|
||||||
|
}
|
||||||
|
if($projekt_kurzbz!='')
|
||||||
|
$qry.=" AND projekt_kurzbz=".$this->db_add_param($projekt_kurzbz);
|
||||||
|
if($projektphase_id!='')
|
||||||
|
$qry.=" AND projektphase_id=".$this->db_add_param($projektphase_id, FHC_INTEGER);
|
||||||
|
if($projekttask_id!='')
|
||||||
|
$qry.=" AND projekttask_id=".$this->db_add_param($projekttask_id, FHC_INTEGER);
|
||||||
|
if($uid!='')
|
||||||
|
$qry.=" AND uid=".$this->db_add_param($uid);
|
||||||
|
if($person_id!='')
|
||||||
|
$qry.=" AND person_id=".$this->db_add_param($person_id, FHC_INTEGER);
|
||||||
|
if($prestudent_id!='')
|
||||||
|
$qry.=" AND prestudent_id=".$this->db_add_param($prestudent_id, FHC_INTEGER);
|
||||||
|
if($bestellung_id!='')
|
||||||
|
$qry.=" AND bestellung_id=".$this->db_add_param($bestellung_id, FHC_INTEGER);
|
||||||
|
if($user!='')
|
||||||
|
$qry.=" AND (verfasser_uid=".$this->db_add_param($user)." OR bearbeiter_uid=".$this->db_add_param($user).")";
|
||||||
|
if($lehreinheit_id!='')
|
||||||
|
$qry.=" AND lehreinheit_id=".$this->db_add_param($lehreinheit_id, FHC_INTEGER);
|
||||||
|
|
||||||
|
if($result = $this->db_query($qry))
|
||||||
|
{
|
||||||
|
if($row = $this->db_fetch_object($result))
|
||||||
|
return $row->anzahl;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->errormsg='Fehler beim Laden der Daten';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->errormsg = 'Fehler beim Laden der Daten';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -35,6 +35,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
|||||||
require_once('../config/vilesci.config.inc.php');
|
require_once('../config/vilesci.config.inc.php');
|
||||||
require_once('../include/functions.inc.php');
|
require_once('../include/functions.inc.php');
|
||||||
require_once('../include/lehreinheit.class.php');
|
require_once('../include/lehreinheit.class.php');
|
||||||
|
require_once('../include/notiz.class.php');
|
||||||
|
|
||||||
$uid=get_uid();
|
$uid=get_uid();
|
||||||
$error_msg='';
|
$error_msg='';
|
||||||
@@ -144,8 +145,15 @@ if ($anz>0)
|
|||||||
$gruppe_kurzbz='';
|
$gruppe_kurzbz='';
|
||||||
$i=0;
|
$i=0;
|
||||||
// IDs der Lehreinheiten
|
// IDs der Lehreinheiten
|
||||||
foreach($l->lehreinheit_id as $lva_id)
|
$leids = array_unique($l->lehreinheit_id);
|
||||||
|
$anzahl_notizen=0;
|
||||||
|
foreach($leids as $lva_id)
|
||||||
|
{
|
||||||
$lva_ids.='&lva_id'.$i++.'='.$lva_id;
|
$lva_ids.='&lva_id'.$i++.'='.$lva_id;
|
||||||
|
$notiz = new notiz();
|
||||||
|
$anzahl_notizen+=$notiz->getAnzahlNotizen(null, null, null, null, null, null, null, null, null, $lva_id);
|
||||||
|
$lehreinheitids[] = $lva_id;
|
||||||
|
}
|
||||||
// Lektoren
|
// Lektoren
|
||||||
$lektor='';
|
$lektor='';
|
||||||
$l->lektor=array_unique($l->lektor);
|
$l->lektor=array_unique($l->lektor);
|
||||||
@@ -276,6 +284,8 @@ if ($anz>0)
|
|||||||
<LVA:lehrfach_farbe>#'.$l->lehrfach_farbe[0].'</LVA:lehrfach_farbe>
|
<LVA:lehrfach_farbe>#'.$l->lehrfach_farbe[0].'</LVA:lehrfach_farbe>
|
||||||
<LVA:lva_ids>'.$lva_ids.'</LVA:lva_ids>
|
<LVA:lva_ids>'.$lva_ids.'</LVA:lva_ids>
|
||||||
<LVA:lehrverband>'.$lehrverband.'</LVA:lehrverband>
|
<LVA:lehrverband>'.$lehrverband.'</LVA:lehrverband>
|
||||||
|
<LVA:anzahl_notizen>'.$anzahl_notizen.'</LVA:anzahl_notizen>
|
||||||
|
<LVA:lehreinheit_id>'.$l->lehreinheit_id[0].'</LVA:lehreinheit_id>
|
||||||
</RDF:Description>
|
</RDF:Description>
|
||||||
</RDF:li>';
|
</RDF:li>';
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-3
@@ -54,11 +54,27 @@ $uid=(isset($_GET['uid'])?$_GET['uid']:null);
|
|||||||
$person_id=(isset($_GET['person_id'])?$_GET['person_id']:null);
|
$person_id=(isset($_GET['person_id'])?$_GET['person_id']:null);
|
||||||
$prestudent_id=(isset($_GET['prestudent_id'])?$_GET['prestudent_id']:null);
|
$prestudent_id=(isset($_GET['prestudent_id'])?$_GET['prestudent_id']:null);
|
||||||
$bestellung_id=(isset($_GET['bestellung_id'])?$_GET['bestellung_id']:null);
|
$bestellung_id=(isset($_GET['bestellung_id'])?$_GET['bestellung_id']:null);
|
||||||
|
$lehreinheit_id=(isset($_GET['lehreinheit_id'])?$_GET['lehreinheit_id']:null);
|
||||||
|
$stundenplandev_id=(isset($_GET['stundenplandev_id'])?$_GET['stundenplandev_id']:null);
|
||||||
$datum_obj = new datum();
|
$datum_obj = new datum();
|
||||||
$user=(isset($_GET['user'])?$_GET['user']:null);
|
$user=(isset($_GET['user'])?$_GET['user']:null);
|
||||||
|
|
||||||
if(!$notiz->getNotiz($erledigt, $projekt_kurzbz, $projektphase_id, $projekttask_id, $uid, $person_id, $prestudent_id, $bestellung_id, $user))
|
$notiz_id = (isset($_GET['notiz_id'])?$_GET['notiz_id']:null);
|
||||||
die($notiz->errormsg);
|
|
||||||
|
if(is_null($notiz_id))
|
||||||
|
{
|
||||||
|
if(!$notiz->getNotiz($erledigt, $projekt_kurzbz, $projektphase_id, $projekttask_id, $uid, $person_id, $prestudent_id, $bestellung_id, $user, $lehreinheit_id, $stundenplandev_id))
|
||||||
|
die($notiz->errormsg);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if($notiz->load($notiz_id))
|
||||||
|
{
|
||||||
|
$notiz->result[] = $notiz;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
die($notiz->errormsg);
|
||||||
|
}
|
||||||
|
|
||||||
foreach($notiz->result as $row)
|
foreach($notiz->result as $row)
|
||||||
{
|
{
|
||||||
@@ -78,7 +94,7 @@ foreach($notiz->result as $row)
|
|||||||
<NOTIZ:erledigt><![CDATA['.($row->erledigt?'true':'false').']]></NOTIZ:erledigt>
|
<NOTIZ:erledigt><![CDATA['.($row->erledigt?'true':'false').']]></NOTIZ:erledigt>
|
||||||
<NOTIZ:insertamum><![CDATA['.$row->insertamum.']]></NOTIZ:insertamum>
|
<NOTIZ:insertamum><![CDATA['.$row->insertamum.']]></NOTIZ:insertamum>
|
||||||
<NOTIZ:insertvon><![CDATA['.$row->insertvon.']]></NOTIZ:insertvon>
|
<NOTIZ:insertvon><![CDATA['.$row->insertvon.']]></NOTIZ:insertvon>
|
||||||
<NOTIZ:updateamum><![CDATA['.$row->updateamum.']]></NOTIZ:updateamum>
|
<NOTIZ:updateamum><![CDATA['.$datum_obj->formatDatum($row->updateamum,'d.m.Y H:i:s').']]></NOTIZ:updateamum>
|
||||||
<NOTIZ:updatevon><![CDATA['.$row->updatevon.']]></NOTIZ:updatevon>
|
<NOTIZ:updatevon><![CDATA['.$row->updatevon.']]></NOTIZ:updatevon>
|
||||||
</RDF:Description>
|
</RDF:Description>
|
||||||
</RDF:li>
|
</RDF:li>
|
||||||
|
|||||||
@@ -134,3 +134,20 @@ treechildren::-moz-tree-checkbox(checked)
|
|||||||
list-style-image: url("../skin/images/cbox-check.gif");
|
list-style-image: url("../skin/images/cbox-check.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
toolbarbutton.stplweekoverlay-toolbarbutton
|
||||||
|
{
|
||||||
|
-moz-appearance: none;
|
||||||
|
border: 0px;
|
||||||
|
margin:0px;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
}
|
||||||
|
toolbarbutton.stplweekoverlay-toolbarbutton > .toolbarbutton-text
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
toolbarbutton.stplweekoverlay-toolbarbutton:hover
|
||||||
|
{
|
||||||
|
border: 1px outset black;
|
||||||
|
}
|
||||||
|
|||||||
+5
-1
@@ -50,6 +50,7 @@ ini_set("soap.wsdl_cache_enabled", "0");
|
|||||||
*/
|
*/
|
||||||
function saveNotiz($username, $passwort, $notiz)
|
function saveNotiz($username, $passwort, $notiz)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!$user = check_user($username, $passwort))
|
if(!$user = check_user($username, $passwort))
|
||||||
return new SoapFault("Server", "Invalid Credentials");
|
return new SoapFault("Server", "Invalid Credentials");
|
||||||
|
|
||||||
@@ -82,7 +83,9 @@ function saveNotiz($username, $passwort, $notiz)
|
|||||||
$notiz_obj->bearbeiter_uid = $notiz->bearbeiter_uid;
|
$notiz_obj->bearbeiter_uid = $notiz->bearbeiter_uid;
|
||||||
$notiz_obj->start = $notiz->start;
|
$notiz_obj->start = $notiz->start;
|
||||||
$notiz_obj->ende = $notiz->ende;
|
$notiz_obj->ende = $notiz->ende;
|
||||||
$notiz_obj->erledigt=$notiz->erledigt;
|
$notiz_obj->erledigt=($notiz->erledigt=='true'?true:false);
|
||||||
|
$notiz_obj->updateamum = date('Y-m-d H:i:s');
|
||||||
|
$notiz_obj->updatevon = $username;
|
||||||
|
|
||||||
if($notiz_obj->save())
|
if($notiz_obj->save())
|
||||||
{
|
{
|
||||||
@@ -95,6 +98,7 @@ function saveNotiz($username, $passwort, $notiz)
|
|||||||
$notiz_obj->person_id = $notiz->person_id;
|
$notiz_obj->person_id = $notiz->person_id;
|
||||||
$notiz_obj->prestudent_id = $notiz->prestudent_id;
|
$notiz_obj->prestudent_id = $notiz->prestudent_id;
|
||||||
$notiz_obj->bestellung_id = $notiz->bestellung_id;
|
$notiz_obj->bestellung_id = $notiz->bestellung_id;
|
||||||
|
$notiz_obj->lehreinheit_id = $notiz->lehreinheit_id;
|
||||||
|
|
||||||
if(!$notiz_obj->saveZuordnung())
|
if(!$notiz_obj->saveZuordnung())
|
||||||
return new SoapFault("Server", $notiz_obj->errormsg);
|
return new SoapFault("Server", $notiz_obj->errormsg);
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
|||||||
<wsdl:part name="person_id" type="xsd:string"></wsdl:part>
|
<wsdl:part name="person_id" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="prestudent_id" type="xsd:string"></wsdl:part>
|
<wsdl:part name="prestudent_id" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="bestellung_id" type="xsd:string"></wsdl:part>
|
<wsdl:part name="bestellung_id" type="xsd:string"></wsdl:part>
|
||||||
|
<wsdl:part name="lehreinheit_id" type="xsd:string"></wsdl:part>
|
||||||
</xsd:all>
|
</xsd:all>
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
|
|
||||||
|
|||||||
+16
-2
@@ -1608,7 +1608,7 @@ if($result = @$db->db_query("SELECT * FROM information_schema.table_constraints
|
|||||||
echo '<br>campus.tbl_pruefungsanmeldung: Fehlenden Foreign Key zu Pruefungstermin hinzugefügt';
|
echo '<br>campus.tbl_pruefungsanmeldung: Fehlenden Foreign Key zu Pruefungstermin hinzugefügt';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Ampel boolean email
|
// ort_kurzbz bei pruefungstermin
|
||||||
if(!$result = @$db->db_query("SELECT ort_kurzbz FROM campus.tbl_pruefungstermin"))
|
if(!$result = @$db->db_query("SELECT ort_kurzbz FROM campus.tbl_pruefungstermin"))
|
||||||
{
|
{
|
||||||
$qry = "ALTER TABLE campus.tbl_pruefungstermin ADD COLUMN ort_kurzbz varchar(16);
|
$qry = "ALTER TABLE campus.tbl_pruefungstermin ADD COLUMN ort_kurzbz varchar(16);
|
||||||
@@ -1673,6 +1673,20 @@ if(!$result = @$db->db_query("SELECT lvs FROM lehre.tbl_lehrveranstaltung LIMIT
|
|||||||
echo '<br>lehre.tbl_lehrveranstaltung: neue Spalten sws, lvs,alvs,lvps,las hinzugefuegt';
|
echo '<br>lehre.tbl_lehrveranstaltung: neue Spalten sws, lvs,alvs,lvps,las hinzugefuegt';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notizzuordnung fuer Lehreinheit und Stundenplandev
|
||||||
|
if(!$result = @$db->db_query("SELECT lehreinheit_id FROM public.tbl_notizzuordnung LIMIT 1"))
|
||||||
|
{
|
||||||
|
$qry = "
|
||||||
|
ALTER TABLE public.tbl_notizzuordnung ADD COLUMN lehreinheit_id integer;
|
||||||
|
ALTER TABLE public.tbl_notizzuordnung ADD CONSTRAINT fk_lehreinheit_notizzuordnung FOREIGN KEY (lehreinheit_id) REFERENCES lehre.tbl_lehreinheit(lehreinheit_id) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
";
|
||||||
|
|
||||||
|
if(!$db->db_query($qry))
|
||||||
|
echo '<strong>public.tbl_notizzuordnung: '.$db->db_last_error().'</strong><br>';
|
||||||
|
else
|
||||||
|
echo '<br>public.tbl_notizzuordnung: neue Spalten lehreinheit_id hinzugefuegt';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
echo '<br><br><br>';
|
echo '<br><br><br>';
|
||||||
|
|
||||||
@@ -1836,7 +1850,7 @@ $tabellen=array(
|
|||||||
"public.tbl_log" => array("log_id","executetime","mitarbeiter_uid","beschreibung","sql","sqlundo"),
|
"public.tbl_log" => array("log_id","executetime","mitarbeiter_uid","beschreibung","sql","sqlundo"),
|
||||||
"public.tbl_mitarbeiter" => array("mitarbeiter_uid","personalnummer","telefonklappe","kurzbz","lektor","fixangestellt","bismelden","stundensatz","ausbildungcode","ort_kurzbz","standort_id","anmerkung","insertamum","insertvon","updateamum","updatevon","ext_id","kleriker"),
|
"public.tbl_mitarbeiter" => array("mitarbeiter_uid","personalnummer","telefonklappe","kurzbz","lektor","fixangestellt","bismelden","stundensatz","ausbildungcode","ort_kurzbz","standort_id","anmerkung","insertamum","insertvon","updateamum","updatevon","ext_id","kleriker"),
|
||||||
"public.tbl_notiz" => array("notiz_id","titel","text","verfasser_uid","bearbeiter_uid","start","ende","erledigt","insertamum","insertvon","updateamum","updatevon"),
|
"public.tbl_notiz" => array("notiz_id","titel","text","verfasser_uid","bearbeiter_uid","start","ende","erledigt","insertamum","insertvon","updateamum","updatevon"),
|
||||||
"public.tbl_notizzuordnung" => array("notizzuordnung_id","notiz_id","projekt_kurzbz","projektphase_id","projekttask_id","uid","person_id","prestudent_id","bestellung_id"),
|
"public.tbl_notizzuordnung" => array("notizzuordnung_id","notiz_id","projekt_kurzbz","projektphase_id","projekttask_id","uid","person_id","prestudent_id","bestellung_id","lehreinheit_id"),
|
||||||
"public.tbl_ort" => array("ort_kurzbz","bezeichnung","planbezeichnung","max_person","lehre","reservieren","aktiv","lageplan","dislozierung","kosten","ausstattung","updateamum","updatevon","insertamum","insertvon","ext_id","stockwerk","standort_id","telefonklappe","content_id"),
|
"public.tbl_ort" => array("ort_kurzbz","bezeichnung","planbezeichnung","max_person","lehre","reservieren","aktiv","lageplan","dislozierung","kosten","ausstattung","updateamum","updatevon","insertamum","insertvon","ext_id","stockwerk","standort_id","telefonklappe","content_id"),
|
||||||
"public.tbl_ortraumtyp" => array("ort_kurzbz","hierarchie","raumtyp_kurzbz"),
|
"public.tbl_ortraumtyp" => array("ort_kurzbz","hierarchie","raumtyp_kurzbz"),
|
||||||
"public.tbl_organisationseinheit" => array("oe_kurzbz", "oe_parent_kurzbz", "bezeichnung","organisationseinheittyp_kurzbz", "aktiv","mailverteiler","freigabegrenze","kurzzeichen","lehre"),
|
"public.tbl_organisationseinheit" => array("oe_kurzbz", "oe_parent_kurzbz", "bezeichnung","organisationseinheittyp_kurzbz", "aktiv","mailverteiler","freigabegrenze","kurzzeichen","lehre"),
|
||||||
|
|||||||
Reference in New Issue
Block a user