Notiz-Karteireiter

- Die Anzahl der Notizen wird im Reiter angezeigt
- Notiz-Karteireiter nun an zweiter Stelle im FAS
- Kleine Phrasen und GUI-Korrekturen im Konto-Reiter
This commit is contained in:
Manfred Kindl
2018-03-06 17:02:39 +01:00
parent d9e05b5c53
commit a6947ce34f
4 changed files with 30 additions and 14 deletions
+4 -4
View File
@@ -459,6 +459,7 @@ else
<tabbox id="student-tabbox" flex="3" orient="vertical">
<tabs orient="horizontal" id="student-content-tabs">
<tab id="student-tab-detail" label="Details" />
<tab id="student-tab-notizen" label="Notizen"/>
<tab id="student-tab-kontakt" label="Kontakt" />
<tab id="student-tab-prestudent" label="PreStudent" />
<tab id="student-tab-dokumente" label="Dokumente" />
@@ -477,7 +478,6 @@ else
<tab id="student-tab-projektarbeit" label="Projektarbeit" />
<tab id="student-tab-gruppen" label="Gruppen" onclick="StudentGruppenLoadData();"/>
<tab id="student-tab-funktionen" label="Funktionen" onclick="StudentFunktionIFrameLoad();"/>
<tab id="student-tab-notizen" label="Notizen"/>
<tab id="student-tab-termine" label="LV-Termine" onclick="StudentTermineIFrameLoad();"/>
<?php
if($rechte->isBerechtigt('student/anwesenheit'))
@@ -497,6 +497,9 @@ else
</tabs>
<tabpanels id="student-tabpanels-main" flex="1">
<vbox id="student-detail" style="margin-top:10px;" />
<vbox id="student-box-notiz">
<box class="Notiz" flex="1" id="student-box-notizen"/>
</vbox>
<iframe id="student-kontakt" src="" style="margin-top:10px;" />
<vbox id="student-prestudent" style="margin-top:10px;" />
<vbox id="interessent-dokumente" style="margin-top:10px;" />
@@ -515,9 +518,6 @@ else
<vbox id="student-projektarbeit" style="margin-top:10px;" />
<vbox id="student-gruppen" style="margin-top:10px;" />
<iframe id="student-funktionen" src="" style="margin-top:10px;" />
<vbox id="student-box-notiz">
<box class="Notiz" flex="1" id="student-box-notizen"/>
</vbox>
<iframe id="student-termine" src="" style="margin-top:10px;" />
<?php
if($rechte->isBerechtigt('student/anwesenheit'))
+11 -8
View File
@@ -50,10 +50,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
</columns>
<rows>
<row>
<hbox>
<spacer flex="1" />
<button id="student-konto-button-filter" value="alle" oncommand="StudentKontoFilter()" label="offene anzeigen" disabled="true"/>
</hbox>
<hbox></hbox>
<hbox>
<!--
<button id="student-konto-button-filterstudenten" oncommand="StudentKontoFilterStudenten('konto')" label="Studentenliste auf offene Buchungen filtern" tooltiptext="Liste aller Studenten mit offenen Buchungen"/>
@@ -64,7 +61,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<vbox>
<spacer flex="1" />
<label value="Liste auf nicht gebuchte"/>
<label value="Liste filtern auf nicht belastet: "/>
<sapcer flex="1" />
</vbox>
<vbox flex="1">
@@ -91,7 +88,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<hbox>
<vbox>
<spacer flex="1" />
<label value="Liste auf offene"/>
<label value="Liste filtern auf fehlende Gegenbuchungen: "/>
<sapcer flex="1" />
</vbox>
<vbox flex="1">
@@ -118,7 +115,13 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<row flex="1">
<vbox flex="1">
<label id="student-konto-label-filter" value="alle Buchungen:"/>
<hbox>
<button id="student-konto-button-filter" value="alle" oncommand="StudentKontoFilter()" label="Offene anzeigen" disabled="true"/>
<spacer flex="1" />
</hbox>
<label id="student-konto-label-filter" value="alle Buchungen:" hidden="true"/>
<tree id="student-konto-tree" seltype="multi" hidecolumnpicker="false" flex="1"
datasources="rdf:null" ref="http://www.technikum-wien.at/konto/liste"
style="margin-left:10px;margin-right:10px;margin-bottom:5px;margin-top: 10px;" enableColumnDrag="true"
@@ -195,7 +198,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<hbox>
<button id="student-konto-button-neu" label="Neu" oncommand="StudentKontoNeu();" disabled="true"/>
<button id="student-konto-button-gegenbuchung" label="Gegenbuchung" oncommand="StudentKontoGegenbuchung();" disabled="true"/>
<box class="Datum" id="student-konto-textbox-gegenbuchungsdatum" disabled="true"/>
<box class="Datum" id="student-konto-textbox-gegenbuchungsdatum" disabled="true" tooltiptext="Optionales Datum der Gegenbuchung"/>
<button id="student-konto-button-loeschen" label="Loeschen" oncommand="StudentKontoDelete();" disabled="true"/>
<spacer flex="1"/>
<button id="student-konto-button-zahlungsbestaetigung" label="Zahlungsbestaetigung drucken" oncommand="StudentKontoZahlungsbestaetigung();" disabled="true"/>
+9 -2
View File
@@ -1549,6 +1549,13 @@ function StudentAuswahl()
}
// Notizen laden
anzahl_notizen = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anzahl_notizen" ));
if(anzahl_notizen == "0")
document.getElementById('student-tab-notizen').label = "Notizen";
else
document.getElementById('student-tab-notizen').label = " Notizen (" + anzahl_notizen + ")";
var studentnotiz = document.getElementById('student-box-notizen');
studentnotiz.LoadNotizTree('','','','',person_id,'','','','');
@@ -2328,13 +2335,13 @@ function StudentKontoFilter()
if(filter.value=='offene')
{
filter.value='alle';
filter.label='offene Anzeigen';
filter.label='Offene Anzeigen';
document.getElementById('student-konto-label-filter').value='alle Buchungen:';
}
else
{
filter.value='offene';
filter.label='alle Anzeigen';
filter.label='Alle Anzeigen';
document.getElementById('student-konto-label-filter').value='offene Buchungen:';
}
+6
View File
@@ -50,6 +50,7 @@ require_once('../include/reihungstest.class.php');
require_once('../include/studienordnung.class.php');
require_once('../include/studienplan.class.php');
require_once('../include/kontakt.class.php');
require_once('../include/notiz.class.php');
// *********** Funktionen *************************
function convdate($date)
@@ -242,6 +243,10 @@ function draw_content($row)
$stgl .= trim(($i>0?', ':'').$stgl_ma->titelpre.' '.$stgl_ma->vorname.' '.$stgl_ma->nachname.' '.$stgl_ma->titelpost);
$i++;
}
// Anzahl Notizen der Person laden
$notiz = new notiz();
$anzahl_notizen = $notiz->getAnzahlNotizen(null, null, null, null, null, $row->person_id, null, null, null, null, null);
if($row->prestudent_id!='')
{
@@ -300,6 +305,7 @@ function draw_content($row)
<STUDENT:studiengang_kz_student><![CDATA['.(is_a($row,'student')?$row->studiengang_kz:'').']]></STUDENT:studiengang_kz_student>
<STUDENT:matr_nr><![CDATA['.$row->matr_nr.']]></STUDENT:matr_nr>
<STUDENT:studiengang_studiengangsleitung><![CDATA['.$stgl.']]></STUDENT:studiengang_studiengangsleitung>
<STUDENT:anzahl_notizen><![CDATA['.$anzahl_notizen.']]></STUDENT:anzahl_notizen>
';
}
}