- Bei offenen Stunden werden jetzt auch die Gesamtstunden angezeigt
- Titel kann zu LV-Plan Eintrag hinzugefügt werden. Es wird dann ein ein Notizblock bei dieser Stunde angezeigt
CIS:
- Wenn ein Titel zu einem LV-Plan Eintrag vorhanden ist, wird bei der Stunde ein Notizblock angezeigt
This commit is contained in:
Andreas Österreicher
2010-02-09 08:53:46 +00:00
parent 88f7344edd
commit 640659d09c
8 changed files with 118 additions and 74 deletions
+3 -1
View File
@@ -144,7 +144,7 @@ Stunde: <?php echo htmlentities($stunde); ?><BR><BR>
<table class="stdplan">
<?php
if ($num_rows_stpl>0)
echo '<tr> <th>UNr</th><th>Lektor</th><th>Ort</th><th>Lehrfach</th><th>Bezeichnung</th><th>Verband</th><th>Einheit</th></tr>';
echo '<tr> <th>UNr</th><th>Lektor</th><th>Ort</th><th>Lehrfach</th><th>Bezeichnung</th><th>Verband</th><th>Einheit</th><th>Info</th></tr>';
$ort = new ort();
for ($i=0; $i<$num_rows_stpl; $i++)
{
@@ -164,6 +164,7 @@ for ($i=0; $i<$num_rows_stpl; $i++)
$gruppe_kurzbz=trim($db->db_result($erg_stpl,$i,"gruppe_kurzbz"));
$anzahl_lvb=trim($db->db_result($erg_stpl,$i,"anzahl_lvb"));
$anzahl_grp=trim($db->db_result($erg_stpl,$i,"anzahl_grp"));
$titel=trim($db->db_result($erg_stpl,$i,"titel"));
$gesamtanzahl = ($anzahl_grp!=0?$anzahl_grp:$anzahl_lvb);
$ort->load($ortkurzbz);
?>
@@ -177,6 +178,7 @@ for ($i=0; $i<$num_rows_stpl; $i++)
<?php echo $stgkurzbz.'-'.$semester.$verband.$gruppe; ?></A></td>
<td><A class="Item" title="<?php echo $anzahl_grp.' Studierende';?>" href="mailto:<?php echo mb_strtolower($gruppe_kurzbz).'@'.DOMAIN; ?>">
<?php echo $gruppe_kurzbz; ?></A></td>
<td><?php echo $titel; ?></td>
</tr>
<?php
+19 -10
View File
@@ -60,12 +60,16 @@ $studiengang->load($stundenplan->studiengang_kz);
<window id="stpl-details-dialog" title="Details"
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; ?>')"
onload="StplDetailsInit('<?php echo $datum_obj->convertISODate($stundenplan->datum); ?>','<?php echo $stundenplan->mitarbeiter_uid; ?>'); 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/functions.js.php" />
<commandset>
<command id="stpl-details-dialog-command-save" oncommand="StplDetailsSpeichern()"/>
</commandset>
<vbox>
<textbox id="stpl-details-dialog-textbox-id" hidden="true" value="<?php echo $id; ?>"/>
@@ -78,6 +82,18 @@ $studiengang->load($stundenplan->studiengang_kz);
<column flex="5"/>
</columns>
<rows>
<row>
<label value="Titel" />
<textbox id="stpl-details-dialog-textbox-titel" value="<?php echo $stundenplan->titel; ?>" maxlength="32"/>
</row>
<row>
<label value="Anmerkung" />
<textbox id="stpl-details-dialog-textbox-anmerkung" value="<?php echo $stundenplan->anmerkung; ?>" maxlength="256"/>
</row>
<row>
<spacer />
<spacer />
</row>
<row>
<label value="Studiengang"/>
<label value="<?php echo $studiengang->kuerzel; ?>" id="stpl-details-dialog-label-studiengang"/>
@@ -136,14 +152,7 @@ $studiengang->load($stundenplan->studiengang_kz);
<label value="UNr" />
<textbox id="stpl-details-dialog-textbox-unr" value="<?php echo $stundenplan->unr; ?>"/>
</row>
<row>
<label value="Titel" />
<textbox id="stpl-details-dialog-textbox-titel" value="<?php echo $stundenplan->titel; ?>"/>
</row>
<row>
<label value="Anmerkung" />
<textbox id="stpl-details-dialog-textbox-anmerkung" value="<?php echo $stundenplan->anmerkung; ?>"/>
</row>
<row>
<label value="Fix" />
<checkbox id="stpl-details-dialog-checkbox-fix" checked="<?php echo ($stundenplan->fix?'true':'false'); ?>"/>
@@ -226,7 +235,7 @@ $studiengang->load($stundenplan->studiengang_kz);
</grid>
<hbox>
<spacer flex="1" />
<button id="stpl-details-dialog-button-speichern" oncommand="StplDetailsSpeichern()" label="Speichern" />
<button id="stpl-details-dialog-button-speichern" command="stpl-details-dialog-command-save" label="speichern" accesskey="s"/>
</hbox>
</groupbox>
</vbox>
+61 -50
View File
@@ -44,10 +44,10 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<!-- ************************* -->
<vbox id="vboxSTPLDetailsListe">
<popupset>
<popup id="stpldetail-treestpldetail-popup">
<menuitem label="Bearbeiten" oncommand="STPLDetailEdit()" />
<menuitem label="Entfernen" oncommand="STPLDetailDelete()" />
</popup>
<popup id="stpldetail-treestpldetail-popup">
<menuitem label="Bearbeiten" oncommand="STPLDetailEdit()" />
<menuitem label="Entfernen" oncommand="STPLDetailDelete()" />
</popup>
</popupset>
<tree id="treeStplDetails" seltype="single" hidecolumnpicker="false" flex="1"
@@ -56,61 +56,62 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
enableColumnDrag="true"
style="margin:0px;"
context="stpldetail-treestpldetail-popup"
ondblclick="STPLDetailEdit()"
>
<treecols>
<treecol id="lehreinheit_id" label="LE_ID" flex="2" primary="false"
class="sortDirectionIndicator" sortActive="true" sortDirection="ascending"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehreinheit_id" />
<splitter class="tree-splitter"/>
<treecol id="stplLektor" label="Lektor" flex="2" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lektor" />
<splitter class="tree-splitter"/>
<treecol id="stplLehrfachKurzbz" label="Fach" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehrfach" />
<splitter class="tree-splitter"/>
<treecol id="stplLehrform" label="Form" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehrform" />
<splitter class="tree-splitter"/>
<treecol id="stplLehrfachBezeichnung" label="Lehrfach" flex="20" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehrfach_bez" />
<splitter class="tree-splitter"/>
<treecol id="stpl_studiengang" label="Studiengang" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#studiengang" />
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehreinheit_id" />
<splitter class="tree-splitter"/>
<treecol id="stplSemester" label="S" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#sem" />
<splitter class="tree-splitter"/>
<treecol id="stplVerband" label="V" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#ver" />
<splitter class="tree-splitter"/>
<treecol id="gruppe" label="G" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#grp" />
<treecol id="stplLektor" label="Lektor" flex="2" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lektor" />
<splitter class="tree-splitter"/>
<treecol id="stpl_einheit" label="SpzGrp" flex="3" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#gruppe" />
<treecol id="stplLehrfachKurzbz" label="Fach" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehrfach" />
<splitter class="tree-splitter"/>
<treecol id="stplOrt" label="Ort" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#ort_kurzbz" />
<treecol id="stplLehrform" label="Form" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehrform" />
<splitter class="tree-splitter"/>
<treecol id="stpl_datum" label="Datum" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#datum" />
<treecol id="stplLehrfachBezeichnung" label="Lehrfach" flex="20" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#lehrfach_bez" />
<splitter class="tree-splitter"/>
<treecol id="stpl_stunde" label="Std" flex="1" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#stunde" />
<splitter class="tree-splitter"/>
<treecol id="stplUNR" label="UNR" flex="2" hidden="true"
<treecol id="stpl_studiengang" label="Studiengang" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#studiengang" />
<splitter class="tree-splitter"/>
<treecol id="stplSemester" label="S" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#sem" />
<splitter class="tree-splitter"/>
<treecol id="stplVerband" label="V" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#ver" />
<splitter class="tree-splitter"/>
<treecol id="gruppe" label="G" flex="1" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#grp" />
<splitter class="tree-splitter"/>
<treecol id="stpl_einheit" label="SpzGrp" flex="3" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#gruppe" />
<splitter class="tree-splitter"/>
<treecol id="stplOrt" label="Ort" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#ort_kurzbz" />
<splitter class="tree-splitter"/>
<treecol id="stpl_datum" label="Datum" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#datum" />
<splitter class="tree-splitter"/>
<treecol id="stpl_stunde" label="Std" flex="1" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#stunde" />
<splitter class="tree-splitter"/>
<treecol id="stplUNR" label="UNR" flex="2" hidden="true"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#unr" />
<splitter class="tree-splitter"/>
@@ -122,6 +123,14 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#anzahlstudenten" />
<splitter class="tree-splitter"/>
<treecol id="stpl-details-overlay-lehrstunde-anmerkung" label="Anmerkung" flex="2" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#anmerkung" />
<splitter class="tree-splitter"/>
<treecol id="stpl-details-overlay-lehrstunde-titel" label="Titel" flex="2" hidden="false"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/lehrstunde/rdf#titel" />
<splitter class="tree-splitter"/>
</treecols>
<template>
@@ -145,6 +154,8 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<treecell label="rdf:http://www.technikum-wien.at/lehrstunde/rdf#unr" />
<treecell label="rdf:http://www.technikum-wien.at/lehrstunde/rdf#id" />
<treecell label="rdf:http://www.technikum-wien.at/lehrstunde/rdf#anzahlstudenten" />
<treecell label="rdf:http://www.technikum-wien.at/lehrstunde/rdf#anmerkung" />
<treecell label="rdf:http://www.technikum-wien.at/lehrstunde/rdf#titel" />
</treerow>
</treeitem>
</treechildren>
+1 -1
View File
@@ -281,7 +281,7 @@ function STPLDetailEdit()
return false;
}
window.open('<?php echo APP_ROOT; ?>content/lvplanung/stpl-details-dialog.xul.php?id='+id,'Details', 'height=350,width=350,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=400,width=350,left=100,top=100,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
}
// ****
+2 -2
View File
@@ -159,7 +159,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/stpl-details-overlay.xul
/>
</hbox>
</row>
<row> <!-- style="background-color^: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrfach_farbe^;" -->
<row>
<label value="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrfach rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrform"
tooltiptext="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#lehrfach_bez" />
<label align="right" value="rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#raumtyp"
@@ -181,7 +181,7 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/lvplanung/stpl-details-overlay.xul
tooltiptext="Wochenrythmus"/>
</row>
<row>
<label value="Offen: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#offenestunden h"
<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" />
<label value="Block: rdf:http://www.technikum-wien.at/lehreinheit-lvplan/rdf#stundenblockung"
tooltiptext="Stundenblockung" />
+24 -5
View File
@@ -354,7 +354,7 @@ class wochenplan extends basis_db
$this->std_plan[$tag][$stunde][$idx]->lehrform=$this->wochenplan->lehrstunden[$i]->lehrform;
$this->std_plan[$tag][$stunde][$idx]->lehrfach_id=$this->wochenplan->lehrstunden[$i]->lehrfach_id;
$this->std_plan[$tag][$stunde][$idx]->farbe=$this->wochenplan->lehrstunden[$i]->farbe;
//$this->std_plan[$tag][$stunde][$idx]->titel=$this->wochenplan->lehrstunden[$i]->titel;
$this->std_plan[$tag][$stunde][$idx]->titel=$this->wochenplan->lehrstunden[$i]->titel;
}
$this->std_plan[$tag][$stunde][$idx]->titel=$this->wochenplan->lehrstunden[$i]->titel;
$this->std_plan[$tag][$stunde][$idx]->stundenplan_id=$this->wochenplan->lehrstunden[$i]->stundenplan_id;
@@ -582,6 +582,7 @@ class wochenplan extends basis_db
$lektor[]=$lehrstunde->lektor;
// Lehrverband
$lvb=$lehrstunde->stg.'-'.$lehrstunde->sem;
$stg = $lehrstunde->stg_kz;
if ($lehrstunde->ver!=null && $lehrstunde->ver!='0' && $lehrstunde->ver!='')
{
$lvb.=$lehrstunde->ver;
@@ -668,12 +669,19 @@ class wochenplan extends basis_db
echo '&ver='.$this->ver;
echo '&grp='.$this->grp;
echo '&ort_kurzbz='.$this->std_plan[$i][$j][0]->ort; //.'">'
echo "','Details', 'height=320,width=480,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=no,toolbar=no,location=no,menubar=no,dependent=yes');";
echo "','Details', 'height=320,width=550,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=no,toolbar=no,location=no,menubar=no,dependent=yes');";
echo '" title="'.$titel.'" ';
echo ' href="#">';
// Ausgabe
echo $lf;
//echo $lf;
echo mb_substr($lf, 0,-strlen('<BR />'));
if($titel!='' && $stg!=0)
{
echo '<image src="../../../skin/images/sticky.png" tooltip="'.$titel.'"/>';
}
echo '<BR />';
if ($this->type=='ort' || $this->type=='lektor')
echo $lvb;
if ($this->type!='lektor')
@@ -1114,14 +1122,25 @@ class wochenplan extends basis_db
grp="'.$this->grp.'" gruppe="'.$this->gruppe_kurzbz.'"
datum="'.date("Y-m-d",$datum).'" stunde="'.$j.'"
pers_uid="'.$this->pers_uid.'" ort_kurzbz="'.$this->ort_kurzbz.'">';
echo '<label align="center">'.$blink_ein;
echo $lf;
//echo $lf;
echo mb_substr($lf, 0,-strlen('<html:br />'));
if($titel!='' && $stg_kz!=0)
{
echo '<image src="../../skin/images/sticky.png" tooltip="'.$titel.'"/>';
}
echo '<html:br />';
echo $lvb;
if ($this->type!='lektor')
echo $lkt;
if ($this->type!='ort')
echo $orte;
echo $blink_aus.'</label></button>';
echo $blink_aus;
echo '</label>';
echo '</button>';
}
}
if (isset($this->std_plan[$i][$j][0]->frei_orte))
+8 -5
View File
@@ -170,10 +170,12 @@ if (is_array($lehrstunden->lehrstunden))
{
foreach ($lehrstunden->lehrstunden as $ls)
{
//Anzahl der Studenten in der Gruppe ermitteln
$stsem = getStudiensemesterFromDatum($ls->datum);
$anzahl = getAnzahl($ls->studiengang_kz, $ls->sem, $ls->ver, $ls->grp, $ls->gruppe_kurzbz, $stsem);
?>
if(is_null($stunde) || $ls->stunde==$stunde)
{
//Anzahl der Studenten in der Gruppe ermitteln
$stsem = getStudiensemesterFromDatum($ls->datum);
$anzahl = getAnzahl($ls->studiengang_kz, $ls->sem, $ls->ver, $ls->grp, $ls->gruppe_kurzbz, $stsem);
?>
<RDF:li>
<RDF:Description id="<?php echo $ls->stundenplan_id; ?>" about="<?php echo $rdf_url.'/'. $ls->stundenplan_id; ?>" >
<LEHRSTUNDE:id><?php echo $ls->stundenplan_id ?></LEHRSTUNDE:id>
@@ -194,11 +196,12 @@ if (is_array($lehrstunden->lehrstunden))
<LEHRSTUNDE:studiengang><?php echo $ls->studiengang ?></LEHRSTUNDE:studiengang>
<LEHRSTUNDE:farbe><?php echo $ls->farbe ?></LEHRSTUNDE:farbe>
<LEHRSTUNDE:anmerkung><![CDATA[<?php echo $ls->anmerkung; ?>]]></LEHRSTUNDE:anmerkung>
<LEHRSTUNDE:titel><![CDATA[<?php echo $ls->titel; ?>]]></LEHRSTUNDE:titel>
<LEHRSTUNDE:anzahlstudenten><![CDATA[<?php echo $anzahl; ?>]]></LEHRSTUNDE:anzahlstudenten>
</RDF:Description>
</RDF:li>
<?php
//}
}
}
}
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B