Updates der Sync Scripte, CIS Anpassungen

This commit is contained in:
Andreas Österreicher
2006-12-14 16:24:34 +00:00
parent bf8a791d09
commit 0976f1bc22
21 changed files with 2082 additions and 171 deletions
@@ -1,9 +1,30 @@
<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
/**
* Synchronisiert die Lehrverbaende von Vilesci DB in PORTAL DB
*
*/
require_once('../../vilesci/config.inc.php');
require_once('../../include/lehrverband.class.php');
$conn=pg_connect(CONN_STRING) or die("Connection zur Portal Datenbank fehlgeschlagen");
$conn_vilesci=pg_connect(CONN_STRING_VILESCI) or die("Connection zur Vilesci Datenbank fehlgeschlagen");
@@ -24,6 +45,67 @@ if($result = pg_query($conn_vilesci, $qry))
$text.="Sync der Lehrverbaende\n\n";
while($row=pg_fetch_object($result))
{
$lvb_obj = new lehrverband($conn);
//Lehrverbaende und uebergeordnete Lehrverbaende anlegen sofern diese noch
//nicht existieren
if(!$lvb_obj->exists($row->studiengang_kz, $row->semester, '', ''))
{
$lvb_obj->studiengang_kz = $row->studiengang_kz;
$lvb_obj->semester = $row->semester;
$lvb_obj->verband = ' ';
$lvb_obj->gruppe = ' ';
$lvb_obj->aktiv = true;
if(!$lvb_obj->save())
{
$error_log.=$lvb_obj->errormsg."\n";
$anzahl_fehler++;
}
else
$anzahl_eingefuegt++;
}
if(trim($row->verband)!='')
{
if(!$lvb_obj->exists($row->studiengang_kz, $row->semester, $row->verband, ''))
{
$lvb_obj->studiengang_kz = $row->studiengang_kz;
$lvb_obj->semester = $row->semester;
$lvb_obj->verband = $row->verband;
$lvb_obj->gruppe = ' ';
$lvb_obj->aktiv = true;
if(!$lvb_obj->save())
{
$error_log.=$lvb_obj->errormsg."\n";
$anzahl_fehler++;
}
else
$anzahl_eingefuegt++;
}
if(trim($row->gruppe)!='')
{
if(!$lvb_obj->exists($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe))
{
$lvb_obj->studiengang_kz = $row->studiengang_kz;
$lvb_obj->semester = $row->semester;
$lvb_obj->verband = $row->verband;
$lvb_obj->gruppe = $row->gruppe;
$lvb_obj->aktiv = true;
if(!$lvb_obj->save())
{
$error_log.=$lvb_obj->errormsg."\n";
$anzahl_fehler++;
}
else
$anzahl_eingefuegt++;
}
}
}
/*
$qry = "INSERT INTO tbl_lehrverband(studiengang_kz, semester, verband, gruppe) VALUES(
$row->studiengang_kz, $row->semester, '$row->verband', '$row->gruppe');";
if(!pg_query($conn, $qry))
@@ -33,8 +115,10 @@ if($result = pg_query($conn_vilesci, $qry))
}
else
$anzahl_eingefuegt++;
*/
}
}
$text .= "Anzahl Datensaetze Vilesci: ".pg_num_rows($result)."\n";
$text .= "Anzahl eingefuegter Datensaetze: $anzahl_eingefuegt\n";
$text .= "Anzahl der Fehler: $anzahl_fehler\n";
?>
@@ -72,6 +72,7 @@ if($result = pg_query($conn_vilesci, $qry))
$mitarbeiter->gebdatum=$row->gebdatum;
$mitarbeiter->gebort=$row->gebort;
$mitarbeiter->gebzeit=$row->gebzeit;
$mitarbeiter->ort_kurzbz=$row->ort_kurzbz;
$mitarbeiter->foto='';
$mitarbeiter->anmerkungen=$row->anmerkungen;
$mitarbeiter->homepage=$row->homepage;
+73 -14
View File
@@ -24,6 +24,8 @@
*
*/
require_once('../../vilesci/config.inc.php');
require_once('../../include/lehrverband.class.php');
require_once('../../include/gruppe.class.php');
$conn=pg_connect(CONN_STRING) or die('Connection zur Portal Datenbank fehlgeschlagen');
$conn_vilesci=pg_connect(CONN_STRING_VILESCI) or die('Connection zur Vilesci Datenbank fehlgeschlagen');
@@ -32,6 +34,7 @@ $error_log='';
$text = '';
$anzahl_eingefuegt=0;
$anzahl_fehler=0;
function myaddslashes($var)
{
return ($var!=''?"'".addslashes($var)."'":'null');
@@ -45,9 +48,9 @@ else
$dev=false;
if($dev)
$qry = "SELECT * FROM tbl_stundenplandev limit 200";
$qry = "SELECT * FROM tbl_stundenplandev";
else
$qry = "SELECT * FROM tbl_stundenplan limit 200";
$qry = "SELECT * FROM tbl_stundenplan";
if($result = pg_query($conn_vilesci, $qry))
{
@@ -58,6 +61,71 @@ if($result = pg_query($conn_vilesci, $qry))
while($row = pg_fetch_object($result))
{
if($row->verband==0)
$row->verband=' ';
if($row->einheit_kurzbz=='')
{
//Lehrverbandsgruppe
$lvb_obj = new lehrverband($conn);
if(!$lvb_obj->exists($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe))
{
$lvb_obj->studiengang_kz = $row->studiengang_kz;
$lvb_obj->semester = $row->semester;
$lvb_obj->verband = $row->verband;
$lvb_obj->gruppe = $row->gruppe;
$lvb_obj->aktiv = false;
if(!$lvb_obj->save())
{
$error_log .= $lvb_obj->errormsg."\n";
$anzahl_fehler++;
}
}
}
else
{
//Spezialgruppe
$grp_obj = new gruppe($conn);
if(!$grp_obj->exists($row->einheit_kurzbz))
{
$grp_obj->gruppe_kurzbz = $row->einheit_kurzbz;
$grp_obj->studiengang_kz = $row->studiengang_kz;
$grp_obj->semester = $row->semester;
$grp_obj->mailgrp = false;
$grp_obj->sichtbar = false;
$grp_obj->aktiv = false;
$grp_obj->new = true;
//Bei Spezialgruppen keinen Verband/Gruppe angeben
$row->verband=' ';
$row->gruppe=' ';
if(!$grp_obj->save())
{
$error_log.=$grp_obj->errormsg;
$anzahl_fehler++;
}
}
}
//Lehreinheit_id ermitteln
if($row->lehrveranstaltung_id!='')
{
$qry_le = "SELECT lehreinheit_id_portal FROM tbl_synclehreinheit WHERE lehrveranstaltung_id_vilesci='".addslashes($row->lehrveranstaltung_id)."'";
if($row_le=pg_fetch_object(pg_query($conn,$qry_le)))
{
$lehreinheit_id = $row_le->lehreinheit_id_portal;
}
else
{
$lehreinheit_id='';
}
}
else
$lehreinheit_id='';
if($dev)
$qry = "INSERT INTO lehre.tbl_stundenplandev(stundenplandev_id,";
else
@@ -70,18 +138,7 @@ if($result = pg_query($conn_vilesci, $qry))
if($dev)
$qry.="'".$row->stundenplandev_id."'";
else
$qry.="'".$row->stundenplan_id."'";
//Lehreinheit_id ermitteln
$qry_le = "SELECT lehreinheit_id_portal FROM tbl_synclehreinheit WHERE lehrveranstaltung_id_vilesci='".addslashes($row->lehrveranstaltung_id)."'";
if($row_le=pg_fetch_object(pg_query($conn,$qry_le)))
{
$lehreinheit_id = $row_le->lehreinheit_id_portal;
}
else
{
$lehreinheit_id='';
}
$qry.="'".$row->stundenplan_id."'";
$qry.=",".myaddslashes($row->unr).",".
myaddslashes($row->uid).",".
@@ -112,6 +169,8 @@ if($result = pg_query($conn_vilesci, $qry))
}
else
$error_log .= "Stundenplan konnten nicht geladen werden\n";
$text.="Anzahl Datensaetze Vilesci: ".pg_num_rows($result)."\n";
$text.="Anzahl aktualisierte Datensaetze: $anzahl_eingefuegt\n";
$text.="Anzahl der Fehler: $anzahl_fehler\n";
?>
+48 -121
View File
@@ -63,10 +63,10 @@
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" target="_blank" href="http://alumni.technikum-wien.at/member_area/" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Jobb&ouml;rse</a></td>
</tr>
</tr>
</table>
</td>
</td>
<!--<td nowrap>
<a class="MenuItem" href="public/news.php" target="content">
<img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;News
@@ -74,7 +74,7 @@
</td>-->
</tr>
<tr>
<td nowrap>
<a href="?FAQ" class="MenuItem" onClick="return(js_toggle_container('FAQ'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;FAQ</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="FAQ" style="display: none">
@@ -100,15 +100,15 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lehre" style="display: visible;">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/lehre/menu.php"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Lehrveranstaltungen</a></td>
<td nowrap><a class="Item" href="private/campus/lehre/menu.php"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Lehrveranstaltungen</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/freifaecher/menu.php"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Freif&auml;cher</a></td>
<td nowrap><a class="Item" href="private/campus/freifaecher/menu.php"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Freif&auml;cher</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="stdplan/" target="_blank"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;LV-Plan</a></td>
<td nowrap><a class="Item" href="private/lvplan/" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;LV-Plan</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -121,7 +121,7 @@
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="campus/weiterbildung/info.html" target="content" class="MenuItem" onClick="js_toggle_container('Weiterbildung');"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Weiterbildung</a>
<td nowrap><a href="private/campus/weiterbildung/info.html" target="content" class="MenuItem" onClick="js_toggle_container('Weiterbildung');"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Weiterbildung</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Weiterbildung" style="display: none">
<!--<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -129,35 +129,35 @@
</tr>-->
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/weiterbildung/aktuelles/aktuelles.html" target="content" style="font-weight: bold;"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Aktuelles</a></td>
<td nowrap><a class="Item" href="private/campus/weiterbildung/aktuelles/aktuelles.html" target="content" style="font-weight: bold;"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Aktuelles</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a target="content" href="campus/weiterbildung/archiv/archiv.html" class="MenuItem" onClick="js_toggle_container('WeiterbildungArchiv');" style="font-weight: normal;"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Archiv</a>
<td nowrap><a target="content" href="private/campus/weiterbildung/archiv/archiv.html" class="MenuItem" onClick="js_toggle_container('WeiterbildungArchiv');" style="font-weight: normal;"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Archiv</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="WeiterbildungArchiv" style="display: none;">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/weiterbildung/archiv/archiv_06-07.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2006/07</a></td>
<td nowrap><a class="Item" href="private/campus/weiterbildung/archiv/archiv_06-07.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2006/07</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/weiterbildung/archiv/archiv_05-06.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2005/06</a></td>
<td nowrap><a class="Item" href="private/campus/weiterbildung/archiv/archiv_05-06.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2005/06</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/weiterbildung/archiv/archiv_04-05.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2004/05</a></td>
<td nowrap><a class="Item" href="private/campus/weiterbildung/archiv/archiv_04-05.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2004/05</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/weiterbildung/archiv/archiv_03-04.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2003/04</a></td>
<td nowrap><a class="Item" href="private/campus/weiterbildung/archiv/archiv_03-04.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;2003/04</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/weiterbildung/links.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Links</a></td>
<td nowrap><a class="Item" href="private/campus/weiterbildung/links.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Links</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -180,7 +180,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Medienaustattung" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/inventar.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Inventar</a></td>
<td nowrap><a class="Item" href="private/campus/inventar.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Inventar</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -238,7 +238,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Kommunikation" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/mailverteiler.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Mailverteiler</a></td>
<td nowrap><a class="Item" href="private/campus/mailverteiler.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Mailverteiler</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -246,11 +246,11 @@
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/psearch.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Personensuche</a></td>
<td nowrap><a class="Item" href="private/tools/psearch.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Personensuche</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/telefonverzeichnis.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Telefonverzeichnis</a></td>
<td nowrap><a class="Item" href="private/info/telefonverzeichnis.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Telefonverzeichnis</a></td>
</tr>
<!--<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -258,7 +258,7 @@
</tr>-->
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="public/feedback.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Feedback</a></td>
<td nowrap><a class="Item" href="private/tools/feedback.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Feedback</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -268,12 +268,12 @@
<td width="10" nowrap>&nbsp;</td>
<td nowrap>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Unternehmenskommunikation" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="../documents/management/" class="Item" target="_blank"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Marketing</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="../documents/management/umgang_vielfalt" class="Item" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Umgang mit Vielfalt</a></td>
@@ -307,19 +307,19 @@
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/notebook_registration.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Notebook-Registration</a></td>
<td nowrap><a class="Item" href="private/tools/notebook_registration.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Notebook-Registration</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/wlan_registration.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;WLan-Registration</a></td>
<td nowrap><a class="Item" href="private/tools/wlan_registration.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;WLan-Registration</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/security.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Security</a></td>
<td nowrap><a class="Item" href="private/info/security.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Security</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/softgrid2.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;SoftGrid</a></td>
<td nowrap><a class="Item" href="private/info/softgrid2.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;SoftGrid</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -340,7 +340,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Verwaltungstools" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/newsverwaltung.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Newsverwaltung</a></td>
<td nowrap><a class="Item" href="private/tools/newsverwaltung.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Newsverwaltung</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -356,35 +356,35 @@
</table>
</td>
</tr>
<!--QM-->
<tr>
<td nowrap>
<a href="?FAQ" class="MenuItem" onClick="return(js_toggle_container('QM'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Qualit&auml;tsmanagement</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="QM" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm_neu/Qualitaetsmanagementsystem.pdf" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;QM-Handbuch</a></td>
<td nowrap><a class="Item" href="private/campus/qm_neu/Qualitaetsmanagementsystem.pdf" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;QM-Handbuch</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm_neu/organisation.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Organisation</a></td>
<td nowrap><a class="Item" href="private/campus/qm_neu/organisation.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Organisation</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm_neu/prozesse/prozessmodell.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Prozesse</a></td>
<td nowrap><a class="Item" href="private/campus/qm_neu/prozesse/prozessmodell.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Prozesse</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm_neu/dokumente/dokumente.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Dokumente</a></td>
<td nowrap><a class="Item" href="private/campus/qm_neu/dokumente/dokumente.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Dokumente</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm_neu/vorlagen/Ground_Rules.pdf" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Ground Rules</a></td>
<td nowrap><a class="Item" href="private/campus/qm_neu/vorlagen/Ground_Rules.pdf" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Ground Rules</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="?Jahresplan" class="MenuItem" onClick="return(js_toggle_container('Jahresplan'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Jahresplan</a>
@@ -394,10 +394,10 @@
<td nowrap><a class="Item" href="public/jahresplan_WS2006.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Wintersemester 2006</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="public/jahresplan_SS2007.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Sommersemester 2007</a></td>
</tr>
</tr>
</table>
</td>
</tr>
@@ -407,11 +407,11 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Verordnungen" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/hausordnung.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Hausordnung</a></td>
<td nowrap><a class="Item" href="private/campus/verordnungen/hausordnung.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Hausordnung</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/brandschutzordnung.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Brandschutzordnung</a></td>
<td nowrap><a class="Item" href="private/campus/verordnungen/brandschutzordnung.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Brandschutzordnung</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
@@ -419,93 +419,20 @@
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/EDV_Richtlinien.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;EDV Richtlinien</a></td>
<td nowrap><a class="Item" href="private/campus/verordnungen/EDV_Richtlinien.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;EDV Richtlinien</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/laborordnung.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Laborordnung</a></td>
<td nowrap><a class="Item" href="private/campus/verordnungen/laborordnung.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Laborordnung</a></td>
</tr>
</table>
</td>
</tr>
</tr>
</tr>
</table>
</td>
</tr>
<!-- <tr>
<td nowrap><a href="?QM" class="MenuItem" onClick="return(js_toggle_container('QM'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Qualit&auml;tsmanagement</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="QM" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm/qm.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;QM</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm/prozesse.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Prozesse</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm/dokumente.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Dokumente</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm/vorlagen/Ground_Rules.pdf" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Ground Rules</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm/abkuerzungen.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Abk&uuml;rzungen</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/qm/organisation.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Anwendungsbereich<br>&nbsp;&nbsp;&nbsp;und Organisation</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="?Jahresplan" class="MenuItem" onClick="return(js_toggle_container('Jahresplan'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Jahresplan</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Jahresplan" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="public/jahresplan_WS2006.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Wintersemester 2006/2007</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="?Verordnungen" class="MenuItem" onClick="return(js_toggle_container('Verordnungen'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Verordnungen</a>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Verordnungen" style="display: none">
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/hausordnung.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Hausordnung</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/brandschutzordnung.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Brandschutzordnung</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="public/benutzungsordnung_bibliothek.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Bibliotheksordnung</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/EDV_Richtlinien.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;EDV Richtlinien</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="campus/verordnungen/laborordnung.doc" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Laborordnung</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>-->
<!-- Hauptmenue Infos -->
<tr>
<td nowrap><a href="?Infos" class="MenuItem" onClick="return(js_toggle_container('Infos'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Infos</a></td>
@@ -525,7 +452,7 @@
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="Item" href="public/linkliste.html" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Links</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a href="?Location" class="MenuItem" onClick="return(js_toggle_container('Location'));"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Location</a></td>
@@ -550,7 +477,7 @@
</tr>
<tr>
<td nowrap><a class="MenuItem" href="stdplan/profile/index.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Mein Profil</a></td>
<td nowrap><a class="MenuItem" href="private/stdplan/profile/index.php" target="content"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Mein Profil</a></td>
</tr>
</table>
</td>
+140
View File
@@ -0,0 +1,140 @@
<?php
include('../../config.inc.php');
include('../../../include/functions.inc.php');
//Connection Herstellen
if(!$sql_conn = pg_pconnect(CONN_STRING))
die('Fehler beim öffnen der Datenbankverbindung');
$user = get_uid();
if(check_lektor($user,$sql_conn))
$is_lector=true;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
if(isset($feedback_submit) && (!isset($message_sent) || $message_sent == "no"))
{
$destination = 'cis@technikum-wien.at';
$sql_query = "SELECT DISTINCT vorname, nachname, (uid || '@technikum-wien.at') AS emailtw FROM campus.vw_benutzer WHERE uid='$user' LIMIT 1";
$feedback_message = chop($txtFeedbackMessage);
if($feedback_message != "")
{
if($result = pg_query($sql_conn, $sql_query))
{
if($row = pg_fetch_object($result))
{
if(mail($destination, "[CIS-Feedback]", $feedback_message, "FROM: feedback@technikum-wien.at\nREPLY-TO: $row->emailtw\n\n"))
{
echo '<script language="JavaScript">';
echo ' document.location.href = document.location.href + "?message_sent=yes";';
echo '</script>';
}
else
{
echo '<script language="JavaScript">';
echo ' document.location.href = document.location.href + "?message_sent=no";';
echo '</script>';
}
}
else
{
echo '<script language="JavaScript">';
echo ' document.location.href = document.location.href + "?message_sent=no";';
echo '</script>';
}
}
else
{
echo '<script language="JavaScript">';
echo ' document.location.href = document.location.href + "?message_sent=no";';
echo '</script>';
}
}
else
{
echo '<script language="JavaScript">';
echo ' document.location.href = document.location.href + "?message_sent=no";';
echo '</script>';
}
exit;
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function focusFirstElement()
{
if(document.FeedbackFormular.txtFeedbackMessage != null)
{
document.FeedbackFormular.txtFeedbackMessage.focus();
}
}
</script>
</head>
<body onLoad="focusFirstElement();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Kommunikation - Feedback</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<form name="FeedbackFormular" method="post">
<?php
if(isset($message_sent) && $message_sent == "yes")
{
echo "<font class=\"headline\">Vielen Dank f&uuml;r Ihr Feedback!</font><br>";
echo "<font class=\"subline\">Ihre Nachricht wurde an das zust&auml;ndige Personal weitergeleitet.</font></td>";
exit;
}
else if(isset($message_sent) && $message_sent == "no")
{
echo "<font class=\"headline\">Ihr Feedback wurde nicht weitergeleitet!</font><br>";
echo "<font class=\"subline\">Bitte wenden Sie sich an die Administration.</font></td>";
exit;
}
?>
<font class="headline">Ihre Meinung z&auml;hlt!</font><br>
<font class="subline">Hier k&ouml;nnen Sie uns Feedback geben.</font>
<p>Helfen Sie mit, unseren Service zu verbessern und geben Sie uns hier Ihr Feedback. Haben Sie spezielle W&uuml;nsche und Anregungen f&uuml;r uns, vermissen Sie wichtige Informationen oder wollen Sie uns mal richtig die Meinung sagen? F&uuml;r Ihre Beitr&auml;ge haben wir immer ein offenes Ohr. Denn nur wenn wir Ihre Meinung kennen, k&ouml;nnen wir auf Ihre Belange und W&uuml;nsche eingehen.</p>
<p>Für technische Gebrechen verwenden Sie bitte das <a href='http://bug.technikum-wien.at' target="_blank" class='Item'>Bugtracking-System</a></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap><br>
Bitte geben Sie hier Ihr Feedback ein:<br>
<textarea class="TextBox" style="width: 99%; heigth: 166px" name="txtFeedbackMessage" rows="10" cols="70" maxlength="2000"></textarea></td>
</tr>
<tr>
<td nowrap>
<input type="hidden" name="feedback_submit">
<input type="submit" name="btnSend" value="Abschicken">&nbsp;
<input type="reset" name="btnCancel" value="Zur&uuml;cksetzen" onClick="document.FeedbackFormular.txtFeedbackMessage.focus();"></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+250
View File
@@ -0,0 +1,250 @@
<?php
include("../../config.inc.php");
include("../../../include/functions.inc.php");
include("../../../include/benutzerberechtigung.class.php");
include("../../../include/news.class.php");
//Connection Herstellen
if(!$sql_conn = pg_pconnect(CONN_STRING))
die("Fehler beim öffnen der Datenbankverbindung");
$user = get_uid();
$rechte = new benutzerberechtigung($sql_conn);
$rechte->getBerechtigungen($user);
if(check_lektor($user,$sql_conn))
$is_lector=true;
$sql_query = "SELECT count(*) as anzahl FROM tbl_benutzerfunktion WHERE uid='$user' AND funktion_kurzbz='infr'";
if(!$row=pg_fetch_object(pg_query($sql_conn, $sql_query)))
die('Fehler beim lesen aus der Datenbank');
if($row->anzahl>0 || $rechte->isBerechtigt('admin'))
$berechtigt=true;
else
$berechtigt=false;
if(isset($_GET['news_id']))
$news_id=$_GET['news_id'];
else
unset($news_id);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
if($berechtigt && isset($news_submit) && (!isset($message_sent) || $message_sent == "no"))
{
$author = chop($txtAuthor);
$title = chop($txtTitle);
$news_message = chop(str_replace("\r\n", "<br>", $txtNewsMessage));
if($author != "" && $title != "" && $news_message != "")
{
if(isset($news_id) && $news_id != "")
{
$news = new news($sql_conn);
$news->news_id = $news_id;
$news->betreff = $title;
$news->verfasser = $author;
$news->text = $news_message;
$news->studiengang_kz = '0';
$news->semester = null;
$news->uid=$user;
$news->updatevon=$user;
$news->new=false;
if($news->save())
{
echo "<script language=\"JavaScript\">";
echo " document.location.href = 'news_entry.php' + \"?message_sent=yes&changed=yes\";";
echo "</script>";
}
else
{
echo "<script language=\"JavaScript\">";
echo " document.location.href = 'news_entry.php' + \"?message_sent=no\";";
echo "</script>";
}
}
else
{
$news = new news($sql_conn);
$news->betreff = $title;
$news->verfasser = $author;
$news->text = $news_message;
$news->studiengang_kz = '0';
$news->updatevon=$user;
$news->semester = null;
$news->uid = $user;
$news->new=true;
if($news->save())
{
echo "<script language=\"JavaScript\">";
echo " document.location.href = 'news_entry.php' + \"?message_sent=yes&changed=yes\";";
echo "</script>";
}
else
{
echo "test:".$news->errormsg;
//echo "<script language=\"JavaScript\">";
//echo " document.location.href = 'news_entry.php' + \"?message_sent=no\";";
//echo "</script>";
}
}
}
else
{
echo "<script language=\"JavaScript\">";
echo " document.location.href = 'news_entry.php' + \"?message_sent=no\";";
echo "</script>";
}
exit;
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function focusFirstElement()
{
if(document.NewsEntry.txtAuthor != null)
{
document.NewsEntry.txtAuthor.focus();
}
}
</script>
</head>
<body onLoad="focusFirstElement();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><form method="post" name="NewsEntry">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Verwaltungstools - Newsverwaltung</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<?php
if(!$berechtigt)
{
die("<td>Sie haben keine Berechtigung f&uuml;r diese Seite.</td>");
}
if(isset($message_sent) && $message_sent == "yes")
{
if(isset($changed) && $changed == "yes")
{
echo " <td>";
echo "<script language=\"JavaScript\">";
echo " parent.news_window.location.href = 'news_show.php'";
echo "</script>";
echo "</td>";
echo "</tr>";
echo " <td>&nbsp;</td>";
echo "</tr>";
echo "<tr>";
echo " <td><font class=\"headline\">Die Nachricht wurde erfolgreich ge&auml;ndert!</font></td>";
echo "</tr>";
}
else
{
echo " <td>";
echo "<script language=\"JavaScript\">";
echo " parent.news_window.location.href = 'news_show.php'";
echo "</script>";
echo "</td>";
echo "</tr>";
echo " <td>&nbsp;</td>";
echo "</tr>";
echo "<tr>";
echo " <td><font class=\"headline\">Die Neuigkeit wurde erfolgreich eingetragen!</font></td>";
echo "</tr>";
}
exit;
}
else if(isset($message_sent) && $message_sent == "no")
{
echo "<td>&nbsp;</td>";
echo "</tr>";
echo " <td><font class=\"headline\">Die Neuigkeit wurde NICHT eingetragen!</font><br>";
echo "<font class=\"subline\">Bitte versuchen Sie es erneut</font></td>";
echo "</tr>";
exit;
}
echo '<td class="ContentHeader2">&nbsp;';
if(isset($news_id) && $news_id != "")
{
$news = new news($sql_conn, $news_id);
echo 'Eintrag &auml;ndern';
}
else
{
echo 'Neuen Eintrag erstellen';
}
echo '</td>';
?>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65">Verfasser:</td>
<td><input type="text" class="TextBox" name="txtAuthor" size="30"<?php if(isset($news_id) && $news_id != "") echo ' value="'.$news->verfasser.'"'; ?>></td>
</tr>
<tr>
<td>Titel:</td>
<td><input type="text" class="TextBox" name="txtTitle" size="30"<?php if(isset($news_id) && $news_id != "") echo ' value="'.$news->betreff.'"'; ?>></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Bitte geben Sie hier Ihre Nachricht ein:<br>
<textarea class="TextBox" style="width: 99%; heigth: 166px" name="txtNewsMessage" rows="10" cols="70" maxlength="2000"><?php if(isset($news_id) && $news_id != "") echo str_replace("<br>", "\r\n", $news->text); ?></textarea></td>
</tr>
<tr>
<td nowrap>
<input type="hidden" name="news_submit">
<input type="submit" name="btnSend" value="Abschicken">&nbsp;
<?php
if(isset($news_id) && $news_id != "")
{
echo "<input type=\"reset\" name=\"btnCancel\" value=\"Abbrechen\" onClick=\"document.location.href='news_entry.php';\"></td>";
}
else
{
echo '<input type="reset" name="btnCancel" value="Zur&uuml;cksetzen" onClick="document.NewsEntry.txtAuthor.focus();"></td>';
}
?>
</tr>
</table>
</form></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+138
View File
@@ -0,0 +1,138 @@
<!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=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function deleteEntry(id)
{
if(confirm("Soll dieser Eintrag wirklich gelöscht werden?") == true)
{
document.location.href = 'news_show.php?remove_id=' + id;
}
}
function editEntry(id)
{
parent.news_entry.location.href = 'news_entry.php?news_id=' + id;
}
</script>
</head>
<body>
<?php
require_once('../../config.inc.php');
require_once('../../../include/functions.inc.php');
require_once('../../../include/benutzerberechtigung.class.php');
require_once('../../../include/news.class.php');
//Connection Herstellen
if(!$sql_conn = pg_pconnect(CONN_STRING))
die('Fehler beim öffnen der Datenbankverbindung');
$user = get_uid();
$rechte = new benutzerberechtigung($sql_conn);
$rechte->getBerechtigungen($user);
if(check_lektor($user,$sql_conn))
$is_lector=true;
$sql_query = "SELECT count(*) as anzahl FROM tbl_benutzerfunktion WHERE uid='$user' AND funktion_kurzbz='infr'";
if(!$row=pg_fetch_object(pg_query($sql_conn, $sql_query)))
die('Fehler beim lesen aus der Datenbank');
if($row->anzahl>0 || $rechte->isBerechtigt('admin'))
$berechtigt=true;
else
$berechtigt=false;
if($berechtigt)
{
if(isset($remove_id) && $remove_id != "")
{
$news = new news($sql_conn);
if($news->delete($remove_id))
{
echo '<script language="JavaScript">';
echo ' document.location.href = "news_show.php"';
echo '</script>';
exit;
}
else
echo 'Fehler beim L&ouml;schen des Eintrages';
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php
if(!$berechtigt)
exit;
?>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
$news = new news($sql_conn);
$news->getnews(MAXNEWSALTER,0,null);
$zaehler=0;
$i=0;
foreach($news->result as $row)
{
$i++;
$zaehler++;
$datum = date('d.m.Y - h:i',strtotime(strftime($row->updateamum)));
echo "<tr>";
if($i % 2 != 0)
{
echo '<td class="MarkLine">';
}
else
{
echo '<td>';
}
echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0">';
echo ' <tr>';
echo ' <td nowarp>';
echo $datum.'&nbsp;'.$row->verfasser;
echo ' </td>';
echo ' <td align="right" nowrap>';
echo ' <a onClick="editEntry('.$row->news_id.');">Editieren</a>, <a onClick="deleteEntry('.$row->news_id.');">L&ouml;schen</a>';
echo ' </td>';
echo ' </tr>';
echo ' <tr>';
echo ' <td>&nbsp;</td>';
echo ' </tr>';
echo ' </table>';
echo ' <strong>'.$row->betreff.'</strong><br>'.$row->text.'</td>';
echo "</tr>";
echo '<tr>';
echo ' <td>&nbsp;</td>';
echo '</tr>';
echo '<tr>';
echo ' <td>&nbsp;</td>';
echo '</tr>';
}
if($zaehler==0)
echo 'Zur Zeit gibt es keine aktuellen News!';
?>
</table>
</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
</head>
<frameset rows="380,*" cols="*" framespacing="0"" frameborder="NO" border="0">
<frame src="news_entry.php" name="news_entry">
<frame src="news_show.php" name="news_window">
</frameset>
<noframes><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Verwaltungstools - Newsverwaltung</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
Ihr Browser unterstuetzt leider keine Frames. Bitte benutzen Sie einen anderen Browser
&nbsp;</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body></noframes>
</html>
+282
View File
@@ -0,0 +1,282 @@
<?php
/*
* author: maximilian schremser
* email: max@technikum-wien.at
* date-created: ?? 2003
* date-modified: ?? by ??
* 15.9.2004 by max schremser
*
* manual: es wurden keine neuen einträge in der dhcp.dat eingetragen
* seit der letzten änderung, ich wurde von ferdinand esberger
* gebeten dies wieder in ordnung zu bringen
*/
require_once('../../config.inc.php');
require_once('../../../include/functions.inc.php');
require_once('../../../include/File/SearchReplace.php');
require_once('../../../include/File/Match.php');
//Connection Herstellen
if(!$sql_conn = pg_pconnect(CONN_STRING))
die('Fehler beim öffnen der Datenbankverbindung');
$user = get_uid();
if(!isset($txtUID))
$txtUID='';
if(!isset($txtPassword))
$txtPassword='';
if(check_lektor($user,$sql_conn))
$is_lector=true;
function ip_increment($ip = "")
{
$ip = split("\.", $ip);
if($ip[3] > 0 && $ip[3] < 254)
{
++$ip[3];
}
else
{
++$ip[2];
$ip[3] = 1;
}
return join(".", $ip);
}
?>
<!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=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="document.regMAC.txtMAC.focus();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Infrastruktur - Notebook-Registration</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<?php
if (!$txtUID)
$txtUID = $user;
// wenn die übergebene UID nicht gleich dem
// angemeldetem Benutzer ist, muss das Passwort
// angegeben werden
if ($txtUID != $user && !$txtPassword)
{
$error = 1;
}
else if ($txtUID && $txtPassword)
{
//$ldap_conn = @ConnectLDAP("pdc1.technikum-wien.at") or die("Der LDAP-Server ist nicht erreichbar.");
$ldap_conn = ldap_connect(LDAP_SERVER) or die("Der LDAP-Server ist nicht erreichbar.");
$user_dn = "uid=$txtUID, ou=People, dc=technikum-wien, dc=at";
if(!@ldap_bind($ldap_conn, $user_dn, $txtPassword) === true)
{
$error = 2;
}
else
{
$error = 0;
}
}
else
{
$error =0;
}
// ändern oder eintragen einer mac adresse
if (!$error)
{
if(isset($txtMAC) && $txtMAC != "")
{
$sql_query = "SELECT DISTINCT vorname, nachname FROM campus.vw_benutzer WHERE uid='".addslashes($txtUID)."' LIMIT 1";
if($result = pg_query($sql_conn, $sql_query))
{
if($row = pg_fetch_object($result))
{
$name = $row->vorname.' '.$row->nachname;
}
else
die('Fehler beim ermitteln der UID');
}
else
die('Fehler beim ermitteln der UID');
$mac = str_replace(":", "", str_replace("-", "", strtoupper($txtMAC)));
$filename_dat = '../../../../system/dhcp.dat';
$filename_ip = '../../../../system/dhcp.ip';
copy($filename_dat, '../../../../system/backup/dhcp_'.date('j-m-Y_H-i-s').'.dat');
unset($mfiles);
// leich gepfuscht aber funktioniert
$mfiles = new File_Match("/$mac?\s(.{1}) (.*)\s?/", $filename_dat, '', 0, array('#',';'));
$mfiles->setFindFunction('preg');
$mfiles->doFind();
$VLAN='';
if($mfiles->occurences)
{
$VLAN = $mfiles->match[1];
$fuser = $mfiles->match[2];
$fuser = split(" ", $fuser);
$fuser = $fuser[0];
//hier könnte man noch eine email schicken oder dgl.
if ($fuser != $txtUID)
$error = 3;
}
unset($mfiles);
if(!$VLAN) $VLAN = 'S';
if (!$error)
{
if($VLAN != 'S')
{
$mac_result = 3;
}
else if ($VLAN == 'S')
{
$mfiles = new File_SearchReplace("/.*?\sS\s$txtUID\s(.*)?\snb-$txtUID\s(.*)/", "$mac S $txtUID $1 nb-$txtUID $name", $filename_dat, '', 0, array("#", ";"));
$mfiles->setSearchFunction('preg');
if(preg_match("/[A-Fa-f0-9]{12}/", $mac) && $mac != '' && strlen($mac) == 12)
{
$mfiles->doSearch();
// neuen eintrag erzeugen und ip hochzählen
if($mfiles->occurences == 0)
{
//$content = file($filename_dat, "r");
//$content = implode('', $content);
$content = file_get_contents($filename_dat);
//$ip = file($filename_ip);
//$ip = trim($ip[0]);
$ip = file_get_contents($filename_ip);
$ip = trim($ip);
$ip = ip_increment($ip);
// nachschauen ob, die mac adresse schon
// einmal gespeichert wurde
$sfiles = new File_Match("/$mac?\s/", $filename_dat, '', 0, array('#',';'));
$sfiles->doFind();
if($sfiles->occurences)
{
echo 'MAC IN USE';
$error = 3;
}
else
{
$mfiles->writeout($filename_dat, $content."$mac S $txtUID $ip nb-$txtUID $name\n");
$mfiles->writeout($filename_ip, $ip);
$mac_result = 0;
unset($txtMAC);
}
unset($sfiles);
}
else if($mfiles->occurences > 0)
{
$mac_result = 1;
unset($txtMAC);
}
}
else if($mac)
{
$mac_result = 2;
}
} // eof !$vlan == s
} // eof !$error
} // eof !error (2)
} // eof if $txtMAC
?>
<p>
Sollten Sie mehr als ein Notebook registrieren lassen wollen, wenden Sie sich bitte an <a class="Item" href="mailto:support@technikum-wien.at?Subject=Notebook-Registration">support@technikum-wien.at</a>,
da nur ein Eintrag pro Person m&ouml;glich ist.</p>
<p>Geben Sie die MAC-Adresse in folgendem Format an: 00-50-DA-C2-32-1C, oder 00:50:DA:C2:32:1C</p>
<p>
<form method="post" name="regMAC">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" nowrap>MAC-Adresse:</td>
<td nowrap><input class="TextBox" type="text" name="txtMAC" size="20"<?php if(isset($txtMAC) && $txtMAC != "") echo 'value="'.$txtMAC.'"'; ?>></td>
</tr>
<tr>
<td nowrap>UID:</td>
<td nowrap><input class="TextBox" type="text" name="txtUID" size="20" value="<?php echo $txtUID;?>"></td>
</tr>
<tr>
<td nowrap>*Passwort:</td>
<td nowrap><input class="TextBox" type="password" name="txtPassword" size="20" value=""><br><small>* ... muss nur angegeben werden, wenn UID nicht gleich dem angemeldetem Benutzer</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td nowrap><input type="submit" name="cmdRegsiter" value="Eintragen"></td>
<td nowrap><input type="reset" name="cmdCancel" value="Abbrechen" onClick="document.regMAC.txtMAC.focus();"></td>
</tr>
</table>
</form>
<?php
if ($error == 1)
echo '<font class=subline>Es muss ein Passwort eingegeben werden, wenn die UID geändert wird.</font>';
else if ($error == 2)
echo '<font class=subline>Geben Sie das Passwort bitte erneut ein.</font>';
else if ($error == 3)
echo '<font class=subline>Die MAC Adresse ist bereits in Verwendung, bitte melden Sie sich bei der ITS <a href="mailto:its@technikum-wien.at">its@technikum-wien.at</a></font>';
if(isset($mac_result))
{
if($mac_result == 0)
{
echo '<font class="subline">Die MAC-Adresse wurde erfolgreich eingetragen!</font>';
}
else if($mac_result == 1)
{
echo '<font class="subline">Die MAC-Adresse wurde erfolgreich ge&auml;ndert!</font>';
}
else if($mac_result == 2)
{
echo '<font class="subline">Die angegebene MAC-Adresse ist fehlerhaft!</font>';
}
else if($mac_result == 3)
{
echo '<font class="subline">Sie k&ouml;nnen Ihre MAC-Adresse nicht eintragen, da Sie nicht daf&uuml;r freigeschalten wurden.</font><br>';
}
}
?>
<p>Die &Auml;nderungen werden in ca. 30 Minuten wirksam. Bitte haben Sie etwas Geduld.</p>
<p>Um das Internet nutzen zu k&ouml;nnen, lassen Sie bitte die Netzwerkverbindungseinstellungen vom DHCP-Server zuweisen.<br>
In Ihrem Browser tragen Sie bitte den Proxy-Server: <strong>proxy.technikum-wien.at</strong> und den Port <strong>3128</strong> ein.</p></td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+389
View File
@@ -0,0 +1,389 @@
<?php
require_once('../../config.inc.php');
require_once('../../../include/functions.inc.php');
require_once('../../../include/funktion.class.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');
//Connection Herstellen
if(!$conn = pg_pconnect(CONN_STRING))
die("Fehler beim öffnen der Datenbankverbindung");
?>
<!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=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="document.SearchFormular.txtSearchQuery.focus();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Personensuche Technikum Wien</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<form method="post" action="psearch.php" name="SearchFormular">
<td nowrap><input type="hidden" name="do_search">
Suche nach:
<input type="text" name="txtSearchQuery" size="45">
in Gruppe
<select name="cmbChoice">
<option value="all">Alle Kategorien</option>
<?php
$fkt_obj = new funktion($conn);
$fkt_obj->getAll();
//$qry = "SELECT DISTINCT funktion_kurzbz AS kurzbz, bezeichnung FROM public.tbl_funktion WHERE aktiv=TRUE ORDER BY bezeichnung";
//$result = pg_exec($sql_conn, $sql_query);
//$num_rows = pg_num_rows($result);
//for($i = 0; $i < $num_rows; $i++)
foreach ($fkt_obj->result as $row)
{
//$row = pg_fetch_object($result, $i);
if(isset($cmbChoice) && $cmbChoice == $row->funktion_kurzbz)
{
echo "<option value=\"$row->funktion_kurzbz\" selected>$row->beschreibung</option>";
}
else
{
echo "<option value=\"$row->funktion_kurzbz\">$row->beschreibung</option>";
}
}
?>
</select>
<input type="submit" name="btnSearch" value="Suchen">
</td>
</form>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td nowrap>
<?php
if(isset($do_search))
{
//To prevent SQL Injection
$txtSearchQuery=str_replace(')','',$txtSearchQuery);
$txtSearchQuery=str_replace('\'','',$txtSearchQuery);
$txtSearchQuery=str_replace('--','',$txtSearchQuery);
if($txtSearchQuery == "" || $txtSearchQuery == "*" || $txtSearchQuery == "*.*")
{
if($cmbChoice == "all")
{
//$sql_query = "SELECT DISTINCT tbl_person.uid, titel, nachname, vornamen, telefonklappe AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM public.tbl_person, public.tbl_mitarbeiter WHERE tbl_mitarbeiter.uid=tbl_person.uid AND aktiv=TRUE UNION SELECT DISTINCT tbl_person.uid, titel, nachname, vornamen, (''::varchar) AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, studiengang_kz, semester, ''::varchar as ort FROM public.tbl_person, public.tbl_student WHERE semester<10 AND tbl_person.uid=tbl_student.uid AND tbl_student.uid not like '%dummy%' AND aktiv=TRUE ORDER BY nachname, vornamen";
$sql_query = "SELECT uid, titelpre, titelpost, nachname, vorname, telefonklappe as teltw,(uid || '@technikum-wien.at') AS emailtw, foto,-1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM campus.vw_mitarbeiter UNION SELECT DISTINCT uid, titelpre, titelpost, nachname, vorname, (''::varchar) AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, studiengang_kz, semester, ''::varchar as ort FROM campus.vw_student WHERE semester<10 ORDER BY nachname, vorname";
}
else
{
//$sql_query = "SELECT DISTINCT tbl_person.uid, titel, nachname, vornamen, telefonklappe AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM public.tbl_person, public.tbl_mitarbeiter WHERE tbl_mitarbeiter.uid=tbl_person.uid AND public.tbl_funktion.funktion_kurzbz='$cmbChoice' AND public.tbl_personfunktion.funktion_kurzbz=public.tbl_funktion.funktion_kurzbz AND tbl_person.uid=public.tbl_personfunktion.uid AND aktiv=TRUE UNION SELECT DISTINCT tbl_person.uid, (''::varchar) AS titel, nachname, vornamen, (''::varchar) AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, studiengang_kz, semester, ''::varchar as ort FROM public.tbl_person, public.tbl_student WHERE semester<10 AND tbl_person.uid=tbl_student.uid AND public.tbl_funktion.funktion_kurzbz='$cmbChoice' AND public.tbl_personfunktion.funktion_kurzbz=public.tbl_funktion.funktion_kurzbz AND tbl_person.uid=public.tbl_personfunktion.uid AND aktiv=TRUE ORDER BY nachname, vornamen";
$sql_query = "SELECT DISTINCT uid, titelpre, titelpost, nachname, vorname, telefonklappe AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM campus.vw_mitarbeiter JOIN tbl_benutzerfunktion using(uid) WHERE funktion_kurzbz='$cmbChoice' UNION SELECT DISTINCT uid, titelpre,titelpost, nachname, vorname, (''::varchar) AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, vw_student.studiengang_kz, semester, ''::varchar as ort FROM campus.vw_student JOIN tbl_benutzerfunktion using(uid) WHERE semester<10 AND funktion_kurzbz='$cmbChoice' ORDER BY nachname, vorname";
}
}
else
{
if($cmbChoice == "all")
{
//$sql_query = "SELECT DISTINCT tbl_person.uid, titel, nachname, vornamen, telefonklappe AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM public.tbl_person, public.tbl_mitarbeiter WHERE tbl_mitarbeiter.uid=tbl_person.uid AND (LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR tbl_person.uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND aktiv=TRUE UNION SELECT DISTINCT tbl_person.uid, (''::varchar) AS titel, nachname, vornamen, (''::varchar) AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, studiengang_kz, semester, ''::varchar as ort FROM public.tbl_person, public.tbl_student WHERE semester<10 AND tbl_person.uid=tbl_student.uid AND (LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR tbl_person.uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND aktiv=TRUE ORDER BY nachname, vornamen";
$sql_query = "SELECT DISTINCT uid, titelpre, titelpost, nachname, vorname, telefonklappe AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM campus.vw_mitarbeiter WHERE (LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND aktiv=TRUE UNION SELECT DISTINCT uid, titelpre, titelpost, nachname, vorname, (''::varchar) AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, studiengang_kz, semester, ''::varchar as ort FROM campus.vw_student WHERE semester<10 AND (LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) ORDER BY nachname, vorname";
}
else
{
//$sql_query = "SELECT DISTINCT tbl_person.uid, titel, nachname, vornamen, telefonklappe AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM public.tbl_person, public.tbl_mitarbeiter WHERE tbl_mitarbeiter.uid=tbl_person.uid AND ((LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR tbl_person.uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND public.tbl_funktion.funktion_kurzbz='$cmbChoice' AND public.tbl_personfunktion.funktion_kurzbz=public.tbl_funktion.funktion_kurzbz AND tbl_person.uid=public.tbl_personfunktion.uid) AND aktiv=TRUE UNION SELECT DISTINCT tbl_person.uid, (''::varchar) AS titel, nachname, vornamen, (''::varchar) AS teltw, (tbl_person.uid || '@technikum-wien.at') AS emailtw, foto, studiengang_kz, semester, ''::varchar as ort FROM public.tbl_person, public.tbl_student WHERE semester <10 AND tbl_person.uid=tbl_student.uid AND ((LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR tbl_person.uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vornamen) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vornamen || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND public.tbl_funktion.funktion_kurzbz='$cmbChoice' AND public.tbl_personfunktion.funktion_kurzbz=public.tbl_funktion.funktion_kurzbz AND tbl_person.uid=public.tbl_personfunktion.uid) AND aktiv=TRUE ORDER BY nachname, vornamen";
$sql_query = "SELECT DISTINCT uid, titelpre, titelpost, nachname, vorname, telefonklappe AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, -1 AS studiengang_kz, -1 AS semester, ort_kurzbz as ort FROM campus.vw_mitarbeiter JOIN tbl_benutzerfunktion USING(uid) WHERE ((LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND funktion_kurzbz='$cmbChoice') UNION SELECT DISTINCT uid, titelpre, titelpost, nachname, vorname, (''::varchar) AS teltw, (uid || '@technikum-wien.at') AS emailtw, foto, vw_student.studiengang_kz, semester, ''::varchar as ort FROM campus.vw_student JOIN tbl_benutzerfunktion USING(uid) WHERE semester <10 AND ((LOWER(nachname) LIKE LOWER('%$txtSearchQuery%') OR uid LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(nachname || ' ' || vorname) LIKE LOWER('%$txtSearchQuery%') OR LOWER(vorname || ' ' || nachname) LIKE LOWER('%$txtSearchQuery%')) AND funktion_kurzbz='$cmbChoice') ORDER BY nachname, vorname";
}
}
$result = pg_exec($conn, $sql_query);
$num_rows = pg_num_rows($result);
if($num_rows > 0)
{
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\">";
echo "<tr>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Titel</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Vorname</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Nachname</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Telefonnummer</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;E-Mail Adresse</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Raum</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Studiengang</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Semester</font></td>
<td align=\"left\" class=\"ContentHeader\" nowrap><font class=\"ContentHeader\">&nbsp;Hauptverteiler</font></td>";
echo "</tr>
<tr>
<td nowrap>&nbsp;</td>
</tr>";
for($i = 0; $i < $num_rows; $i++)
{
$row = pg_fetch_object($result, $i);
echo "<tr>";
if($row->titelpre != "")
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;$row->titelpre</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;$row->titelpre</td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->vorname != "")
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;$row->vorname</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;$row->vorname</td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->nachname != "")
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;<a href='../stdplan/profile/index.php?uid=$row->uid' title='Profil anzeigen'>$row->nachname $row->titelpost</a></td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;<a href='../stdplan/profile/index.php?uid=$row->uid' title='Profil anzeigen'>$row->nachname $row->titelpost</a></td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->teltw != "")
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;01 333 40 77 - $row->teltw</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;01 333 40 77 - $row->teltw</td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->emailtw != "")
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;<a href=\"mailto:$row->emailtw\" class=\"Item\">$row->emailtw</a></td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;<a href=\"mailto:$row->emailtw\" class=\"Item\">$row->emailtw</a></td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->ort != "")
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;$row->ort</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;$row->ort</td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
$kurzbz='';
if($row->studiengang_kz != -1)
{
$stg_obj = new studiengang($conn, $row->studiengang_kz);
if($i % 2 == 0)
{
echo "<td align=\"left\" nowrap>&nbsp;$stg_obj->kurzbzlang</td>";
$kurzbz=$stg_obj->kurzbz;
}
else
{
echo "<td align=\"left\" class =\"MarkLine\" nowrap>&nbsp;$stg_obj->kurzbzlang</td>";
$kurzbz=$stg_obj->kurzbz;
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"left\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"left\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->semester != -1)
{
if($i % 2 == 0)
{
echo " <td align=\"center\" nowrap>&nbsp;$row->semester</td>";
}
else
{
echo " <td align=\"center\" class=\"MarkLine\" nowrap>&nbsp;$row->semester</td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"center\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"center\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
if($row->studiengang_kz != -1)
{
$std_obj = new student($conn, $row->uid);
$verband=$std_obj->verband;
$gruppe=$std_obj->gruppe;
$kurzbz=strtolower($kurzbz);
$verband=strtolower($verband);
if($i % 2 == 0)
{
echo " <td align=\"center\" nowrap>&nbsp;<a href='mailto:$kurzbz$row->semester$verband$gruppe@technikum-wien.at'>$kurzbz$row->semester$verband$gruppe@technikum-wien.at</td>";
}
else
{
echo " <td align=\"center\" class=\"MarkLine\" nowrap>&nbsp;<a href='mailto:$kurzbz$row->semester$verband$gruppe@technikum-wien.at'>$kurzbz$row->semester$verband$gruppe@technikum-wien.at</td>";
}
}
else
{
if($i % 2 == 0)
{
echo " <td align=\"center\" nowrap>&nbsp;</td>";
}
else
{
echo " <td align=\"center\" class=\"MarkLine\" nowrap>&nbsp;</td>";
}
}
echo "</tr>";
}
echo "<tr>
<td nowrap>&nbsp;</td>
</tr>";
echo "</table>";
}
if($num_rows > 0)
{
echo "Es wurden $num_rows Eintr&auml;ge gefunden.";
}
else
{
echo "Es wurden keine Eintr&auml;ge gefunden.";
}
}
else
{
echo "<br>Bitte geben Sie einen Suchbegriff ein, nach dem gesucht werden soll.";
}
?>
</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+33
View File
@@ -0,0 +1,33 @@
<!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=iso-8859-1">
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Infrastruktur - WLan-Registration</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<p>
Die WLAN-Registration entfällt durch den Einsatz von OpenVPN im WLAN Netzwerk.
<br /><br /><a href="http://helios.technikum-wien.at/" target="_blank">Details zum Verbinden mittels OpenVPN (nur aus dem Technikum-Wien LAN, bzw. dem TWWLAN erreichbar)</a>
<br /><br />Bei etwaigen Problemen stehen wir Ihnen gerne per Mail unter <a href="mailto:wlan@technikum-wien.at">wlan@technikum-wien.at</a> zur Verfügung.
</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+315
View File
@@ -0,0 +1,315 @@
<!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=iso-8859-1">
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;Infrastruktur - Ansprechpartner</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="280" colspan="2" nowrap class="ContentHeader2">&nbsp;Leitung Infrastruktur</td>
<td class="ContentHeader2" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
<td class="ContentHeader2" nowrap>&nbsp;</td>
</tr>
<tr>
<td colspan="2" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="230" nowrap>Mag. Dietmar Nestlang</td>
<td width="50" nowrap>215</td>
<td width="340" nowrap><a class="Item" href="mailto:nestlang@technikum-wien.at">nestlang@technikum-wien.at</a></td>
<td nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung </td>
</tr>
<tr>
<td colspan="2" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="280" colspan="2" nowrap class="ContentHeader2">&nbsp;Haustechnik</td>
<td class="ContentHeader2" width="340" nowrap><a class="Item" href="mailto:admin@technikum-wien.at">admin@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td class="ContentHeader2" nowrap>&nbsp;Sprechzeiten</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230" nowrap>Staubmann Robert</td>
<td width="50" nowrap>250</td>
<td width="340" nowrap><a class="Item" href="mailto:robert.staubmann@technikum-wien.at">robert.staubmann@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>Nagl Richard</td>
<td width="50" nowrap>252</td>
<td width="340" nowrap><a class="Item" href="mailto:richard.nagl@technikum-wien.at">richard.nagl@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="230" nowrap>Harald Weigl </td>
<td width="50" nowrap>253</td>
<td width="340" nowrap><a class="Item" href="mailto:weigl@technikum-wien.at">weigl@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader2" width="280" nowrap>&nbsp;IT-Services</td>
<td class="ContentHeader2" width="340" nowrap></td>
<td width="56" nowrap>&nbsp;</td>
<td class="ContentHeader2" nowrap>&nbsp;Sprechzeiten</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230" nowrap><strong>Service Desk </strong></td>
<td width="50" nowrap>&nbsp;</td>
<td width="340" nowrap><a class="Item" href="mailto:support@technikum-wien.at">support@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="230" nowrap>Braunstorfer Michael </td>
<td width="50" nowrap>240</td>
<td width="340" nowrap><a class="Item" href="mailto:michael.braunstorfer@technikum-wien.at">michael.braunstorfer@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="230" nowrap>Esberger Franz </td>
<td width="50" nowrap>243</td>
<td width="340" nowrap><a class="Item" href="mailto:franz.esberger@technikum-wien.at">franz.esberger@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<!--<tr>
<td nowrap>Emminger Michael </td>
<td nowrap>341</td>
<td width="340" nowrap><a class="Item" href="mailto:michael.emminger@technikum-wien.at">michael.emminger@technikum-wien.at</a></td>
<td nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung </td>
</tr>
<tr>-->
<td width="230" nowrap>Vogt Eva</td>
<td width="50" nowrap>249</td>
<td width="340" nowrap><a class="Item" href="mailto:eva.vogt@technikum-wien.at">eva.vogt@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>Elgner Richard</td>
<td width="50" nowrap>341</td>
<td width="340" nowrap><a class="Item" href="mailto:relgner@technikum-wien.at">relgner@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230" nowrap><strong>Systemadministration (Zentrale Services) </strong></td>
<td width="50" nowrap>&nbsp;</td>
<td width="340" nowrap>&nbsp;</td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="230" nowrap>Kopper Martin</td>
<td width="50" nowrap>246</td>
<td width="340" nowrap><a class="Item" href="mailto:martin.kopper@technikum-wien.at">martin.kopper@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>DI. Nimmervoll Alexander</td>
<td width="50" nowrap>242</td>
<td width="340" nowrap><a class="Item" href="mailto:alexander.nimmervoll@technikum-wien.at">alexander.nimmervoll@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>Esberger Franz Ferdinand</td>
<td width="50" nowrap>346</td>
<td width="340" nowrap><a class="Item" href="mailto:ffe@technikum-wien.at">ferdinand.esberger@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230" nowrap><strong> LV-Koordinationsstelle</strong></td>
<td width="50" nowrap>&nbsp;</td>
<td width="340" nowrap><a class="Item" href="mailto:stpl@technikum-wien.at">lvplan@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="230" nowrap>Ing. Dvorak Andreas</td>
<td width="50" nowrap>251</td>
<td width="340" nowrap><a class="Item" href="mailto:andreas.dvorak@technikum-wien.at">andreas.dvorak@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>Haas Bettina</td>
<td width="50" nowrap>257</td>
<td width="340" nowrap><a class="Item" href="mailto:bettina.haas@technikum-wien.at">bettina.haas@technikum-wien.at</a></td>
<td nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>Kindl Manfred </td>
<td width="50" nowrap>256</td>
<td width="340" nowrap><a class="Item" href="mailto:kindlm@technikum-wien.at">kindlm@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230" nowrap><strong>Lehre/Lektorensupport</strong></td>
<td width="50" nowrap>&nbsp;</td>
<td width="340" nowrap>&nbsp;</td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="230" nowrap>Kata Papp </td>
<td width="50" nowrap>247</td>
<td width="340" nowrap><a class="Item" href="mailto:kata.papp@technikum-wien.at">kata.papp@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230" nowrap><strong>Systementwicklung</strong></td>
<td width="50" nowrap>&nbsp;</td>
<td width="340" nowrap>&nbsp;</td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>&nbsp;</td>
</tr>
<tr>
<td width="230" nowrap>Paminger Christian</td>
<td width="50" nowrap>245</td>
<td width="340" nowrap><a class="Item" href="mailto:christian.paminger@technikum-wien.at">christian.paminger@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>DI (FH) Hangl Rudolf</td>
<td width="50" nowrap>248</td>
<td width="340" nowrap><a class="Item" href="mailto:rudolf.hangl@technikum-wien.at">rudolf.hangl@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
<tr>
<td width="230" nowrap>&Ouml;sterreicher Andreas</td>
<td width="50" nowrap>241</td>
<td width="340" nowrap><a class="Item" href="mailto:andreas.oesterreicher@technikum-wien.at">andreas.oesterreicher@technikum-wien.at</a></td>
<td width="56" nowrap>&nbsp;</td>
<td nowrap>Termin nach Vereinbarung</td>
</tr>
</table>
</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+62
View File
@@ -0,0 +1,62 @@
<?php
require_once('../../include/functions.inc.php');
require_once('../config.inc.php');
require_once('../../include/news.class.php');
//Connection Herstellen
if(!$conn = pg_pconnect(CONN_STRING))
die("Fehler beim öffnen der Datenbankverbindung");
$user = get_uid();
if(check_lektor($user,$conn))
$is_lector=true;
?>
<!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=iso-8859-1">
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;News</font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<td>
<?php
$news = new news($conn);
$news->getnews(MAXNEWSALTER,0,null);
$zaehler=0;
foreach ($news->result as $row)
{
$zaehler++;
//no comment
$datum = date('d.m.Y - h:i',strtotime(strftime($row->updateamum)));
echo $datum.'&nbsp;'.$row->verfasser.'<br><br><strong>'.$row->betreff.'</strong><br>'.$row->text.'<br><br><br>
';
}
if($zaehler==0)
echo 'Zur Zeit gibt es keine aktuellen News!';
?>
</td>
</tr>
</table></td>
<td width="30">&nbsp;</td>
</tr>
</table>
</body>
</html>
+139 -1
View File
@@ -25,7 +25,7 @@ class benutzerberechtigung
var $conn; // resource DB-Handle
var $errormsg; // string
var $new; // boolean
var $benutzerberechtigungen = array(); // benutzerberechtigung Objekt
var $berechtigungen = array(); // benutzerberechtigung Objekt
//Tabellenspalten
var $benutzerberechtigung_id; // int
@@ -37,6 +37,8 @@ class benutzerberechtigung
var $studiensemester_kurzbz; // varchar(16)
var $start; // date
var $ende; // date
var $starttimestamp;
var $endetimestamp;
// *************************************************************************
// * Konstruktor - Uebergibt die Connection und laedt optional eine Lehrform
@@ -181,5 +183,141 @@ class benutzerberechtigung
return false;
}
}
//****************************************************************************
// * Rueckgabewert ist ein Array mit den Ergebnissen. Bei Fehler false und die
// * Fehlermeldung liegt in errormsg.
// * Wenn der Parameter stg_kz NULL ist tritt einheit_kurzbzb in Kraft.
// * @param string $uid UserID
// * @return variable Array mit LVA, false bei Fehler
// ***************************************************************************
function getBerechtigungen($uid)
{
// Berechtigungen holen
$sql_query="SELECT * FROM tbl_benutzerberechtigung WHERE uid='$uid' AND (start<now() OR start IS NULL) AND (ende>now() OR ende IS NULL)";
if(!$erg=pg_query($this->conn, $sql_query))
{
$this->errormsg='Fehler beim laden der Berechtigungen';
return false;
}
while($row=pg_fetch_object($erg))
{
$b=new benutzerberechtigung($this->conn);
$b->benutzerberechtigung_id = $row->benutzerberechtigung_id;
$b->art=$row->art;
$b->fachbereich_kurzbz=$row->fachbereich_kurzbz;
$b->studiengang_kz=$row->studiengang_kz;
$b->berechtigung_kurzbz=$row->berechtigung_kurzbz;
$b->uid=$row->uid;
$b->studiensemester_kurzbz=$row->studiensemester_kurzbz;
$b->start=$row->start;
if ($row->start!=null)
$b->starttimestamp=mktime(0,0,0,substr($row->start,5,2),substr($row->start,8),substr($row->start,0,4));
else
$b->starttimestamp=null;
$b->ende=$row->ende;
if ($row->ende!=null)
$b->endetimestamp=mktime(23,59,59,substr($row->ende,5,2),substr($row->ende,8),substr($row->ende,0,4));
$this->berechtigungen[]=$b;
}
return true;
}
function isBerechtigt($berechtigung,$studiengang_kz=null,$art=null, $fachbereich_id=null)
{
$timestamp=time();
foreach ($this->berechtigungen as $b)
{
//Fachbereichsberechtigung
if($fachbereich_id!=null)
{
//Wenn Fachbereichs oder Adminberechtigung
if(($berechtigung == $b->berechtigung_kurzbz || $b->berechtigung_kurzbz == 'admin') && ($b->fachbereich_id==$fachbereich_id || $b->fachbereich_id=='0'))
{
if ($b->starttimestamp!=null && $b->endetimestamp!=null)
{
if ($timestamp>$b->starttimestamp && $timestamp<$b->endetimestamp)
return true;
}
else
return true;
}
}
//Wenn Berechtigung fuer Bestimmte Klasse vorhanden ist
if($berechtigung == $b->berechtigung_kurzbz && $studiengang_kz==null && $art==null && $fachbereich_id==null)
if ($b->starttimestamp!=null && $b->endetimestamp!=null)
{
if ($timestamp>$b->starttimestamp && $timestamp<$b->endetimestamp)
return true;
}
else
return true;
//Wenn Berechtigung fuer Bestimmten Studiengang vorhanden ist
if ($berechtigung==$b->berechtigung_kurzbz
&& ($studiengang_kz==$b->studiengang_kz || $b->studiengang_kz==0) && $art==null && $b->fachbereich_id==null)
if ($b->starttimestamp!=null && $b->endetimestamp!=null)
{
if ($timestamp>$b->starttimestamp && $timestamp<$b->endetimestamp)
return true;
}
else
return true;
//Wenn Berechtigung mit Studiengang und der richtigen BerechtigungsArt (suid) vorhanden ist
if ($berechtigung==$b->berechtigung_kurzbz
&& ($studiengang_kz==$b->studiengang_kz || $b->studiengang_kz==0)
&& strstr($b->art,$art))
if ($b->starttimestamp!=null && $b->endetimestamp!=null)
{
if ($timestamp>$b->starttimestamp && $timestamp<$b->endetimestamp)
return true;
}
else
return true;
}
return false;
}
// ********************************************************************
// * Gibt Array mit Kennzahlen der Studiengaenge sortiert zurueck.
// * Optional wird auf Berechtigung eingeschraenkt.
// * Wenn Berechtigung ueber alle Studiengaenge steht im ersten Feld 0.
// ********************************************************************
function getStgKz($berechtigung=null)
{
$studiengang_kz=array();
$timestamp=time();
foreach ($this->berechtigungen as $b)
if ($berechtigung==$b->berechtigung_kurzbz || $berechtigung==null)
if($b->fachbereich_id==null)
$studiengang_kz[]=$b->studiengang_kz;
$studiengang_kz=array_unique($studiengang_kz);
sort($studiengang_kz);
return $studiengang_kz;
}
function getFbKz($berechtigung=null)
{
$fachbereichs_kz=array();
$timestamp=time();
foreach($this->berechtigungen as $b)
{
if(($berechtigung==$b->berechtigung_kurzbz || $berechtigung==null)
&& (($timestamp>$b->starttimestamp && $timestamp<$b->endetimestamp) || ($b->starttimestamp==null && $b->endetimestamp==null)))
{
if($b->fachbereich_id!='' && !in_array($b->fachbereich_id,$fachbereichs_kz))
$fachbereichs_kz[] = $b->fachbereich_id;
}
}
sort($fachbereichs_kz);
return $fachbereichs_kz;
}
}
?>
+1 -1
View File
@@ -72,7 +72,7 @@ class benutzerfunktion
while($row = pg_fetch_object($res))
{
$pfunktion_obj = new personenfunktion($this->conn);
$pfunktion_obj = new benutzerfunktion($this->conn);
$pfunktion_obj->benutzerfunktion_id = $row->benutzerfunktion_id;
$pfunktion_obj->fachbereich_kurzbz = $row->fachbereich_kurzbz;
+9 -10
View File
@@ -33,7 +33,7 @@ class funktion
//Tabellenspalten
var $funktion_kurzbz; // @var integer
var $bezeichnung; // @var string
var $beschreibung; // @var string
var $aktiv; // @var boolean
var $ext_id; // @var bigint
@@ -69,7 +69,7 @@ class funktion
$funktion_obj = new funktion($this->conn);
$funktion_obj->funktion_kurzbz = $row->funktion_kurzbz;
$funktion_obj->bezeichnung = $row->bezeichnung;
$funktion_obj->beschreibung = $row->beschreibung;
$funktion_obj->aktiv = $row->aktiv;
$this->result[] = $funktion_obj;
@@ -101,7 +101,7 @@ class funktion
if($row=pg_fetch_object($res))
{
$this->funktion_kurzbz = $row->funktion_kurzbz;
$this->bezeichnung = $row->bezeichnung;
$this->beschreibung = $row->beschreibung;
$this->aktiv = $row->aktiv;
}
else
@@ -137,12 +137,11 @@ class funktion
*/
function checkvars()
{
$this->bezeichnung = str_replace("'",'´',$this->bezeichnung);
//Laenge Pruefen
if(strlen($this->bezeichnung)>64)
if(strlen($this->beschreibung)>64)
{
$this->errormsg = "Bezeichnung darf nicht laenger als 128 Zeichen sein bei <b>$this->funktion_kurzbz</b> - $this->bezeichnung";
$this->errormsg = "Bezeichnung darf nicht laenger als 128 Zeichen sein bei <b>$this->funktion_kurzbz</b> - $this->beschreibung";
return false;
}
@@ -164,9 +163,9 @@ class funktion
return false;
}
//Neuen Datensatz anlegen
$qry = 'INSERT INTO tbl_funktion (funktion_kurzbz, bezeichnung, aktiv) VALUES ('.
$qry = 'INSERT INTO tbl_funktion (funktion_kurzbz, beschreibung, aktiv) VALUES ('.
$this->addslashes($this->funktion_kurzbz).', '.
$this->addslashes($this->bezeichnung).', '.
$this->addslashes($this->beschreibung).', '.
($this->aktiv?'true':'false').'); ';
}
else
@@ -181,7 +180,7 @@ class funktion
}
$qry = 'UPDATE tbl_funktion SET '.
'bezeichnung='.$this->addslashes($this->bezeichnung).', '.
'beschreibung='.$this->addslashes($this->beschreibung).', '.
'aktiv='.($this->aktiv?'true':'false') .' '.
'WHERE funktion_kurzbz = '.$this->addslashes($this->funktion_kurzbz).';';
}
+12 -5
View File
@@ -32,6 +32,8 @@ class lehrverband
var $semester; // integer
var $verband; // integer
var $gruppe; // integer
var $aktiv; // boolean
var $bezeichnung; // varchar(16)
// *************************************************************************
// * Konstruktor - Uebergibt die Connection und laedt optional einen Lehrverband
@@ -61,8 +63,8 @@ class lehrverband
$qry = "SELECT count(*) as anzahl FROM tbl_lehrverband WHERE
studiengang_kz='".addslashes($studiengang_kz)."' AND
semester='".addslashes($semester)."' AND
verband='".addslashes($verband)."' AND
gruppe='".addslashes($gruppe)."'";
trim(verband)='".trim(addslashes($verband))."' AND
trim(gruppe)='".trim(addslashes($gruppe))."'";
if($row=pg_fetch_object(pg_query($this->conn, $qry)))
{
@@ -131,6 +133,8 @@ class lehrverband
$lv_obj->semester = $row->semester;
$lv_obj->verband = $row->verband;
$lv_obj->gruppe = $row->gruppe;
$lv_obj->aktiv = $row->aktiv;
$lv_obj->bezeichnung = $row->bezeichnung;
$this->result[] = $lv_obj;
}
@@ -166,12 +170,15 @@ class lehrverband
//Variablen auf Gueltigkeit pruefen
if(!$this->validate())
return false;
$qry = 'INSERT INTO tbl_lehrverband (studiengang_kz, semester, verband, gruppe)
$qry = 'INSERT INTO tbl_lehrverband (studiengang_kz, semester, verband, gruppe, aktiv, bezeichnung)
VALUES('.$this->addslashes($this->studiengang_kz).','.
$this->addslashes($this->semester).','.
$this->addslashes($this->verband).','.
$this->addslashes($this->gruppe).');';
$this->addslashes($this->gruppe).','.
($this->aktiv?'true':'false').','.
$this->addslashes($this->bezeichnung).');';
if(pg_query($this->conn,$qry))
{
//Log schreiben
+8 -1
View File
@@ -30,6 +30,7 @@ class mitarbeiter extends benutzer
var $lektor; //boolean
var $fixangestellt; //boolean
var $telefonklappe; //varchar(25)
var $ort_kurzbz; //varchar(8)
// *************************************************************************
// * Konstruktor - Uebergibt die Connection und laedt optional einen Mitarbeiter
@@ -89,6 +90,11 @@ class mitarbeiter extends benutzer
$this->errormsg = 'kurzbz darf nicht laenger als 8 Zeichen sein';
return false;
}
if(strlen($this->ort_kurzbz)>8)
{
$this->errormsg = 'Ort_kurzbz darf nicht laenger als 8 Zeichen sein';
return false;
}
if(!is_bool($this->lektor))
{
$this->errormsg = 'lektor muss boolean sein'.$this->lektor;
@@ -135,7 +141,7 @@ class mitarbeiter extends benutzer
if($this->new)
{
//Neuen Datensatz anlegen
$qry = "INSERT INTO tbl_mitarbeiter(mitarbeiter_uid, ausbildungcode, personalnummer, kurzbz, lektor,
$qry = "INSERT INTO tbl_mitarbeiter(mitarbeiter_uid, ausbildungcode, personalnummer, kurzbz, lektor, ort_kurzbz
fixangestellt, telefonklappe, updateamum, updatevon)
VALUES('".addslashes($this->uid)."',".
$this->addslashes($this->ausbildungcode).",".
@@ -157,6 +163,7 @@ class mitarbeiter extends benutzer
' lektor='.($this->lektor?'true':'false').','.
' fixangestellt='.($this->fixangestellt?'true':'false').','.
' telefonklappe='.$this->addslashes($this->telefonklappe).','.
' updateamum='.$this->addslashes($this->ort_kurzbz).','.
' updateamum='.$this->addslashes($this->updateamum).','.
' updatevon='.$this->addslashes($this->updatevon).
" WHERE mitarbeiter_uid='".addslashes($this->uid)."';";
+25 -16
View File
@@ -131,13 +131,14 @@ class news
*/
function load($news_id)
{
if($news_id == '' || !is_nan($news_id))
if(!is_numeric($news_id))
{
$this->errormsg = 'news_id muß eine gültige Zahl sein';
return false;
}
$qry = "SELECT * FROM campus.tbl_news WHERE news_id = '$this->news_id';";
$qry = "SELECT * FROM campus.tbl_news WHERE news_id = '$news_id';";
if(!$res = pg_query($this->conn, $qry))
{
@@ -175,8 +176,21 @@ class news
*/
function delete($news_id)
{
$this->errormsg = 'Noch nicht implementiert';
return false;
if(!is_numeric($news_id))
{
$this->errormsg = 'News_id muss eine gueltige Zahl sein';
return false;
}
$qry = "DELETE FROM campus.tbl_news WHERE news_id='$news_id'";
if(pg_query($this->conn, $qry))
return true;
else
{
$this->errormsg = 'Fehler beim L&ouml;schen';
return false;
}
}
function addslashes($var)
@@ -223,15 +237,9 @@ class news
if($this->new)
{
//Neuen Datensatz anlegen
//Pruefen ob funktion_kurzbz befüllt ist
if($this->news_id == '' || !is_numeric($this->news_id))
{
$this->errormsg = 'News_id ungültig';
return false;
}
$qry = 'INSERT INTO campus.tbl_news (news_id, betreff, text, semester, uid, studiengang_kz, verfasser, insertamum, insertvon,
$qry = 'INSERT INTO campus.tbl_news (betreff, text, semester, uid, studiengang_kz, verfasser, insertamum, insertvon,
updateamum, updatevon) VALUES ('.
$this->addslashes($this->news_id).', '.
$this->addslashes($this->betreff).', '.
$this->addslashes($this->text).', '.
$this->addslashes($this->semester).', '.
@@ -239,9 +247,10 @@ class news
$this->addslashes($this->studiengang_kz).', '.
$this->addslashes($this->verfasser).', '.
$this->addslashes($this->insertamum).', '.
$this->addslashes($this->insertvon).', '.
$this->addslashes($this->updateamum).', '.
$this->addslashes($this->insertvon).', now(),'.
//$this->addslashes($this->updateamum).', '.
$this->addslashes($this->updatevon).'); ';
}
else
{
@@ -263,11 +272,11 @@ class news
'verfasser='.$this->addslashes($this->verfasser).', '.
'insertamum='.$this->addslashes($this->insertamum).', '.
'insertvon='.$this->addslashes($this->insertvon).', '.
'updateamum='.$this->addslashes($this->updateamum).', '.
'updateamum=now(),'. //'.$this->addslashes($this->updateamum).', '.
'updatevon='.$this->addslashes($this->updatevon).' '.
'WHERE news_id = '.$this->addslashes($this->news_id).';';
}
echo $qry;
if(pg_query($this->conn, $qry))
{
/*//Log schreiben
+1 -1
View File
@@ -67,7 +67,7 @@ class student extends benutzer
if($row = pg_fetch_object($result))
{
$this->uid = $row->student_uid;
$this->matrikelnr = $row->matrikelnummer;
$this->matrikelnr = $row->matrikelnr;
$this->prestudent_id = $row->prestudent_id;
$this->studiengang_kz = $row->studiengang_kz;
$this->semester = $row->semester;
+39 -1
View File
@@ -77,7 +77,45 @@ class studiengang
// *****************************************************
function load($studiengang_kz)
{
return false;
if(!is_numeric($studiengang_kz))
{
$this->errormsg = 'Studiengang_kz muss eine gueltige Zahl sein';
return false;
}
$qry = "SELECT * FROM tbl_studiengang WHERE studiengang_kz='$studiengang_kz'";
if($res = pg_query($this->conn, $qry))
{
if($row = pg_fetch_object($res))
{
$this->studiengang_kz=$row->studiengang_kz;
$this->kurzbz=$row->kurzbz;
$this->kurzbzlang=$row->kurzbzlang;
$this->bezeichnung=$row->bezeichnung;
$this->english=$row->english;
$this->typ=$row->typ;
$this->farbe=$row->farbe;
$this->email=$row->email;
$this->max_semester=$row->max_semester;
$this->max_verband=$row->max_verband;
$this->max_semester=$row->max_semester;
$this->erhalter_kz=$row->erhalter_kz;
$this->bescheid=$row->bescheid;
$this->bescheidbgbl1=$row->bescheidbgbl1;
$this->bescheidbgbl2=$row->bescheidbgbl2;
$this->bescheidgz=$row->bescheidgz;
$this->bescheidvom=$row->bescheidvom;
$this->ext_id=$row->ext_id;
}
}
else
{
$this->errormsg = 'Datensatz konnte nicht geladen werden';
return false;
}
return true;
}
// *******************************************