mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Lehrveranstaltungen/Lehreinheiten Modul Erweiterung
- LVA Liste im Profil zeigt nun den den Typ vom Studiengang an (B/M/D) - QM Anpassungen
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
echo '<td>'.$row_lv->bezeichnung.'</td>';
|
||||
echo '<td>'.$row->lehrfach_bez.'</td>';
|
||||
echo '<td>'.$row->lektor.'</td>';
|
||||
echo '<td>'.$row->stg_kurzbz.'</td>';
|
||||
echo '<td>'.strtoupper($row->stg_typ.$row->stg_kurzbz).'</td>';
|
||||
echo '<td>'.$row->semester.'</td>';
|
||||
echo '<td>'.$row->verband.'</td>';
|
||||
echo '<td>'.$row->gruppe.'</td>';
|
||||
|
||||
@@ -46,6 +46,10 @@ customMenulist.sprache {
|
||||
-moz-binding: url('lfvtbinding.xml.php#spracheListe');
|
||||
}
|
||||
|
||||
customMenulist.studiensemester {
|
||||
-moz-binding: url('lfvtbinding.xml.php#studiensemesterListe');
|
||||
}
|
||||
|
||||
customMenulist.lehrveranstaltung {
|
||||
-moz-binding: url('lfvtbinding.xml.php#lehrveranstaltungenListe');
|
||||
}
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ if ($_GET['do']=='create' || ($_GET['do']=='update'))
|
||||
if ($leDAO->save())
|
||||
echo 'ok';
|
||||
else
|
||||
echo $lvaDAO->errormsg;
|
||||
echo $leDAO->errormsg;
|
||||
}
|
||||
else if ($_GET['do']=='update')
|
||||
{
|
||||
|
||||
+54
-198
@@ -113,32 +113,23 @@
|
||||
<xul:row>
|
||||
<xul:label value="Raum" />
|
||||
<xul:customMenulist id="gridSTPLRaum" class="raum" flex="1" oncommand="document.getBindingParent(this).raumtyp=document.getAnonymousNodes(this)[0].value" />
|
||||
|
||||
|
||||
</xul:row>
|
||||
|
||||
</xul:rows>
|
||||
</xul:grid>
|
||||
|
||||
|
||||
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<binding id="lfvtDetail">
|
||||
<content>
|
||||
|
||||
<xul:vbox style="margin:0px;padding:0px;" flex="1">
|
||||
|
||||
|
||||
<xul:hbox style="background:#eeeeee;margin:0px;padding:2px" flex="1">
|
||||
<xul:label value="Details" style="font-size:12pt;font-weight:bold;margin-top:5px;" flex="1" />
|
||||
<xul:button id="btnLFVTSave" label="speichern" oncommand="parentNode.parentNode.parentNode.saveData();"/>
|
||||
</xul:hbox>
|
||||
|
||||
|
||||
<xul:grid id="gridLFVT" flex="1" datasources="rdf:null"
|
||||
ref="http://www.technikum-wien.at/tempus/lva/liste"
|
||||
style="padding:5px;"
|
||||
@@ -164,44 +155,24 @@
|
||||
|
||||
<xul:label value="Lehrveranstaltung" />
|
||||
<xul:textbox id="gridLFVTLehrveranstaltung" maxlength="20" disabled="true" onchange="document.getBindingParent(this).lehrveranstaltung=this.value"/>
|
||||
<!--<xul:customMenulist id="gridLFVTLehrveranstaltung" class="lehrveranstaltung" flex="1" oncommand="document.getBindingParent(this).lehrveranstaltung=document.getAnonymousNodes(this)[0].value" />-->
|
||||
</xul:row>
|
||||
<xul:row>
|
||||
<xul:label value="Lehrfach" />
|
||||
<xul:textbox id="gridLFVTLehrfach" maxlength="20" disabled="true" onchange="document.getBindingParent(this).lehrfach=this.value"/>
|
||||
<!--<xul:customMenulist id="gridLFVTLehrfach" class="lehrfach" oncommand="document.getBindingParent(this).lehrfach=document.getAnonymousNodes(this)[0].value" />-->
|
||||
<xul:customMenulist id="gridLFVTLehrfach" class="lehrfach" flex="1" oncommand="document.getBindingParent(this).lehrfach=document.getAnonymousNodes(this)[0].value" />
|
||||
<!--<xul:textbox id="gridLFVTLehrfach" maxlength="20" onchange="document.getBindingParent(this).lehrfach=this.value"/>-->
|
||||
|
||||
<xul:label value="Lehrform" />
|
||||
<xul:customMenulist id="gridLFVTLehrform" class="lehrform" flex="1" oncommand="document.getBindingParent(this).lehrform=document.getAnonymousNodes(this)[0].value" />
|
||||
<!--<xul:label value="Studiengang" />-->
|
||||
<!-- <xul:menulist id="gridLFVTStudiengang" name="stgListe" class="studiengang" maxwidth="100px" /> -->
|
||||
<!-- <xul:customMenulist id="gridLFVTStudiengang" class="studiengang" oncommand="document.getBindingParent(this).studiengang=document.getAnonymousNodes(this)[0].value" />-->
|
||||
</xul:row>
|
||||
<!--<xul:row>
|
||||
<xul:label value="Fachbereich" />
|
||||
<xul:customMenulist id="gridLFVTFachbereich" class="fachbereich" oncommand="document.getBindingParent(this).fachbereich=document.getAnonymousNodes(this)[0].value" />
|
||||
|
||||
<xul:label value="Semester" />
|
||||
<xul:textbox id="gridLFVTSemester" flex="1" onchange="document.getBindingParent(this).semester=this.value" />
|
||||
</xul:row>
|
||||
<xul:row>
|
||||
<xul:label value="Verband" />
|
||||
<xul:textbox id="gridLFVTVerband" flex="1" onchange="document.getBindingParent(this).verband=this.value" />
|
||||
|
||||
<xul:label value="Gruppe" />
|
||||
<xul:textbox id="gridLFVTGruppe" flex="1" onchange="document.getBindingParent(this).gruppe=this.value" />
|
||||
</xul:row>-->
|
||||
<xul:row>
|
||||
<xul:label value="Raumtyp" />
|
||||
<xul:customMenulist id="gridLFVTRaumtyp" class="raumtyp" flex="1" oncommand="document.getBindingParent(this).raumtyp=document.getAnonymousNodes(this)[0].value" />
|
||||
|
||||
<xul:label value="Raumtyp alternativ" />
|
||||
<xul:customMenulist id="gridLFVTRaumtypAlt" class="raumtyp" flex="1" oncommand="document.getBindingParent(this).raumtyp_alt=document.getAnonymousNodes(this)[0].value" />
|
||||
|
||||
</xul:row>
|
||||
<xul:row>
|
||||
|
||||
<xul:label value="Lehre" />
|
||||
<!--<xul:textbox id="gridLFVTLehre" onchange="document.getBindingParent(this).Lehre=this.value"/>-->
|
||||
<xul:checkbox id="gridLFVTLehre" oncommand="document.getBindingParent(this).lehre=this.checked" />
|
||||
|
||||
<xul:label value="Stundenblockung" />
|
||||
@@ -216,18 +187,13 @@
|
||||
</xul:row>
|
||||
<xul:row>
|
||||
<xul:label value="Studiensemester" />
|
||||
<xul:textbox id="gridLFVTStudiensemester" onchange="document.getBindingParent(this).studiensemester=this.value" />
|
||||
<xul:customMenulist id="gridLFVTStudiensemester" class="studiensemester" flex="1" oncommand="document.getBindingParent(this).studiensemester=document.getAnonymousNodes(this)[0].value" />
|
||||
|
||||
<xul:label value="Anmerkung" />
|
||||
<xul:textbox id="gridLFVTAnmerkung" onchange="document.getBindingParent(this).anmerkung=this.value" />
|
||||
<!--
|
||||
<xul:label value="ECTS" />
|
||||
<xul:textbox id="gridLFVTECTS" onchange="parentNode.parentNode.parentNode.parentNode.ects=this.value" />
|
||||
-->
|
||||
</xul:row>
|
||||
</xul:rows>
|
||||
</xul:grid>
|
||||
|
||||
</xul:grid>
|
||||
</xul:vbox>
|
||||
|
||||
</content>
|
||||
@@ -238,11 +204,6 @@
|
||||
this.gridLFVTSprache=document.getElementById('gridLFVTSprache');
|
||||
this.gridLFVTLehrveranstaltung=document.getElementById('gridLFVTLehrveranstaltung');
|
||||
this.gridLFVTLehrfach=document.getElementById('gridLFVTLehrfach');
|
||||
<!--this.gridLFVTStudiengang=document.getElementById('gridLFVTStudiengang');
|
||||
this.gridLFVTFachbereich=document.getElementById('gridLFVTFachbereich');
|
||||
this.gridLFVTSemester=document.getElementById('gridLFVTSemester');
|
||||
this.gridLFVTVerband=document.getElementById('gridLFVTVerband');
|
||||
this.gridLFVTGruppe=document.getElementById('gridLFVTGruppe');-->
|
||||
this.gridLFVTRaumtyp=document.getElementById('gridLFVTRaumtyp');
|
||||
this.gridLFVTRaumtypAlt=document.getElementById('gridLFVTRaumtypAlt');
|
||||
this.gridLFVTLehre=document.getElementById('gridLFVTLehre');
|
||||
@@ -252,7 +213,6 @@
|
||||
this.gridLFVTAnmerkung=document.getElementById('gridLFVTAnmerkung');
|
||||
this.gridLFVTStudiensemester=document.getElementById('gridLFVTStudiensemester');
|
||||
this.gridLFVTLehrform=document.getElementById('gridLFVTLehrform');
|
||||
<!-- this.gridLFVTECTS=document.getElementById('gridLFVTECTS'); -->
|
||||
</constructor>
|
||||
<!-- Grid-Felder -->
|
||||
<field name="gridLFVTLVNR">null</field>
|
||||
@@ -260,11 +220,6 @@
|
||||
<field name="gridLFVTSprache">null</field>
|
||||
<field name="gridLFVTLehrveranstaltung">null</field>
|
||||
<field name="gridLFVTLehrfach">null</field>
|
||||
<!--<field name="gridLFVTStudiengang">null</field>
|
||||
<field name="gridLFVTFachbereich">null</field>
|
||||
<field name="gridLFVTSemester">null</field>
|
||||
<field name="gridLFVTVerband">null</field>
|
||||
<field name="gridLFVTGruppe">null</field>-->
|
||||
<field name="gridLFVTRaumtyp">null</field>
|
||||
<field name="gridLFVTRaumtypAlt">null</field>
|
||||
<field name="gridLFVTLehre">null</field>
|
||||
@@ -284,11 +239,14 @@
|
||||
<!-- LVA-Felder -->
|
||||
<property name="lvnr" onget="return this.currentLVA.lvnr;" >
|
||||
<setter>
|
||||
if (isNaN(val)) {
|
||||
if (isNaN(val))
|
||||
{
|
||||
alert('LVNR muss eine Zahl sein!');
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.lvnr=null;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.lvnr=val;
|
||||
}
|
||||
@@ -298,25 +256,25 @@
|
||||
</property>
|
||||
<property name="unr" onget="return this.currentLVA.unr;" >
|
||||
<setter>
|
||||
if (isNaN(val)) {
|
||||
if (isNaN(val))
|
||||
{
|
||||
alert('UNR muss eine Zahl sein!');
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.unr=null;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.unr=val;
|
||||
}
|
||||
alert('unr:'+val);
|
||||
return val;
|
||||
</setter>
|
||||
</property>
|
||||
<!-- einheit -->
|
||||
<property name="sprache" onget="return this.currentLVA.sprache;" >
|
||||
<setter>
|
||||
//alert('property-setter: val='+val);
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.sprache=val;
|
||||
//this.showCurrentLVA();
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
@@ -324,10 +282,8 @@
|
||||
<!-- lektor -->
|
||||
<property name="lehrveranstaltung" onget="return this.currentLVA.lehrveranstaltung;" >
|
||||
<setter>
|
||||
//alert('property-setter: val='+val);
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.lehrveranstaltung=val;
|
||||
//this.showCurrentLVA();
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
@@ -335,43 +291,17 @@
|
||||
<!-- lehrfach -->
|
||||
<property name="lehrfach" onget="return this.currentLVA.lehrfach;" >
|
||||
<setter>
|
||||
//alert('property-setter: val='+val);
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.lehrfach=val;
|
||||
//this.showCurrentLVA();
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
</property>
|
||||
<!-- studiengang -->
|
||||
<!--<property name="studiengang" onget="return this.currentLVA.studiengang;" >
|
||||
<setter>
|
||||
//alert('property-setter: val='+val);
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.studiengang=val;
|
||||
//this.showCurrentLVA();
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
</property>-->
|
||||
<!-- fachbereich -->
|
||||
<!--<property name="fachbereich" onget="return this.currentLVA.fachbereich;" >
|
||||
<setter>
|
||||
//alert('fachbereich-setter: val='+val);
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.fachbereich=val;
|
||||
//this.showCurrentLVA();
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
</property>-->
|
||||
<!-- raumtyp -->
|
||||
<property name="raumtyp" onget="return this.currentLVA.raumtyp;" >
|
||||
<setter>
|
||||
//alert('property-setter: val='+val);
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.raumtyp=val;
|
||||
//this.showCurrentLVA();
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
@@ -387,44 +317,6 @@
|
||||
return val;
|
||||
</setter>
|
||||
</property>
|
||||
<!--
|
||||
<property name="semester" onget="return this.currentLVA.semester;" >
|
||||
<setter>
|
||||
if (isNaN(val)) {
|
||||
alert('Semester muss eine Zahl sein!');
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.unr=null;
|
||||
} else {
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.semester=val;
|
||||
}
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
</property>
|
||||
<property name="verband" onget="return this.currentLVA.verband;" >
|
||||
<setter>
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.verband=val;
|
||||
}
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
</property>
|
||||
<property name="gruppe" onget="return this.currentLVA.gruppe;" >
|
||||
<setter>
|
||||
if (isNaN(val)) {
|
||||
alert('Gruppe muss eine Zahl sein!');
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.gruppe=null;
|
||||
} else {
|
||||
if (this.currentLVA!=null)
|
||||
this.currentLVA.gruppe=val;
|
||||
}
|
||||
|
||||
return val;
|
||||
</setter>
|
||||
</property>-->
|
||||
<property name="lehre" onget="return this.currentLVA.lehre;" >
|
||||
<setter>
|
||||
this.currentLVA.lehre=val;
|
||||
@@ -543,25 +435,18 @@
|
||||
<body><![CDATA[
|
||||
this.gridLFVTLVNR.value=null;
|
||||
this.gridLFVTUNR.value=null;
|
||||
this.gridLFVTSprache.currentValue=null;
|
||||
this.gridLFVTSprache.currentValue='German';
|
||||
this.gridLFVTLehrveranstaltung.currentValue=null;
|
||||
this.gridLFVTLehrfach.currentValue=null;
|
||||
/*
|
||||
this.gridLFVTStudiengang.currentValue=null;
|
||||
this.gridLFVTFachbereich.currentValue=null;
|
||||
this.gridLFVTSemester.value=null;
|
||||
this.gridLFVTVerband.value=null;
|
||||
this.gridLFVTGruppe.value=null;
|
||||
*/
|
||||
this.gridLFVTRaumtyp.currentValue=null;
|
||||
this.gridLFVTRaumtypAlt.currentValue=null;
|
||||
this.gridLFVTRaumtyp.currentValue='Dummy';
|
||||
this.gridLFVTRaumtypAlt.currentValue='Dummy';
|
||||
this.gridLFVTLehre.checked=true;
|
||||
this.gridLFVTStundenblockung.value=null;
|
||||
this.gridLFVTWochenrythmus.value=null;
|
||||
this.gridLFVTStart_kw.value=null;
|
||||
this.gridLFVTAnmerkung.value=null;
|
||||
this.gridLFVTStudiensemester.value=null;
|
||||
this.gridLFVTLehrform.value=null;
|
||||
this.gridLFVTLehrform.value=' ';
|
||||
this.currentLVA=null;
|
||||
]]>
|
||||
</body>
|
||||
@@ -594,15 +479,15 @@
|
||||
// Start KW
|
||||
this.gridLFVTStart_kw.value=this.currentLVA.start_kw;
|
||||
// Studiensemester
|
||||
this.gridLFVTStudiensemester.value=this.currentLVA.studiensemester;
|
||||
this.gridLFVTStudiensemester.currentValue=this.currentLVA.studiensemester;
|
||||
// Anmerkung
|
||||
this.gridLFVTAnmerkung.value=this.currentLVA.anmerkung;
|
||||
// Lehrveranstaltung setzen
|
||||
//this.gridLFVTLehrveranstaltung.currentValue=this.currentLVA.lehrveranstaltung;
|
||||
this.gridLFVTLehrveranstaltung.value=this.currentLVA.lehrveranstaltung;
|
||||
// Lehrfach
|
||||
//this.gridLFVTLehrfach.currentValue=this.currentLVA.lehrfach;
|
||||
this.gridLFVTLehrfach.value=this.currentLVA.lehrfach;
|
||||
this.gridLFVTLehrfach.currentValue=this.currentLVA.lehrfach;
|
||||
//this.gridLFVTLehrfach.value=this.currentLVA.lehrfach;
|
||||
// Lehrform
|
||||
this.gridLFVTLehrform.currentValue=this.currentLVA.lehrform;
|
||||
]]>
|
||||
@@ -742,6 +627,27 @@
|
||||
<handler event="command" action="this.currentValue=document.getAnonymousNodes(this)[0].value;" />
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<!-- DropDownList fuer Studiensemester -->
|
||||
|
||||
<binding id="studiensemesterListe" extends="lfvtbinding.xml.php#customMenulist-base" >
|
||||
<content>
|
||||
<xul:menulist datasources="<?php echo APP_ROOT ?>rdf/studiensemester.rdf.php" flex="1"
|
||||
ref="http://www.technikum-wien.at/studiensemester/liste" >
|
||||
<xul:template>
|
||||
<xul:menupopup>
|
||||
<xul:menuitem value="rdf:http://www.technikum-wien.at/studiensemester/rdf#kurzbz"
|
||||
label="rdf:http://www.technikum-wien.at/studiensemester/rdf#kurzbz"
|
||||
uri="rdf:*"/>
|
||||
</xul:menupopup>
|
||||
</xul:template>
|
||||
</xul:menulist>
|
||||
</content>
|
||||
<handlers>
|
||||
<handler event="command" action="this.currentValue=document.getAnonymousNodes(this)[0].value;" />
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<!-- DropDownList fuer Raumtyp -->
|
||||
|
||||
<binding id="raumtypListe" extends="lfvtbinding.xml.php#customMenulist-base" >
|
||||
@@ -803,33 +709,6 @@
|
||||
<handlers>
|
||||
<handler event="command" action="this.currentValue=document.getAnonymousNodes(this)[0].value;" />
|
||||
</handlers>
|
||||
<!--
|
||||
<implementation>
|
||||
<property name="currentValue" onget="return this.getAttribute('currentValue');">
|
||||
<setter><![CDATA[
|
||||
this.setAttribute('currentValue',val);
|
||||
var menulist=document.getAnonymousNodes(this)[0];
|
||||
// auszuwaehlenden Datensatz suchen (stammt aus original Source Code)
|
||||
var arr=menulist.menupopup.getElementsByAttribute('value',val);
|
||||
//alert('anzahl arr='+arr.length+'; val='+val);
|
||||
if (arr.item(0)) {
|
||||
menulist.selectedItem=arr[0];
|
||||
} else {
|
||||
menulist.selectedIndex=0;
|
||||
}
|
||||
return val;
|
||||
]]>
|
||||
</setter>
|
||||
</property>
|
||||
<property name="selectedIndex"
|
||||
onget="return document.getAnonymousNodes(this)[0].selectedIndex;"
|
||||
onset="alert('val='+val);return document.getAnonymousNodes(this)[0].selectedIndex=val;"
|
||||
/>
|
||||
</implementation>
|
||||
<handlers>
|
||||
<handler event="command" action="this.currentValue=document.getAnonymousNodes(this)[0].getAttribute('value');" />
|
||||
</handlers>
|
||||
-->
|
||||
</binding>
|
||||
|
||||
<!-- DropDownList fuer Lehrveranstaltungen -->
|
||||
@@ -855,35 +734,12 @@
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<!-- DropDownList fuer Einheiten -->
|
||||
<!--
|
||||
<binding id="einheitenListe" extends="lfvtbinding.xml.php#customMenulist-base" >
|
||||
<content>
|
||||
|
||||
<xul:menulist datasources="<?php echo APP_ROOT; ?>rdf/einheiten.rdf.php" flex="1"
|
||||
ref="http://www.technikum-wien.at/tempus/einheiten/liste"
|
||||
>
|
||||
<xul:template>
|
||||
<xul:menupopup>
|
||||
|
||||
<xul:menuitem value="rdf:http://www.technikum-wien.at/tempus/einheiten/rdf#kurzbz"
|
||||
label="rdf:http://www.technikum-wien.at/tempus/einheiten/rdf#kurzbz"
|
||||
uri="rdf:*"/>
|
||||
</xul:menupopup>
|
||||
</xul:template>
|
||||
</xul:menulist>
|
||||
</content>
|
||||
<handlers>
|
||||
<handler event="command" action="this.currentValue=document.getAnonymousNodes(this)[0].value;" />
|
||||
</handlers>
|
||||
</binding>
|
||||
-->
|
||||
<!-- DropDownList fuer Sprache -->
|
||||
|
||||
<binding id="spracheListe" extends="lfvtbinding.xml.php#customMenulist-base" >
|
||||
<content>
|
||||
|
||||
<xul:menulist datasources="<?php echo APP_ROOT; ?>rdf/sprache.rdf.php?ohnedemgehtsned" flex="1"
|
||||
<xul:menulist datasources="<?php echo APP_ROOT; ?>rdf/sprache.rdf.php" flex="1"
|
||||
ref="http://www.technikum-wien.at/sprachen/liste"
|
||||
>
|
||||
<xul:template>
|
||||
@@ -904,16 +760,16 @@
|
||||
|
||||
<binding id="lehrfaecherListe" extends="lfvtbinding.xml.php#customMenulist-base" >
|
||||
<content>
|
||||
<!-- <xul:menulist datasources="lehrfach.rdf.php" flex="1"
|
||||
ref="http://www.technikum-wien.at/tempus/lehrfach/liste" >
|
||||
<xul:menulist datasources="<?php echo APP_ROOT;?>rdf/lehrfach.rdf.php" flex="1"
|
||||
ref="http://www.technikum-wien.at/lehrfach/liste" >
|
||||
<xul:template>
|
||||
<xul:menupopup>
|
||||
<xul:menuitem value="rdf:http://www.technikum-wien.at/tempus/lehrfach/rdf#lehrfach_nr"
|
||||
label="rdf:http://www.technikum-wien.at/tempus/lehrfach/rdf#bezeichnung"
|
||||
<xul:menuitem value="rdf:http://www.technikum-wien.at/lehrfach/rdf#lehrfach_id"
|
||||
label="rdf:http://www.technikum-wien.at/lehrfach/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</xul:menupopup>
|
||||
</xul:template>
|
||||
</xul:menulist>-->
|
||||
</xul:menulist>
|
||||
</content>
|
||||
<handlers>
|
||||
<handler event="command" action="this.currentValue=document.getAnonymousNodes(this)[0].value;" />
|
||||
@@ -947,10 +803,10 @@
|
||||
|
||||
<!-- ************************************************************************* -->
|
||||
<!-- customMenulist-base -->
|
||||
<!-- - f�gt property currentValue hinzu, welcher dem value der internen -->
|
||||
<!-- Menulist entspricht, au�erdem wird durch setzen von currentValue -->
|
||||
<!-- - fuegt property currentValue hinzu, welcher dem value der internen -->
|
||||
<!-- Menulist entspricht, ausserdem wird durch setzen von currentValue -->
|
||||
<!-- auch der entsprechende Datensatz selektiert -->
|
||||
<!-- - forward f�r selectedIndex -->
|
||||
<!-- - forward fuer selectedIndex -->
|
||||
<!-- ************************************************************************* -->
|
||||
<binding id="customMenulist-base" >
|
||||
<content />
|
||||
|
||||
+18
-11
@@ -188,6 +188,10 @@ function lvaAuswahl()
|
||||
var lvaDetail=document.getElementById('lvaDetail');
|
||||
lvaDetail.setLVA(lva);
|
||||
lvaDetail.isNew=false;
|
||||
|
||||
//***Lehreinheitmitarbeiter tree setzen
|
||||
url='../rdf/lehreinheitmitarbeiter.rdf.php?lehreinheit_id='+lehreinheit_id;
|
||||
document.getElementById('lfvt_detail_tree_lehreinheitmitarbeiter').setAttribute('datasources',url);
|
||||
}
|
||||
|
||||
function getTargetHelper(dsource,subj,predi)
|
||||
@@ -211,25 +215,28 @@ function getTargetHelper(dsource,subj,predi)
|
||||
*/
|
||||
function Lehrveranstaltung()
|
||||
{
|
||||
this.id=null; // =lehrveranstaltung_id
|
||||
this.id=null;
|
||||
this.lvnr=null;
|
||||
this.unr=null;
|
||||
this.einheit=null;
|
||||
this.lektor=null;
|
||||
this.anmerkung=null;
|
||||
this.lehrveranstaltung=null;
|
||||
this.lehrfach=null;
|
||||
this.studiengang=null;
|
||||
this.fachbereich=null;
|
||||
this.semester=null;
|
||||
this.verband=null;
|
||||
this.gruppe=null;
|
||||
this.raumtyp=null;
|
||||
this.raumtyp_alt=null;
|
||||
this.sprache='German';
|
||||
this.lehrform='';
|
||||
this.lehre='true';
|
||||
//this.studiengang=null;
|
||||
//this.fachbereich=null;
|
||||
//this.semester=null;
|
||||
//this.verband=null;
|
||||
//this.gruppe=null;
|
||||
this.raumtyp='Dummy';
|
||||
this.raumtyp_alt='Dummy';
|
||||
this.semesterstunden=null;
|
||||
this.stundenblockung=null;
|
||||
this.wochenrythmus=null;
|
||||
this.start_kw=null;
|
||||
this.studiensemester=null;
|
||||
this.lehrform=null;
|
||||
this.lehrform=' ';
|
||||
this.ects=null;
|
||||
// flag, welches angibt, ob Daten verändert wurden
|
||||
this.dataChanged=false;
|
||||
|
||||
+135
-6
@@ -71,7 +71,7 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/lfvt.css\" type=\"text/css\" ?
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#ects" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="lva_semesterstunden" label="Semesterstunden" flex="1" hidden="false"
|
||||
<treecol id="lva_semesterstunden" label="Semesterstunden" flex="1" hidden="true"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#semesterstunden"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
@@ -103,11 +103,11 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/lfvt.css\" type=\"text/css\" ?
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#raumtypalternativ"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="lva_gruppen" label="Gruppen" flex="5" hidden="true"
|
||||
<treecol id="lva_gruppen" label="Gruppen" flex="5" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#gruppen"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="lva_lektoren" label="Lektoren" flex="5" hidden="true"
|
||||
<treecol id="lva_lektoren" label="Lektoren" flex="5" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#lektoren"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
@@ -156,9 +156,138 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/lfvt.css\" type=\"text/css\" ?
|
||||
<!-- * Detail * -->
|
||||
<!-- ************ -->
|
||||
<vbox flex="1" style="overflow:auto;margin:0px;">
|
||||
|
||||
<box id="lvaDetail" class="lvaDetail" style="margin:0px;" />
|
||||
|
||||
<tabbox id="lfvt_detail_tabbox" flex="3" orient="vertical">
|
||||
<tabs orient="horizontal">
|
||||
<tab id="lfvt_detail_tab_detail" label="Details" />
|
||||
<tab id="lfvt_detail_tab_lektor" label="Lektorenzuteilung" />
|
||||
</tabs>
|
||||
<tabpanels id="lfvt_detail_tabpanels-main" flex="1">
|
||||
<vbox>
|
||||
<box id="lvaDetail" class="lvaDetail" style="margin:0px;" />
|
||||
</vbox>
|
||||
<vbox>
|
||||
<description>Lektorenzuteilung</description>
|
||||
<hbox flex="1" style="padding: 10px">
|
||||
<vbox width="250">
|
||||
<hbox flex="1">
|
||||
<tree id="lfvt_detail_tree_lehreinheitmitarbeiter" seltype="single" hidecolumnpicker="false" flex="1"
|
||||
datasources="rdf:null"
|
||||
ref="http://www.technikum-wien.at/lehreinheitmitarbeiter/liste"
|
||||
onselect="MitarbeiterLehreinheitenTreeAuswahl();" flags="dont-build-content"
|
||||
style="border: 1px solid black;"
|
||||
>
|
||||
<treecols>
|
||||
<treecol id="lfvt_detail_tree_lehreinheitmitarbeiter-col-nachname" label="Nachname" flex="2" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/lehreinheitmitarbeiter/rdf#nachname" onclick="LehreinheitenTreeSort()"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="lfvt_detail_tree_lehreinheitmitarbeiter-col-vorname" label="Vorname" flex="2" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/lehreinheitmitarbeiter/rdf#vorname" onclick="LehreinheitenTreeSort()"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="lfvt_detail_tree_lehreinheitmitarbeiter-col-mitarbeiter_lehreinheit_id" label="MitarbeiterLehreinheitID" flex="2" hidden="true"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/lehreinheitmitarbeiter/rdf#mitarbeiter_uid" onclick="LehreinheitenTreeSort()"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
</treecols>
|
||||
<template>
|
||||
<rule>
|
||||
<treechildren>
|
||||
<treeitem uri="rdf:*">
|
||||
<treerow>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/lehreinheitmitarbeiter/rdf#nachname" />
|
||||
<treecell label="rdf:http://www.technikum-wien.at/lehreinheitmitarbeiter/rdf#vorname" />
|
||||
<treecell label="rdf:http://www.technikum-wien.at/lehreinheitmitarbeiter/rdf#mitarbeiter_uid" />
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
</rule>
|
||||
</template>
|
||||
</tree>
|
||||
<spacer />
|
||||
</hbox>
|
||||
<!--
|
||||
<hbox>
|
||||
<button label="+" oncommand="MitarbeiterLehreinheitenAdd()" style="max-width: 30px;"/>
|
||||
<button label="-" oncommand="MitarbeiterLehreinheitenDel()" style="max-width: 30px;"/>
|
||||
</hbox>
|
||||
-->
|
||||
</vbox>
|
||||
<!--
|
||||
<vbox>
|
||||
<hbox>
|
||||
<groupbox>
|
||||
<caption label="Lektorendaten" />
|
||||
<vbox flex="1">
|
||||
<textbox id="textbox-lehreinheiten-detail-lektoren-lehreinheit_id" hidden="true"/>
|
||||
<textbox id="textbox-lehreinheiten-detail-lektoren-mitarbeiter_lehreinheit_id" hidden="true"/>
|
||||
<grid align="end" flex="1"
|
||||
flags="dont-build-content"
|
||||
enableColumnDrag="true"
|
||||
>
|
||||
<columns>
|
||||
<column />
|
||||
<column flex="1"/>
|
||||
<column />
|
||||
<column flex="1"/>
|
||||
</columns>
|
||||
|
||||
<rows>
|
||||
<row>
|
||||
<label align="end" control="menulist-lehreinheiten-detail-funktion" value="Funktion:"/>
|
||||
<menulist id="menulist-lehreinheiten-detail-funktion" disabled="true" oncommand="LehreinheitenDetailLektorValueChanged();"
|
||||
datasources="<?php echo APP_ROOT; ?>rdf/fas/mitarbeiterlehreinheitenfunktionen.rdf.php"
|
||||
ref="http://www.technikum-wien.at/mitarbeiterlehreinheitenfunktionen/alle" flex="1">
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem uri="rdf:*" label="rdf:http://www.technikum-wien.at/mitarbeiterlehreinheitenfunktionen/rdf#bezeichnung"
|
||||
value="rdf:http://www.technikum-wien.at/mitarbeiterlehreinheitenfunktionen/rdf#funktion_id"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
</menulist>
|
||||
<label align="end" control="menulist-lehreinheiten-detail-mitarbeiterauswahl" value="Lektor:"/>
|
||||
<hbox flex="1">
|
||||
<menulist id="menulist-lehreinheiten-detail-mitarbeiterauswahl" disabled="true" oncommand="LehreinheitenDetailLektorValueChanged();"
|
||||
datasources="rdf:*"
|
||||
ref="http://www.technikum-wien.at/mitarbeiterlehreinheitenauswahl/alle" flex="1">
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem uri="rdf:*" label="rdf:http://www.technikum-wien.at/mitarbeiterlehreinheitenauswahl/rdf#nachname rdf:http://www.technikum-wien.at/mitarbeiterlehreinheitenauswahl/rdf#vorname"
|
||||
value="rdf:http://www.technikum-wien.at/mitarbeiterlehreinheitenauswahl/rdf#mitarbeiter_id"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
</menulist>
|
||||
<button label='+' id="button-lehreinheiten-detail-lektoren-auswahladd" disabled="true" oncommand='OpenMitarbeiterAuswahlDialog()' style="max-width: 30px;"/>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label control="textbox-lehreinheiten-detail-lektoren-kosten" value="Kosten: "/>
|
||||
<textbox id="textbox-lehreinheiten-detail-lektoren-kosten" disabled="true" maxlength="255" flex="1" oninput="LehreinheitenDetailLektorValueChanged()"/>
|
||||
<label control="textbox-lehreinheiten-detail-lektoren-gesamtstunden" value="Gesamtstunden: "/>
|
||||
<textbox id="textbox-lehreinheiten-detail-lektoren-gesamtstunden" disabled="true" maxlength="255" flex="1" oninput="LehreinheitenDetailLektorValueChanged()"/>
|
||||
</row>
|
||||
<row>
|
||||
<label control="textbox-lehreinheiten-detail-lektoren-faktor" value="Faktor: "/>
|
||||
<textbox id="textbox-lehreinheiten-detail-lektoren-faktor" disabled="true" maxlength="255" flex="1" oninput="LehreinheitenDetailLektorValueChanged()"/>
|
||||
<label control="textbox-lehreinheiten-detail-lektoren-differenz" value="Differenz: "/>
|
||||
<textbox id="textbox-lehreinheiten-detail-lektoren-differenz" maxlength="255" flex="1" oninput="LehreinheitenDetailLektorValueChanged()" disabled="true"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<hbox flex="1">
|
||||
<spacer flex="1" />
|
||||
<button label="Speichern" disabled="true" id="button-lehreinheiten-detail-lektoren-save" oncommand="MitarbeiterLehreinheitenZuteilungSave();"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
</hbox>
|
||||
</vbox>-->
|
||||
<spacer flex="1" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
</vbox>
|
||||
|
||||
</vbox>
|
||||
|
||||
@@ -69,11 +69,50 @@ class lehreinheitmitarbeiter
|
||||
// * Laedt die LEMitarbeiter
|
||||
// * @param lehreinheit_id
|
||||
// *********************************************************
|
||||
function load($lehreinheit_id, $mitarbeiter_uid)
|
||||
function load($lehreinheit_id, $mitarbeiter_uid=null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// *********************************************************
|
||||
// * Laedt die Lektoren einer Lehreinheit
|
||||
// * @param lehreinheit_id
|
||||
// * @return array + true wenn ok / false im Fehlerfall
|
||||
// *********************************************************
|
||||
function getLehreinheitmitarbeiter($lehreinheit_id, $mitarbeiter_uid=null)
|
||||
{
|
||||
$qry = "SELECT * FROM lehre.tbl_lehreinheitmitarbeiter WHERE lehreinheit_id='$lehreinheit_id'";
|
||||
if($mitarbeiter_uid!=null)
|
||||
$qry.=" AND mitarbeiter_uid='".addslashes($mitarbeiter_uid)."'";
|
||||
$qry .=" ORDER BY mitarbeiter_uid";
|
||||
|
||||
if($result = pg_query($this->conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
$obj = new lehreinheitmitarbeiter($this->conn);
|
||||
$obj->lehreinheit_id = $row->lehreinheit_id;
|
||||
$obj->mitarbeiter_uid = $row->mitarbeiter_uid;
|
||||
$obj->lehrfunktion_kurzbz = $row->lehrfunktion_kurzbz;
|
||||
$obj->semesterstunden = $row->semesterstunden;
|
||||
$obj->planstunden = $row->planstunden;
|
||||
$obj->stundensatz = $row->stundensatz;
|
||||
$obj->faktor = $row->faktor;
|
||||
$obj->anmerkung = $row->anmerkung;
|
||||
$obj->bismelden = $row->bismelden;
|
||||
$obj->updateamum = $row->updateamum;
|
||||
$obj->updatevon = $row->updatevon;
|
||||
$obj->insertamum = $row->insertamum;
|
||||
$obj->insertvon = $row->insertvon;
|
||||
|
||||
$this->lehreinheitmitarbeiter[] = $obj;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// *******************************************
|
||||
// * Prueft die Variablen vor dem Speichern
|
||||
// * auf Gueltigkeit.
|
||||
|
||||
+20
-14
@@ -235,29 +235,35 @@ class lehrfach
|
||||
* @param $stg Studiengangs_kz
|
||||
* $sem Semester
|
||||
* $order Sortierkriterium
|
||||
* $fachb fachbereichs_id
|
||||
* @return array mit Fachbereichen oder false=fehler
|
||||
* $fachb fachbereich_kurzbz
|
||||
* @return array mit Lehrfaechern oder false=fehler
|
||||
*/
|
||||
function getTab($stg='-1',$sem='-1', $order='lehrfach_id', $fachb='-1',$lehre='')
|
||||
function getTab($stg=null,$sem=null, $order='lehrfach_id', $fachb=null)
|
||||
{
|
||||
|
||||
if($stg!=null && !is_numeric($stg))
|
||||
{
|
||||
$this->errormsg = 'Studiengang_kz muss eine gueltige Zahl sein';
|
||||
return false;
|
||||
}
|
||||
if($sem!=null && !is_numeric($sem))
|
||||
{
|
||||
$this->errormsg = 'Semester muss eine gueltige Zahl sein';
|
||||
return false;
|
||||
}
|
||||
$sql_query = "SELECT * FROM lehre.tbl_lehrfach";
|
||||
|
||||
if($stg!=-1 || $sem!=-1 || $fachb!=-1)
|
||||
if($stg!=null || $sem!=null || $fachb!=null)
|
||||
$sql_query .= " WHERE true";
|
||||
|
||||
if($stg!=-1)
|
||||
if($stg!=null)
|
||||
$sql_query .= " AND studiengang_kz='$stg'";
|
||||
|
||||
if($sem!=-1)
|
||||
if($sem!=null)
|
||||
$sql_query .= " AND semester='$sem'";
|
||||
|
||||
if($fachb!=-1)
|
||||
$sql_query .= " AND fachbereich_kurzbz='$fachb'";
|
||||
|
||||
if($lehre!='')
|
||||
$sql_query .= " AND lehre=$lehre";
|
||||
|
||||
if($fachb!=null)
|
||||
$sql_query .= " AND fachbereich_kurzbz='".addslashes($fachb)."'";
|
||||
|
||||
$sql_query .= " ORDER BY $order";
|
||||
|
||||
if($result=pg_query($this->conn,$sql_query))
|
||||
@@ -270,7 +276,7 @@ class lehrfach
|
||||
$l->kurzbz = $row->kurzbz;
|
||||
$l->bezeichnung = $row->bezeichnung;
|
||||
$l->farbe = $row->farbe;
|
||||
$l->aktiv = $row->aktiv;
|
||||
$l->aktiv = $row->aktiv;
|
||||
$l->studiengang_kz = $row->studiengang_kz;
|
||||
$l->semester = $row->semester;
|
||||
$l->sprache = $row->sprache;
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* 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: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
// header fuer no cache
|
||||
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");
|
||||
// content type setzen
|
||||
header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
// xml
|
||||
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
|
||||
|
||||
require_once('../vilesci/config.inc.php');
|
||||
require_once('../include/lehreinheitmitarbeiter.class.php');
|
||||
|
||||
// Datenbank Verbindung
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
|
||||
|
||||
if(isset($_GET['lehreinheit_id']) && is_numeric($_GET['lehreinheit_id']))
|
||||
$lehreinheit_id = $_GET['lehreinheit_id'];
|
||||
else
|
||||
$lehreinheit_id = '';
|
||||
|
||||
//Mitarbeiter holen
|
||||
$DAO_obj = new lehreinheitmitarbeiter($conn);
|
||||
$DAO_obj->getLehreinheitmitarbeiter($lehreinheit_id);
|
||||
|
||||
$rdf_url='http://www.technikum-wien.at/lehreinheitmitarbeiter';
|
||||
?>
|
||||
|
||||
<RDF:RDF
|
||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:LEHREINHEITMITARBEITER="<?php echo $rdf_url; ?>/rdf#"
|
||||
>
|
||||
|
||||
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
|
||||
|
||||
<?php
|
||||
foreach ($DAO_obj->lehreinheitmitarbeiter as $row)
|
||||
{
|
||||
$vorname='unbekannt';
|
||||
$nachname='unbekannt';
|
||||
$qry = "SELECT vorname, nachname FROM public.tbl_person JOIN public.tbl_benutzer USING(person_id) WHERE uid='".addslashes($row->mitarbeiter_uid)."'";
|
||||
if($result_lkt = pg_query($conn, $qry))
|
||||
{
|
||||
if($row_lkt = pg_fetch_object($result_lkt))
|
||||
{
|
||||
$vorname = $row_lkt->vorname;
|
||||
$nachname = $row_lkt->nachname;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<RDF:li>
|
||||
<RDF:Description id="<?php echo $row->lehreinheit_id.'/'.$row->mitarbeiter_uid; ?>" about="<?php echo $rdf_url.'/'.$row->lehreinheit_id.'/'.$row->mitarbeiter_uid; ?>" >
|
||||
<LEHREINHEITMITARBEITER:lehreinheit_id><![CDATA[<?php echo $row->lehreinheit_id ?>]]></LEHREINHEITMITARBEITER:lehreinheit_id>
|
||||
<LEHREINHEITMITARBEITER:mitarbeiter_uid><![CDATA[<?php echo $row->mitarbeiter_uid ?>]]></LEHREINHEITMITARBEITER:mitarbeiter_uid>
|
||||
<LEHREINHEITMITARBEITER:vorname><![CDATA[<?php echo $vorname ?>]]></LEHREINHEITMITARBEITER:vorname>
|
||||
<LEHREINHEITMITARBEITER:nachname><![CDATA[<?php echo $nachname ?>]]></LEHREINHEITMITARBEITER:nachname>
|
||||
<LEHREINHEITMITARBEITER:lehrfunktion_kurzbz><![CDATA[<?php echo $row->lehrfunktion_kurzbz; ?>]]></LEHREINHEITMITARBEITER:lehrfunktion_kurzbz>
|
||||
<LEHREINHEITMITARBEITER:semesterstunden><![CDATA[<?php echo $row->semesterstunden ?>]]></LEHREINHEITMITARBEITER:semesterstunden>
|
||||
<LEHREINHEITMITARBEITER:planstunden><![CDATA[<?php echo $row->planstunden ?>]]></LEHREINHEITMITARBEITER:planstunden>
|
||||
<LEHREINHEITMITARBEITER:stundensatz><![CDATA[<?php echo $row->stundensatz ?>]]></LEHREINHEITMITARBEITER:stundensatz>
|
||||
<LEHREINHEITMITARBEITER:faktor><![CDATA[<?php echo $row->faktor ?>]]></LEHREINHEITMITARBEITER:faktor>
|
||||
<LEHREINHEITMITARBEITER:anmerkung><![CDATA[<?php echo $row->anmerkung ?>]]></LEHREINHEITMITARBEITER:anmerkung>
|
||||
<LEHREINHEITMITARBEITER:bismelden><![CDATA[<?php echo ($row->bismelden?'Ja':'Nein') ?>]]></LEHREINHEITMITARBEITER:bismelden>
|
||||
</RDF:Description>
|
||||
</RDF:li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</RDF:Seq>
|
||||
|
||||
</RDF:RDF>
|
||||
+47
-31
@@ -1,9 +1,23 @@
|
||||
<?php
|
||||
/*
|
||||
* Created on 02.12.2004
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* To change the template for this generated file go to
|
||||
* Window - Preferences - PHPeclipse - PHP - Code Templates
|
||||
* 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: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
// header für no cache
|
||||
header("Cache-Control: no-cache");
|
||||
@@ -15,21 +29,28 @@ header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
// xml
|
||||
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
|
||||
// DAO
|
||||
include('../vilesci/config.inc.php');
|
||||
include_once('../include/lehrfach.class.php');
|
||||
require_once('../vilesci/config.inc.php');
|
||||
require_once('../include/lehrfach.class.php');
|
||||
|
||||
// Datenbank Verbindung
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
|
||||
|
||||
if(isset($_GET['studiengang_kz']))
|
||||
$stg = $_GET['studiengang_kz'];
|
||||
else
|
||||
$stg = '';
|
||||
|
||||
if(isset($_GET['semester']))
|
||||
$sem = $_GET['semester'];
|
||||
else
|
||||
$sem = '';
|
||||
|
||||
// Einheiten holen
|
||||
$lehrfachDAO=new lehrfach($conn);
|
||||
$lehrfachDAO->getAll();
|
||||
|
||||
|
||||
|
||||
$rdf_url='http://www.technikum-wien.at/tempus/lehrfach';
|
||||
$lehrfachDAO->getTab($stg, $sem);
|
||||
|
||||
$rdf_url='http://www.technikum-wien.at/lehrfach';
|
||||
?>
|
||||
|
||||
<RDF:RDF
|
||||
@@ -37,33 +58,28 @@ $rdf_url='http://www.technikum-wien.at/tempus/lehrfach';
|
||||
xmlns:LEHRFACH="<?php echo $rdf_url; ?>/rdf#"
|
||||
>
|
||||
|
||||
|
||||
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
|
||||
|
||||
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
|
||||
|
||||
<?php
|
||||
foreach ($lehrfachDAO->lehrfach as $lehrfach)
|
||||
foreach ($lehrfachDAO->lehrfaecher as $lehrfach)
|
||||
{
|
||||
?>
|
||||
<RDF:li>
|
||||
<RDF:Description id="<?php echo $lehrfach->lehrfach_nr; ?>" about="<?php echo $rdf_url.'/'.$lehrfach->lehrfach_nr; ?>" >
|
||||
<LEHRFACH:lehrfach_nr><?php echo $lehrfach->lehrfach_nr ?></LEHRFACH:lehrfach_nr>
|
||||
<LEHRFACH:bezeichnung><![CDATA[ <?php echo $lehrfach->bezeichnung ?> ]]></LEHRFACH:bezeichnung>
|
||||
<LEHRFACH:fachbereich_id><?php echo $lehrfach->fachbereich_id ?></LEHRFACH:fachbereich_id>
|
||||
<LEHRFACH:kurzbz><?php echo $lehrfach->kurzbz ?></LEHRFACH:kurzbz>
|
||||
<LEHRFACH:lehrelink><?php echo $lehrfach->lehrelink ?></LEHRFACH:lehrelink>
|
||||
<LEHRFACH:farbe><?php echo $lehrfach->farbe ?></LEHRFACH:farbe>
|
||||
<LEHRFACH:lehrform_kurzbz><?php echo $lehrfach->lehrform_kurzbz ?></LEHRFACH:lehrform_kurzbz>
|
||||
<LEHRFACH:aktiv><?php echo $lehrfach->aktiv ?></LEHRFACH:aktiv>
|
||||
<LEHRFACH:studiengang_kz><?php echo $lehrfach->studiengang_kz ?></LEHRFACH:studiengang_kz>
|
||||
<LEHRFACH:ects><?php echo $lehrfach->ects ?></LEHRFACH:ects>
|
||||
</RDF:Description>
|
||||
<RDF:li>
|
||||
<RDF:Description id="<?php echo $lehrfach->lehrfach_id; ?>" about="<?php echo $rdf_url.'/'.$lehrfach->lehrfach_id; ?>" >
|
||||
<LEHRFACH:lehrfach_id><?php echo $lehrfach->lehrfach_id ?></LEHRFACH:lehrfach_id>
|
||||
<LEHRFACH:studiengang_kz><?php echo $lehrfach->studiengang_kz ?></LEHRFACH:studiengang_kz>
|
||||
<LEHRFACH:fachbereich_kurzbz><![CDATA[<?php echo $lehrfach->fachbereich_kurzbz ?>]]></LEHRFACH:fachbereich_kurzbz>
|
||||
<LEHRFACH:kurzbz><![CDATA[<?php echo $lehrfach->kurzbz ?>]]></LEHRFACH:kurzbz>
|
||||
<LEHRFACH:bezeichnung><![CDATA[<?php echo $lehrfach->bezeichnung ?>]]></LEHRFACH:bezeichnung>
|
||||
<LEHRFACH:farbe><![CDATA[<?php echo $lehrfach->farbe ?>]]></LEHRFACH:farbe>
|
||||
<LEHRFACH:aktiv><?php echo $lehrfach->aktiv ?></LEHRFACH:aktiv>
|
||||
<LEHRFACH:semester><?php echo $lehrfach->semester ?></LEHRFACH:semester>
|
||||
<LEHRFACH:sprache><?php echo $lehrfach->sprache ?></LEHRFACH:sprache>
|
||||
</RDF:Description>
|
||||
</RDF:li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</RDF:Seq>
|
||||
|
||||
</RDF:Seq>
|
||||
|
||||
</RDF:RDF>
|
||||
+13
-20
@@ -15,8 +15,8 @@ header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
// xml
|
||||
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>';
|
||||
// DAO
|
||||
include('../vilesci/config.inc.php');
|
||||
include_once('../include/studiensemester.class.php');
|
||||
require_once('../vilesci/config.inc.php');
|
||||
require_once('../include/studiensemester.class.php');
|
||||
|
||||
// Datenbank Verbindung
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
@@ -24,9 +24,9 @@ if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
|
||||
// studiensemester holen
|
||||
$studiensemesterDAO=new studiensemester($conn);
|
||||
$studiensemesterAll=$studiensemesterDAO->getAll();
|
||||
$studiensemesterDAO->getAll();
|
||||
|
||||
$rdf_url='http://www.technikum-wien.at/tempus/studiensemester';
|
||||
$rdf_url='http://www.technikum-wien.at/studiensemester';
|
||||
|
||||
?>
|
||||
|
||||
@@ -34,27 +34,20 @@ $rdf_url='http://www.technikum-wien.at/tempus/studiensemester';
|
||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:STUDIENSEMESTER="<?php echo $rdf_url; ?>/rdf#"
|
||||
>
|
||||
|
||||
|
||||
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
|
||||
|
||||
|
||||
<RDF:Seq about="<?php echo $rdf_url ?>/liste">
|
||||
<?php
|
||||
foreach ($studiensemesterAll as $ss)
|
||||
foreach ($studiensemesterDAO->studiensemester as $ss)
|
||||
{
|
||||
?>
|
||||
<RDF:li>
|
||||
<RDF:Description id="<?php echo $ss->kurzbz; ?>" about="<?php echo $rdf_url.'/'.$ss->kurzbz; ?>" >
|
||||
<STUDIENSEMESTER:kurzbz><?php echo $ss->kurzbz ?></STUDIENSEMESTER:kurzbz>
|
||||
<STUDIENSEMESTER:start><![CDATA[ <?php echo $ss->start ?> ]]></STUDIENSEMESTER:start>
|
||||
<STUDIENSEMESTER:ende><?php echo $ss->ende ?></STUDIENSEMESTER:ende>
|
||||
</RDF:Description>
|
||||
<RDF:li>
|
||||
<RDF:Description id="<?php echo $ss->studiensemester_kurzbz; ?>" about="<?php echo $rdf_url.'/'.$ss->studiensemester_kurzbz; ?>" >
|
||||
<STUDIENSEMESTER:kurzbz><![CDATA[<?php echo $ss->studiensemester_kurzbz ?>]]></STUDIENSEMESTER:kurzbz>
|
||||
<STUDIENSEMESTER:start><![CDATA[<?php echo $ss->start ?>]]></STUDIENSEMESTER:start>
|
||||
<STUDIENSEMESTER:ende><![CDATA[<?php echo $ss->ende ?>]]></STUDIENSEMESTER:ende>
|
||||
</RDF:Description>
|
||||
</RDF:li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</RDF:Seq>
|
||||
|
||||
|
||||
</RDF:Seq>
|
||||
</RDF:RDF>
|
||||
|
||||
Reference in New Issue
Block a user