mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
- Bugfix Stundenplansyncro
- Vilesci diverse Umstellungen auf neue DB - Weiterbildung aktualisiert
This commit is contained in:
@@ -107,9 +107,9 @@ if($result = pg_query($conn_vilesci, $qry))
|
||||
//Spezialgruppe
|
||||
$grp_obj = new gruppe($conn);
|
||||
|
||||
if(!$grp_obj->exists($row->einheit_kurzbz))
|
||||
if(!$grp_obj->exists(strtoupper($row->einheit_kurzbz)))
|
||||
{
|
||||
$grp_obj->gruppe_kurzbz = $row->einheit_kurzbz;
|
||||
$grp_obj->gruppe_kurzbz = strtoupper($row->einheit_kurzbz);
|
||||
$grp_obj->studiengang_kz = $row->studiengang_kz;
|
||||
$grp_obj->semester = $row->semester;
|
||||
$grp_obj->mailgrp = false;
|
||||
@@ -164,7 +164,7 @@ if($result = pg_query($conn_vilesci, $qry))
|
||||
myaddslashes($row->datum).",".
|
||||
myaddslashes($row->stunde).",".
|
||||
myaddslashes($row->ort_kurzbz).",".
|
||||
myaddslashes($row->einheit_kurzbz).",".
|
||||
myaddslashes(strtoupper($row->einheit_kurzbz)).",".
|
||||
myaddslashes($row->titel).",".
|
||||
myaddslashes($row->anmerkung).",".
|
||||
($row->fix=='t'?'true':'false').",'".
|
||||
|
||||
@@ -156,5 +156,18 @@ class benutzergruppe
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function delete($uid, $gruppe_kurzbz)
|
||||
{
|
||||
$qry = "DELETE FROM public.tbl_benutzergruppe WHERE uid='".addslashes($uid)."' AND gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
|
||||
|
||||
if(pg_query($this->conn, $qry))
|
||||
return true;
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Loeschen der Zuteilung';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
+110
-6
@@ -35,6 +35,7 @@ class gruppe
|
||||
var $sort; // smallint
|
||||
var $mailgrp; // boolean
|
||||
var $beschreibung; // varchar(128)
|
||||
var $generiert; // boolean
|
||||
var $sichtbar; // boolean
|
||||
var $aktiv; // boolean
|
||||
var $updateamum; // timestamp
|
||||
@@ -68,6 +69,21 @@ class gruppe
|
||||
$this->load($gruppe_kurzbz);
|
||||
}
|
||||
|
||||
// *************************
|
||||
// * Loescht eine Gruppe
|
||||
// *************************
|
||||
function delete($gruppe_kurzbz)
|
||||
{
|
||||
$qry ="DELETE FROM public.tbl_gruppe WHERE gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
|
||||
if(pg_query($this->conn, $qry))
|
||||
return true;
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim loeschen der Gruppe';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// ****************************************
|
||||
// * Prueft ob bereits eine Gruppe mit der
|
||||
// * uebergebenen Kurzbezeichnung existiert
|
||||
@@ -75,7 +91,7 @@ class gruppe
|
||||
// ****************************************
|
||||
function exists($gruppe_kurzbz)
|
||||
{
|
||||
$qry = "SELECT count(*) as anzahl FROM public.tbl_gruppe WHERE gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
|
||||
$qry = "SELECT count(*) as anzahl FROM public.tbl_gruppe WHERE gruppe_kurzbz='".addslashes(strtoupper($gruppe_kurzbz))."'";
|
||||
|
||||
if($row = pg_fetch_object(pg_query($this->conn,$qry)))
|
||||
{
|
||||
@@ -97,7 +113,93 @@ class gruppe
|
||||
// *********************************************************
|
||||
function load($gruppe_kurzbz)
|
||||
{
|
||||
return false;
|
||||
$qry = "SELECT * FROM public.tbl_gruppe where gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
|
||||
if($result = pg_query($this->conn, $qry))
|
||||
{
|
||||
if($row = pg_fetch_object($result))
|
||||
{
|
||||
$this->gruppe_kurzbz = $row->gruppe_kurzbz;
|
||||
$this->studiengang_kz = $row->studiengang_kz;
|
||||
$this->bezeichnung = $row->bezeichnung;
|
||||
$this->semester = $row->semester;
|
||||
$this->sort = $row->sort;
|
||||
$this->mailgrp = ($row->mailgrp=='t'?true:false);
|
||||
$this->beschreibung = $row->beschreibung;
|
||||
$this->sichtbar = ($row->sichtbar=='t'?true:false);
|
||||
$this->aktiv = ($row->aktiv=='t'?true:false);
|
||||
$this->generiert = ($row->generiert=='t'?true:false);
|
||||
$this->updateamum = $row->updateamum;
|
||||
$this->updatevon = $row->updatevon;
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim laden der Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim laden der Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function getAll()
|
||||
{
|
||||
$qry = "SELECT * FROM public.tbl_gruppe ORDER BY gruppe_kurzbz";
|
||||
|
||||
if( $result = pg_query($this->conn, $qry))
|
||||
{
|
||||
while($row=pg_fetch_object($result))
|
||||
{
|
||||
$grp_obj = new gruppe($this->conn);
|
||||
$grp_obj->gruppe_kurzbz = $row->gruppe_kurzbz;
|
||||
$grp_obj->studiengang_kz = $row->studiengang_kz;
|
||||
$grp_obj->bezeichnung = $row->bezeichnung;
|
||||
$grp_obj->semester = $row->semester;
|
||||
$grp_obj->sort = $row->sort;
|
||||
$grp_obj->mailgrp = ($row->mailgrp=='t'?true:false);
|
||||
$grp_obj->beschreibung = $row->beschreibung;
|
||||
$grp_obj->sichtbar = ($row->sichtbar=='t'?true:false);
|
||||
$grp_obj->aktiv = ($row->aktiv=='t'?true:false);
|
||||
$grp_obj->generiert = ($row->generiert=='t'?true:false);
|
||||
$grp_obj->updateamum = $row->updateamum;
|
||||
$grp_obj->updatevon = $row->updatevon;
|
||||
$grp_obj->insertamum = $row->insertamum;
|
||||
$grp_obj->insertvon = $row->insertvon;
|
||||
|
||||
$this->result[] = $grp_obj;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim laden der Gruppen';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function countStudenten($gruppe_kurzbz)
|
||||
{
|
||||
$qry = "SELECT count(*) as anzahl FROM public.tbl_benutzergruppe WHERE gruppe_kurzbz='".addslashes($gruppe_kurzbz)."'";
|
||||
if($result = pg_query($this->conn, $qry))
|
||||
{
|
||||
if($row = pg_fetch_object($result))
|
||||
return $row->anzahl;
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim lesen der benutzergruppe';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim lesen der benutzergruppe';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function getgruppe($studiengang_kz=null, $semester=null, $mailgrp=null, $sichtbar=null)
|
||||
@@ -117,7 +219,6 @@ class gruppe
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
$grp_obj = new gruppe($this->conn);
|
||||
|
||||
$grp_obj->gruppe_kurzbz = $row->gruppe_kurzbz;
|
||||
$grp_obj->studiengang_kz = $row->studiengang_kz;
|
||||
$grp_obj->bezeichnung = $row->bezeichnung;
|
||||
@@ -127,6 +228,7 @@ class gruppe
|
||||
$grp_obj->beschreibung = $row->beschreibung;
|
||||
$grp_obj->sichtbar = ($row->sichtbar=='t'?true:false);
|
||||
$grp_obj->aktiv = ($row->aktiv=='t'?true:false);
|
||||
$grp_obj->generiert = ($row->generiert=='t'?true:false);
|
||||
$grp_obj->updateamum = $row->updateamum;
|
||||
$grp_obj->updatevon = $row->updatevon;
|
||||
$grp_obj->insertamum = $row->insertamum;
|
||||
@@ -243,9 +345,9 @@ class gruppe
|
||||
if($new)
|
||||
{
|
||||
$qry = 'INSERT INTO public.tbl_gruppe (gruppe_kurzbz, studiengang_kz, bezeichnung, semester, sort,
|
||||
mailgrp, beschreibung, sichtbar, aktiv,
|
||||
mailgrp, beschreibung, sichtbar, generiert, aktiv,
|
||||
updateamum, updatevon, insertamum, insertvon)
|
||||
VALUES('.$this->addslashes($this->gruppe_kurzbz).','.
|
||||
VALUES('.$this->addslashes(strtoupper($this->gruppe_kurzbz)).','.
|
||||
$this->addslashes($this->studiengang_kz).','.
|
||||
$this->addslashes($this->bezeichnung).','.
|
||||
$this->addslashes($this->semester).','.
|
||||
@@ -253,6 +355,7 @@ class gruppe
|
||||
($this->mailgrp?'true':'false').','.
|
||||
$this->addslashes($this->beschreibung).','.
|
||||
($this->sichtbar?'true':'false').','.
|
||||
($this->generiert?'true':'false').','.
|
||||
($this->aktiv?'true':'false').','.
|
||||
$this->addslashes($this->updateamum).','.
|
||||
$this->addslashes($this->updatevon).','.
|
||||
@@ -269,10 +372,11 @@ class gruppe
|
||||
' mailgrp='.($this->mailgrp?'true':'false').','.
|
||||
' beschreibung='.$this->addslashes($this->beschreibung).','.
|
||||
' sichtbar='.($this->sichtbar?'true':'false').','.
|
||||
' generiert='.($this->generiert?'true':'false').','.
|
||||
' aktiv='.($this->aktiv?'true':'false').','.
|
||||
' updateamum='.$this->addslashes($this->updateamum).','.
|
||||
' updatevon='.$this->addslashes($this->updatevon).
|
||||
" WHERE gruppe_kurzbz=".$this->addslashes($this->gruppe_kurzbz).";";
|
||||
" WHERE gruppe_kurzbz=".$this->addslashes(strtoupper($this->gruppe_kurzbz)).";";
|
||||
}
|
||||
|
||||
if(pg_query($this->conn,$qry))
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
/**
|
||||
* Changes: 23.10.2004: Anpassung an neues DB-Schema (WM)
|
||||
*/
|
||||
include('../config.inc.php');
|
||||
include('../../include/functions.inc.php');
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<table class="liste">
|
||||
<tr class="liste" >
|
||||
<?php
|
||||
if(!($erg=pg_exec($conn, "SELECT studiengang_kz, bezeichnung, kurzbz FROM tbl_studiengang ORDER BY kurzbz ASC")))
|
||||
if(!($erg=pg_query($conn, "SELECT studiengang_kz, bezeichnung, UPPER(typ::varchar(1) || kurzbz) as kurzbz FROM public.tbl_studiengang ORDER BY kurzbz ASC")))
|
||||
die(pg_errormessage($conn));
|
||||
$num_rows=pg_numrows($erg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
@@ -41,19 +41,19 @@
|
||||
$row=pg_fetch_object($erg, $i);
|
||||
$stg_id=$row->studiengang_kz;
|
||||
$stg_kzbz=$row->kurzbz;
|
||||
$sql_query="SELECT * FROM tbl_einheit WHERE studiengang_kz=$stg_id ORDER BY einheit_kurzbz";
|
||||
$sql_query="SELECT * FROM public.tbl_gruppe WHERE studiengang_kz=$stg_id ORDER BY gruppe_kurzbz";
|
||||
//echo $sql_query;
|
||||
if(!($result=pg_exec($conn, $sql_query)))
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
$nr_sem=pg_numrows($result);
|
||||
$nr_sem=pg_num_rows($result);
|
||||
for ($j=0; $j<$nr_sem; $j++)
|
||||
{
|
||||
$row_sem=pg_fetch_object($result, $j);
|
||||
if(strlen($row_sem->mailgrp_kurzbz)>0)
|
||||
echo "<a class=\"h1\" href=\"mailto:$row_sem->mailgrp_kurzbz@technikum-wien.at\">$row_sem->einheit_kurzbz</a><br>";
|
||||
if($row_sem->mailgrp=='t')
|
||||
echo "<a class=\"h1\" href=\"mailto:$row_sem->gruppe_kurzbz@technikum-wien.at\">$row_sem->gruppe_kurzbz</a><br>";
|
||||
else
|
||||
echo "$row_sem->einheit_kurzbz<br>";
|
||||
echo "<a target=\"_blank\" class=\"linkgreen\" href=\"studenten_liste_export.php?einheitid=$row_sem->einheit_kurzbz\"> (Liste)</a><br>";
|
||||
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>";
|
||||
}
|
||||
@@ -64,9 +64,9 @@
|
||||
<table class="liste">
|
||||
<tr class="liste">
|
||||
<?php
|
||||
if(!($erg=pg_exec($conn, "SELECT studiengang_kz, bezeichnung, kurzbz FROM tbl_studiengang ORDER BY kurzbz ASC")))
|
||||
if(!($erg=pg_query($conn, "SELECT studiengang_kz, bezeichnung, UPPER(typ::varchar(1) || kurzbz) as kurzbz FROM public.tbl_studiengang ORDER BY kurzbz ASC")))
|
||||
die(pg_errormessage($conn));
|
||||
$num_rows=pg_numrows($erg);
|
||||
$num_rows=pg_num_rows($erg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=@pg_fetch_object($erg, $i);
|
||||
@@ -82,33 +82,33 @@
|
||||
$row=pg_fetch_object($erg, $i);
|
||||
$stg_id=$row->studiengang_kz;
|
||||
$stg_kzbz=$row->kurzbz;
|
||||
$sql_query="SELECT DISTINCT semester FROM tbl_student WHERE studiengang_kz=$stg_id ORDER BY semester";
|
||||
$sql_query="SELECT DISTINCT semester FROM public.tbl_student WHERE studiengang_kz=$stg_id ORDER BY semester";
|
||||
//echo $sql_query;
|
||||
if(!($result_sem=pg_exec($conn, $sql_query)))
|
||||
if(!($result_sem=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
$nr_sem=pg_numrows($result_sem);
|
||||
$nr_sem=pg_num_rows($result_sem);
|
||||
for ($j=0; $j<$nr_sem; $j++)
|
||||
{
|
||||
$row_sem=pg_fetch_object($result_sem, $j);
|
||||
$stg_kzbz_lo=strtolower($stg_kzbz);
|
||||
echo "<a class=\"h1\" href=\"mailto:$stg_kzbz_lo$row_sem->semester@technikum-wien.at\">$stg_kzbz-$row_sem->semester</a><br>";
|
||||
|
||||
$sql_query="SELECT DISTINCT verband FROM tbl_student WHERE studiengang_kz=$stg_id AND semester=$row_sem->semester ORDER BY verband";
|
||||
$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=pg_exec($conn, $sql_query)))
|
||||
if(!($result_ver=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
$nr_ver=pg_numrows($result_ver);
|
||||
$nr_ver=pg_num_rows($result_ver);
|
||||
for ($k=0; $k<$nr_ver; $k++)
|
||||
{
|
||||
$row_ver=pg_fetch_object($result_ver, $k);
|
||||
$ver_lo=strtolower($row_ver->verband);
|
||||
echo " - <a class=\"linkblue\" href=\"mailto:$stg_kzbz_lo$row_sem->semester$ver_lo@technikum-wien.at\">$stg_kzbz-$row_sem->semester$row_ver->verband</a><br>";
|
||||
|
||||
$sql_query="SELECT DISTINCT gruppe FROM tbl_student WHERE studiengang_kz=$stg_id AND semester=$row_sem->semester AND verband='$row_ver->verband' ORDER BY gruppe";
|
||||
$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=pg_exec($conn, $sql_query)))
|
||||
if(!($result_grp=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
$nr_grp=pg_numrows($result_grp);
|
||||
$nr_grp=pg_num_rows($result_grp);
|
||||
for ($l=0; $l<$nr_grp; $l++)
|
||||
{
|
||||
$row_grp=pg_fetch_object($result_grp, $l);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<H2>MailingListen </H2>
|
||||
<H3>Gruppen</H3>
|
||||
<UL>
|
||||
<LI><A href="mlists_index.php" class="linkblue">Verwaltung</A></LI>
|
||||
<!--<LI><A href="mlists_index.php" class="linkblue">Verwaltung</A></LI>-->
|
||||
<LI><A href="mlists_generate.php" class="linkblue">Generate Lists</A></LI>
|
||||
</UL>
|
||||
|
||||
|
||||
@@ -19,25 +19,26 @@
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
include('../config.inc.php');
|
||||
require_once('../config.inc.php');
|
||||
//include('../include/functions.inc.php');
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
$sql_query='SELECT uid, nachname, vornamen FROM tbl_person as p join tbl_student using(uid) '.
|
||||
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 tbl_student.uid, p.nachname, p.vornamen FROM tbl_person as p join tbl_student using(uid),tbl_einheitstudent WHERE tbl_einheitstudent.einheit_kurzbz=\''.$einheitid.'\' AND tbl_einheitstudent.uid=tbl_student.uid ORDER BY nachname';
|
||||
$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=pg_exec($conn, $sql_query)))
|
||||
if(!($result=pg_query($conn, $sql_query)))
|
||||
die(pg_errormessage($conn));
|
||||
|
||||
$anz=pg_numrows($result);
|
||||
$anz=pg_num_rows($result);
|
||||
for ($j=0; $j<$anz; $j++)
|
||||
{
|
||||
$row=pg_fetch_object($result, $j);
|
||||
echo '#'.$row->nachname.' '.$row->vornamen.$crlf.$row->uid.$crlf;
|
||||
echo '#'.$row->nachname.' '.$row->vorname.$crlf.$row->uid.$crlf;
|
||||
}
|
||||
?>
|
||||
+45
-23
@@ -86,13 +86,10 @@
|
||||
</td>
|
||||
</tr>
|
||||
<!--Menu Eintrag Personen->Lektoren -->
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a href="?Lehre" class="MenuItem1" onClick="return(js_toggle_container('Lektoren'));"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lektoren</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a href="?Lehre" class="MenuItem1" onClick="return(js_toggle_container('Lektoren'));"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lektoren</a>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lektoren" style="display: none">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
@@ -105,9 +102,28 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--Menu Eintrag Gruppen -->
|
||||
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a href="?Lehre" class="MenuItem1" onClick="return(js_toggle_container('Gruppen'));"><img src="../skin/images/menu_item.gif" width="7" height="9"> Gruppen</a>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Gruppen" style="display: none">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/einheit_menu.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/einheit_menu.php?newFrm=true" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Neu</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<!--Menu Eintrag Kommunikation-->
|
||||
<tr>
|
||||
<td nowrap><a href="?Lehre" class="MenuItem1" onClick="return(js_toggle_container('Kommunikation'));"><img src="../skin/images/menu_item.gif" width="7" height="9"> Kommunikation</a></td>
|
||||
@@ -144,42 +160,48 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lv_verteilung/lv_verteilung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> LV-Verteilung</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lv_verteilung/lv_verteilung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lehreinheiten</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/stdplan_insert.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Stundenplan</a></td>
|
||||
</tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/stdplan_delete.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Delete</a></td>
|
||||
</tr>
|
||||
<!--
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/einheit_menu.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Einheiten</a></td>
|
||||
</tr>
|
||||
</tr>-->
|
||||
<!--Menu Eintrag Lehrfach-->
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a href="?Lehre" class="MenuItem1" onClick="return(js_toggle_container('Lehrfach'));">
|
||||
<img src="../skin/images/menu_item.gif" width="7" height="9"> Lehrfach
|
||||
</a>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lehrfach" style="display: none;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrfach.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Verwaltung</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrfach/wartung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Wartung</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a href="?Lehre" class="MenuItem1" onClick="return(js_toggle_container('Lehrfach'));">
|
||||
<img src="../skin/images/menu_item.gif" width="7" height="9"> Lehrfach
|
||||
</a>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lehrfach" style="display: none;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrfach.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Verwaltung</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrfach/wartung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Wartung</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/check/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Checken</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/import/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Import</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/export/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Export</a></td>
|
||||
</tr>
|
||||
|
||||
@@ -109,7 +109,7 @@ function doEDIT($conn,$id='',$new=false,$msg='')
|
||||
{
|
||||
?>
|
||||
|
||||
<h2>Lektor/Mitarbeiter <?php echo $new?'Neu':'Edit' ?></h2>
|
||||
<h1>Lektor/Mitarbeiter <?php echo $new?'Neu':'Edit' ?></h1>
|
||||
<?php
|
||||
if (strlen($msg)>0) echo $msg."<br/>";
|
||||
?>
|
||||
|
||||
@@ -43,7 +43,7 @@ function confdel()
|
||||
</head>
|
||||
|
||||
<body class="background_main">
|
||||
<h2>Mitarbeiter Übersicht</h2><br>
|
||||
<h1>Mitarbeiter Übersicht</h1><br>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
@@ -209,4 +209,4 @@ function doEDIT($conn,$id,$new=false)
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -1,60 +1,58 @@
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
include('../../include/studiengang.class.php');
|
||||
include('../../include/einheit.class.php');
|
||||
include('../../include/person.class.php');
|
||||
include('../../include/student.class.php');
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/benutzergruppe.class.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/benutzer.class.php');
|
||||
require_once('../../include/student.class.php');
|
||||
|
||||
if(!$conn=pg_pconnect(CONN_STRING))
|
||||
die("Fehler beim Aufbau der Datenbankconnection");
|
||||
die('Fehler beim Aufbau der Datenbankconnection');
|
||||
|
||||
$user=get_uid();
|
||||
$kurzbz=(isset($_GET['kurzbz'])?$_GET['kurzbz']:$_POST['einheit_id']);
|
||||
|
||||
if (isset($_POST['new']))
|
||||
{
|
||||
$e=new einheit($conn);
|
||||
$e->kurzbz=addslashes($kurzbz);
|
||||
$e->addStudent($_POST['student_id']);
|
||||
|
||||
} else if ($_GET['type']=='delete')
|
||||
$e=new benutzergruppe($conn);
|
||||
$e->new=true;
|
||||
$e->gruppe_kurzbz=$kurzbz;
|
||||
$e->updateamum = date('Y-m-d H:i:s');
|
||||
$e->updatevon = $user;
|
||||
$e->insertamum = date('Y-m-d H:i:s');
|
||||
$e->insertvon = $user;
|
||||
$e->uid = $_POST['uid'];
|
||||
$e->save();
|
||||
}
|
||||
else if (isset($_GET['type']) && $_GET['type']=='delete')
|
||||
{
|
||||
|
||||
$e=new einheit($conn);
|
||||
$e->kurzbz=addslashes($kurzbz);
|
||||
$e->deleteStudent($_GET['uid']);
|
||||
$e=new benutzergruppe($conn);
|
||||
$e->delete($_GET['uid'], $kurzbz);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Einheit Details</title>
|
||||
<title>Gruppen Details</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<H1>Einheit <?php echo $kurzbz ?></H1>
|
||||
|
||||
<?php
|
||||
|
||||
$e=new einheit($conn);
|
||||
$e->kurzbz=addslashes($kurzbz);
|
||||
$studenten=$e->getStudenten();
|
||||
|
||||
$student=new student($conn);
|
||||
$studentenAlle=$student->getAll();
|
||||
|
||||
?>
|
||||
<H1>Gruppe <?php echo $kurzbz ?></H1>
|
||||
|
||||
<FORM name="newpers" method="post" action="einheit_det.php">
|
||||
<INPUT type="hidden" name="type" value="new">
|
||||
|
||||
<SELECT name="student_id">
|
||||
<SELECT name="uid">
|
||||
<?php
|
||||
$num_rows=count($studentenAlle);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
$qry = "SELECT * FROM campus.vw_benutzer ORDER BY nachname, vorname";
|
||||
echo $qry;
|
||||
$result = pg_query($conn, $qry);
|
||||
|
||||
for ($i=0;$row = pg_fetch_object($result);$i++)
|
||||
{
|
||||
echo "<option value=\"".$studentenAlle[$i]->uid."\">".$studentenAlle[$i]->nachname." ".$studentenAlle[$i]->vornamen." - ".$studentenAlle[$i]->uid."</option>";
|
||||
echo "<option value=\"".$row->uid."\">".$row->nachname." ".$row->vorname." - ".$row->uid."</option>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
@@ -63,24 +61,31 @@ $studentenAlle=$student->getAll();
|
||||
<INPUT type="submit" name="new" value="Hinzufügen">
|
||||
</FORM>
|
||||
<HR>
|
||||
<table class="liste">
|
||||
<tr class="liste"><th>UID</th><th>Vornamen</th><th>Nachname</th></tr>
|
||||
|
||||
<?php
|
||||
$qry = "SELECT * FROM public.tbl_benutzergruppe, public.tbl_benutzer, public.tbl_person WHERE".
|
||||
" tbl_benutzergruppe.gruppe_kurzbz='".addslashes($kurzbz)."' AND".
|
||||
" tbl_benutzergruppe.uid = tbl_benutzer.uid AND tbl_benutzer.person_id=tbl_person.person_id";
|
||||
|
||||
if($result = pg_query($conn, $qry))
|
||||
{
|
||||
$num_rows=pg_num_rows($result);
|
||||
echo "Anzahl: $num_rows";
|
||||
echo '<table class="liste">
|
||||
<tr class="liste"><th>UID</th><th>Vornamen</th><th>Nachname</th></tr>';
|
||||
|
||||
|
||||
$num_rows=count($studenten);
|
||||
for ($j=0; $j<$num_rows;$j++)
|
||||
{
|
||||
|
||||
echo "<tr class='liste".($j%2)."'>";
|
||||
echo "<td>".$studenten[$j]->uid."</td>";
|
||||
echo "<td>".$studenten[$j]->vornamen."</td>";
|
||||
echo "<td>".$studenten[$j]->nachname."</td>";
|
||||
echo "<td><a href=\"einheit_det.php?uid=".$studenten[$j]->uid."&type=delete&kurzbz=$kurzbz\">Delete</a></td>";
|
||||
echo "</tr>\n";
|
||||
for ($j=0; $row = pg_fetch_object($result);$j++)
|
||||
{
|
||||
echo "<tr class='liste".($j%2)."'>";
|
||||
echo "<td>".$row->uid."</td>";
|
||||
echo "<td>".$row->vorname."</td>";
|
||||
echo "<td>".$row->nachname."</td>";
|
||||
echo "<td><a href=\"einheit_det.php?uid=".$row->uid."&type=delete&kurzbz=$kurzbz\">Delete</a></td>";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
die('Fehler beim laden der Benutzer');
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
@@ -3,23 +3,30 @@
|
||||
<title>Einheiten Verwaltung</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<script language="JavaScript">
|
||||
function conf_del()
|
||||
{
|
||||
return confirm('Diese Gruppe wirklich löschen?');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<H1>Einheiten Verwaltung</H1>
|
||||
<hr>
|
||||
<H1>Gruppen Verwaltung</H1>
|
||||
|
||||
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
include('../../include/studiengang.class.php');
|
||||
include('../../include/einheit.class.php');
|
||||
include('../../include/person.class.php');
|
||||
include('../../include/student.class.php');
|
||||
include('../../include/mailgrp.class.php');
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/gruppe.class.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/benutzer.class.php');
|
||||
require_once('../../include/student.class.php');
|
||||
|
||||
if(!$conn=pg_pconnect(CONN_STRING))
|
||||
die("Verbindung zur Datenbank konnte nicht hergestellt werden");
|
||||
die('Verbindung zur Datenbank konnte nicht hergestellt werden');
|
||||
|
||||
if (isset($_POST['newFrm']))
|
||||
if (isset($_POST['newFrm']) || isset($_GET['newFrm']))
|
||||
{
|
||||
doEdit($conn,null,true);
|
||||
}
|
||||
@@ -32,13 +39,12 @@ else if (isset($_POST['type']) && $_POST['type']=='save')
|
||||
doSave();
|
||||
getUebersicht();
|
||||
}
|
||||
else if (isset($_POST['type']) && $_GET['type']=='delete')
|
||||
else if (isset($_GET['type']) && $_GET['type']=='delete')
|
||||
{
|
||||
$e=new einheit($conn);
|
||||
$e->kurzbz=addslashes($_GET['einheit_id']);
|
||||
$e->delete();
|
||||
$e=new gruppe($conn);
|
||||
if(!$e->delete($_GET['einheit_id']))
|
||||
echo $e->errormsg;
|
||||
getUebersicht();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -49,31 +55,34 @@ else
|
||||
function doSave()
|
||||
{
|
||||
global $conn;
|
||||
$e=new einheit($conn);
|
||||
if ($_POST['new'])
|
||||
$e=new gruppe($conn);
|
||||
|
||||
if ($_POST['new']=='true')
|
||||
{
|
||||
$e->kurzbz=$_POST['kurzbz'];
|
||||
$e->bezeichnung=$_POST['bezeichnung'];
|
||||
$e->stg_kz=$_POST['studiengang_kz'];
|
||||
$e->semester=$_POST['semester'];
|
||||
$e->typ=$_POST['typ'];
|
||||
$e->mailgrp_kurzbz=$_POST['mailgrp_kurzbz'];
|
||||
$e->new=true;
|
||||
$e->save();
|
||||
$e->new = true;
|
||||
$e->gruppe_kurzbz=$_POST['kurzbz'];
|
||||
$e->insertamum = date('Y-m-d H:i:s');
|
||||
$e->insertvon = get_uid();
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$e->kurzbz=$_POST['pk'];
|
||||
$e->bezeichnung=$_POST['bezeichnung'];
|
||||
$e->stg_kz=$_POST['studiengang_kz'];
|
||||
$e->semester=$_POST['semester'];
|
||||
$e->typ=$_POST['typ'];
|
||||
$e->mailgrp_kurzbz=$_POST['mailgrp_kurzbz'];
|
||||
$e->load($_POST['kurzbz']);
|
||||
$e->new=false;
|
||||
if (!$e->save($_POST['kurzbz']))
|
||||
echo $e->errormsg;
|
||||
}
|
||||
|
||||
$e->updateamum = date('Y-m-d H:i:s');
|
||||
$e->updatevon = get_uid();
|
||||
$e->bezeichnung=$_POST['bezeichnung'];
|
||||
$e->beschreibung=$_POST['beschreibung'];
|
||||
$e->studiengang_kz=$_POST['studiengang_kz'];
|
||||
$e->semester=$_POST['semester'];
|
||||
$e->mailgrp=isset($_POST['mailgrp']);
|
||||
$e->sichtbar=isset($_POST['sichtbar']);
|
||||
$e->generiert=isset($_POST['generiert']);
|
||||
$e->aktiv=isset($_POST['aktiv']);
|
||||
$e->sort=$_POST['sort'];
|
||||
if(!$e->save())
|
||||
echo $e->errormsg;
|
||||
}
|
||||
|
||||
|
||||
@@ -81,20 +90,24 @@ function doSave()
|
||||
function doEdit($conn,$kurzbz,$new=false)
|
||||
{
|
||||
if (!$new)
|
||||
{
|
||||
$e=new einheit($conn,$kurzbz);
|
||||
}
|
||||
$e=new gruppe($conn,$kurzbz);
|
||||
else
|
||||
$e = new gruppe($conn);
|
||||
?>
|
||||
<form name="stdplan" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
|
||||
<p><b>Einheit <?php echo ($new?'hinzufügen':'bearbeiten'); ?></b>:
|
||||
<p><b>Gruppe <?php echo ($new?'hinzufügen':'bearbeiten'); ?></b>:
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td><i>Name</i></td><td>
|
||||
<input type="text" name="bezeichnung" size="20" maxlength="20" value="<?php echo $e->bezeichnung; ?>"></td>
|
||||
</tr>
|
||||
<tr><td><i>Kurzbezeichnung</i></td>
|
||||
<td><input type="text" name="kurzbz" size="10" maxlength="10" value="<?php echo $e->kurzbz; ?>">
|
||||
<tr><td><i>Kurzbezeichnung</i></td>
|
||||
<td><input type="text" name="kurzbz" size="10" maxlength="10" value="<?php echo $e->gruppe_kurzbz; ?>">
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td><i>Bezeichnung</i></td><td>
|
||||
<input type="text" name="bezeichnung" size="20" maxlength="32" value="<?php echo $e->bezeichnung; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><i>Beschreibung</i></td><td>
|
||||
<input type="text" name="beschreibung" size="20" maxlength="128" value="<?php echo $e->beschreibung; ?>"></td>
|
||||
</tr>
|
||||
<tr><td><i>Studiengang</i><t/td><td>
|
||||
|
||||
<SELECT name="studiengang_kz">
|
||||
@@ -102,42 +115,29 @@ function doEdit($conn,$kurzbz,$new=false)
|
||||
<?php
|
||||
// Auswahl des Studiengangs
|
||||
$stg=new studiengang($conn);
|
||||
$stg_alle=$stg->getAll();
|
||||
foreach($stg_alle as $studiengang)
|
||||
$stg->getAll();
|
||||
foreach($stg->result as $studiengang)
|
||||
{
|
||||
echo "<option value=\"$studiengang->studiengang_kz\" ";
|
||||
if ($studiengang->studiengang_kz==$e->stg_kz)
|
||||
if ($studiengang->studiengang_kz==$e->studiengang_kz)
|
||||
echo "selected";
|
||||
echo " >$studiengang->kurzbz ($studiengang->bezeichnung)</option>\n";
|
||||
echo " >$studiengang->kuerzel ($studiengang->bezeichnung)</option>\n";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
</td></tr>
|
||||
<tr><td><i>Semester</i><t/td><td><input type="text" name="semester" size="2" maxlength="1" value="<?php echo $e->semester ?>"></td></tr>
|
||||
<tr><td><i>Typ</i><t/td><td><input type="text" name="typ" size="2" maxlength="1" value="<?php echo $e->typ ?>"></td></tr>
|
||||
<tr><td><i>Mailgrp Kurzbz</i><t/td><td><select name="mailgrp_kurzbz">
|
||||
<option value="">--keine--</option>
|
||||
<?php
|
||||
$x = new mailgrp($conn);
|
||||
$erg=$x->getAll();
|
||||
|
||||
|
||||
foreach($erg as $mgrp)
|
||||
{
|
||||
echo "<option value=\"$mgrp->mailgrp_kurzbz\" ";
|
||||
if ($mgrp->mailgrp_kurzbz==$e->mailgrp_kurzbz)
|
||||
echo "selected";
|
||||
echo " >$mgrp->mailgrp_kurzbz - $mgrp->beschreibung</option>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<tr><td><i>Mailgrp</i><t/td><td><input type='checkbox' name='mailgrp' <?php echo ($e->mailgrp?'checked':'');?>>
|
||||
<tr><td><i>Sichtbar</i><t/td><td><input type='checkbox' name='sichtbar' <?php echo ($e->sichtbar?'checked':'');?>>
|
||||
<tr><td><i>Generiert</i><t/td><td><input type='checkbox' name='generiert' <?php echo ($e->generiert?'checked':'');?>>
|
||||
<tr><td><i>Aktiv</i><t/td><td><input type='checkbox' name='aktiv' <?php echo ($e->aktiv?'checked':'');?>>
|
||||
<tr><td><i>Sort</i><t/td><td><input type='text' name='sort' maxlength="4" value="<?php echo $e->sort;?>">
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="pk" value="<?php echo $e->kurzbz ?>" />
|
||||
<input type="hidden" name="pk" value="<?php echo $e->gruppe_kurzbz ?>" />
|
||||
<input type="hidden" name="new" value="<?php echo ($new?'true':'false') ?>" />
|
||||
<input type="hidden" name="type" value="save">
|
||||
<?php
|
||||
if ($new)
|
||||
@@ -159,23 +159,17 @@ function doEdit($conn,$kurzbz,$new=false)
|
||||
function getUebersicht()
|
||||
{
|
||||
global $conn;
|
||||
$einheit=new einheit($conn);
|
||||
$einheit=new gruppe($conn);
|
||||
// Array mit allen Einheiten holen
|
||||
$einheiten=$einheit->getAll();
|
||||
//print_r($einheiten);
|
||||
?>
|
||||
<form name="import" method="post" action="einheit_import.php" enctype="multipart/form-data">
|
||||
<p><b>Import von Untis </b>(Kurswahl der Studenten)
|
||||
<input type="file" name="userfile" size="20" maxlength="30">
|
||||
<input type="submit" name="save" value="Go">
|
||||
</p>
|
||||
<hr>
|
||||
<!--
|
||||
</form>
|
||||
|
||||
<form name="stdplan" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
|
||||
<input type="submit" name="newFrm" value="Neue Einheit anlegen"> <br/>
|
||||
</form>
|
||||
|
||||
-->
|
||||
<h3>Übersicht</h3>
|
||||
|
||||
<table class='liste'>
|
||||
@@ -184,26 +178,32 @@ function getUebersicht()
|
||||
|
||||
$num_rows=count($einheiten);
|
||||
$foo = 0;
|
||||
echo "<tr class='liste'><th>Kurzbz.</th><th>Bezeichnung</th><th>Stg.</th><th>Sem.</th><th>Typ</th><th>Mailgrp</th><th>Anzahl</th><th colspan=\"3\">Aktion</th></tr>";
|
||||
echo "<tr class='liste'><th>Kurzbz.</th><th>Bezeichnung</th><th>Stg.</th><th>Sem.</th><th>Mailgrp</th><th>Anzahl</th><th colspan=\"3\">Aktion</th></tr>";
|
||||
|
||||
for ($i=0; $i<$num_rows; $i++)
|
||||
$i=0;
|
||||
$qry = "SELECT studiengang_kz, UPPER(typ::varchar(1) || kurzbz) as kuerzel FROM public.tbl_studiengang";
|
||||
$stg = array();
|
||||
if(!$result = pg_query($conn, $qry))
|
||||
die('Fehler beim laden der Studiengaenge');
|
||||
while($row = pg_fetch_object($result))
|
||||
$stg[$row->studiengang_kz] = $row->kuerzel;
|
||||
|
||||
foreach ($einheit->result as $e)
|
||||
{
|
||||
$e=$einheiten[$i];
|
||||
$i++;
|
||||
$c=$i%2;
|
||||
|
||||
echo '<tr class="liste'.$c.'">';
|
||||
echo "<td>$e->kurzbz </td>";
|
||||
echo "<td>$e->gruppe_kurzbz </td>";
|
||||
echo "<td>$e->bezeichnung </td>";
|
||||
echo "<td>$e->stg_kurzbz </td>";
|
||||
echo "<td>".$stg[$e->studiengang_kz]."</td>";
|
||||
echo "<td>$e->semester </td>";
|
||||
echo "<td>$e->typ </td>";
|
||||
echo "<td>$e->mailgrp_kurzbz</td>";
|
||||
|
||||
|
||||
echo "<td>".$einheit->countStudenten($e->kurzbz)."</td>";
|
||||
echo "<td><a href=\"einheit_det.php?kurzbz=$e->kurzbz\">Details</a></td>";
|
||||
echo "<td><a href=\"einheit_menu.php?edit=1&kurzbz=$e->kurzbz\">Edit</a></td>";
|
||||
echo "<td><a href=\"einheit_menu.php?einheit_id=$e->kurzbz&type=delete\">Delete</a></td>";
|
||||
echo "<td>".($e->mailgrp?'Ja':'Nein')."</td>";
|
||||
|
||||
echo "<td>".$einheit->countStudenten($e->gruppe_kurzbz)."</td>";
|
||||
echo "<td><a href=\"einheit_det.php?kurzbz=$e->gruppe_kurzbz\">Details</a></td>";
|
||||
echo "<td><a href=\"einheit_menu.php?edit=1&kurzbz=$e->gruppe_kurzbz\">Edit</a></td>";
|
||||
echo "<td><a href=\"einheit_menu.php?einheit_id=$e->gruppe_kurzbz&type=delete\" onclick='return conf_del()'>Delete</a></td>";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -30,11 +30,11 @@ function conf_del()
|
||||
return confirm('Wollen Sie diesen Datensatz wirklich loeschen?');
|
||||
}
|
||||
</script>
|
||||
<title>LV-Verteilung</title>
|
||||
<title>Lehreinheiten-Uebersicht</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<H1>LV Verteilung</h1>
|
||||
<H1>Lehreinheiten Uebersicht</h1>
|
||||
<?php
|
||||
//Daten Speichern
|
||||
if(isset($_GET['edit']) && (isset($_POST['btn_submit']) || (isset($_POST['status']) && $_POST['status']==3)))
|
||||
|
||||
Reference in New Issue
Block a user