mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
zeigt LVs des Studienplans statt des Studiengangs bei Anrechnungen
This commit is contained in:
@@ -4529,9 +4529,13 @@ function StudentAnrechnungNeu()
|
||||
var col = tree.columns ? tree.columns["student-treecol-studiengang_kz"] : "student-treecol-studiengang_kz";
|
||||
var stg_kz = tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
// Prestudent-ID ermitteln
|
||||
var col = tree.columns ? tree.columns["student-treecol-prestudent_id"] : "student-treecol-prestudent_id";
|
||||
var prestudentId = tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
//Lehrveranstaltung Drop Down laden
|
||||
var LVDropDown = document.getElementById('student-anrechnungen-menulist-lehrveranstaltung');
|
||||
url="<?php echo APP_ROOT;?>rdf/lehrveranstaltung.rdf.php?stg_kz="+stg_kz+"&"+gettimestamp();
|
||||
url="<?php echo APP_ROOT;?>rdf/lehrveranstaltung_studienplan.rdf.php?&prestudent="+prestudentId+"&"+gettimestamp();
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = LVDropDown.database.GetDataSources();
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
<?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>.
|
||||
*/
|
||||
/*
|
||||
* Created on 02.12.2004
|
||||
*
|
||||
*/
|
||||
// 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/xhtml+xml");
|
||||
// xml
|
||||
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
|
||||
// DAO
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/lehrveranstaltung.class.php');
|
||||
require_once('../include/prestudent.class.php');
|
||||
|
||||
$uid=get_uid();
|
||||
|
||||
$error_msg='';
|
||||
$db = new basis_db();
|
||||
|
||||
$error_msg.=loadVariables($uid);
|
||||
|
||||
if (isset($_GET['prestudent']))
|
||||
$prestudent_id = $_GET['prestudent'];
|
||||
else
|
||||
die('prestudent is not set!');
|
||||
|
||||
if (isset($semester_aktuell))
|
||||
$studiensemester=$semester_aktuell;
|
||||
else
|
||||
die('studiensemester is not set!');
|
||||
|
||||
if (isset($_GET['stg_kz']))
|
||||
$stg_kz=$_GET['stg_kz'];
|
||||
else
|
||||
$stg_kz=null;
|
||||
if (isset($_GET['sem']) && is_numeric($_GET['sem']))
|
||||
$sem=$_GET['sem'];
|
||||
else
|
||||
$sem=null;
|
||||
if(isset($_GET['uid']))
|
||||
$student_uid = $_GET['uid'];
|
||||
else
|
||||
$student_uid=null;
|
||||
|
||||
if(isset($_GET['lehrveranstaltung_kompatibel_id']))
|
||||
{
|
||||
$lehrveranstaltung_kompatibel_id = $_GET['lehrveranstaltung_kompatibel_id'];
|
||||
isset($_GET['self']) ? $self = $_GET['self'] : $self = 1;
|
||||
}
|
||||
else
|
||||
$lehrveranstaltung_kompatibel_id=null;
|
||||
|
||||
$lehrveranstaltung=new lehrveranstaltung();
|
||||
|
||||
if($student_uid!='')
|
||||
$lehrveranstaltung->load_lva_student($student_uid);
|
||||
elseif($lehrveranstaltung_kompatibel_id!='')
|
||||
{
|
||||
// Laedt die Lehrveranstaltung und alle die dazu kompatibel sind
|
||||
$lvid_arr = $lehrveranstaltung->loadLVkompatibel($lehrveranstaltung_kompatibel_id);
|
||||
if($self == 1)
|
||||
$lvid_arr[]=$lehrveranstaltung_kompatibel_id;
|
||||
|
||||
if(isset($_GET['lehrfach_id']))
|
||||
$lvid_arr[]=$_GET['lehrfach_id'];
|
||||
$lehrveranstaltung->loadArray($lvid_arr);
|
||||
}
|
||||
else
|
||||
{
|
||||
$prestudent = new Prestudent();
|
||||
$prestudent->getLastStatus($prestudent_id);
|
||||
|
||||
$lehrveranstaltung->loadLehrveranstaltungStudienplan($prestudent->studienplan_id, $sem);
|
||||
}
|
||||
|
||||
$rdf_url='http://www.technikum-wien.at/lehrveranstaltung/';
|
||||
|
||||
echo '
|
||||
<RDF:RDF
|
||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:LVA="'.$rdf_url.'rdf#">
|
||||
|
||||
<RDF:Seq about="'.$rdf_url.'liste">
|
||||
';
|
||||
|
||||
if(isset($_GET['optional']) && $_GET['optional']=='true')
|
||||
{
|
||||
echo'<RDF:li>
|
||||
<RDF:Description id="" about="">
|
||||
<LVA:lehrveranstaltung_id><![CDATA[]]></LVA:lehrveranstaltung_id>
|
||||
<LVA:kurzbz><![CDATA[]]></LVA:kurzbz>
|
||||
<LVA:bezeichnung><![CDATA[-- keine Auswahl --]]></LVA:bezeichnung>
|
||||
<LVA:bezeichnung_english><![CDATA[-- keine Auswahl --]]></LVA:bezeichnung_english>
|
||||
<LVA:studiengang_kz><![CDATA[]]></LVA:studiengang_kz>
|
||||
<LVA:semester><![CDATA[0]]></LVA:semester>
|
||||
<LVA:sprache><![CDATA[]]></LVA:sprache>
|
||||
<LVA:ects><![CDATA[]]></LVA:ects>
|
||||
<LVA:semesterstunden><![CDATA[]]></LVA:semesterstunden>
|
||||
<LVA:anmerkung><![CDATA[]]></LVA:anmerkung>
|
||||
<LVA:lehre><![CDATA[]]></LVA:lehre>
|
||||
<LVA:lehreverzeichnis><![CDATA[]]></LVA:lehreverzeichnis>
|
||||
<LVA:aktiv><![CDATA[]]></LVA:aktiv>
|
||||
<LVA:planfaktor><![CDATA[]]></LVA:planfaktor>
|
||||
<LVA:planlektoren><![CDATA[]]></LVA:planlektoren>
|
||||
<LVA:planpersonalkosten><![CDATA[]]></LVA:planpersonalkosten>
|
||||
<LVA:plankostenprolektor><![CDATA[]]></LVA:plankostenprolektor>
|
||||
<LVA:lehrform_kurzbz><![CDATA[]]></LVA:lehrform_kurzbz>
|
||||
<LVA:orgform_kurzbz><![CDATA[]]></LVA:orgform_kurzbz>
|
||||
</RDF:Description>
|
||||
</RDF:li>';
|
||||
}
|
||||
|
||||
foreach ($lehrveranstaltung->lehrveranstaltungen as $row)
|
||||
{
|
||||
if(isset($_GET['projektarbeit']) && $row->projektarbeit==false)
|
||||
{
|
||||
if(isset($_GET['withlv']) && $_GET['withlv']==$row->lehrveranstaltung_id)
|
||||
{
|
||||
//Diese LV soll zusaetzlich in der liste aufscheinen unabhaengig ob
|
||||
//Projektarbeit gesetzt ist oder nicht
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
if(isset($_GET['genehmigt']))
|
||||
{
|
||||
// Wenn genehmigt Parameter mitgeliefert wird, dann werden nur LVs
|
||||
// geliefert die genehmigten Studienordnungen zugeordnet sind
|
||||
// Module werden nicht geliefert
|
||||
$qry = "SELECT
|
||||
count(*) as anzahl
|
||||
FROM
|
||||
lehre.tbl_studienplan_lehrveranstaltung
|
||||
JOIN lehre.tbl_studienplan USING(studienplan_id)
|
||||
JOIN lehre.tbl_studienordnung USING(studienordnung_id)
|
||||
JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id)
|
||||
JOIN lehre.tbl_lehrtyp USING(lehrtyp_kurzbz)
|
||||
WHERE
|
||||
tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id=".$db->db_add_param($row->lehrveranstaltung_id)."
|
||||
AND tbl_studienordnung.status_kurzbz='approved'
|
||||
AND lehrtyp_kurzbz='lv'";
|
||||
if($result_genehmigt = $db->db_query($qry))
|
||||
{
|
||||
if($row_genehmigt = $db->db_fetch_object($result_genehmigt))
|
||||
{
|
||||
if($row_genehmigt->anzahl==0)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo'<RDF:li>
|
||||
<RDF:Description id="'.$row->lehrveranstaltung_id.'" about="'.$rdf_url.$row->lehrveranstaltung_id.'">
|
||||
<LVA:lehrveranstaltung_id><![CDATA['.$row->lehrveranstaltung_id.']]></LVA:lehrveranstaltung_id>
|
||||
<LVA:kurzbz><![CDATA['.$row->kurzbz.']]></LVA:kurzbz>
|
||||
<LVA:bezeichnung><![CDATA['.$row->bezeichnung.']]></LVA:bezeichnung>
|
||||
<LVA:bezeichnung_english><![CDATA['.$row->bezeichnung_english.']]></LVA:bezeichnung_english>
|
||||
<LVA:studiengang_kz><![CDATA['.$row->studiengang_kz.']]></LVA:studiengang_kz>
|
||||
<LVA:semester><![CDATA['.$row->semester.']]></LVA:semester>
|
||||
<LVA:sprache><![CDATA['.$row->sprache.']]></LVA:sprache>
|
||||
<LVA:ects><![CDATA['.$row->ects.']]></LVA:ects>
|
||||
<LVA:semesterstunden><![CDATA['.$row->semesterstunden.']]></LVA:semesterstunden>
|
||||
<LVA:anmerkung><![CDATA['.$row->anmerkung.']]></LVA:anmerkung>
|
||||
<LVA:lehre><![CDATA['.($row->lehre?'Ja':'Nein').']]></LVA:lehre>
|
||||
<LVA:lehreverzeichnis><![CDATA['.$row->lehreverzeichnis.']]></LVA:lehreverzeichnis>
|
||||
<LVA:aktiv><![CDATA['.($row->aktiv?'Ja':'Nein').']]></LVA:aktiv>
|
||||
<LVA:planfaktor><![CDATA['.$row->planfaktor.']]></LVA:planfaktor>
|
||||
<LVA:planlektoren><![CDATA['.$row->planlektoren.']]></LVA:planlektoren>
|
||||
<LVA:planpersonalkosten><![CDATA['.$row->planpersonalkosten.']]></LVA:planpersonalkosten>
|
||||
<LVA:plankostenprolektor><![CDATA['.$row->plankostenprolektor.']]></LVA:plankostenprolektor>
|
||||
<LVA:lehrform_kurzbz><![CDATA['.$row->lehrform_kurzbz.']]></LVA:lehrform_kurzbz>
|
||||
<LVA:orgform_kurzbz><![CDATA['.$row->orgform_kurzbz.']]></LVA:orgform_kurzbz>
|
||||
<LVA:oe_kurzbz><![CDATA['.$row->oe_kurzbz.']]></LVA:oe_kurzbz>
|
||||
</RDF:Description>
|
||||
</RDF:li>';
|
||||
}
|
||||
?>
|
||||
</RDF:Seq>
|
||||
</RDF:RDF>
|
||||
Reference in New Issue
Block a user