mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
tbl_student changed to tbl_prestudent
This commit is contained in:
@@ -139,24 +139,23 @@ $tabelle = '<table>
|
||||
</tr>';
|
||||
$anzahl_gemeldet=0;
|
||||
//Hauptselect
|
||||
$qry="SELECT DISTINCT ON(student_uid, nachname, vorname) *, public.tbl_person.person_id AS pers_id, to_char(gebdatum, 'ddmmyy') AS vdat
|
||||
FROM public.tbl_student
|
||||
JOIN public.tbl_benutzer ON(student_uid=uid)
|
||||
JOIN public.tbl_person USING (person_id)
|
||||
JOIN public.tbl_prestudent USING (prestudent_id)
|
||||
$qry="SELECT DISTINCT ON(uid, nachname, vorname) *, public.tbl_person.person_id AS pers_id, to_char(gebdatum, 'ddmmyy') AS vdat
|
||||
FROM public.tbl_prestudent
|
||||
JOIN public.tbl_benutzer USING (uid)
|
||||
JOIN public.tbl_person ON (tbl_person.person_id = tbl_prestudent.person_id)
|
||||
JOIN public.tbl_prestudentstatus ON(tbl_prestudent.prestudent_id=tbl_prestudentstatus.prestudent_id)
|
||||
WHERE bismelden IS TRUE
|
||||
AND tbl_student.studiengang_kz=".$db->db_add_param($stg_kz)."
|
||||
AND tbl_prestudent.studiengang_kz=".$db->db_add_param($stg_kz)."
|
||||
AND (((tbl_prestudentstatus.studiensemester_kurzbz=".$db->db_add_param($ssem).") AND (tbl_prestudentstatus.datum<=".$db->db_add_param($bisdatum).")
|
||||
AND (status_kurzbz='Student' OR status_kurzbz='Outgoing'
|
||||
OR status_kurzbz='Praktikant' OR status_kurzbz='Diplomand' OR status_kurzbz='Absolvent'
|
||||
OR status_kurzbz='Abbrecher' OR status_kurzbz='Unterbrecher'))
|
||||
OR ((tbl_prestudentstatus.studiensemester_kurzbz=".$db->db_add_param($psem).") AND (status_kurzbz='Absolvent'
|
||||
OR status_kurzbz='Abbrecher') AND tbl_prestudentstatus.datum>".$db->db_add_param($bisprevious).")
|
||||
OR (status_kurzbz='Incoming' AND tbl_student.prestudent_id IN (SELECT prestudent_id FROM bis.tbl_bisio WHERE (tbl_bisio.bis>=".$db->db_add_param($bisprevious).")
|
||||
OR (status_kurzbz='Incoming' AND tbl_prestudent.prestudent_id IN (SELECT prestudent_id FROM bis.tbl_bisio WHERE (tbl_bisio.bis>=".$db->db_add_param($bisprevious).")
|
||||
OR (tbl_bisio.von<".$db->db_add_param($bisdatum)." AND (tbl_bisio.bis>=".$db->db_add_param($bisdatum)." OR tbl_bisio.bis IS NULL))
|
||||
)))
|
||||
ORDER BY student_uid, nachname, vorname
|
||||
ORDER BY uid, nachname, vorname
|
||||
";
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
@@ -437,7 +436,7 @@ if($result = $db->db_query($qry))
|
||||
if($error_log!='' OR $error_log1!='')
|
||||
{
|
||||
//Ausgabe der fehlenden Daten
|
||||
$v.="<u>Bei Student (UID, Vorname, Nachname) '".$row->student_uid."', '".$row->nachname."', '".$row->vorname."' ($row->status_kurzbz): </u>\n";
|
||||
$v.="<u>Bei Student (UID, Vorname, Nachname) '".$row->uid."', '".$row->nachname."', '".$row->vorname."' ($row->status_kurzbz): </u>\n";
|
||||
if($error_log!='')
|
||||
{
|
||||
$v.=" Fehler: ".$error_log."\n";
|
||||
@@ -455,12 +454,12 @@ if($result = $db->db_query($qry))
|
||||
else
|
||||
{
|
||||
$anzahl_gemeldet++;
|
||||
$tabelle.='<tr><td>'.$row->student_uid.'</td><td>'.$row->nachname.'</td><td>'.$row->vorname.'</td><td>'.$row->matrikelnr.'</td></tr>';
|
||||
$tabelle.='<tr><td>'.$row->uid.'</td><td>'.$row->nachname.'</td><td>'.$row->vorname.'</td><td>'.$row->perskz.'</td></tr>';
|
||||
|
||||
//Erstellung der XML-Datei
|
||||
$datei.="
|
||||
<StudentIn>
|
||||
<PersKz>".trim($row->matrikelnr)."</PersKz>
|
||||
<PersKz>".trim($row->perskz)."</PersKz>
|
||||
<GeburtsDatum>".date("dmY", $datumobj->mktime_fromdate($row->gebdatum))."</GeburtsDatum>
|
||||
<Geschlecht>".strtoupper($row->geschlecht)."</Geschlecht>";
|
||||
if(($row->svnr!='')&&($row->ersatzkennzeichen!=''))
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mailinglisten</TITLE>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<LINK rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
||||
</HEAD>
|
||||
<BODY class="background_main">
|
||||
<H2>MailingListen </H2>
|
||||
<H3>Gruppen</H3>
|
||||
<UL>
|
||||
<!--<LI><A href="mlists_index.php" class="linkblue">Verwaltung</A></LI>-->
|
||||
<LI><A href="../../../admin/mlists_generate.php" class="linkblue">Generate Lists</A></LI>
|
||||
</UL>
|
||||
|
||||
<UL>
|
||||
<LI>Check UIDs </LI>
|
||||
</UL>
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -1,153 +0,0 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Changes: 23.10.2004: Anpassung an neues DB-Schema (WM)
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
require_once('../../include/functions.inc.php');
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Kontakte - eMail-Verteiler</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body class="background_main">
|
||||
<h4>Kontakte - eMail-Verteiler</h4>
|
||||
<br>
|
||||
<h3>Module</h3>
|
||||
<table class="liste">
|
||||
<tr class="liste" >
|
||||
<?php
|
||||
if(!($erg=$db->db_query("SELECT studiengang_kz, bezeichnung, UPPER(typ::varchar(1) || kurzbz) as kurzbz FROM public.tbl_studiengang ORDER BY kurzbz ASC")))
|
||||
die($db->db_last_error());
|
||||
$num_rows=$db->db_num_rows($erg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object($erg, $i);
|
||||
echo "<th>$row->kurzbz<BR><SMALL>$row->bezeichnung</SMALL></th>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr bgcolor="#DDDDDD" valign="top">
|
||||
<?php
|
||||
for ($i=0; $i<$num_rows; $i++)
|
||||
{
|
||||
echo "<td nowrap>";
|
||||
$row=$db->db_fetch_object($erg, $i);
|
||||
$stg_id=$row->studiengang_kz;
|
||||
$stg_kzbz=$row->kurzbz;
|
||||
$sql_query="SELECT * FROM public.tbl_gruppe WHERE studiengang_kz=$stg_id ORDER BY gruppe_kurzbz";
|
||||
//echo $sql_query;
|
||||
if(!($result=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$nr_sem=$db->db_num_rows($result);
|
||||
for ($j=0; $j<$nr_sem; $j++)
|
||||
{
|
||||
$row_sem=$db->db_fetch_object($result, $j);
|
||||
if($row_sem->mailgrp=='t')
|
||||
echo "<a class=\"h1\" href=\"mailto:$row_sem->[email protected]\">$row_sem->gruppe_kurzbz</a><br>";
|
||||
else
|
||||
echo "$row_sem->gruppe_kurzbz<br>";
|
||||
echo "<a target=\"_blank\" class=\"linkgreen\" href=\"studenten_liste_export.php?einheitid=$row_sem->gruppe_kurzbz\"> (Liste)</a><br>";
|
||||
}
|
||||
echo"</td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<h3>Studenten</h3>
|
||||
<table class="liste">
|
||||
<tr class="liste">
|
||||
<?php
|
||||
if(!($erg=$db->db_query("SELECT studiengang_kz, bezeichnung, UPPER(typ::varchar(1) || kurzbz) as kurzbz FROM public.tbl_studiengang ORDER BY kurzbz ASC")))
|
||||
die($db->db_last_error());
|
||||
$num_rows=$db->db_num_rows($erg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object($erg, $i);
|
||||
echo "<th>$row->kurzbz<BR><SMALL>$row->bezeichnung</SMALL></th>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr bgcolor="#DDDDDD">
|
||||
<?php
|
||||
for ($i=0; $i<$num_rows; $i++)
|
||||
{
|
||||
echo "<td nowrap valign= \"top\">";
|
||||
$row=$db->db_fetch_object($erg, $i);
|
||||
$stg_id=$row->studiengang_kz;
|
||||
$stg_kzbz=$row->kurzbz;
|
||||
$sql_query="SELECT DISTINCT semester FROM public.tbl_student WHERE studiengang_kz=$stg_id ORDER BY semester";
|
||||
//echo $sql_query;
|
||||
if(!($result_sem=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$nr_sem=$db->db_num_rows($result_sem);
|
||||
for ($j=0; $j<$nr_sem; $j++)
|
||||
{
|
||||
$row_sem=$db->db_fetch_object($result_sem, $j);
|
||||
$stg_kzbz_lo=strtolower($stg_kzbz);
|
||||
echo "<a class=\"h1\" href=\"mailto:$stg_kzbz_lo$row_sem->[email protected]\">$stg_kzbz-$row_sem->semester</a><br>";
|
||||
|
||||
$sql_query="SELECT DISTINCT verband FROM public.tbl_student WHERE studiengang_kz=$stg_id AND semester=$row_sem->semester ORDER BY verband";
|
||||
//echo $sql_query;
|
||||
if(!($result_ver=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$nr_ver=$db->db_num_rows($result_ver);
|
||||
for ($k=0; $k<$nr_ver; $k++)
|
||||
{
|
||||
$row_ver=$db->db_fetch_object($result_ver, $k);
|
||||
$ver_lo=strtolower($row_ver->verband);
|
||||
echo " - <a class=\"linkblue\" href=\"mailto:$stg_kzbz_lo$row_sem->[email protected]\">$stg_kzbz-$row_sem->semester$row_ver->verband</a><br>";
|
||||
|
||||
$sql_query="SELECT DISTINCT gruppe FROM public.tbl_student WHERE studiengang_kz=$stg_id AND semester=$row_sem->semester AND verband='$row_ver->verband' ORDER BY gruppe";
|
||||
//echo $sql_query;
|
||||
if(!($result_grp=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$nr_grp=$db->db_num_rows($result_grp);
|
||||
for ($l=0; $l<$nr_grp; $l++)
|
||||
{
|
||||
$row_grp=$db->db_fetch_object($result_grp, $l);
|
||||
echo " - <a class=\"linkgreen\" href=\"mailto:$stg_kzbz_lo$row_sem->semester$ver_lo$row_grp->[email protected]\">$stg_kzbz-$row_sem->semester$row_ver->verband$row_grp->gruppe</a><br>";
|
||||
echo "<a target=\"_blank\" class=\"linkgreen\" href=\"studenten_liste_export.php?stgid=$stg_id&stg_kzbz=$stg_kzbz_lo&sem=$row_sem->semester&ver=$ver_lo&grp=$row_grp->gruppe\"> (Liste)</a><br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
echo"</td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,58 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Changes: 23.10.2004: Anpassung an neues DB-Schema (WM)
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
if (isset($_REQUEST['einheitid']))
|
||||
$einheitid=$_REQUEST['einheitid'];
|
||||
|
||||
if (isset($_REQUEST['stgid']))
|
||||
$stgid=$_REQUEST['stgid'];
|
||||
|
||||
$sem=(isset($_REQUEST['sem'])?$_REQUEST['sem']:0);
|
||||
$grp=(isset($_REQUEST['grp'])?$_REQUEST['grp']:'');
|
||||
|
||||
if (!isset($einheitid))
|
||||
$name=$stg_kzbz.$sem.$ver.$grp.'.txt';
|
||||
else
|
||||
$name='modul_id'.$einheitid.'.txt';
|
||||
|
||||
header("Content-disposition: filename=$name");
|
||||
header("Content-type: application/octetstream");
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
// doing some DOS-CRLF magic...
|
||||
$crlf="\n";
|
||||
$client=getenv("HTTP_USER_AGENT");
|
||||
if (ereg('[^(]*\((.*)\)[^)]*',$client,$regs))
|
||||
{
|
||||
$os = $regs[1];
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
|
||||
if(isset($stgid))
|
||||
$sql_query='SELECT uid, nachname, vorname FROM campus.vw_student '.
|
||||
'WHERE studiengang_kz='.$stgid.' AND semester='.$sem.
|
||||
' AND verband=\''.strtoupper($ver).'\' AND gruppe='.$grp.
|
||||
' ORDER BY nachname';
|
||||
|
||||
if (isset($einheitid))
|
||||
$sql_query='SELECT uid, nachname, vorname FROM campus.vw_benutzer JOIN tbl_benutzergruppe USING(uid) WHERE gruppe_kurzbz=\''.$einheitid.'\' ORDER BY nachname';
|
||||
|
||||
//echo $sql_query;
|
||||
if(!($result=$db->db_query($sql_query)))
|
||||
die($db->db_db_last_error());
|
||||
|
||||
$anz=$db->db_num_rows($result);
|
||||
for ($j=0; $j<$anz; $j++)
|
||||
{
|
||||
$row=$db->db_fetch_object($result, $j);
|
||||
echo '#'.$row->nachname.' '.$row->vorname.$crlf.$row->uid.$crlf;
|
||||
}
|
||||
?>
|
||||
@@ -1,14 +0,0 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Untitled Document</TITLE>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<LINK rel="stylesheet" href="../../../include/styles.css" type="text/css">
|
||||
</HEAD>
|
||||
|
||||
<BODY bgcolor="#FFFFFF" text="#000000">
|
||||
<P><A href="raum.php">Räume</A> </P>
|
||||
<P><A href="lektoren.php">Lektoren</A> - <A href="zeitwunsch.php">Zeitwünsche</A></P>
|
||||
<P><A href="studenten.php">Studenten</A> </P>
|
||||
<P> </P>
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -1,56 +0,0 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
require_once('../../../config/vilesci.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
$studiensemester_kurzbz=(isset($_REQUEST['studiensemester_kurzbz']) ? $_REQUEST['studiensemester_kurzbz'] :'SS2009' );
|
||||
|
||||
header("Content-disposition: filename=lektoren.txt");
|
||||
header("Content-type: application/octetstream");
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
|
||||
// doing some DOS-CRLF magic...
|
||||
$crlf="\n";
|
||||
$client=getenv("HTTP_USER_AGENT");
|
||||
if (ereg('[^(]*\((.*)\)[^)]*',$client,$regs))
|
||||
{
|
||||
$os = $regs[1];
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
$sql_query="SELECT distinct tbl_lehreinheitmitarbeiter.mitarbeiter_uid,public.tbl_person.* FROM lehre.tbl_lehreinheitmitarbeiter ,lehre.tbl_lehreinheit,public.tbl_mitarbeiter,public.tbl_person where public.tbl_person.aktiv and public.tbl_person.person_id=public.tbl_mitarbeiter.personalnummer and public.tbl_mitarbeiter.mitarbeiter_uid=tbl_lehreinheitmitarbeiter.mitarbeiter_uid and tbl_lehreinheitmitarbeiter.lehreinheit_id=tbl_lehreinheit.lehreinheit_id and tbl_lehreinheit.studiensemester_kurzbz='$studiensemester_kurzbz' and lehrfunktion_kurzbz='Lektor' ORDER BY tbl_lehreinheitmitarbeiter.mitarbeiter_uid";
|
||||
//echo $sql_query;
|
||||
if(!($result=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$anz=$db->db_num_rows($result);
|
||||
for ($j=0; $j<$anz; $j++)
|
||||
{
|
||||
$row=$db->db_fetch_object($result, $j);
|
||||
echo '"'.$row->mitarbeiter_uid.'","'.$row->nachname.'",,,,,,,,,,,,,,,,,,,,,,,,,,,"'.$row->vornamen.'","'.$row->anrede.'","'.$row->titelpost.'",,'.$crlf;
|
||||
}
|
||||
?>
|
||||
@@ -1,57 +0,0 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
require_once('../../../config/vilesci.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
|
||||
header("Content-disposition: filename=raum.txt");
|
||||
header("Content-type: application/octetstream");
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
|
||||
// doing some DOS-CRLF magic...
|
||||
$crlf="\n";
|
||||
$client=getenv("HTTP_USER_AGENT");
|
||||
if (ereg('[^(]*\((.*)\)[^)]*',$client,$regs))
|
||||
{
|
||||
$os = $regs[1];
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
|
||||
|
||||
$sql_query="SELECT * FROM public.tbl_ort ORDER BY ort_kurzbz";
|
||||
//echo $sql_query;
|
||||
if(!($result=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$anz=$db->db_num_rows($result);
|
||||
for ($j=0; $j<$anz; $j++)
|
||||
{
|
||||
$row=$db->db_fetch_object($result, $j);
|
||||
echo '"'.$row->ort_kurzbz.'","'.$row->bezeichnung.'",,,,,,'.$row->max_person.',,,,,,,,,,'.$crlf;
|
||||
}
|
||||
?>
|
||||
@@ -1,58 +0,0 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
require_once('../../../config/vilesci.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
|
||||
header("Content-disposition: filename=studenten.txt");
|
||||
header("Content-type: application/octetstream");
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
|
||||
// doing some DOS-CRLF magic...
|
||||
$crlf="\n";
|
||||
$client=getenv("HTTP_USER_AGENT");
|
||||
if (ereg('[^(]*\((.*)\)[^)]*',$client,$regs))
|
||||
{
|
||||
$os = $regs[1];
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
|
||||
|
||||
$sql_query="SELECT student_uid,nachname,vornamen, matrikelnr, semester, verband, gruppe, tbl_student.studiengang_kz FROM public.tbl_student, public.tbl_studiengang,public.tbl_mitarbeiter, public.tbl_prestudent ,public.tbl_person WHERE public.tbl_person.aktiv and public.tbl_person.person_id=tbl_prestudent.person_id and tbl_prestudent.prestudent_id=tbl_student.prestudent_id and tbl_student.studiengang_kz=tbl_studiengang.studiengang_kz ORDER BY student_uid";
|
||||
//echo $sql_query;
|
||||
if(!($result=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
|
||||
$anz=$db->db_num_rows($result);
|
||||
for ($j=0; $j<$anz; $j++)
|
||||
{
|
||||
$row=$db->db_fetch_object($result, $j);
|
||||
echo '"'.$row->student_uid.'","'.$row->nachname.'",,,,,,"'.$row->vornamen.'","'.$row->matrikelnr.'","'.$row->kurzbz.'-'.$row->semester.$row->verband.$row->gruppe.'","2",'.$crlf;
|
||||
}
|
||||
?>
|
||||
@@ -1,60 +0,0 @@
|
||||
<?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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
*/
|
||||
require_once('../../../config/vilesci.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
|
||||
$studiensemester_kurzbz=(isset($_REQUEST['studiensemester_kurzbz']) ? $_REQUEST['studiensemester_kurzbz'] :'SS2009' );
|
||||
|
||||
|
||||
header("Content-disposition: filename=zeitwuensche_lektoren.txt");
|
||||
header("Content-type: application/octetstream");
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: 0");
|
||||
|
||||
// doing some DOS-CRLF magic...
|
||||
$crlf="\n";
|
||||
$client=getenv("HTTP_USER_AGENT");
|
||||
if (ereg('[^(]*\((.*)\)[^)]*',$client,$regs))
|
||||
{
|
||||
$os = $regs[1];
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
# $sql_query="SELECT lektor.kurzbz, zeitwunsch.lektor_id, zeitwunsch.tag, zeitwunsch.stunde_id, zeitwunsch.gewicht FROM zeitwunsch, lektor WHERE zeitwunsch.lektor_id=lektor.id ORDER BY lektor.kurzbz";
|
||||
|
||||
$sql_query="SELECT distinct tbl_lehreinheitmitarbeiter.mitarbeiter_uid,public.tbl_person.* , tbl_zeitwunsch.tag, tbl_zeitwunsch.stunde, tbl_zeitwunsch.gewicht,tbl_stunde.beginn ,tbl_stunde.ende FROM lehre.tbl_stunde, campus.tbl_zeitwunsch , lehre.tbl_lehreinheitmitarbeiter ,lehre.tbl_lehreinheit,public.tbl_mitarbeiter,public.tbl_person where lehre.tbl_stunde.stunde=tbl_zeitwunsch.stunde and public.tbl_person.aktiv and public.tbl_person.person_id=public.tbl_mitarbeiter.personalnummer and campus.tbl_zeitwunsch.mitarbeiter_uid=tbl_lehreinheitmitarbeiter.mitarbeiter_uid and public.tbl_mitarbeiter.mitarbeiter_uid=tbl_lehreinheitmitarbeiter.mitarbeiter_uid and tbl_lehreinheitmitarbeiter.lehreinheit_id=tbl_lehreinheit.lehreinheit_id and tbl_lehreinheit.studiensemester_kurzbz='$studiensemester_kurzbz' and lehrfunktion_kurzbz='Lektor' ORDER BY tbl_lehreinheitmitarbeiter.mitarbeiter_uid";
|
||||
//echo $sql_query;
|
||||
if(!($result=$db->db_query($sql_query)))
|
||||
die($db->db_last_error());
|
||||
$anz=$db->db_num_rows($result);
|
||||
for ($j=0; $j<$anz; $j++)
|
||||
{
|
||||
$row=$db->db_fetch_object($result, $j);
|
||||
echo '"L","'.$row->mitarbeiter_uid.'",'.$row->tag.','.$row->stunde.','.$row->gewicht.','.$row->beginn.','.$row->ende.$crlf;
|
||||
}
|
||||
?>
|
||||
@@ -15,10 +15,11 @@
|
||||
* 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 < [email protected] >
|
||||
* Andreas Oesterreicher < [email protected] >
|
||||
* Rudolf Hangl < [email protected] >
|
||||
* Gerald Simane-Sequens < [email protected] >
|
||||
* Authors: Christian Paminger < [email protected] >,
|
||||
* Andreas Oesterreicher < [email protected] >,
|
||||
* Rudolf Hangl < [email protected] >,
|
||||
* Gerald Simane-Sequens < [email protected] > and
|
||||
* Andreas Moik < [email protected] >.
|
||||
*/
|
||||
/*
|
||||
* Fuehrt eine Kollisionspruefung im Stundenplan auf Studentenebene durch
|
||||
@@ -126,22 +127,22 @@ if($dontloadcontent)
|
||||
|
||||
if($stg_kz=='')
|
||||
{
|
||||
$qry = "SELECT datum, stunde, student_uid, count(student_uid) AS anzahl
|
||||
$qry = "SELECT datum, stunde, uid, count(uid) AS anzahl
|
||||
FROM lehre.vw_".$db_stpl_table."_student_unr
|
||||
WHERE datum>=".$db->db_add_param($beginn)." AND datum<=".$db->db_add_param($ende)."
|
||||
GROUP BY datum, stunde, student_uid
|
||||
HAVING count(student_uid)>1
|
||||
ORDER BY datum, stunde, student_uid LIMIT 30;
|
||||
GROUP BY datum, stunde, uid
|
||||
HAVING count(uid)>1
|
||||
ORDER BY datum, stunde, uid LIMIT 30;
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = "SELECT datum, stunde, student_uid, count(student_uid) AS anzahl
|
||||
FROM lehre.vw_".$db_stpl_table."_student_unr JOIN public.tbl_student USING(student_uid)
|
||||
$qry = "SELECT datum, stunde, uid, count(uid) AS anzahl
|
||||
FROM lehre.vw_".$db_stpl_table."_student_unr JOIN public.tbl_prestudent USING(uid)
|
||||
WHERE datum>=".$db->db_add_param($beginn)." AND datum<=".$db->db_add_param($ende)." AND studiengang_kz=".$db->db_add_param($stg_kz)."
|
||||
GROUP BY datum, stunde, student_uid
|
||||
HAVING count(student_uid)>1
|
||||
ORDER BY datum, stunde, student_uid LIMIT 30;
|
||||
GROUP BY datum, stunde, uid
|
||||
HAVING count(uid)>1
|
||||
ORDER BY datum, stunde, uid LIMIT 30;
|
||||
";
|
||||
}
|
||||
//echo $qry;
|
||||
@@ -165,10 +166,10 @@ if($result = $db->db_query($qry))
|
||||
echo "<tr>";
|
||||
echo "<td class='table-sortable:default' align='center'>$row->datum</td>";
|
||||
echo "<td class='table-sortable:default' align='center'>$row->stunde</td>";
|
||||
echo "<td class='table-sortable:default' align='center'>$row->student_uid</td>";
|
||||
echo "<td class='table-sortable:default' align='center'>$row->uid</td>";
|
||||
echo "<td class='table-sortable:default' align='center'>$row->anzahl</td>";
|
||||
echo "<td class='table-sortable:default' align='center'><a href='stpl_benutzer_kollision_details.php?datum=$row->datum&stunde=$row->stunde' target='kollision_detail'>Stundenplan</a></td>";
|
||||
echo "<td class='table-sortable:default' align='center'><a href='stpl_benutzer_kollision_details.php?datum=$row->datum&stunde=$row->stunde&uid=$row->student_uid' target='kollision_detail'>UNR</a></td>";
|
||||
echo "<td class='table-sortable:default' align='center'><a href='stpl_benutzer_kollision_details.php?datum=$row->datum&stunde=$row->stunde&uid=$row->uid' target='kollision_detail'>UNR</a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,185 +1,185 @@
|
||||
<?php
|
||||
/* Copyright (C) 2014 fhcomplete.org
|
||||
*
|
||||
* 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: Martin Tatzber <[email protected]
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/studienplan.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(!$rechte->isBerechtigt('assistenz', null, 'suid'))
|
||||
die('keine Berechtigung für diese Seite!');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
if(isset($_REQUEST['stg_kz']))
|
||||
$stg_kz=$_REQUEST['stg_kz'];
|
||||
else
|
||||
$stg_kz='';
|
||||
|
||||
if(isset($_POST["schick"]))
|
||||
{
|
||||
$studienplan_id=$_POST["stpl"];
|
||||
|
||||
$prestudent_id=$_POST["prestudent_id"];
|
||||
$prestudent_rollen=new prestudent();
|
||||
$prestudent_rollen->getPrestudentRolle($prestudent_id);
|
||||
if($studienplan_id!='')
|
||||
{
|
||||
foreach($prestudent_rollen->result as $rolle)
|
||||
{
|
||||
$prestudent=new prestudent();
|
||||
$prestudent->load_rolle($rolle->prestudent_id, $rolle->status_kurzbz, $rolle->studiensemester_kurzbz, $rolle->ausbildungssemester);
|
||||
$prestudent->studienplan_id=$studienplan_id;
|
||||
if(!$prestudent->save_rolle())
|
||||
echo 'Fehler: '.$prestudent->errormsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$output='<h1>Zuteilung von Studenten zum zugehörigen Studienplan</h1>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="GET">
|
||||
Studiengang: <select name="stg_kz" onchange="this.form.submit()"><option value="">-- Alle --</option>';
|
||||
|
||||
$studiengang=new studiengang();
|
||||
$studiengang->getAll('typ,kurzbz');
|
||||
foreach ($studiengang->result as $stg)
|
||||
{
|
||||
if($stg->studiengang_kz==$stg_kz)
|
||||
$selected=' selected';
|
||||
else
|
||||
$selected='';
|
||||
$output .= '<option value="'.$stg->studiengang_kz.'"'.$selected.'>'.$stg->kurzbzlang.' - '.$stg->bezeichnung.'</option>';
|
||||
}
|
||||
$output .= '</select>
|
||||
</form>';
|
||||
|
||||
$limit=20;
|
||||
$qry_from_where=" FROM public.tbl_prestudent
|
||||
JOIN public.tbl_person USING(person_id)
|
||||
JOIN public.tbl_student USING(prestudent_id)
|
||||
JOIN public.tbl_benutzer ON(student_uid=uid)
|
||||
WHERE NOT EXISTS(
|
||||
SELECT 1 FROM public.tbl_prestudentstatus
|
||||
WHERE tbl_prestudent.prestudent_id=tbl_prestudentstatus.prestudent_id
|
||||
AND tbl_prestudentstatus.studienplan_id is not null)
|
||||
AND tbl_benutzer.aktiv = TRUE
|
||||
AND get_rolle_prestudent(prestudent_id,null) in('Student','Diplomand','Unterbrecher')";
|
||||
|
||||
if($stg_kz!='')
|
||||
{
|
||||
$qry_from_where .= " AND tbl_prestudent.studiengang_kz=".$db->db_add_param($stg_kz, FHC_INTEGER);
|
||||
$qry_order_by = " ORDER BY nachname";
|
||||
}
|
||||
else
|
||||
$qry_order_by = " ORDER BY tbl_prestudent.studiengang_kz, nachname";
|
||||
$qry_limit=" LIMIT ".$limit;
|
||||
|
||||
$count_qry="SELECT count(*) as count".$qry_from_where;
|
||||
$select_qry="SELECT tbl_person.vorname, tbl_person.nachname, tbl_prestudent.prestudent_id, tbl_prestudent.studiengang_kz,
|
||||
get_rolle_prestudent(prestudent_id,null) as laststatus".$qry_from_where.$qry_order_by.$qry_limit;
|
||||
|
||||
$count='';
|
||||
if($result=$db->db_query($count_qry))
|
||||
{
|
||||
if($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$count=$row->count;
|
||||
}
|
||||
}
|
||||
|
||||
$output .= 'Zeige '.($count<$limit?$count:$limit).' von '.$count;
|
||||
|
||||
//if($stg_kz!='')
|
||||
//{
|
||||
$output .= '
|
||||
<table class="tablesorter" id="t1">
|
||||
<thead>
|
||||
<th>Vorname</th>
|
||||
<th>Nachname</th>
|
||||
<th>Studiengang</th>
|
||||
<th>Status</th>
|
||||
<th>Studienplan</th>
|
||||
</thead>
|
||||
<tbody>';
|
||||
|
||||
$studiengang=new studiengang();
|
||||
if($result=$db->db_query($select_qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$studiengang->load($row->studiengang_kz);
|
||||
$output .= '
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
|
||||
<input type="hidden" name="stg_kz" value="'.$stg_kz.'" />
|
||||
<tr>
|
||||
<td>'.$row->vorname.'</td>
|
||||
<td>'.$row->nachname.'</td>
|
||||
<td>'.$studiengang->kurzbzlang.' - '.$studiengang->bezeichnung.'</td>';
|
||||
|
||||
$prestudent=new prestudent();
|
||||
$prestudent->getLastStatus($row->prestudent_id);
|
||||
|
||||
$output .= '<td>'.$prestudent->status_kurzbz.'</td>
|
||||
<td>
|
||||
<input type="hidden" name="prestudent_id" value="'.$row->prestudent_id.'" />
|
||||
<select name="stpl">
|
||||
<option value="">-- keine Auswahl--</option>';
|
||||
$studienplan=new studienplan();
|
||||
$studienplan->getStudienplaene($row->studiengang_kz);
|
||||
foreach($studienplan->result as $stpl)
|
||||
{
|
||||
$output .= '<option value="'.$stpl->studienplan_id.'">'.$db->convert_html_chars($stpl->bezeichnung.' ('.$stpl->studienplan_id.')').'</option>';
|
||||
}
|
||||
$output .= '
|
||||
</select><input type="submit" name="schick" value="Speichern"/>
|
||||
</td>
|
||||
</tr></form>';
|
||||
}
|
||||
}
|
||||
$output .= '</tbody></table>';
|
||||
//}
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/vilesci.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter();
|
||||
});
|
||||
</script>
|
||||
|
||||
<title>Studienplan Zuteilung</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php echo $output; ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
/* Copyright (C) 2014 fhcomplete.org
|
||||
*
|
||||
* 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: Martin Tatzber <[email protected]> and
|
||||
* Andreas Moik <[email protected]>.
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/studienplan.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(!$rechte->isBerechtigt('assistenz', null, 'suid'))
|
||||
die('keine Berechtigung für diese Seite!');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
if(isset($_REQUEST['stg_kz']))
|
||||
$stg_kz=$_REQUEST['stg_kz'];
|
||||
else
|
||||
$stg_kz='';
|
||||
|
||||
if(isset($_POST["schick"]))
|
||||
{
|
||||
$studienplan_id=$_POST["stpl"];
|
||||
|
||||
$prestudent_id=$_POST["prestudent_id"];
|
||||
$prestudent_rollen=new prestudent();
|
||||
$prestudent_rollen->getPrestudentRolle($prestudent_id);
|
||||
if($studienplan_id!='')
|
||||
{
|
||||
foreach($prestudent_rollen->result as $rolle)
|
||||
{
|
||||
$prestudent=new prestudent();
|
||||
$prestudent->load_rolle($rolle->prestudent_id, $rolle->status_kurzbz, $rolle->studiensemester_kurzbz, $rolle->ausbildungssemester);
|
||||
$prestudent->studienplan_id=$studienplan_id;
|
||||
if(!$prestudent->save_rolle())
|
||||
echo 'Fehler: '.$prestudent->errormsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$output='<h1>Zuteilung von Studenten zum zugehörigen Studienplan</h1>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="GET">
|
||||
Studiengang: <select name="stg_kz" onchange="this.form.submit()"><option value="">-- Alle --</option>';
|
||||
|
||||
$studiengang=new studiengang();
|
||||
$studiengang->getAll('typ,kurzbz');
|
||||
foreach ($studiengang->result as $stg)
|
||||
{
|
||||
if($stg->studiengang_kz==$stg_kz)
|
||||
$selected=' selected';
|
||||
else
|
||||
$selected='';
|
||||
$output .= '<option value="'.$stg->studiengang_kz.'"'.$selected.'>'.$stg->kurzbzlang.' - '.$stg->bezeichnung.'</option>';
|
||||
}
|
||||
$output .= '</select>
|
||||
</form>';
|
||||
|
||||
$limit=20;
|
||||
$qry_from_where=" FROM public.tbl_prestudent
|
||||
JOIN public.tbl_person USING(person_id)
|
||||
JOIN public.tbl_benutzer USING(uid)
|
||||
WHERE NOT EXISTS(
|
||||
SELECT 1 FROM public.tbl_prestudentstatus
|
||||
WHERE tbl_prestudent.prestudent_id=tbl_prestudentstatus.prestudent_id
|
||||
AND tbl_prestudentstatus.studienplan_id is not null)
|
||||
AND tbl_benutzer.aktiv = TRUE
|
||||
AND get_rolle_prestudent(prestudent_id,null) in('Student','Diplomand','Unterbrecher')";
|
||||
|
||||
if($stg_kz!='')
|
||||
{
|
||||
$qry_from_where .= " AND tbl_prestudent.studiengang_kz=".$db->db_add_param($stg_kz, FHC_INTEGER);
|
||||
$qry_order_by = " ORDER BY nachname";
|
||||
}
|
||||
else
|
||||
$qry_order_by = " ORDER BY tbl_prestudent.studiengang_kz, nachname";
|
||||
$qry_limit=" LIMIT ".$limit;
|
||||
|
||||
$count_qry="SELECT count(*) as count".$qry_from_where;
|
||||
$select_qry="SELECT tbl_person.vorname, tbl_person.nachname, tbl_prestudent.prestudent_id, tbl_prestudent.studiengang_kz,
|
||||
get_rolle_prestudent(prestudent_id,null) as laststatus".$qry_from_where.$qry_order_by.$qry_limit;
|
||||
|
||||
$count='';
|
||||
if($result=$db->db_query($count_qry))
|
||||
{
|
||||
if($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$count=$row->count;
|
||||
}
|
||||
}
|
||||
|
||||
$output .= 'Zeige '.($count<$limit?$count:$limit).' von '.$count;
|
||||
|
||||
//if($stg_kz!='')
|
||||
//{
|
||||
$output .= '
|
||||
<table class="tablesorter" id="t1">
|
||||
<thead>
|
||||
<th>Vorname</th>
|
||||
<th>Nachname</th>
|
||||
<th>Studiengang</th>
|
||||
<th>Status</th>
|
||||
<th>Studienplan</th>
|
||||
</thead>
|
||||
<tbody>';
|
||||
|
||||
$studiengang=new studiengang();
|
||||
if($result=$db->db_query($select_qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$studiengang->load($row->studiengang_kz);
|
||||
$output .= '
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
|
||||
<input type="hidden" name="stg_kz" value="'.$stg_kz.'" />
|
||||
<tr>
|
||||
<td>'.$row->vorname.'</td>
|
||||
<td>'.$row->nachname.'</td>
|
||||
<td>'.$studiengang->kurzbzlang.' - '.$studiengang->bezeichnung.'</td>';
|
||||
|
||||
$prestudent=new prestudent();
|
||||
$prestudent->getLastStatus($row->prestudent_id);
|
||||
|
||||
$output .= '<td>'.$prestudent->status_kurzbz.'</td>
|
||||
<td>
|
||||
<input type="hidden" name="prestudent_id" value="'.$row->prestudent_id.'" />
|
||||
<select name="stpl">
|
||||
<option value="">-- keine Auswahl--</option>';
|
||||
$studienplan=new studienplan();
|
||||
$studienplan->getStudienplaene($row->studiengang_kz);
|
||||
foreach($studienplan->result as $stpl)
|
||||
{
|
||||
$output .= '<option value="'.$stpl->studienplan_id.'">'.$db->convert_html_chars($stpl->bezeichnung.' ('.$stpl->studienplan_id.')').'</option>';
|
||||
}
|
||||
$output .= '
|
||||
</select><input type="submit" name="schick" value="Speichern"/>
|
||||
</td>
|
||||
</tr></form>';
|
||||
}
|
||||
}
|
||||
$output .= '</tbody></table>';
|
||||
//}
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/vilesci.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter();
|
||||
});
|
||||
</script>
|
||||
|
||||
<title>Studienplan Zuteilung</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php echo $output; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -206,7 +206,7 @@ if($method=="lehrveranstaltungen")
|
||||
FROM
|
||||
campus.vw_student_lehrveranstaltung
|
||||
JOIN public.tbl_benutzer using(uid)
|
||||
JOIN public.tbl_student ON(uid=student_uid)
|
||||
JOIN public.tbl_student ON(uid=student_uid)
|
||||
JOIN public.tbl_prestudentstatus USING(prestudent_id)
|
||||
WHERE
|
||||
lehrveranstaltung_id=tbl_lehrveranstaltung.lehrveranstaltung_id
|
||||
|
||||
@@ -272,14 +272,13 @@ if(count($prestudent->result)>0)
|
||||
</thead><tbody>';
|
||||
foreach ($prestudent->result as $row)
|
||||
{
|
||||
$uid='';
|
||||
$gruppe='';
|
||||
$pst = new prestudent();
|
||||
$pst->getLastStatus($prestudent->prestudent_id);
|
||||
$studiensemester = new studiensemester();
|
||||
$studiensemester_kurzbz = $studiensemester->getaktorNext();
|
||||
$pst->load_studentlehrverband($studiensemester_kurzbz);
|
||||
|
||||
$pst = new prestudent($row->prestudent_id);
|
||||
|
||||
$uid = $pst->uid;
|
||||
if($vrb = $pst->getStudentLehrverband())
|
||||
$gruppe = $vrb->semester.$vrb->verband.$vrb->gruppe;
|
||||
$pst->getLastStatus($row->prestudent_id);
|
||||
|
||||
echo '<tr>';
|
||||
echo "<td>$row->prestudent_id</td>";
|
||||
@@ -287,12 +286,9 @@ if(count($prestudent->result)>0)
|
||||
echo "<td>".($row->reihungstestangetreten?'Ja':'Nein')."</td>";
|
||||
|
||||
|
||||
echo "<td>$pst->uid</td>";
|
||||
|
||||
echo "<td>$uid</td>";
|
||||
echo "<td>$gruppe</td>";
|
||||
$prestudent1 = new prestudent();
|
||||
$prestudent1->getLastStatus($row->prestudent_id);
|
||||
echo "<td>$prestudent1->status_kurzbz ".($prestudent1->ausbildungssemester!=''?"($prestudent1->ausbildungssemester. Semester)":'')."</td>";
|
||||
echo "<td>$pst->status_kurzbz ".($pst->ausbildungssemester!=''?"($pst->ausbildungssemester. Semester)":'')."</td>";
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
|
||||
@@ -28,7 +28,6 @@ require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/benutzer.class.php');
|
||||
require_once('../../include/student.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
require_once('../../include/datum.class.php');
|
||||
require_once('../../include/authentication.class.php');
|
||||
@@ -200,19 +199,11 @@ if($searchstr!='')
|
||||
|
||||
while($row_student = $db->db_fetch_object($result_student))
|
||||
{
|
||||
$stsem = new studiensemester();
|
||||
$stsem_kurzbz = $stsem->getaktorNext();
|
||||
$qry_sem = "SELECT gruppe, verband, semester from tbl_studentlehrverband WHERE studiensemester_kurzbz=".$db->db_add_param($stsem_kurzbz);
|
||||
if(!$res_sem = $db->db_query($qry_sem))
|
||||
die("Fehler beim holen des Lehrverbandes");
|
||||
|
||||
|
||||
$gruppe='';
|
||||
$student = new prestudent();var_dump($row_student->prestudent_id);
|
||||
$student->getLastStatus($row_student->prestudent_id);
|
||||
|
||||
if($vrb = $student->getStudentLehrverband())
|
||||
$gruppe = $vrb->semester.$vrb->verband.$vrb->gruppe;
|
||||
$prestudent = new prestudent();
|
||||
$prestudent->getLastStatus($row_student->prestudent_id);
|
||||
$studiensemester = new studiensemester();
|
||||
$studiensemester_kurzbz = $studiensemester->getaktorNext();
|
||||
$prestudent->load_studentlehrverband($studiensemester_kurzbz);
|
||||
|
||||
$content.= '<tr>';
|
||||
$content.= '<td></td>';
|
||||
@@ -220,7 +211,7 @@ if($searchstr!='')
|
||||
$content.= '<td></td>';
|
||||
$content.= '<td></td>';
|
||||
$content.= '<td></td>';
|
||||
$content.= "<td>$student->status_kurzbz</td>";
|
||||
$content.= "<td>$prestudent->status_kurzbz</td>";
|
||||
$content.= "<td><a href='personen_details.php?uid=$row_student->uid'>$row_student->uid</a></td>";
|
||||
$content.= "<td>".($row_student->aktiv=='t'?'Ja':'Nein')."</td>";
|
||||
|
||||
@@ -238,7 +229,7 @@ if($searchstr!='')
|
||||
$content.= "<td></td>";
|
||||
$content.= "<td></td>";
|
||||
$content.= "<td>".$stg_arr[$row_student->studiengang_kz]."</td>";
|
||||
$content.= "<td>$gruppe</td>";
|
||||
$content.= "<td>$prestudent->semester$prestudent->verband$prestudent->gruppe</td>";
|
||||
$content.= "<td>".($row_student->supdateamum!=''?date('d.m.Y H:i:s', $datum_obj->mktime_fromtimestamp($row_student->supdateamum)):'')."</td>";
|
||||
$content.= "<td>$row_student->supdatevon</td>";
|
||||
$content.= '</tr>';
|
||||
|
||||
Reference in New Issue
Block a user