diff --git a/content/lfvt.css b/content/lfvt.css
index 4748b6a70..d067d2d10 100644
--- a/content/lfvt.css
+++ b/content/lfvt.css
@@ -42,6 +42,14 @@ customMenulist.einheit {
-moz-binding: url('lfvtbinding.xml.php#einheitenListe');
}
+customMenulist.sprache {
+ -moz-binding: url('lfvtbinding.xml.php#spracheListe');
+}
+
+customMenulist.lehrveranstaltung {
+ -moz-binding: url('lfvtbinding.xml.php#lehrveranstaltungenListe');
+}
+
customMenulist.lehrfach {
-moz-binding: url('lfvtbinding.xml.php#lehrfaecherListe');
}
diff --git a/content/lfvtbinding.xml.php b/content/lfvtbinding.xml.php
index 3303cd960..5d724bdb6 100644
--- a/content/lfvtbinding.xml.php
+++ b/content/lfvtbinding.xml.php
@@ -136,7 +136,7 @@
-
+
-
-
+
+
-
-
+
+
+
-
-
-
+
+
+
+
+
-
+
-
+
@@ -197,8 +200,8 @@
-
-
+
+
@@ -221,11 +224,7 @@
-->
-
-
-
-
-
+
@@ -235,17 +234,17 @@
this.gridLFVTLVNR=document.getElementById('gridLFVTLVNR');
this.gridLFVTUNR=document.getElementById('gridLFVTUNR');
- this.gridLFVTEinheit=document.getElementById('gridLFVTEinheit');
- this.gridLFVTLektor=document.getElementById('gridLFVTLektor');
+ this.gridLFVTSprache=document.getElementById('gridLFVTSprache');
+ this.gridLFVTLehrveranstaltung=document.getElementById('gridLFVTLehrveranstaltung');
this.gridLFVTLehrfach=document.getElementById('gridLFVTLehrfach');
- this.gridLFVTStudiengang=document.getElementById('gridLFVTStudiengang');
+
this.gridLFVTRaumtyp=document.getElementById('gridLFVTRaumtyp');
this.gridLFVTRaumtypAlt=document.getElementById('gridLFVTRaumtypAlt');
- this.gridLFVTSemesterstunden=document.getElementById('gridLFVTSemesterstunden');
+ this.gridLFVTLehre=document.getElementById('gridLFVTLehre');
this.gridLFVTStundenblockung=document.getElementById('gridLFVTStundenblockung');
this.gridLFVTWochenrythmus=document.getElementById('gridLFVTWochenrythmus');
this.gridLFVTStart_kw=document.getElementById('gridLFVTStart_kw');
@@ -257,17 +256,17 @@
null
null
- null
- null
+ null
+ null
null
- null
+
null
null
- null
+ null
null
null
null
@@ -311,18 +310,18 @@
-
+
//alert('property-setter: val='+val);
if (this.currentLVA!=null)
- this.currentLVA.einheit=val;
+ this.currentLVA.sprache=val;
//this.showCurrentLVA();
return val;
-
+
//alert('property-setter: val='+val);
if (this.currentLVA!=null)
@@ -344,7 +343,7 @@
-
+
-
+
@@ -387,7 +386,7 @@
return val;
-
+
+
- if (isNaN(val)) {
+ /*if (isNaN(val)) {
alert('Semesterstunden muss eine Zahl sein!');
if (this.currentLVA!=null)
this.currentLVA.semesterstunden=null;
} else {
if (this.currentLVA!=null)
this.currentLVA.semesterstunden=val;
- }
+ }*/
return val;
@@ -516,20 +515,22 @@
} else {
req.add('do','update');
}
- req.add('lehrveranstaltung_id',this.currentLVA.id);
+ req.add('lehreinheit_id',this.currentLVA.lehreinheit_id);
if (this.currentLVA.unr!=null) req.add('unr',this.currentLVA.unr);
if (this.currentLVA.lvnr!=null) req.add('lvnr',this.currentLVA.lvnr);
- if (this.currentLVA.einheit!=null) req.add('einheit_kurzbz',this.currentLVA.einheit);
- if (this.currentLVA.lektor!=null) req.add('lektor',this.currentLVA.lektor);
+ if (this.currentLVA.sprache!=null) req.add('sprache',this.currentLVA.sprache);
+ if (this.currentLVA.lehrveranstaltung!=null) req.add('lehrveranstaltung',this.currentLVA.lehrveranstaltung);
if (this.currentLVA.lehrfach!=null) req.add('lehrfach_nr',this.currentLVA.lehrfach);
+ /*
if (this.currentLVA.studiengang!=null) req.add('studiengang_kz',this.currentLVA.studiengang);
if (this.currentLVA.fachbereich!=null) req.add('fachbereich_id',this.currentLVA.fachbereich);
if (this.currentLVA.semester!=null) req.add('semester',this.currentLVA.semester);
if (this.currentLVA.verband!=null) req.add('verband',this.currentLVA.verband);
if (this.currentLVA.gruppe!=null) req.add('gruppe',this.currentLVA.gruppe);
+ */
if (this.currentLVA.raumtyp!=null) req.add('raumtyp',this.currentLVA.raumtyp);
if (this.currentLVA.raumtyp_alt!=null) req.add('raumtypalternativ',this.currentLVA.raumtyp_alt);
- if (this.currentLVA.semesterstunden!=null) req.add('semesterstunden',this.currentLVA.semesterstunden);
+ if (this.currentLVA.lehre!=null) req.add('lehre',this.currentLVA.lehre);
if (this.currentLVA.stundenblockung!=null) req.add('stundenblockung',this.currentLVA.stundenblockung);
if (this.currentLVA.wochenrythmus!=null) req.add('wochenrythmus',this.currentLVA.wochenrythmus);
if (this.currentLVA.start_kw!=null) req.add('start_kw',this.currentLVA.start_kw);
@@ -555,17 +556,19 @@
@@ -729,32 +717,30 @@
-
-
-
+ -->
-
+
-
-
@@ -770,13 +756,13 @@
-
+
-
-
@@ -792,12 +778,12 @@
+ ref="http://www.technikum-wien.at/ort/alle-orte" >
-
-
@@ -812,17 +798,17 @@
-
-
+
-
+ -->
@@ -855,10 +841,32 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -879,23 +887,43 @@
+-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ -->
@@ -911,12 +939,11 @@
-
-
-
@@ -940,7 +967,7 @@
-
-
-
+ sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#kurzbz"/>
-
-
-
+ sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#bezeichnung"/>
-
+ sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#sprache" />
-
+ sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#ects" />
-
+ sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#semesterstunden"/>
-
+ sort="rdf:http://www.technikum-wien.at/tempus/lva/rdf#lehre"/>
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
diff --git a/content/tempusoverlay.js.php b/content/tempusoverlay.js.php
index 54b79c500..c8f0ec4e7 100644
--- a/content/tempusoverlay.js.php
+++ b/content/tempusoverlay.js.php
@@ -72,9 +72,9 @@ function onVerbandSelect()
attribute="rdf/student.rdf.php?"+"stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"&gruppe="+gruppe;
treeStudenten.setAttribute('datasources',attribute);
- /*
+
// LFVT
- var req = new phpRequest('lfvt.rdf.php','pam','pam');
+ var req = new phpRequest('../rdf/lehrveranstaltung_einheiten.rdf.php','pam','pam');
req.add('stg_kz',stg_kz);
req.add('sem',sem);
req.add('ver',ver);
@@ -112,7 +112,7 @@ function onVerbandSelect()
//treeLFVT.setAttribute('datasources','lfvt.rdf.php?'+"stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"&gruppe="+gruppe);
//alert('lfvt.rdf.php?'+"stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"&gruppe="+gruppe);
- */
+
}
function onOrtSelect()
diff --git a/content/tempusoverlay.xul.php b/content/tempusoverlay.xul.php
index 99913a65b..38508c861 100644
--- a/content/tempusoverlay.xul.php
+++ b/content/tempusoverlay.xul.php
@@ -143,8 +143,8 @@ echo '';
-
+
+
diff --git a/include/lehreinheit.class.php b/include/lehreinheit.class.php
index f72d1eedc..b144ce669 100644
--- a/include/lehreinheit.class.php
+++ b/include/lehreinheit.class.php
@@ -200,7 +200,7 @@ class lehreinheit
$qry = "SELECT * FROM lehre.tbl_lehreinheit WHERE lehrveranstaltung_id='$lehrveranstaltung_id' AND studiensemester_kurzbz='$studiensemester_kurzbz'";
if($result = pg_query($this->conn, $qry))
- {
+ {
while($row = pg_fetch_object($result))
{
$le_obj = new lehreinheit($this->conn);
@@ -228,6 +228,7 @@ class lehreinheit
$this->lehreinheiten[] = $le_obj;
}
+ return true;
}
else
{
diff --git a/include/lehrveranstaltung.class.php b/include/lehrveranstaltung.class.php
index 9a19d9f7b..791efeef9 100644
--- a/include/lehrveranstaltung.class.php
+++ b/include/lehrveranstaltung.class.php
@@ -44,6 +44,7 @@ class lehrveranstaltung
var $planfaktor; //@var numeric(3,2)
var $planlektoren; //@var integer
var $planpersonalkosten; //@var numeric(7,2)
+ var $plankostenprolektor; //@var numeric(6,2)
var $updateamum; //@var timestamp
var $updatevon; //@var string
var $sprache; //@var varchar(16)
@@ -99,6 +100,7 @@ class lehrveranstaltung
$this->planfaktor=$row->planfaktor;
$this->planlektoren=$row->planlektoren;
$this->planpersonalkosten=$row->planpersonalkosten;
+ $this->plankostenprolektor=$row->plankostenprolektor;
$this->updateamum=$row->updateamum;
$this->updatevon=$row->updatevon;
$this->sprache=$row->sprache;
@@ -142,6 +144,7 @@ class lehrveranstaltung
$lv_obj->planfaktor=$row->planfaktor;
$lv_obj->planlektoren=$row->planlektoren;
$lv_obj->planpersonalkosten=$row->planpersonalkosten;
+ $lv_obj->plankostenprolektor=$row->plankostenprolektor;
$lv_obj->updateamum=$row->updateamum;
$lv_obj->updatevon=$row->updatevon;
$lv_obj->sprache=$row->sprache;
@@ -218,6 +221,7 @@ class lehrveranstaltung
$lv_obj->planfaktor=$row->planfaktor;
$lv_obj->planlektoren=$row->planlektoren;
$lv_obj->planpersonalkosten=$row->planpersonalkosten;
+ $lv_obj->plankostenprolektor=$row->plankostenprolektor;
$lv_obj->updateamum=$row->updateamum;
$lv_obj->updatevon=$row->updatevon;
$lv_obj->sprache=$row->sprache;
@@ -316,7 +320,7 @@ class lehrveranstaltung
//Neuen Datensatz anlegen
$qry = 'BEGIN; INSERT INTO lehre.tbl_lehrveranstaltung (studiengang_kz, bezeichnung, kurzbz,
semester, ects, semesterstunden, anmerkung, lehre, lehreverzeichnis, aktiv, ext_id, insertamum,
- insertvon, planfaktor, planlektoren, planpersonalkosten, updateamum, updatevon, sprache) VALUES ('.
+ insertvon, planfaktor, planlektoren, planpersonalkosten, plankostenprolektor, updateamum, updatevon, sprache) VALUES ('.
$this->addslashes($this->studiengang_kz).', '.
$this->addslashes($this->bezeichnung).', '.
$this->addslashes($this->kurzbz).', '.
@@ -333,6 +337,7 @@ class lehrveranstaltung
$this->addslashes($this->planfaktor).', '.
$this->addslashes($this->planlektoren).', '.
$this->addslashes($this->planpersonalkosten).', '.
+ $this->addslashes($this->plankostenprolektor).', '.
$this->addslashes($this->updateamum).', '.
$this->addslashes($this->updatevon).','.
$this->addslashes($this->sprache).');';
@@ -366,6 +371,7 @@ class lehrveranstaltung
'planfaktor='.$this->addslashes($this->planfaktor) .', '.
'planlektoren='.$this->addslashes($this->planlektoren) .', '.
'planpersonalkosten='.$this->addslashes($this->planpersonalkosten) .', '.
+ 'plankostenprolektor='.$this->addslashes($this->plankostenprolektor) .', '.
'updateamum='.$this->addslashes($this->updateamum) .','.
'updatevon='.$this->addslashes($this->updatevon) .','.
'sprache='.$this->addslashes($this->sprache).' '.
diff --git a/include/raumtyp.class.php b/include/raumtyp.class.php
index e1f0d11ca..11a289e2c 100644
--- a/include/raumtyp.class.php
+++ b/include/raumtyp.class.php
@@ -64,7 +64,7 @@ class raumtyp
while($row = pg_fetch_object($res))
{
- $raumtyp_obj = new ort($this->conn);
+ $raumtyp_obj = new raumtyp($this->conn);
$raumtyp_obj->beschreibung = $row->beschreibung;
$raumtyp_obj->raumtyp_kurzbz = $row->raumtyp_kurzbz;
diff --git a/rdf/lehrfach.rdf.php b/rdf/lehrfach.rdf.php
index f2bb9dbe6..8ff9e753d 100644
--- a/rdf/lehrfach.rdf.php
+++ b/rdf/lehrfach.rdf.php
@@ -24,7 +24,7 @@ if (!$conn = @pg_pconnect(CONN_STRING))
// Einheiten holen
$lehrfachDAO=new lehrfach($conn);
-$lehrfaecher=$lehrfachDAO->getAll();
+$lehrfachDAO->getAll();
@@ -42,7 +42,7 @@ $rdf_url='http://www.technikum-wien.at/tempus/lehrfach';
lehrfach as $lehrfach)
{
?>
diff --git a/rdf/lehrform.rdf.php b/rdf/lehrform.rdf.php
index f47806e3d..227d086c0 100644
--- a/rdf/lehrform.rdf.php
+++ b/rdf/lehrform.rdf.php
@@ -22,7 +22,7 @@ if (!$conn = @pg_pconnect(CONN_STRING))
// Lehrformen holen
$lehrformDAO=new lehrform($conn);
-$lehrform=$lehrformDAO->getAll();
+$lehrformDAO->getAll();
$rdf_url='http://www.technikum-wien.at/lehrform';
@@ -36,20 +36,19 @@ $rdf_url='http://www.technikum-wien.at/lehrform';
lehrform as $lf)
{
- foreach ($lehrform as $lf)
- {
?>
-
- kurzbz ?>
+
+ lehrform_kurzbz ?>
bezeichnung ?>
\ No newline at end of file
diff --git a/rdf/lehrveranstaltung_einheiten.rdf.php b/rdf/lehrveranstaltung_einheiten.rdf.php
new file mode 100644
index 000000000..6b4b9fe24
--- /dev/null
+++ b/rdf/lehrveranstaltung_einheiten.rdf.php
@@ -0,0 +1,184 @@
+';
+// DAO
+require_once('../vilesci/config.inc.php');
+require_once('../include/lehrveranstaltung.class.php');
+require_once('../include/lehreinheit.class.php');
+require_once('../include/functions.inc.php');
+
+// Datenbank Verbindung
+if (!$conn = @pg_pconnect(CONN_STRING))
+ $error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
+
+$user = get_uid();
+/*
+// test
+$einheit_kurzbz='';
+$grp='1';
+$ver='A';
+$sem=6;
+$stg_kz=257;
+
+*/
+$hier='';
+$einheit_kurzbz=(isset($_GET['einheit'])?$_GET['einheit']:'');
+$grp=(isset($_GET['grp'])?$_GET['grp']:'');
+$ver=(isset($_GET['ver'])?$_GET['ver']:'');
+$sem=(isset($_GET['sem'])?$_GET['sem']:'');
+$stg_kz=(isset($_GET['stg_kz'])?$_GET['stg_kz']:'');
+$lektor=(isset($_GET['lektor'])?$_GET['lektor']:'');
+
+
+loadVariables($conn, $user);
+// LVAs holen
+$lvaDAO=new lehrveranstaltung($conn);
+$lvaDAO->load_lva($stg_kz, $sem);
+
+$rdf_url='http://www.technikum-wien.at/tempus/lva';
+
+?>
+
+
+
+lehrveranstaltungen as $row_lva)
+ {
+ //Lehrveranstaltung
+ echo "
+ lehrveranstaltung_id."\" about=\"".$rdf_url.'/'.$row_lva->lehrveranstaltung_id."\" >
+ ".$row_lva->lehrveranstaltung_id."
+ kurzbz."]]>
+ bezeichnung)."]]>
+ ".$row_lva->studiengang_kz."
+ ".$row_lva->semester."
+ sprache."]]>
+ ".$row_lva->ects."
+ ".$row_lva->semesterstunden."
+ anmerkung."]]>
+ ".($row_lva->lehre?'Ja':'Nein')."
+ lehreverzeichnis."]]>
+ ".($row_lva->aktiv?'Ja':'Nein')."
+ ".$row_lva->planfaktor."
+ ".utf8_encode($row_lva->planlektoren)."
+ ".$row_lva->planpersonalkosten."
+ ".$row_lva->plankostenprolektor."
+
+
+
+
+
+
+
+
+
+
+ ";
+
+ $hier.="
+
+ lehrveranstaltung_id."\" >";
+
+ //zugehoerige LE holen
+ $le = new lehreinheit($conn);
+
+ if(!$le->load_lehreinheiten($row_lva->lehrveranstaltung_id, $semester_aktuell))
+ echo "Fehler: $le->errormsg";
+
+ foreach ($le->lehreinheiten as $row_le)
+ {
+ //Lehrfach holen
+ $qry = "SELECT kurzbz, bezeichnung FROM lehre.tbl_lehrfach WHERE lehrfach_id='$row_le->lehrfach_id'";
+ $result_lf = pg_query($conn, $qry);
+ $row_lf = pg_fetch_object($result_lf);
+
+ //Gruppen holen
+ $qry = "SELECT upper(tbl_studiengang.typ::varchar(1) || tbl_studiengang.kurzbz) as kuerzel, * FROM lehre.tbl_lehreinheitgruppe LEFT JOIN public.tbl_studiengang USING(studiengang_kz) WHERE lehreinheit_id='$row_le->lehreinheit_id'";
+ $result_grp = pg_query($conn, $qry);
+ $grp='';
+ while($row_grp=pg_fetch_object($result_grp))
+ {
+ if($row_grp->gruppe_kurzbz=='')
+ $grp.=' '.$row_grp->kuerzel.trim($row_grp->semester).trim($row_grp->verband).trim($row_grp->gruppe);
+ else
+ $grp.=' '.$row_grp->gruppe_kurzbz;
+ }
+
+ //Lektoren holen
+ $qry = "SELECT * FROM lehre.tbl_lehreinheitmitarbeiter JOIN public.tbl_mitarbeiter USING(mitarbeiter_uid) WHERE lehreinheit_id='$row_le->lehreinheit_id'";
+ $result_lkt = pg_query($conn, $qry);
+ $lkt='';
+ while($row_lkt = pg_fetch_object($result_lkt))
+ $lkt.=$row_lkt->kurzbz;
+
+ echo "
+ lehreinheit_id."\" about=\"".$rdf_url.'/'.$row_lva->lehrveranstaltung_id."/$row_le->lehreinheit_id\" >
+ ".$row_lva->lehrveranstaltung_id."
+ kurzbz."]]>
+ bezeichnung)."]]>
+
+
+ sprache."]]>
+
+
+
+ ".($row_le->lehre?'Ja':'Nein')."
+
+
+
+
+
+
+
+ $row_le->lehreinheit_id
+ $row_le->studiensemester_kurzbz
+ $row_le->lehrfach_id
+ $row_le->lehrform_kurzbz
+ $row_le->stundenblockung
+ $row_le->wochenrythmus
+ $row_le->start_kw
+ $row_le->raumtyp
+ $row_le->raumtypalternativ
+ anmerkung]]>
+ $row_le->unr
+ $row_le->lvnr
+
+
+ ";
+
+ $hier.="
+ lehrveranstaltung_id.'/'.$row_le->lehreinheit_id."\" />";
+ }
+ //lehrveranstaltung_id."\" />
+ $hier.="
+
+ ";
+
+ }
+
+ $hier="
+ ".$hier."
+ ";
+
+ echo $hier;
+?>
+
+
+
diff --git a/rdf/raumtyp.rdf.php b/rdf/raumtyp.rdf.php
index 23d735f41..e6f9299f4 100644
--- a/rdf/raumtyp.rdf.php
+++ b/rdf/raumtyp.rdf.php
@@ -27,7 +27,7 @@ if (!$conn = @pg_pconnect(CONN_STRING))
$raumtypDAO=new raumtyp($conn);
$raumtypen=$raumtypDAO->getAll();
-$rdf_url='http://www.technikum-wien.at/tempus/raumtyp';
+$rdf_url='http://www.technikum-wien.at/raumtyp';
?>
@@ -39,21 +39,19 @@ $rdf_url='http://www.technikum-wien.at/tempus/raumtyp';
result as $rt)
+{
?>
-
- kurzbz ?>
+
+ raumtyp_kurzbz ?>
beschreibung ?>
diff --git a/rdf/sprache.rdf.php b/rdf/sprache.rdf.php
new file mode 100644
index 000000000..09f476a0f
--- /dev/null
+++ b/rdf/sprache.rdf.php
@@ -0,0 +1,51 @@
+';
+// DAO
+include('../vilesci/config.inc.php');
+
+// Datenbank Verbindung
+if (!$conn = @pg_pconnect(CONN_STRING))
+ $error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
+
+// sprachen holen
+$qry = "SELECT * FROM public.tbl_sprache order by sprache";
+$result = pg_query($conn, $qry);
+$rdf_url='http://www.technikum-wien.at/sprachen';
+
+?>
+
+
+
+
+
+
+
+
+ sprache ?>]]>
+
+
+
+
+
\ No newline at end of file