Merge master into HEAD

Conflicts:
	include/dokument_export.class.php
	include/studiengang.class.php
	vilesci/stammdaten/reihungstestverwaltung.php
This commit is contained in:
Paolo
2016-08-18 16:23:11 +02:00
116 changed files with 10682 additions and 5335 deletions
@@ -1605,12 +1605,11 @@ function LehrveranstaltungGesamtNotenTreeSelectDifferent()
break;
}
//Wenn die Noten unterschiedlich sind, aber das benotungsdatum im Zeugnis
//Wenn das benotungsdatum im Zeugnis
//nach dem benotungsdatum des lektors liegt, dann wird die zeile auch nicht markiert.
//damit wird verhindert, dass pruefungsnoten die nur von der assistenz eingetragen wurden,
//durch den alten eintrag des lektors wieder ueberschrieben werden
if(zeugnisuid==lvgesamtuid
&& zeugnisnote!=lvgesamtnote
&& zeugnisbenotungsdatum>lvgesamtbenotungsdatum)
{
found=true;
+17 -4
View File
@@ -74,7 +74,7 @@ else
$xsl_stg_kz=$_GET['stg_kz'];
else
{
// Werden UIDs uebergeben, wird die Vorlage des Studiengangs genommen
// Werden UIDs oder Prestudent_IDs uebergeben, wird die Vorlage des Studiengangs genommen
// in dem der 1. Studierende in der Liste ist
if(isset($_GET['uid']) && $_GET['uid']!='')
{
@@ -89,6 +89,19 @@ else
$xsl_stg_kz=$student_obj->studiengang_kz;
}
}
elseif(isset($_GET['prestudent_id']) && $_GET['prestudent_id']!='')
{
if(strstr($_GET['prestudent_id'],';'))
$prestudent_ids = explode(';',$_GET['prestudent_id']);
else
$prestudent_ids[1] = $_GET['prestudent_id'];
$prestudent_obj = new prestudent();
if($prestudent_obj->load($prestudent_ids[1]))
{
$xsl_stg_kz=$prestudent_obj->studiengang_kz;
}
}
}
}
if(isset($_GET['xsl_oe_kurzbz']))
@@ -189,7 +202,7 @@ if (isset($_GET['output']) && $_GET['output']!='pdf')
else
$output = $_GET['output'];
}
else
else
$output = 'pdf';
@@ -281,7 +294,7 @@ elseif(in_array($xsl,array('Ressource')))
exit;
}
}
elseif(in_array($xsl,array('Inskription','Studienerfolg','OutgoingLearning','OutgoingChangeL','LearningAgree','Zahlung')))
elseif(in_array($xsl,array('Inskription','Studienerfolg','OutgoingLearning','OutgoingChangeL','LearningAgree','Zahlung','DichiaSost')))
{
if(!$rechte->isBerechtigt('admin') && !$rechte->isBerechtigt('assistenz'))
{
@@ -666,7 +679,7 @@ else
// Wenn ein Style XSL uebergeben wurde wird ein zweites XML File erstellt mit den
// Styleanweisungen und ebenfalls zum Zip hinzugefuegt
if(isset($_GET['style_xsl']))
if(isset($_GET['style_xsl']) || $vorlage->style!='')
{
//Wenn die Spalte style in der DB befuellt ist, wird dieses verwendet
if($vorlage->style!='')
+2 -2
View File
@@ -933,10 +933,10 @@ if(!$error)
{
if($row = $db->db_fetch_object($result))
{
if($row->anzahl<=1)
if($row->anzahl<=1 && !$rechte->isBerechtigt('admin', null, 'suid'))
{
$return = false;
$errormsg = 'Die letzte Rolle darf nicht geloescht werden';
$errormsg = 'Die letzte Rolle kann nur durch den Administrator geloescht werden';
$error = true;
}
}
+10
View File
@@ -284,6 +284,14 @@ else
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/student/rdf#punkte3" onclick="StudentTreeSort()"/>
<splitter class="tree-splitter"/>
<treecol id="student-treecol-rt_datum" label="RT Datum" flex="1" hidden="true" persist="hidden, width, ordinal"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/student/rdf#rt_datum" onclick="StudentTreeSort()"/>
<splitter class="tree-splitter"/>
<treecol id="student-treecol-rt_anmeldung" label="RT Anmeldung" flex="1" hidden="true" persist="hidden, width, ordinal"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/student/rdf#rt_anmeldung" onclick="StudentTreeSort()"/>
<splitter class="tree-splitter"/>
<treecol id="student-treecol-dual" label="Dual" flex="1" hidden="true" persist="hidden, width, ordinal"
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/student/rdf#dual_bezeichnung" onclick="StudentTreeSort()"/>
@@ -344,6 +352,8 @@ else
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#punkte1" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#punkte2" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#punkte3" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#rt_datum" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#rt_anmeldung" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#dual_bezeichnung" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#matr_nr" />
<treecell label="rdf:http://www.technikum-wien.at/student/rdf#studienplan_bezeichnung" />
+40 -2
View File
@@ -101,8 +101,46 @@ if(copy($zipfile, $tempname_zip))
$cTmpHEX='/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxERExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e/9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e/8AAEQgAAQABAwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAI/8QAFBABAAAAAAAAAAAAAAAAAAAAAP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCywAf/2Q==';
if($result = $db->db_query($qry))
{
if($row = $db->db_fetch_object($result))
$cTmpHEX=$row->foto;
//Wenn kein Lichtbild in den Akten vorhanden ist, Foto aus tbl_person holen
if ($db->db_num_rows($result) == 0)
{
$qry_person = "SELECT foto FROM public.tbl_person WHERE person_id=".$db->db_add_param($bn->person_id, FHC_INTEGER);
if($result_person = $db->db_query($qry_person))
{
if($row_person = $db->db_fetch_object($result_person))
{
//Wenn auch kein Foto in tbl_person gespeichert ist, mit der naechsten UID fortfahren
if($row_person->foto == '')
continue;
else
$cTmpHEX = $row_person->foto;
}
}
}
if($row = $db->db_fetch_object($result))
{
//Wenn der Inhalt des Lichtbilds leer ist, Foto aus tbl_person holen
if ($row->foto =='')
{
$qry_person = "SELECT foto FROM public.tbl_person WHERE person_id=".$db->db_add_param($bn->person_id, FHC_INTEGER);
if($result_person = $db->db_query($qry_person))
{
if($row_person = $db->db_fetch_object($result_person))
{
//Wenn auch kein Foto in tbl_person gespeichert ist, mit der naechsten UID fortfahren
if($row_person->foto == '')
continue;
else
$cTmpHEX = $row_person->foto;
}
}
}
else
$cTmpHEX = $row->foto;
}
}
// Bild in den Temp Ordner zwischenspeichern