mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 00:42:15 +00:00
Merge branch 'master' of https://github.com/FH-Complete/FHC-Core
This commit is contained in:
@@ -263,7 +263,7 @@ class Studiengang_model extends DB_Model
|
||||
'tbl_studiengang',
|
||||
array('tbl_reihungstest'),
|
||||
'tbl_prestudentstatus.status_kurzbz = \'Interessent\'
|
||||
AND (tbl_prestudentstatus.rt_stufe = tbl_reihungstest.stufe OR tbl_reihungstest.stufe IS NULL)
|
||||
AND (tbl_prestudentstatus.rt_stufe >= tbl_reihungstest.stufe OR tbl_reihungstest.stufe IS NULL)
|
||||
AND (tbl_prestudent.aufnahmegruppe_kurzbz = tbl_reihungstest.aufnahmegruppe_kurzbz OR tbl_reihungstest.aufnahmegruppe_kurzbz IS NULL)
|
||||
AND (tbl_prestudentstatus.studienplan_id = tbl_reihungstest.studienplan_id OR tbl_reihungstest.studienplan_id IS NULL)
|
||||
AND tbl_reihungstest.oeffentlich = TRUE
|
||||
|
||||
+108
-79
@@ -108,33 +108,36 @@ if(check_lektor($user))
|
||||
AND standort_id IS NOT NULL
|
||||
ORDER BY standort_id, nachname, vorname";
|
||||
$result = $db->db_query($sql_query);
|
||||
$count = 0;
|
||||
|
||||
echo '<table class="tablesorter" id="t1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>'.$p->t("global/vorname").'</th>
|
||||
<th>'.$p->t("global/nachname").'</th>
|
||||
<th>'.$p->t("lvplan/raum").'</th>
|
||||
<th>'.$p->t("global/telefonnummer").'</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{$count++;
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
$count = 0;
|
||||
|
||||
echo '<table class="tablesorter" id="t1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>'.$p->t("global/vorname").'</th>
|
||||
<th>'.$p->t("global/nachname").'</th>
|
||||
<th>'.$p->t("lvplan/raum").'</th>
|
||||
<th>'.$p->t("global/telefonnummer").'</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{$count++;
|
||||
echo '
|
||||
<tr>
|
||||
<td width="10px">'.$count.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="15%">'.$row->ort_kurzbz.'</td>
|
||||
<td width="30%"><nobr>01/333 40 77 - <strong>'.$row->telefonklappe.'</strong></nobr></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td width="10px">'.$count.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="15%">'.$row->ort_kurzbz.'</td>
|
||||
<td width="30%"><nobr>01/333 40 77 - <strong>'.$row->telefonklappe.'</strong></nobr></td>
|
||||
</tr>';
|
||||
</tbody></table>';
|
||||
}
|
||||
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
</table>
|
||||
|
||||
@@ -157,26 +160,46 @@ if(check_lektor($user))
|
||||
AND kontakt LIKE '%61925%'
|
||||
ORDER BY funktion_kurzbz";
|
||||
$result = $db->db_query($sql_query);
|
||||
echo '<h2 style="margin-top:0px;">'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td ><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
echo '<h2 style="margin-top:0px;">'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
<td ><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
}
|
||||
// An der FHTW wird als Übergangsloesung statisch die Fa. HEALTH COUNSULT als Brandschutzbeauftragte angezeigt
|
||||
if ($db->db_num_rows($result) == 0 && CAMPUS_NAME == 'FH Technikum Wien')
|
||||
{
|
||||
echo '<h2 style="margin-top:0px;">'.$p->t("notfallbestimmungen/brandschutzbeauftragte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td>HEALT COUNSULT - Sicherheitstechnik GmbH</td>
|
||||
<td ><nobr>0650/30 96 909</nobr></td>
|
||||
</tr>
|
||||
</tbody></table>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
|
||||
<!--Rektorat auslesen-->
|
||||
@@ -194,28 +217,31 @@ if(check_lektor($user))
|
||||
AND kontakt LIKE '%61925%'
|
||||
ORDER BY funktion_kurzbz";
|
||||
$result = $db->db_query($sql_query);
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/rektorat").'</h2>';
|
||||
echo '<table class="tablesorter" id="t3">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Beschreibung</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$row->nachname.'</td>
|
||||
<td>'.$row->vorname.'</td>
|
||||
<td>('.$row->beschreibung.')</td>
|
||||
<td><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/rektorat").'</h2>';
|
||||
echo '<table class="tablesorter" id="t3">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
<th>Beschreibung</th>
|
||||
<th>Nummer</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$row->nachname.'</td>
|
||||
<td>'.$row->vorname.'</td>
|
||||
<td>('.$row->beschreibung.')</td>
|
||||
<td><nobr>'.$row->kontakt.'</nobr></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
|
||||
<!--Brandschutzwarte auslesen-->
|
||||
@@ -232,24 +258,27 @@ if(check_lektor($user))
|
||||
AND standort_id IS NOT NULL
|
||||
ORDER BY standort_id, nachname, vorname";
|
||||
$result = $db->db_query($sql_query);
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/brandschutzwarte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if ($db->db_num_rows($result) > 0)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
</tr>';
|
||||
echo '<h2>'.$p->t("notfallbestimmungen/brandschutzwarte").'</h2>';
|
||||
echo '<table class="tablesorter" id="t4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nachname</th>
|
||||
<th>Vorname</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td width="40%">'.$row->nachname.'</td>
|
||||
<td width="30%">'.$row->vorname.'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
}
|
||||
echo '
|
||||
</tbody></table>';
|
||||
?>
|
||||
|
||||
</td>
|
||||
|
||||
+62
-11
@@ -35,6 +35,8 @@ require_once('../../include/benutzer.class.php');
|
||||
require_once('../../include/vorlage.class.php');
|
||||
require_once('../../include/addon.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/student.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
@@ -54,10 +56,49 @@ if(isset($_GET['xsl']))
|
||||
$xsl=$_GET['xsl'];
|
||||
else
|
||||
die('Fehlerhafte Parameteruebergabe');
|
||||
|
||||
// Studiengang ermitteln dessen Vorlage verwendet werden soll
|
||||
$xsl_stg_kz=0;
|
||||
// Direkte uebergabe des Studienganges dessen Vorlage verwendet werden soll
|
||||
if(isset($_GET['xsl_stg_kz']))
|
||||
$xsl_stg_kz=$_GET['xsl_stg_kz'];
|
||||
else
|
||||
$xsl_stg_kz=0;
|
||||
{
|
||||
// Wenn eine Studiengangskennzahl uebergeben wird, wird die Vorlage dieses Studiengangs verwendet
|
||||
if(isset($_GET['stg_kz']))
|
||||
$xsl_stg_kz=$_GET['stg_kz'];
|
||||
else
|
||||
{
|
||||
// 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']!='')
|
||||
{
|
||||
if(strstr($_GET['uid'],';'))
|
||||
$uids = explode(';',$_GET['uid']);
|
||||
else
|
||||
$uids[1] = $_GET['uid'];
|
||||
|
||||
$student_obj = new student();
|
||||
if($student_obj->load($uids[1]))
|
||||
{
|
||||
$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['version']) && is_numeric($_GET['version']))
|
||||
$version = $_GET['version'];
|
||||
@@ -214,14 +255,24 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
|
||||
// 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!='')
|
||||
{
|
||||
$style_xsl=$_GET['style_xsl'];
|
||||
$style_vorlage = new vorlage();
|
||||
$style_vorlage->getAktuelleVorlage($xsl_stg_kz, $style_xsl, $version);
|
||||
$style_xsl_doc = new DOMDocument;
|
||||
if(!$style_xsl_doc->loadXML($style_vorlage->text))
|
||||
die('unable to load xsl');
|
||||
//Wenn die Spalte style in der DB befuellt ist, wird dieses verwendet
|
||||
if($vorlage->style!='')
|
||||
{
|
||||
$style_xsl_doc = new DOMDocument;
|
||||
if(!$style_xsl_doc->loadXML($vorlage->style))
|
||||
die('unable to load xsl from tbl_vorlagestudiengang');
|
||||
}
|
||||
else
|
||||
{
|
||||
$style_xsl=$_GET['style_xsl'];
|
||||
$style_vorlage = new vorlage();
|
||||
$style_vorlage->getAktuelleVorlage($xsl_stg_kz, $style_xsl, $version);
|
||||
$style_xsl_doc = new DOMDocument;
|
||||
if(!$style_xsl_doc->loadXML($style_vorlage->text))
|
||||
die('unable to load xsl');
|
||||
}
|
||||
|
||||
// Configure the transformer
|
||||
$style_proc = new XSLTProcessor;
|
||||
@@ -237,7 +288,7 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
|
||||
foreach($addons->aktive_addons as $addon)
|
||||
{
|
||||
$zipfile = DOC_ROOT.'/addons/'.$addon.'/system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
$zipfile = DOC_ROOT.'addons/'.$addon.'/system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
|
||||
if(file_exists($zipfile))
|
||||
{
|
||||
@@ -246,14 +297,14 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
}
|
||||
}
|
||||
if(!$vorlage_found)
|
||||
$zipfile = DOC_ROOT.'/system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
$zipfile = DOC_ROOT.'system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
|
||||
|
||||
$tempname_zip = 'out.zip';
|
||||
if(copy($zipfile, $tempname_zip))
|
||||
{
|
||||
exec("zip $tempname_zip content.xml");
|
||||
if(isset($_GET['style_xsl']))
|
||||
if(isset($_GET['style_xsl']) || $vorlage->style!='')
|
||||
exec("zip $tempname_zip styles.xml");
|
||||
|
||||
clearstatcache();
|
||||
|
||||
@@ -149,7 +149,7 @@ echo ']>
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#punkte" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="aufnahmetermine-tree-teilgenommen" label="Teilgenommen" flex="1" hidden="false"
|
||||
<treecol id="aufnahmetermine-tree-teilgenommen" label="Teilgen." flex="1" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#teilgenommen" />
|
||||
<splitter class="tree-splitter"/>
|
||||
@@ -177,6 +177,10 @@ echo ']>
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_id" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="aufnahmetermine-tree-studienplan_studiengang" label="Stg" flex="2" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_studiengang" />
|
||||
<splitter class="tree-splitter"/>
|
||||
</treecols>
|
||||
|
||||
<template>
|
||||
@@ -197,6 +201,7 @@ echo ']>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#rt_person_id"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_bezeichnung"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_id"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_studiengang"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
@@ -227,12 +232,13 @@ echo ']>
|
||||
<label value="Reihungstest / Interview" control="aufnahmetermine-menulist-reihungstest"/>
|
||||
<hbox>
|
||||
<menulist id="aufnahmetermine-menulist-reihungstest" disabled="true"
|
||||
datasources="rdf:null" flex="1"
|
||||
datasources="rdf:null" flex="1" style="width:200px"
|
||||
ref="http://www.technikum-wien.at/reihungstest/alle">
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/reihungstest/rdf#reihungstest_id"
|
||||
label="rdf:http://www.technikum-wien.at/reihungstest/rdf#bezeichnung"
|
||||
tooltiptext="rdf:http://www.technikum-wien.at/reihungstest/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
|
||||
@@ -60,11 +60,16 @@ $output = isset($_REQUEST['output'])?$_REQUEST['output']:'pdf';
|
||||
if($uid=='' && $users=='')
|
||||
die('Parameter data is missing');
|
||||
|
||||
$uid_arr = array();
|
||||
if($users!='')
|
||||
$uid_arr=$users;
|
||||
$uid_arr = $users;
|
||||
else
|
||||
$uid_arr = explode(';',$uid);
|
||||
|
||||
// Wenn Array mehrere Elemente hat und erstes Element im Array leer ist -> entfernen
|
||||
if (isset($uid_arr[1]) && $uid_arr[0] == '')
|
||||
array_shift($uid_arr);
|
||||
|
||||
// Tempordner fuer das erstellen des ODT anlegen
|
||||
$tempfolder = '/tmp/'.uniqid();
|
||||
mkdir($tempfolder);
|
||||
@@ -73,9 +78,37 @@ chdir($tempfolder);
|
||||
// Unterordner fuer die Bilder erstellen
|
||||
mkdir('Pictures');
|
||||
|
||||
// Studiengang ermitteln dessen Vorlage verwendet werden soll
|
||||
$xsl_stg_kz=0;
|
||||
// Direkte uebergabe des Studienganges dessen Vorlage verwendet werden soll
|
||||
if(isset($_GET['xsl_stg_kz']))
|
||||
$xsl_stg_kz=$_GET['xsl_stg_kz'];
|
||||
else
|
||||
{
|
||||
// Wenn eine Studiengangskennzahl uebergeben wird, wird die Vorlage dieses Studiengangs verwendet
|
||||
if(isset($_GET['stg_kz']))
|
||||
$xsl_stg_kz=$_GET['stg_kz'];
|
||||
else
|
||||
{
|
||||
// Vorlage des Studiengangs aus $uid_arr ermitteln (1. Studierender im Array)
|
||||
if($uid_arr[0] != '')
|
||||
{
|
||||
$student_obj = new student();
|
||||
if($student_obj->load($uid_arr[0]))
|
||||
{
|
||||
$xsl_stg_kz = $student_obj->studiengang_kz;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Vorlage der Zutrittskarte laden
|
||||
|
||||
if($xsl_stg_kz=='')
|
||||
$xsl_stg_kz='0';
|
||||
|
||||
$vorlage = new vorlage();
|
||||
if(!$vorlage->getAktuelleVorlage('0', 'Zutrittskarte'))
|
||||
if(!$vorlage->getAktuelleVorlage($xsl_stg_kz, 'Zutrittskarte'))
|
||||
die($vorlage->errormsg);
|
||||
$xsl_content = $vorlage->text;
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ class akadgrad extends basis_db
|
||||
JOIN public.tbl_person USING (person_id)
|
||||
WHERE student_uid=".$this->db_add_param($student_uid).")
|
||||
OR geschlecht IS NULL)
|
||||
LIMIT 1";
|
||||
ORDER BY geschlecht NULLS LAST LIMIT 1";
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
//PDF fuer die Anwesenheitsliste auf CIS
|
||||
|
||||
$db = new basis_db();
|
||||
|
||||
//PDF erzeugen
|
||||
$pdf = new PDF('P','pt');
|
||||
$pdf->Open();
|
||||
@@ -33,7 +35,7 @@ $pdf->SetXY(30,40);
|
||||
$stgobj=new studiengang();
|
||||
$stgobj->load($stg);
|
||||
//Logo
|
||||
$pdf->Image("../../../skin/images/logo.jpg","430","45","","45","jpg","");
|
||||
$pdf->Image("../../../skin/styles/tw/logo.jpg","470","45","","50","jpg","");
|
||||
//$pdf->Image("../../../skin/images/tw_logo_02.jpg","400","30","116","43","jpg","");
|
||||
|
||||
$bezeichnung='';
|
||||
@@ -56,9 +58,21 @@ $pdf->SetXY(30,60);
|
||||
//$stsem_obj = new studiensemester($conn);
|
||||
//$stsem = $stsem_obj->getaktorNext();
|
||||
|
||||
$qry = "SELECT distinct on(kuerzel, semester, verband, gruppe, gruppe_kurzbz) UPPER(stg_typ::varchar(1) || stg_kurzbz) as kuerzel, semester, verband, gruppe, gruppe_kurzbz from campus.vw_lehreinheit WHERE lehrveranstaltung_id='".addslashes($lvid)."' AND studiensemester_kurzbz='".addslashes($stsem)."'";
|
||||
$qry = "SELECT DISTINCT ON
|
||||
(kuerzel, semester, verband, gruppe, gruppe_kurzbz)
|
||||
UPPER(stg_typ::varchar(1) || stg_kurzbz) as kuerzel,
|
||||
semester,
|
||||
verband,
|
||||
gruppe,
|
||||
gruppe_kurzbz
|
||||
FROM
|
||||
campus.vw_lehreinheit
|
||||
WHERE
|
||||
lehrveranstaltung_id=".$db->db_add_param($lvid)."
|
||||
AND
|
||||
studiensemester_kurzbz=".$db->db_add_param($stsem);
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
$qry.=" AND lehreinheit_id=".$db->db_add_param($lehreinheit_id);
|
||||
|
||||
$gruppen='';
|
||||
if($result = $db->db_query($qry))
|
||||
@@ -77,7 +91,7 @@ $gruppen=mb_convert_encoding($gruppen,'ISO-8859-15','UTF-8');
|
||||
|
||||
$pdf->MultiCell(0,20,'Gruppe: '.$gruppen);
|
||||
$semester = new studiensemester($stsem);
|
||||
$pdf->MultiCell(0,20,'Studiensemester: '.(($semester->beschreibung != NULL) ? $semester->beschreibung : $stsem));
|
||||
$pdf->MultiCell(0,20,'Studiensemester: '.(($semester->beschreibung != '') ? $semester->beschreibung : $stsem));
|
||||
|
||||
$maxY=$pdf->GetY();
|
||||
$maxY=getmax($maxY,$pdf->GetY());
|
||||
@@ -111,7 +125,7 @@ $pdf->SetFont('Arial','',8);
|
||||
$maxX +=20;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','B',8);
|
||||
$pdf->MultiCell(130,$lineheight,mb_convert_encoding('Hörer/Name','ISO-8859-15','UTF-8'),1,'L',0);
|
||||
$pdf->MultiCell(130,$lineheight,mb_convert_encoding('HörerIn/Name','ISO-8859-15','UTF-8'),1,'L',0);
|
||||
$maxX +=130;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,'Kennzeichen',1,'C',0);
|
||||
@@ -138,11 +152,11 @@ $qry = "SELECT
|
||||
LEFT JOIN lehre.tbl_zeugnisnote on(vw_student_lehrveranstaltung.lehrveranstaltung_id=tbl_zeugnisnote.lehrveranstaltung_id AND tbl_zeugnisnote.student_uid=tbl_student.student_uid AND tbl_zeugnisnote.studiensemester_kurzbz=tbl_studentlehrverband.studiensemester_kurzbz)
|
||||
LEFT JOIN bis.tbl_bisio ON(uid=tbl_bisio.student_uid)
|
||||
WHERE
|
||||
vw_student_lehrveranstaltung.lehrveranstaltung_id='".addslashes($lvid)."' AND
|
||||
vw_student_lehrveranstaltung.studiensemester_kurzbz='".addslashes($stsem)."'";
|
||||
vw_student_lehrveranstaltung.lehrveranstaltung_id=".$db->db_add_param($lvid)." AND
|
||||
vw_student_lehrveranstaltung.studiensemester_kurzbz=".$db->db_add_param($stsem);
|
||||
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND vw_student_lehrveranstaltung.lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
$qry.=" AND vw_student_lehrveranstaltung.lehreinheit_id=".$db->db_add_param($lehreinheit_id);
|
||||
$qry.=' ORDER BY nachname, vorname, person_id, tbl_bisio.bis DESC';
|
||||
|
||||
$lineheight=80;
|
||||
@@ -210,18 +224,11 @@ if($result = $db->db_query($qry))
|
||||
// $pdf->MultiCell(80,$lineheight,'',0,'L',1);
|
||||
if($elem->foto_sperre=='f')
|
||||
{
|
||||
$image_link = APP_ROOT."cis/public/bild.php?src=person&person_id=".$elem->person_id;
|
||||
$type = exif_imagetype($image_link);
|
||||
|
||||
if($type==IMAGETYPE_JPEG)
|
||||
{
|
||||
$file_type='jpg';
|
||||
$pdf->Image($image_link,$maxX+1,$maxY+1,0,"78",$file_type,"");
|
||||
}
|
||||
$pdf->Image(APP_ROOT."cis/public/bild.php?src=person&person_id=".$elem->person_id,$maxX+1,$maxY+1,0,"78","jpg","");
|
||||
}
|
||||
$inhalt[]=array($i,$name,$matrikelnr,$sem_verb_grup,'');
|
||||
$inhalt[]=array($i,$name,$matrikelnr,$sem_verb_grup,'');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$lineheight=10;
|
||||
|
||||
@@ -3,7 +3,7 @@ $this->phrasen['anwesenheitsliste/studiensemesterIstUngueltig']='Studiensemester
|
||||
$this->phrasen['anwesenheitsliste/anwesenheitslisten']='Anwesenheitslisten';
|
||||
$this->phrasen['anwesenheitsliste/notenlisten']='Notenlisten';
|
||||
$this->phrasen['anwesenheitsliste/notenliste']='Notenliste';
|
||||
$this->phrasen['anwesenheitsliste/anwesenheitslistenMitBildern']='Anwesenheitslisten mit Bildern';
|
||||
$this->phrasen['anwesenheitsliste/anwesenheitslistenMitBildern']='Fotolisten';
|
||||
$this->phrasen['anwesenheitsliste/keineStudentenVorhanden']='Derzeit sind in diesem Studiengang / Semester keine Studenten vorhanden';
|
||||
$this->phrasen['anwesenheitsliste/erstellenDerListeKlicken']='Zum Erstellen der Liste klicken Sie bitte auf die gewünschte Gruppe!';
|
||||
$this->phrasen['anwesenheitsliste/gesamtliste']='Gesamtliste';
|
||||
|
||||
@@ -3,7 +3,7 @@ $this->phrasen['anwesenheitsliste/studiensemesterIstUngueltig']='No valid semest
|
||||
$this->phrasen['anwesenheitsliste/anwesenheitslisten']='Attendance lists';
|
||||
$this->phrasen['anwesenheitsliste/notenlisten']='Grade lists';
|
||||
$this->phrasen['anwesenheitsliste/notenliste']='Grade list';
|
||||
$this->phrasen['anwesenheitsliste/anwesenheitslistenMitBildern']='Attendance lists with pictures';
|
||||
$this->phrasen['anwesenheitsliste/anwesenheitslistenMitBildern']='Picture lists';
|
||||
$this->phrasen['anwesenheitsliste/keineStudentenVorhanden']='There are currently no students in this degree program / semester';
|
||||
$this->phrasen['anwesenheitsliste/erstellenDerListeKlicken']='To create the list, please click on the desired group!';
|
||||
$this->phrasen['anwesenheitsliste/gesamtliste']='Complete List';
|
||||
|
||||
@@ -27,6 +27,8 @@ require_once('../include/benutzer.class.php');
|
||||
require_once('../include/prestudent.class.php');
|
||||
require_once('../include/reihungstest.class.php');
|
||||
require_once('../include/studienplan.class.php');
|
||||
require_once('../include/studienordnung.class.php');
|
||||
require_once('../include/studiengang.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
@@ -78,6 +80,12 @@ function drawrow($row)
|
||||
$studienplan = new studienplan();
|
||||
$studienplan->loadStudienplan($row->studienplan_id);
|
||||
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($studienplan->studienordnung_id);
|
||||
|
||||
$stpl_stg = new studiengang();
|
||||
$stpl_stg->load($studienordnung->studiengang_kz);
|
||||
|
||||
$i=$oRdf->newObjekt($row->rt_person_id);
|
||||
$oRdf->obj[$i]->setAttribut('rt_person_id',$row->rt_person_id,true);
|
||||
$oRdf->obj[$i]->setAttribut('rt_id',$row->reihungstest_id,true);
|
||||
@@ -91,6 +99,7 @@ function drawrow($row)
|
||||
$oRdf->obj[$i]->setAttribut('stufe',$reihungstest_obj->stufe,true);
|
||||
$oRdf->obj[$i]->setAttribut('studienplan_id',$row->studienplan_id,true);
|
||||
$oRdf->obj[$i]->setAttribut('studienplan_bezeichnung',$studienplan->bezeichnung,true);
|
||||
$oRdf->obj[$i]->setAttribut('studienplan_studiengang',$stpl_stg->kuerzel,true);
|
||||
$oRdf->obj[$i]->setAttribut('studiensemester',$reihungstest_obj->studiensemester_kurzbz,true);
|
||||
$oRdf->obj[$i]->setAttribut('datum',$datum_obj->formatDatum($reihungstest_obj->datum,'d.m.Y'),true);
|
||||
$oRdf->obj[$i]->setAttribut('datum_iso',$reihungstest_obj->datum,true);
|
||||
|
||||
+51
-27
@@ -209,32 +209,33 @@ a:hover /*link ohne Item-Definition*/
|
||||
a.ItemTesttool
|
||||
{
|
||||
color: #000;
|
||||
line-height: 25px;
|
||||
/*line-height: 25px;*/
|
||||
display:block;
|
||||
padding: 0 10px 0 10px;
|
||||
padding: 5px 10px 5px 10px;
|
||||
}
|
||||
a.ItemTesttoolAktiv
|
||||
{
|
||||
color: #000;
|
||||
line-height: 25px;
|
||||
/*line-height: 25px;*/
|
||||
display:block;
|
||||
padding: 0 10px 0 10px;
|
||||
padding: 5px 10px 5px 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
a.ItemTesttoolBeendet
|
||||
{
|
||||
color: #C7C8C9;
|
||||
line-height: 25px;
|
||||
/*line-height: 25px;*/
|
||||
display:block;
|
||||
padding: 0 10px 0 10px;
|
||||
padding: 5px 10px 5px 10px;
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover.ItemTesttool
|
||||
{
|
||||
color: #0086CC;
|
||||
line-height: 25px;
|
||||
color: #000;
|
||||
/*line-height: 25px;*/
|
||||
text-decoration: none;
|
||||
padding: 0 10px 0 10px;
|
||||
padding: 5px 10px 5px 10px;
|
||||
}
|
||||
a.HyperItem /* ? */
|
||||
{
|
||||
@@ -421,6 +422,15 @@ td.MarkLine
|
||||
{
|
||||
background-color: #F2F2F2; /*wie EEEEEE; also grau fast weiss */
|
||||
}
|
||||
td.HeaderTesttool /*fuer die Button-Optik beim Testtool*/
|
||||
{
|
||||
color: #FFFFFF;
|
||||
background-color: #00639C;
|
||||
white-space:nowrap;
|
||||
line-height: 25px;
|
||||
box-shadow: inset 0 0 2px #FFFFFF;
|
||||
padding: 0 10px 0 10px;
|
||||
}
|
||||
td.Inaktiv /*fuer Inaktive Items bei der Raumbeschreibung */
|
||||
{
|
||||
background-color: #F2F2F2; /*wie EEEEEE; also grau fast weiss */
|
||||
@@ -430,34 +440,48 @@ td.Inaktiv /*fuer Inaktive Items bei der Raumbeschreibung */
|
||||
td.ItemTesttool /*fuer die Button-Optik beim Testtool*/
|
||||
{
|
||||
color: #000;
|
||||
background-color: #DEE1E2;
|
||||
white-space:nowrap;
|
||||
box-shadow: inset 0 0 5px #888;
|
||||
white-space: initial;
|
||||
box-shadow: inset 0 0 2px #00639C;
|
||||
width: 170px;
|
||||
display: inline-block;
|
||||
}
|
||||
td:hover.ItemTesttool
|
||||
{
|
||||
color: #000;
|
||||
white-space: initial;
|
||||
box-shadow: inset 0px 0px 2px 2px #00639C;
|
||||
width: 170px;
|
||||
display: inline-block;
|
||||
}
|
||||
td.ItemTesttoolAktiv /*fuer die Button-Optik beim Testtool*/
|
||||
{
|
||||
color: #000;
|
||||
background-color: #DEE1E2;
|
||||
padding: 0 10px 0 10px;
|
||||
white-space:nowrap;
|
||||
box-shadow: 0px 0px 5px 5px #888888;
|
||||
white-space: initial;
|
||||
box-shadow: 0px 0px 2px 2px #00639C;
|
||||
}
|
||||
td.ItemTesttoolBeendet /*fuer die Button-Optik beim Testtool*/
|
||||
{
|
||||
background-color: #EAECED;
|
||||
white-space:nowrap;
|
||||
}
|
||||
td:hover.ItemTesttool
|
||||
{
|
||||
color: white;
|
||||
background-color: #fff;
|
||||
box-shadow: 0px 0px 5px 5px #888888;
|
||||
background-color: #FFFFFF;
|
||||
white-space: initial;
|
||||
box-shadow: inset 0px 0px 2px 2px #EAECED;
|
||||
}
|
||||
td:hover.ItemTesttoolBeendet
|
||||
{
|
||||
color: #C7C8C9;
|
||||
background-color: #EAECED;
|
||||
white-space:nowrap;
|
||||
color: #EAECED;
|
||||
background-color: #FFFFFF;
|
||||
white-space: initial;
|
||||
box-shadow: inset 0px 0px 2px 2px #EAECED;
|
||||
}
|
||||
div.TesttoolTitle /* Ueberschrift auf den Titelfolien */
|
||||
{
|
||||
font-size: 400%;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
text-transform: uppercase;
|
||||
color: #FFFFFF;
|
||||
display: table;
|
||||
white-space: nowrap;
|
||||
text-shadow: -1px 0 #00639C, 0 1px #00639C, 1px 0 #00639C, 0 -1px #00639C;
|
||||
margin: 0 0 20px 0;
|
||||
}
|
||||
td.tdwidth10
|
||||
{
|
||||
|
||||
@@ -614,6 +614,10 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
<style:style style:name="P119" style:family="paragraph" style:parent-style-name="Heading_20_1" style:list-style-name="">
|
||||
<style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0cm" fo:text-indent="0cm" style:auto-text-indent="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="P120" style:family="paragraph">
|
||||
<style:paragraph-properties fo:line-height="130%"/>
|
||||
<style:text-properties fo:color="#ff3333" fo:font-size="16pt" style:font-size-asian="16pt" style:font-name-complex="Arial" style:font-size-complex="16pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
@@ -861,6 +865,11 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
<!-- Ueberprueft ob benoetigte Datenfelder leer sind -->
|
||||
<xsl:if test="student_maxsemester = ''"><text:p text:style-name="P120">Ausbildungsdauer konnte nicht berechnet werden</text:p></xsl:if>
|
||||
<xsl:if test="lgartcode='1' and akadgrad = ''"><text:p text:style-name="P120">Kein Akademischer Grad für diesen Lehrgang hinterlegt</text:p></xsl:if>
|
||||
<xsl:if test="lgartcode='2' and akadgrad = ''"><text:p text:style-name="P120">Kein Akademischer Grad für diesen Lehrgang hinterlegt</text:p></xsl:if>
|
||||
|
||||
<text:section text:style-name="Sect1" text:name="Bereich1">
|
||||
<text:h text:style-name="P118" text:outline-level="1">Ausbildungsvertrag</text:h>
|
||||
<text:p text:style-name="P81"/>
|
||||
@@ -1083,10 +1092,10 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
<text:p text:style-name="P13"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="lgartcode='1'">
|
||||
<text:p text:style-name="P13">Nach Abschluss aller vorgeschriebenen Prüfungen wird der akademische Grad "Master of " verliehen.</text:p>
|
||||
<text:p text:style-name="P13">Nach Abschluss aller vorgeschriebenen Prüfungen wird der akademische Grad "<xsl:value-of select="akadgrad"/>" verliehen.</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="lgartcode='2'">
|
||||
<text:p text:style-name="P13">Nach Abschluss aller vorgeschriebenen Prüfungen wird der Titel "Akademische/r " verliehen.</text:p>
|
||||
<text:p text:style-name="P13">Nach Abschluss aller vorgeschriebenen Prüfungen wird der Titel "<xsl:value-of select="akadgrad"/>" verliehen.</text:p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<text:p text:style-name="P13">Nach Abschluss aller vorgeschriebenen Prüfungen wird ein Zertifizierungsdiplom der Technikum Wien Academy verliehen.</text:p>
|
||||
@@ -1141,10 +1150,10 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
<text:p text:style-name="P14"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="lgartcode='1'">
|
||||
<text:p text:style-name="P13">When all the required examinations have been completed the academic degree "Master of " will be awarded.</text:p>
|
||||
<text:p text:style-name="P13">When all the required examinations have been completed the academic degree "<xsl:value-of select="akadgrad"/>" will be awarded.</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="lgartcode='2'">
|
||||
<text:p text:style-name="P13">When all the required examinations have been completed the title "Academic " will be awarded.</text:p>
|
||||
<text:p text:style-name="P13">When all the required examinations have been completed the title "<xsl:value-of select="akadgrad"/>" will be awarded.</text:p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<text:p text:style-name="P13">>When all the required examinations have been completed a Technikum Wien Academy diploma certificate will be awarded.</text:p>
|
||||
|
||||
@@ -319,6 +319,10 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
<style:paragraph-properties fo:line-height="130%" fo:text-align="start"/>
|
||||
<style:text-properties style:text-line-through-style="none" style:text-line-through-type="none" style:font-pitch="variable" fo:font-size="9pt" style:font-size-asian="9pt" fo:font-style="normal" style:text-underline-style="none" fo:font-weight="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P46" style:family="paragraph">
|
||||
<style:paragraph-properties fo:line-height="130%"/>
|
||||
<style:text-properties fo:color="#ff3333" fo:font-size="16pt" style:font-size-asian="16pt" style:font-name-complex="Arial" style:font-size-complex="16pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P140" style:family="paragraph">
|
||||
<style:paragraph-properties fo:text-align="start"/>
|
||||
<style:text-properties style:text-line-through-style="none" style:text-line-through-type="none" style:font-name="Helvetica" fo:font-size="10pt" fo:font-style="normal" style:text-underline-style="none" fo:font-weight="bold"/>
|
||||
@@ -407,6 +411,11 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
<text:h text:style-name="P22" text:outline-level="1" text:is-list-header="true">Ausbildungsvertrag</text:h>
|
||||
<!-- Ueberprueft ob benoetigte Datenfelder leer sind -->
|
||||
<xsl:if test="student_maxsemester = ''"><text:p text:style-name="P46">Ausbildungsdauer konnte nicht berechnet werden</text:p></xsl:if>
|
||||
<xsl:if test="lgartcode='1' and akadgrad = ''"><text:p text:style-name="P46">Kein Akademischer Grad für diesen Lehrgang hinterlegt</text:p></xsl:if>
|
||||
<xsl:if test="lgartcode='2' and akadgrad = ''"><text:p text:style-name="P46">Kein Akademischer Grad für diesen Lehrgang hinterlegt</text:p></xsl:if>
|
||||
|
||||
<text:p text:style-name="P2"/>
|
||||
<text:p text:style-name="P4">Dieser Vertrag regelt das Rechtsverhältnis zwischen dem </text:p>
|
||||
<text:p text:style-name="P4"><text:span text:style-name="T1">Verein Fachhochschule Technikum Wien,</text:span> 1060 Wien, Mariahilfer Straße 37-39 (kurz „Erhalter“ genannt) einerseits <text:span text:style-name="T1">und</text:span></text:p>
|
||||
@@ -513,10 +522,10 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
</text:list>
|
||||
<xsl:choose>
|
||||
<xsl:when test="lgartcode='1'">
|
||||
<text:p text:style-name="P5">Nach Abschluss aller vorgeschriebenen Prüfungen wird der akademische Grad "Master of " verliehen.</text:p>
|
||||
<text:p text:style-name="P5">Nach Abschluss aller vorgeschriebenen Prüfungen wird der akademische Grad "<xsl:value-of select="akadgrad"/>" verliehen.</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="lgartcode='2'">
|
||||
<text:p text:style-name="P5">Nach Abschluss aller vorgeschriebenen Prüfungen wird der Titel "Akademische/r " verliehen.</text:p>
|
||||
<text:p text:style-name="P5">Nach Abschluss aller vorgeschriebenen Prüfungen wird der Titel "<xsl:value-of select="akadgrad"/>" verliehen.</text:p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<text:p text:style-name="P5">Nach Abschluss aller vorgeschriebenen Prüfungen wird ein Zertifizierungsdiplom der Technikum Wien Academy verliehen.</text:p>
|
||||
|
||||
@@ -39,7 +39,8 @@ define("anzahlSemester","10");
|
||||
$buchstabenArray = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','Ä','Ö','Ü');
|
||||
|
||||
$studiengang = new studiengang();
|
||||
$studiengang->getAll('oe_kurzbz', true);
|
||||
$studiengang->getAll('typ, bezeichnung', true);
|
||||
$studiengang_array = array();
|
||||
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getAllStatusKurzbz();
|
||||
@@ -114,14 +115,24 @@ echo '<body>
|
||||
<td>Studiengang:</td>
|
||||
<td><select name="select_studiengang">
|
||||
<option value="">Alle (keine Incoming)</option>
|
||||
<option value="incoming">Incoming</option>
|
||||
<option value="incoming" '.($studiengang_kz=="incoming"?'selected':'').'>Incoming</option>
|
||||
<option value="bama" '.($studiengang_kz=="bama"?'selected':'').'>Bachelor und Master</option>
|
||||
<option value="special" '.($studiengang_kz=="special"?'selected':'').'>Spezialfälle</option>
|
||||
';
|
||||
|
||||
$typ = '';
|
||||
foreach($studiengang->result as $stud)
|
||||
{
|
||||
// 10007 -> EVU Studiengang
|
||||
if($stud->studiengang_kz < '10000' || $stud->studiengang_kz == '10007' || $stud->studiengang_kz=='10004')
|
||||
echo '<option value='.$stud->studiengang_kz.' '.($studiengang_kz==$stud->studiengang_kz?'selected':'').'>'.mb_strtoupper($stud->oe_kurzbz).' | '.mb_strtoupper($stud->kurzbzlang).'</option>';
|
||||
//if($stud->studiengang_kz < '10000' || $stud->studiengang_kz == '10007' || $stud->studiengang_kz=='10004')
|
||||
$studiengang_array[$stud->studiengang_kz] = mb_strtoupper($stud->typ.$stud->kurzbz);
|
||||
if ($typ != $stud->typ || $typ=='')
|
||||
{
|
||||
if ($typ!='')
|
||||
echo '</optgroup>';
|
||||
echo '<optgroup label="'.$stud->typ.'">';
|
||||
}
|
||||
echo '<option value='.$stud->studiengang_kz.' '.($studiengang_kz==$stud->studiengang_kz?'selected':'').'>'.mb_strtoupper($stud->typ.$stud->kurzbz).' - '.$stud->bezeichnung.'</option>';
|
||||
$typ = $stud->typ;
|
||||
}
|
||||
echo' </select></td>
|
||||
<td>Semester:</td>
|
||||
@@ -203,15 +214,35 @@ if(isset($_REQUEST['btn_submitStudent']))
|
||||
if($semester == 'alle')
|
||||
$semester = null;
|
||||
|
||||
$studenten = new student();
|
||||
$studenten = new student();
|
||||
$studentenArray = array();
|
||||
|
||||
if($studiengang_kz=='incoming')
|
||||
{
|
||||
$studenten->getIncoming();
|
||||
}
|
||||
elseif ($studiengang_kz=='special')
|
||||
{
|
||||
foreach($studiengang->result as $stud)
|
||||
{
|
||||
if($stud->studiengang_kz >= '10000' || $stud->studiengang_kz < '0')
|
||||
$studenten->getStudentsStudiengang($stud->studiengang_kz, $semester);
|
||||
}
|
||||
}
|
||||
elseif ($studiengang_kz=='bama')
|
||||
{
|
||||
foreach($studiengang->result as $stud)
|
||||
{
|
||||
if($stud->typ == 'b' || $stud->typ == 'm')
|
||||
$studenten->getStudentsStudiengang($stud->studiengang_kz, $semester);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$studenten->getStudentsStudiengang($studiengang_kz, $semester);
|
||||
}
|
||||
$studentenArray = $studenten->result;
|
||||
|
||||
// $studentenArray = $studenten->getStudents($studiengang_kz,$semester,null,null,null,'WS2011');
|
||||
echo '
|
||||
<form method="POST" name="form_studentenkarten" action="kartezuweisen.php">
|
||||
<table id="myTableFiles" class="tablesorter">
|
||||
@@ -221,78 +252,82 @@ if(isset($_REQUEST['btn_submitStudent']))
|
||||
<th>Geburtsdatum</th>
|
||||
<th>Matrikelnummer</th>
|
||||
<th>UID</th>
|
||||
<th>Studiengang</th>
|
||||
<th>person_id</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>';
|
||||
|
||||
foreach($studentenArray as $stud)
|
||||
if (count($studentenArray) > 0)
|
||||
{
|
||||
if($stud->studiengang_kz>10000 && $stud->studiengang_kz !='10007' && $stud->studiengang_kz!='10004')
|
||||
continue;
|
||||
|
||||
// Wenn letzter Status nich Student ist -> nicht anzeigen
|
||||
$prestudent = new prestudent();
|
||||
$prestudent->getLastStatus($stud->prestudent_id);
|
||||
if($prestudent->status_kurzbz == 'Student' || ($studiengang_kz=='incoming' && $prestudent->status_kurzbz='Incoming'))
|
||||
foreach($studentenArray as $stud)
|
||||
{
|
||||
if($statusStudent=='gedrucktNichtAusgegeben')
|
||||
//if($stud->studiengang_kz>10000 && $stud->studiengang_kz !='10007' && $stud->studiengang_kz!='10004')
|
||||
//continue;
|
||||
|
||||
// Wenn letzter Status nicht Student ist -> nicht anzeigen
|
||||
$prestudent = new prestudent();
|
||||
$prestudent->getLastStatus($stud->prestudent_id);
|
||||
if(($prestudent->status_kurzbz == 'Student' || ($studiengang_kz=='incoming' && $prestudent->status_kurzbz='Incoming')) && array_key_exists($stud->studiengang_kz, $studiengang_array))
|
||||
{
|
||||
// gedruckt aber noch nicht ausgegeben
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
$betriebsmittel = new betriebsmittel();
|
||||
|
||||
// status akzeptiert und noch nicht gedruckt
|
||||
if($fotostatus->fotostatus_kurzbz == 'akzeptiert' && $betriebsmittel->zutrittskartePrinted($stud->uid) == true && $betriebsmittel->zutrittskarteAusgegeben($stud->uid) == false)
|
||||
if($statusStudent=='gedrucktNichtAusgegeben')
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.'</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
// gedruckt aber noch nicht ausgegeben
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
$betriebsmittel = new betriebsmittel();
|
||||
|
||||
// status akzeptiert und noch nicht gedruckt
|
||||
if($fotostatus->fotostatus_kurzbz == 'akzeptiert' && $betriebsmittel->zutrittskartePrinted($stud->uid) == true && $betriebsmittel->zutrittskarteAusgegeben($stud->uid) == false)
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.'</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$studiengang_array[$stud->studiengang_kz].'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($statusStudent == 'nichtGedrucktAkzept')
|
||||
{
|
||||
// akzeptiert und nicht gedruckt
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
$betriebsmittel = new betriebsmittel();
|
||||
|
||||
// status akzeptiert und noch nicht gedruckt
|
||||
if($fotostatus->fotostatus_kurzbz == 'akzeptiert' && $betriebsmittel->zutrittskartePrinted($stud->uid) == false)
|
||||
else if($statusStudent == 'nichtGedrucktAkzept')
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.'</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
// akzeptiert und nicht gedruckt
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
$betriebsmittel = new betriebsmittel();
|
||||
|
||||
// status akzeptiert und noch nicht gedruckt
|
||||
if($fotostatus->fotostatus_kurzbz == 'akzeptiert' && $betriebsmittel->zutrittskartePrinted($stud->uid) == false)
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.'</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$studiengang_array[$stud->studiengang_kz].'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($statusStudent == 'nichtGedruckt')
|
||||
{
|
||||
// akzeptiert und nicht gedruckt
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
$betriebsmittel = new betriebsmittel();
|
||||
|
||||
// noch nicht gedruckt
|
||||
if($betriebsmittel->zutrittskartePrinted($stud->uid) == false)
|
||||
else if($statusStudent == 'nichtGedruckt')
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.' ('.$fotostatus->fotostatus_kurzbz.')</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
// akzeptiert und nicht gedruckt
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
$betriebsmittel = new betriebsmittel();
|
||||
|
||||
// noch nicht gedruckt
|
||||
if($betriebsmittel->zutrittskartePrinted($stud->uid) == false)
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.' ('.$fotostatus->fotostatus_kurzbz.')</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$studiengang_array[$stud->studiengang_kz].'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// letzten Status anzeigen
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
|
||||
// überprüfen ob letzer Status der gesuchte ist
|
||||
if($fotostatus->fotostatus_kurzbz == $statusStudent)
|
||||
else
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.'</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
// letzten Status anzeigen
|
||||
$fotostatus = new fotostatus();
|
||||
$fotostatus->getLastFotoStatus($stud->person_id);
|
||||
|
||||
// überprüfen ob letzer Status der gesuchte ist
|
||||
if($fotostatus->fotostatus_kurzbz == $statusStudent)
|
||||
{
|
||||
echo '<tr><td>'.$stud->nachname.' '.$stud->vorname.'</td><td>'.$stud->gebdatum.'</td><td>'.$stud->matrikelnr.'</td><td>'.$stud->uid.'</td><td>'.$studiengang_array[$stud->studiengang_kz].'</td><td>'.$stud->person_id.'<input type="hidden" name="users[]" value="'.$stud->uid.'"></td></tr>';
|
||||
$uids.=';'.$stud->uid;
|
||||
$mails[]=$stud->uid.'@'.DOMAIN;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user