mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="CONTENT-TYPE"
|
||||
content="text/html; charset=windows-1252">
|
||||
<title>Outlook Import</title>
|
||||
<link href="../../../skin/cis.css" rel="stylesheet"
|
||||
type="text/css">
|
||||
</head>
|
||||
<body class="background_main">
|
||||
<h1>Import der Stundenplan CSV-Datei in Outlook:</h1>
|
||||
<p>Bevor Sie die CSV-Datei in Outlook importieren können müssen Sie sie
|
||||
zuerst aus dem Stundenplansystem exportieren. <br>
|
||||
Hierfür klicken Sie im Stundenplansystem auf das Outlook-Symbol und
|
||||
speichern die Datei auf Ihre Festplatte. </p>
|
||||
<p align="center"><img alt="Outlookimport" src="../../../skin/images/Outlookimport.png"
|
||||
style="width: 989px; height: 461px;"><br>
|
||||
</p>
|
||||
<p>Nachfolgend werden die nächsten Schritte anhand von Screenshots
|
||||
erklärt.<br>
|
||||
</p>
|
||||
<p>Starten Sie dazu Microsoft Outlook.<br>
|
||||
</p>
|
||||
<div align="center"> <img
|
||||
src="../../../skin/images/OutlookImpMenu.gif" name="Menu"><br>
|
||||
<br>
|
||||
<img src="../../../skin/images/OutlookImpImport.png" name="Import"><br>
|
||||
<br>
|
||||
<img src="../../../skin/images/OutlookImpKomma.png" name="Komma"><br>
|
||||
<br>
|
||||
Suchen Sie nun bei "Durchsuchen" die Anfangs gespeicherte csv-Datei auf
|
||||
Ihrer Festplatte<br>
|
||||
<br>
|
||||
<img src="../../../skin/images/OutlookImpDuplikate.png"
|
||||
name="Duplikate"><br>
|
||||
<br>
|
||||
<img src="../../../skin/images/OutlookImpKalender.png" name="Kalender">
|
||||
</div>
|
||||
<hr>
|
||||
<div class="footer">Seite erstellt am 30.3.2003 von <a
|
||||
href="mailto:[email protected]">Christian Paminger</a>.<br>
|
||||
Letzte Änderung am 19.01.2005 von <a href="mailto:[email protected]">Manfred Kindl</a>.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,307 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Lehrveranstaltungsplan</title>
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body class="background_main">
|
||||
<h1>Hilfe zum Lehrveranstaltungsplansystem </h1>
|
||||
<h3>FAQ</h3>
|
||||
<a href="index.html#saal_reserve">Wie reserviere ich einen Saal?</a><br>
|
||||
<a
|
||||
href="OutlookImport.html">Wie
|
||||
importiere ich den Lehrveranstaltungsplan in Outlook?</a><br>
|
||||
<hr>
|
||||
Sie finden den aktuellen Lehrveranstaltungsplan unter <a
|
||||
href="http://cis.technikum-wien.at/" target="_top">http://cis.technikum-wien.at</a>.
|
||||
Dort finden Sie im linken Menü unter Lehre den Punkt LV-Plan. <br>
|
||||
Nach erfolgreicher Anmeldung mit ihrem Standard-Useraccount befinden
|
||||
sie sich im Hauptmenü.
|
||||
<h3>Hauptmenü</h3>
|
||||
<div align="center"><img alt="Hauptmenue" src="../../../skin/images/Hauptmenue.png"
|
||||
style="border: 1px solid ; width: 938px; height: 595px;"><br>
|
||||
</div>
|
||||
<p><br>
|
||||
Im Hauptmenü haben Sie die Möglichkeit sich für verschieden Ansichten
|
||||
des Lehrveranstaltungsplans zu entscheiden.<br>
|
||||
<br>
|
||||
</p>
|
||||
<ul style="list-style-type: circle;">
|
||||
<li><a href="HelpNeu.html#Saalplan">Saalplan</a></li>
|
||||
<li> Lektorenplan</li>
|
||||
<li> Persönlicher Plan</li>
|
||||
<li> Plan der Lehrverbände<br>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<hr>
|
||||
<h3><a name="Saalplan"></a></h3>
|
||||
<h3>Saalstundenplan</h3>
|
||||
<table style="width: 80%;" border="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 0%; white-space: nowrap; text-align: right;"> <a
|
||||
href="HelpNeu.html#Navigationsmenue">Navigationsmenü </a><br>
|
||||
</td>
|
||||
<td rowspan="23" style="width: 97%;"><img alt="Saalplan"
|
||||
src="../../../skin/images/Saalplan_mit_Legende.png" style="width: 899px; height: 700px;"><br>
|
||||
</td>
|
||||
<td style="height: 50px; width: 0%; white-space: nowrap;"> Direktsprünge
|
||||
zu den <br>
|
||||
Kalenderwochen</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="width: 0%; height: 20px; white-space: nowrap;"> <br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap; text-align: right;" width="0%"> <br>
|
||||
Raumbezeichnung
|
||||
und <br>
|
||||
Personenkapazität <br>
|
||||
</td>
|
||||
<td style="width: 0%; height: 50px; white-space: nowrap;"><br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="height: 40px; width: 0%; white-space: nowrap;"> Raumwahl
|
||||
direkt aus Drop-Down Feld<br>
|
||||
oder vor-/zurückblättern<br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" rowspan="2"> <a
|
||||
href="index.html#KalenderHTML">Kalenderansicht in HTML</a><br>
|
||||
und Exporticons für HTML,<br>
|
||||
CSV und Outlook </td>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 0%; height: 45px; white-space: nowrap;"> <br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
style="width: 0%; vertical-align: middle; height: 50px; white-space: nowrap; text-align: right;">
|
||||
<br>
|
||||
</td>
|
||||
<td style="white-space: nowrap;" width="0%"> 1 bzw. 4
|
||||
Woche(n)<br>
|
||||
vor-/zurückblättern</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td colspan="1" rowspan="2" style="white-space: nowrap;"
|
||||
width="0%"><a href="HelpNeu.html#details"></a><br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 0%; height: 35px; white-space: nowrap;"><br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"> <br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="3" style="vertical-align: top; white-space: nowrap;">
|
||||
<div align="right"><a name="Checkbox"></a><a
|
||||
href="index.html#saal_reserve">Checkbox</a> </div>
|
||||
</td>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> <a
|
||||
href="index.html#details">Detailansicht</a></td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;"> </td>
|
||||
<td width="3%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
style="vertical-align: middle; width: 0%; height: 30px; white-space: nowrap; text-align: right;"> <br>
|
||||
</td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;" rowspan="2"><br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap; text-align: right;" width="0%"> Saalreservierung
|
||||
<br>
|
||||
</td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" rowspan="2"><br>
|
||||
</td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="white-space: nowrap;" width="0%"> </td>
|
||||
<td style="white-space: nowrap;" width="3%"> </td>
|
||||
<td style="vertical-align: top;"><br>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a name="Navigationsmenue"></a><br>
|
||||
</h3>
|
||||
<h3>Navigationsmenü<br>
|
||||
</h3>
|
||||
Das Navigationsmenü ermöglicht das Wechseln auf die übergeordnete
|
||||
Ansichtsebene.<br>
|
||||
<a name="KalenderHTML"></a>
|
||||
<h3>Kalenderansicht in HTML</h3>
|
||||
<p>Die Kalenderansicht zeigt den Lehrveranstaltungsplan für das ganze Semester. Je
|
||||
nach Browser kann er mehr oder weniger schön ausgedruckt werden. Beste
|
||||
Ergebnisse werden mit Netscape 4.x erzielt. </p>
|
||||
<h3>Kalenderansicht in einer Tabellenkalkulation (MS-Excel, StarCalc,
|
||||
...)</h3>
|
||||
Das vorhanden csv-File ist eigentlich kein echtes csv-File, es
|
||||
funktioniert aber bei StarCalc und Excel ganz gut. <br>
|
||||
Sollte es zu Problemen kommen (besonders bei Excel XP) kann man
|
||||
folgenden Trick anwenden. <br>
|
||||
Laden Sie das File zuerst auf ihren Rechner (<span
|
||||
style="color: rgb(0, 0, 0); font-weight: bold;">Rechte</span>
|
||||
Maustaste auf das
|
||||
Symbol und "Ziel speichern unter ..." wählen). Dann ändern Sie die
|
||||
Dateinamenserweiterung auf ".html". Die Datei heißt nun
|
||||
"Kalender_09_2004<span style="font-weight: bold;">.html</span>"
|
||||
anstatt "Kalender_09_2004.csv". Nun starten Sie ihr Excel und öffnen
|
||||
dann diese HTML-Datei mit Excel.
|
||||
<h3><a name="details"></a></h3>
|
||||
<h3>Detailansicht</h3>
|
||||
Hier werden alle Lehrverbände und Lektoren zum jeweiligen Unterricht
|
||||
angezeigt.
|
||||
<h3><a name="saal_reserve"></a></h3>
|
||||
<h3>Saalreservierung</h3>
|
||||
Für eine Saalreservierung gehen Sie folgendermaßen vor:
|
||||
<ul>
|
||||
<li>Wählen Sie im Hauptmenü den gewünschten Raum aus dem Saalplan aus.<br>
|
||||
</li>
|
||||
<li>Markieren Sie mittels der <a href="index.html#Checkbox">Checkboxen</a>
|
||||
die Stunden, die Sie
|
||||
reservieren möchten.</li>
|
||||
<li>Geben Sie Ihrer Reservierung einen Titel (max. 8 Zeichen), dieser
|
||||
erscheint dann im Lehrveranstaltungsplan.</li>
|
||||
<li>Füllen Sie das Feld Beschreibung (max 20 Zeichen) aus und klicken
|
||||
Sie auf
|
||||
"Reservieren". </li>
|
||||
</ul>
|
||||
Sie können Ihre Reservierungen in der Reservierungsliste (Hauptmenü)
|
||||
jederzeit
|
||||
wieder löschen.<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,42 @@
|
||||
<HTML>
|
||||
|
||||
<HEAD>
|
||||
|
||||
<TITLE>ToDo Liste Stundenplan</TITLE>
|
||||
|
||||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
|
||||
<LINK rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
|
||||
</HEAD>
|
||||
|
||||
|
||||
|
||||
<BODY class="background_main">
|
||||
|
||||
<H2>ToDo Liste zum Stundenplan-System </H2>
|
||||
|
||||
<UL>
|
||||
|
||||
<LI>Kalenderansicht auch für die Lehrverbände </LI>
|
||||
|
||||
<LI>Kalender als PDF-File</LI>
|
||||
|
||||
<LI>Palm-Sync</LI>
|
||||
|
||||
<LI>Lehrfachbezeichnung in der Detailansicht</LI>
|
||||
|
||||
<LI>Detailansicht auch im persönlichen Studentenplan</LI>
|
||||
|
||||
<LI>Modulplan</LI>
|
||||
|
||||
<LI>4 Wochen Sprung im persönlichen Studentenplan</LI>
|
||||
|
||||
<LI>csv-Datei für Outlook und Ximian Evolution</LI>
|
||||
|
||||
</UL>
|
||||
|
||||
</BODY>
|
||||
|
||||
</HTML>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<META http-equiv="refresh" content="0;URL=index.php">
|
||||
<title>Stundenplan</title>
|
||||
<link rel="stylesheet" href="../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
Sie werden nicht weitergeleitet? <a href="index.php">(Klick here)</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
include('../../include/functions.inc.php');
|
||||
|
||||
if (isset($REMOTE_USER))
|
||||
$uid=$REMOTE_USER;
|
||||
else
|
||||
$uid='tw01e061';
|
||||
|
||||
// Verbindung aufbauen
|
||||
$conn=pg_pconnect(CONN_STRING) or die ("Unable to connect to SQL-Server");
|
||||
$sql_query="SELECT uid, nachname, vornamen FROM tbl_person WHERE uid LIKE '$uid'";
|
||||
unset($uid);
|
||||
$result=@pg_exec($conn, $sql_query);
|
||||
if(!$result)
|
||||
echo "User not found!";
|
||||
else
|
||||
{
|
||||
$uid=pg_result($result,0,'"uid"');
|
||||
$nachname=pg_result($result,0,'"nachname"');
|
||||
$vornamen=pg_result($result,0,'"vornamen"');
|
||||
}
|
||||
$sql_query="SELECT studiengang_kz, kurzbz, kurzbzlang, bezeichnung FROM tbl_studiengang ORDER BY kurzbz";
|
||||
$result_stg=pg_exec($conn, $sql_query);
|
||||
if(!$result_stg)
|
||||
die ("Studiengang not found!");
|
||||
$num_rows_stg=pg_numrows($result_stg);
|
||||
$sql_query="SELECT ort_kurzbz FROM tbl_ort WHERE aktiv AND lehre ORDER BY ort_kurzbz";
|
||||
$result_ort=pg_exec($conn, $sql_query);
|
||||
if(!$result_ort)
|
||||
die("ort not found!");
|
||||
$num_rows_ort=pg_numrows($result_ort);
|
||||
$sql_query="SELECT uid, kurzbz FROM vw_lektor ORDER BY kurzbz";
|
||||
$result_lektor=pg_exec($conn, $sql_query);
|
||||
if(!$result_lektor)
|
||||
die("lektor not found!");
|
||||
$num_rows_lektor=pg_numrows($result_lektor);
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Lehrveranstaltungsplan</title>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
function MM_jumpMenu(targ,selObj,restore){ //v3.0
|
||||
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
|
||||
if (restore) selObj.selectedIndex=0;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<BODY>
|
||||
<H1>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td> Lehrveranstaltungsplan</td>
|
||||
<td align="right"><A href="help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H1>
|
||||
<DIV align="right">Version: <?php echo VERSION; ?></DIV>
|
||||
<font class="beschriftung">Username: </font>
|
||||
<?php
|
||||
if (isset($uid))
|
||||
echo $uid;
|
||||
else
|
||||
echo 'nicht vorhanden! Bitte wenden Sie sich an den <A href="mailto:[email protected]">Admin</A>!';
|
||||
?><BR>
|
||||
<DIV align="left">
|
||||
<a href="stpl_week.php?pers_uid=<?php echo $uid; ?>"><?php echo $vornamen." ".$nachname;?></a>
|
||||
-> Ihr persönlicher Lehrveranstaltungsplan<BR>
|
||||
<a href="profile/index.php">PROFIL</a>
|
||||
-> Hier können Sie Ihre Stammdaten kontrollieren.<BR>
|
||||
</DIV>
|
||||
<BR>
|
||||
<FORM name="Auswahl" action="stpl_week.php">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="3">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<H2> Saalplan</H2>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<H2> Lektorenplan</H2>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<BR>
|
||||
<font class="beschriftung">Saal: </font>
|
||||
<select name="select" onChange="MM_jumpMenu('self',this,0)">
|
||||
<option value="stpl_wekk.php" selected>... ??? ...</option>
|
||||
<?php
|
||||
for ($i=0;$i<$num_rows_ort;$i++)
|
||||
{
|
||||
$row=pg_fetch_object ($result_ort, $i);
|
||||
echo "<option value=\"stpl_week.php?type=ort&ort_kurzbz=$row->ort_kurzbz\">$row->ort_kurzbz</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
(Saalreservierung)<BR><BR>
|
||||
<A href="stpl_reserve_list.php">Reservierungsliste</A> (Reservierungen löschen)<BR>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<font class="beschriftung">Lektor: </font>
|
||||
<select name="lektor" onChange="MM_jumpMenu('self',this,0)">
|
||||
<option value="stpl_week.php" selected>... ??? ...</option>
|
||||
<?php
|
||||
for ($i=0;$i<$num_rows_lektor;$i++)
|
||||
{
|
||||
$row=pg_fetch_object ($result_lektor, $i);
|
||||
echo "<option value=\"stpl_week.php?type=lektor&pers_uid=$row->uid\">$row->kurzbz</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<H2> Lehr-Verband</H2>
|
||||
<table width="40%" border="0" cellpadding="0" cellspacing="3">
|
||||
<tr nowrap>
|
||||
<td width="20%" valign="middle">
|
||||
<font class="beschriftung"> Studiengang</font><BR>
|
||||
<select name="stg_kz" >
|
||||
<?php
|
||||
$num_rows=pg_numrows($result_stg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=pg_fetch_object ($result_stg, $i);
|
||||
echo "<option value=\"$row->studiengang_kz\">$row->kurzbz ( $row->kurzbzlang - $row->bezeichnung )</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<font class="beschriftung"> Sem</font><BR>
|
||||
<select name="sem">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<font class="beschriftung"> Ver</font><BR>
|
||||
<select name="ver" >
|
||||
<option value="0" selected>*</option>
|
||||
<option value="A">A</option>
|
||||
<option value="B">B</option>
|
||||
<option value="C">C</option>
|
||||
<option value="D">D</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle" >
|
||||
<font class="beschriftung"> Grp</font><BR>
|
||||
<select name="grp">
|
||||
<option value="0" selected>*</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
</select>
|
||||
</td>
|
||||
<TD valign="bottom">
|
||||
<INPUT type="hidden" name="type" value="verband">
|
||||
<INPUT type="submit" name="Abschicken" value="Go">
|
||||
</TD>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<a href="verband_uebersicht.php">Lehrverbände</a> -> Übersicht der Lehrverbände<BR>
|
||||
<BR><BR><HR>
|
||||
<P>Fehler und Feedback bitte an <A href="mailto:[email protected]">LV-Koordinationsstelle</A>.</P>
|
||||
<!--
|
||||
<P class=little>
|
||||
Erstellt am 24.8.2001 von <A href="mailto:[email protected]">Christian Paminger</A>.<BR>
|
||||
Letzte Änderung am 11.1.2005 von <A href="mailto:[email protected]">Christian Paminger</A>.
|
||||
</P>
|
||||
-->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Out of Service</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<LINK rel="stylesheet" href="include/styles.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" bgcolor="#FFFFFF" text="#000000" class="background_main">
|
||||
<P> </P>
|
||||
<P><FONT class="h3">Stundenplan Update läuft. </FONT></P>
|
||||
<P><FONT class="h3"><BR>
|
||||
Diese Service wird in wenigen Minuten wieder verfgbar sein.</FONT> </P>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
include('../../include/functions.inc.php');
|
||||
// Verbindung aufbauen
|
||||
$conn_string = "host=calgone.technikum-wien.at port=5432 dbname=vilesci user=pam password=bla";
|
||||
$conn=pg_connect(CONN_STRING) or die ("Unable to connect to SQL-Server");
|
||||
|
||||
$start=time();
|
||||
$statements=0;
|
||||
$reihen=0;
|
||||
$bytes=0;
|
||||
$sql_query="SELECT id, kurzbz FROM studiengang ORDER BY kurzbz";
|
||||
$result_stg=pg_exec($conn, $sql_query);
|
||||
if(!$result_stg)
|
||||
die ("studiengang not found!");
|
||||
$num_rows=pg_numrows($result_stg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=pg_fetch_object ($result_stg, $i);
|
||||
for ($sem=1;$sem<9;$sem+=2)
|
||||
{
|
||||
$datum=getdate();
|
||||
for ($k=0;$k<15;$k++)
|
||||
{
|
||||
$datum=montag($datum);
|
||||
$datum_begin=$datum;
|
||||
$datum_end=jump_week($datum_begin, 1);
|
||||
$datum_begin=$datum_begin[year]."-".$datum_begin[mon]."-".$datum_begin[mday];
|
||||
$datum_end=$datum_end[year]."-".$datum_end[mon]."-".$datum_end[mday];
|
||||
$sql_query='SELECT unr, datum, stunde_id, ort_id, ortkurzbz, lektorkurzbz, einheitkurzbz FROM vweinheitenplan';
|
||||
$sql_query.=" WHERE datum>='$datum_begin' AND datum<'$datum_end'";
|
||||
$sql_query.=' AND studiengang_id='.$row->id.' AND semester='.$sem;
|
||||
$sql_query.=' ORDER BY datum ASC, stunde_id ASC';
|
||||
//echo $sql_query.'<br>';
|
||||
//Datenbankabfrage
|
||||
if(!($stpl_tbl=pg_exec($conn, $sql_query)))
|
||||
die(pg_last_error($this->conn));
|
||||
$reihen+=pg_numrows($stpl_tbl);
|
||||
//$bytes+=strlen($stpl_tbl);
|
||||
|
||||
$sql_query='SELECT unr, datum, stunde_id, ortkurzbz, ort_id, lehrfachkurzbz, farbe, lektorkurzbz, lektor_id,';
|
||||
$sql_query.=' studiengang_id, stgkurzbz, semester, verband, gruppe, lektor_id FROM vwstundenplan';
|
||||
$sql_query.=" WHERE datum>='$datum_begin' AND datum<'$datum_end'";
|
||||
$sql_query.=' AND studiengang_id='.$row->id.' AND semester='.$sem;
|
||||
$sql_query.=' ORDER BY datum ASC, stunde_id ASC';
|
||||
//echo $sql_query."<br>";
|
||||
//Datenbankabfrage
|
||||
if(!($stpl_tbl=pg_exec($conn, $sql_query)))
|
||||
die(pg_last_error($this->conn));
|
||||
$reihen+=pg_numrows($stpl_tbl);
|
||||
//$bytes+=strlen($stpl_tbl);
|
||||
|
||||
$datum=jump_week($datum, 1);
|
||||
$statements++;
|
||||
}
|
||||
}
|
||||
}
|
||||
$ende=time();
|
||||
$zeit=$ende-$start;
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Performance Test</title>
|
||||
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<BODY>
|
||||
<H1> Stundenplan Performance Test</H1>
|
||||
Anzahl der Statements: <?php echo $statements; ?><BR>
|
||||
Anzahl der Datens?tze: <?php echo $reihen; ?><BR>
|
||||
<!--Datentransfer in Byte: <?php echo $bytes; ?><BR>-->
|
||||
Vergangene Zeit [sec]: <?php echo $zeit; ?><BR>
|
||||
|
||||
<HR>
|
||||
<P class=little>
|
||||
Erstellt am 24.8.2001 von <A href="mailto:[email protected]">Christian Paminger</A>.<BR>
|
||||
Letzte Änderung am 11.9.2004 von <A href="mailto:[email protected]">Christian Paminger</A>.
|
||||
</P>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php session_start(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
<title>Passwort ändern</title>
|
||||
</head>
|
||||
<body class="background_main">
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if (!session_is_registered('count'))
|
||||
{
|
||||
session_register('count');
|
||||
$count = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($count>3)
|
||||
{
|
||||
echo "<h4>Das Passwort Formular ist nach 3 Fehlern deaktiviert!</h4>";
|
||||
echo '<meta http-equiv="refresh" content="5; URL=https://cis.technikum-wien.at/profile/index.php">';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
$ds=@ldap_connect("pdc1.technikum-wien.at");
|
||||
|
||||
if ($ds)
|
||||
{
|
||||
ldap_set_option($ds,LDAP_OPT_PROTOCOL_VERSION,3);
|
||||
//if (!(@ldap_start_tls($ds))) { die("LDAP START_TLS failed"); }
|
||||
|
||||
$oldpass=StripSlashes($oldpass);
|
||||
$newpass1=StripSlashes($newpass1);
|
||||
$newpass2=StripSlashes($newpass2);
|
||||
|
||||
$r=@ldap_bind($ds,"uid=$username,ou=People,dc=technikum-wien,dc=at",$oldpass);
|
||||
|
||||
if ($r == 1)
|
||||
{
|
||||
if ($newpass1 == $newpass2)
|
||||
{
|
||||
if ($newpass1 != $null)
|
||||
{
|
||||
|
||||
$mySalt = substr(ereg_replace("[^a-zA-Z0-9./]","",crypt(rand(10000000,99999999), rand(10,99))),2, 2);
|
||||
$cryptPW = rtrim(crypt($newpass1,$mySalt));
|
||||
$info["userPassword"] = "{crypt}$cryptPW";
|
||||
$newpass1=escapeshellarg($newpass1);
|
||||
$info["sambalmPassword"] = rtrim(shell_exec("/usr/local/sbin/mkntpwd -L $newpass1"));
|
||||
$info["sambantPassword"] = rtrim(shell_exec("/usr/local/sbin/mkntpwd -N $newpass1"));
|
||||
|
||||
$mod_r = ldap_mod_replace($ds,"uid=$username,ou=People,dc=technikum-wien,dc=at",$info);
|
||||
|
||||
if ($mod_r)
|
||||
{
|
||||
echo "<h4>Das Passwort wurde erfolgreich geändert!</h4>";
|
||||
session_unregister('count');
|
||||
echo '<meta http-equiv="refresh" content="5; URL=https://cis.technikum-wien.at/profile/index.php">';
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h4>Beim Ändern des Passwortes ist ein Fehler aufgetreten!</h4>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h4>Das neue Passwort darf nicht leer sein!</h4>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h4>Die neuen Passwörter stimmen nicht überein!</h4>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h4>Passwort inkorrekt!</h4>";
|
||||
}
|
||||
ldap_close($ds);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Der Technikum Wien LDAP Server ist zur Zeit nicht erreichbar!";
|
||||
}
|
||||
echo '<meta http-equiv="refresh" content="5; URL=https://cis.technikum-wien.at/profile/password.php">';
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<meta http-equiv="refresh" content="0;URL=index.php">
|
||||
<html>
|
||||
<head>
|
||||
<title>Profil</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,247 @@
|
||||
<?php
|
||||
include('../../config.inc.php');
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
//if (!isset($REMOTE_USER))
|
||||
// $REMOTE_USER='pam';
|
||||
$uid=get_uid();
|
||||
$ansicht=false; //Wenn ein anderer User sich das Profil ansieht (Bei Personensuche)
|
||||
if(isset($_GET['uid']))
|
||||
{
|
||||
$uid=stripslashes($_GET['uid']);
|
||||
$ansicht=true;
|
||||
}
|
||||
|
||||
$stg = '';
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
if(!($erg=pg_exec($conn, "SELECT * FROM tbl_person WHERE uid='$uid'")))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows=pg_num_rows($erg);
|
||||
if ($num_rows==1)
|
||||
{
|
||||
$vornamen=pg_result($erg,0,"vornamen");
|
||||
$nachname=pg_result($erg,0,"nachname");
|
||||
$gebdatum=pg_result($erg,0,"gebdatum");
|
||||
$gebort=pg_result($erg,0,"gebort");
|
||||
$titel=pg_result($erg,0,"titel");
|
||||
$email=pg_result($erg,0,"email");
|
||||
$email_alias=pg_result($erg,0,"alias");
|
||||
$hp=pg_result($erg,0,"homepage");
|
||||
}
|
||||
if(!($erg_stud=pg_exec($conn, "SELECT studiengang_kz, semester, verband, gruppe, matrikelnr, kurzbz AS stgkz, tbl_studiengang.bezeichnung AS stgbz FROM tbl_student NATURAL JOIN tbl_studiengang WHERE uid='$uid'")))
|
||||
die(pg_last_error($conn));
|
||||
$stud_num_rows=pg_numrows($erg_stud);
|
||||
if ($stud_num_rows==1)
|
||||
{
|
||||
$stg=pg_result($erg_stud,0,"studiengang_kz");
|
||||
$stgbez=pg_result($erg_stud,0,"stgbz");
|
||||
$stgkz=pg_result($erg_stud,0,"stgkz");
|
||||
$semester=pg_result($erg_stud,0,"semester");
|
||||
$verband=pg_result($erg_stud,0,"verband");
|
||||
$gruppe=pg_result($erg_stud,0,"gruppe");
|
||||
$matrikelnr=pg_result($erg_stud,0,"matrikelnr");
|
||||
}
|
||||
if(!($erg_lekt=pg_exec($conn, "SELECT * FROM tbl_mitarbeiter WHERE uid='$uid'")))
|
||||
die(pg_last_error($conn));
|
||||
$lekt_num_rows=pg_num_rows($erg_lekt);
|
||||
if ($lekt_num_rows==1)
|
||||
{
|
||||
$row=pg_fetch_object($erg_lekt,0);
|
||||
$kurzbz=$row->kurzbz;
|
||||
$tel=$row->telefonklappe;
|
||||
}
|
||||
|
||||
// Mail-Groups
|
||||
if(!($erg_mg=pg_exec($conn, "SELECT mailgrp_kurzbz, beschreibung FROM tbl_mailgrp NATURAL JOIN tbl_personmailgrp WHERE tbl_personmailgrp.uid='$uid' ORDER BY mailgrp_kurzbz")))
|
||||
die(pg_last_error($conn));
|
||||
$nr_mg=pg_numrows($erg_mg);
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Profil</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<H2>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td> <a href="../index.php">Lehrveranstaltungsplan</a> >> Userprofil</td>
|
||||
<td align="right"><A href="../help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H2>
|
||||
Results: <?php echo $num_rows; ?><br>
|
||||
Username: <?php echo $uid; ?><br><br>
|
||||
<HR>
|
||||
<?php
|
||||
if ($num_rows==1)
|
||||
{
|
||||
?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<P>
|
||||
<FONT class="beschriftung">Titel: </FONT> <?php echo $titel; ?> <br>
|
||||
<FONT class="beschriftung">Vornamen: </FONT> <?php echo $vornamen; ?> <br>
|
||||
<FONT class="beschriftung">Nachname: </FONT> <?php echo $nachname; ?> <br>
|
||||
<?php
|
||||
if(!$ansicht)
|
||||
{
|
||||
?>
|
||||
<FONT class="beschriftung">Geburtsdatum: </FONT> <?php echo $gebdatum; ?> <br>
|
||||
<FONT class="beschriftung">Geburtsort: </FONT> <?php echo $gebort; ?> <br>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<!--<b>Passwort</b><br>
|
||||
<a href="password.php">Passwort ändern</a></FONT><br>-->
|
||||
</P>
|
||||
<P>
|
||||
<b>eMail</b><br>
|
||||
<FONT class="beschriftung">Technikum:</FONT><a href='mailto:<?php echo $uid; ?>@technikum-wien.at'> <?php echo $uid; ?>@technikum-wien.at</a><br>
|
||||
|
||||
<?php
|
||||
if($email_alias!='')
|
||||
{
|
||||
?>
|
||||
<FONT class="beschriftung">Alias:</FONT> <a href='mailto:<?php echo $email_alias; ?>@technikum-wien.at'><?php echo $email_alias; ?>@technikum-wien.at</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<!--<FONT class="beschriftung"><small>(frühestens ab Sommer in Verwendung)</small></FONT><BR>-->
|
||||
<?php
|
||||
if($email!='')
|
||||
echo "<FONT class='beschriftung'>Extern:</FONT>$email";
|
||||
?>
|
||||
|
||||
</P>
|
||||
<?php
|
||||
if($hp!='')
|
||||
echo "<P><b>Homepage</b><br><a href='$hp' target='_blank'>$hp</a></p>";
|
||||
?>
|
||||
|
||||
<br>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<?php
|
||||
echo '<P>';
|
||||
if ($stud_num_rows==1)
|
||||
{
|
||||
?>
|
||||
<b>Student</b><br><br>
|
||||
<FONT class="beschriftung">Studiengang: </FONT><?php echo $stgbez; ?><br>
|
||||
<FONT class="beschriftung">Semester: </FONT><?php echo $semester; ?><br>
|
||||
<FONT class="beschriftung">Verband: </FONT><?php echo $verband; ?><br>
|
||||
<FONT class="beschriftung">Gruppe: </FONT><?php echo $gruppe; ?><br>
|
||||
<FONT class="beschriftung">Matrikelnummer: </FONT><?php echo $matrikelnr; ?><br />
|
||||
<?php
|
||||
if(!$ansicht)
|
||||
{
|
||||
?>
|
||||
<br />
|
||||
<A href='../../campus/notenliste.php'>Leistungsbeurteilung</a><br />
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if ($lekt_num_rows==1)
|
||||
{
|
||||
?>
|
||||
<P>
|
||||
<b>Lektor</b><br><br>
|
||||
<FONT class="beschriftung">Kurzzeichen: </FONT><?php echo $kurzbz; ?><BR>
|
||||
<?php
|
||||
if($tel!='')
|
||||
echo "<FONT class='beschriftung'>Telefon TW: </FONT>+43 1 333 40 77- $tel<BR><BR>";
|
||||
|
||||
if(!$ansicht)
|
||||
{?>
|
||||
<A href="zeitwunsch.php?uid=<?php echo $uid; ?>">Zeitwünsche</A><BR>
|
||||
<A href="lva_liste.php?uid=<?php echo $uid; ?>">Lehrveranstaltungen</A>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
if(!$ansicht)
|
||||
{
|
||||
echo "";
|
||||
echo "";
|
||||
}
|
||||
echo "</P>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<TR>
|
||||
<TD colspan="2">
|
||||
<P><B>Mail-Verteiler</B><BR><BR>
|
||||
<?php
|
||||
if(!$ansicht)
|
||||
echo "<SMALL>Sie sind Mitglied in folgenden Verteilern:</SMALL>";
|
||||
else
|
||||
echo "<SMALL>Der User $uid ist Mitglied in folgenden Verteilern:</SMALL>";
|
||||
?>
|
||||
</P>
|
||||
</TD>
|
||||
<TD> </TD>
|
||||
</TR>
|
||||
<?php
|
||||
for($i=0;$i<$nr_mg;$i++)
|
||||
{
|
||||
$row=pg_fetch_object($erg_mg,$i);
|
||||
echo '<TR><TD><A href="mailto:'.$row->mailgrp_kurzbz.'@technikum-wien.at">'.$row->mailgrp_kurzbz.' </TD>';
|
||||
echo "<TD> $row->beschreibung</TD><TD></TD></TR>";
|
||||
}
|
||||
if (isset($matrikelnr))
|
||||
{
|
||||
echo '<TR><TD><A href="mailto:'.strtolower($stgkz).'[email protected]">'.strtolower($stgkz).'_std </TD>';
|
||||
echo "<TD> Alle Studenten von $stgbez</TD><TD></TD></TR>";
|
||||
echo '<TR><TD><A href="mailto:'.strtolower($stgkz).$semester.'@technikum-wien.at">'.strtolower($stgkz).$semester.' </TD>';
|
||||
echo "<TD> Alle Studenten von $stgkz $semester</TD><TD></TD></TR>";
|
||||
echo '<TR><TD><A href="mailto:'.strtolower($stgkz).$semester.strtolower($verband).'@technikum-wien.at">'.strtolower($stgkz).$semester.strtolower($verband).' </TD>';
|
||||
echo "<TD> Alle Studenten von $stgkz $semester$verband</TD><TD></TD></TR>";
|
||||
echo '<TR><TD><A href="mailto:'.strtolower($stgkz).$semester.strtolower($verband).$gruppe.'@technikum-wien.at">'.strtolower($stgkz).$semester.strtolower($verband).$gruppe.' </TD>';
|
||||
echo "<TD> Alle Studenten von $stgkz $semester$verband$gruppe</TD><TD></TD></TR>";
|
||||
}
|
||||
|
||||
|
||||
$mail = '[email protected]';
|
||||
if($stg=='')
|
||||
{
|
||||
$stg = 0;
|
||||
}
|
||||
//Wenn eine Assistentin fuer diesen Studiengang eingetragen ist,
|
||||
//dann werden die aenderungswuesche an diese Adresse gesendet
|
||||
$qry = "SELECT email FROM tbl_studiengang where studiengang_kz='$stg'";
|
||||
if($row=pg_fetch_object(pg_query($conn,$qry)))
|
||||
{
|
||||
if($row->email!='')
|
||||
$mail = $row->email;
|
||||
else
|
||||
$mail = '[email protected]';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
<BR><HR>
|
||||
Sollten ihre Daten nicht stimmen, wenden sie sich bitte an die <a href="mailto:<?php echo $mail ?>?subject=Datenkorrektur&body=Die%20Profildaten%20fuer%20User%20'<?php echo $uid; ?>'%20sind%20nicht%20korrekt.%0D
|
||||
Hier die richtigen Daten:%0DNachname:%20<?php echo $nachname;?>%0DVornamen:%20<?php echo $vornamen;?>%0DGeburtsdatum:%20<?php echo $gebdatum;?>
|
||||
%0DGeburtsort:%20<?php echo $gebort;?>%0DTitel:%20<?php echo $titel;?>
|
||||
%0D%0D***%0DPlatz fuer weitere (nicht angefuehrte Daten)%0D***">zuständige Assistentin</a>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<br><br>
|
||||
Es wurden keine oder mehrere Profile für ihren Useraccount gefunden.
|
||||
<br>
|
||||
Bitte wenden sie sich an die <a href="mailto:[email protected]?subject=Profilfehler&body=Es wurden zuviele oder zuwenige Profile fuer User <?php echo $uid; ?> gefunden. %0DBitte kontrollieren sie die Datenbank!%0D%0DMeine Daten sind:%0DNachname:%0DVornamen:%0D...">Administration</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
include('../../config.inc.php');
|
||||
$adress='[email protected]';
|
||||
if (!isset($REMOTE_USER))
|
||||
$REMOTE_USER='pam';
|
||||
$uid=$REMOTE_USER;
|
||||
|
||||
if (isset($_GET['uid']))
|
||||
$uid=$_GET['uid'];
|
||||
if (isset($_GET['stdsem']))
|
||||
$stdsem=$_GET['stdsem'];
|
||||
|
||||
if ($uid!=$REMOTE_USER)
|
||||
{
|
||||
mail($adress,"Unerlaubter Zugriff auf Lehrveranstaltungen",
|
||||
"User $REMOTE_USER hat versucht die LVAs von User $uid zu betrachten!",
|
||||
"From: [email protected]");
|
||||
die("Keine Berechtigung!");
|
||||
}
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
//Studiensemester abfragen.
|
||||
$sql_query='SELECT * FROM tbl_studiensemester WHERE ende>=now() ORDER BY start';
|
||||
$result_stdsem=pg_exec($conn, $sql_query);
|
||||
$num_rows_stdsem=pg_numrows($result_stdsem);
|
||||
if (!isset($stdsem))
|
||||
$stdsem=pg_result($result_stdsem,0,"studiensemester_kurzbz");
|
||||
|
||||
|
||||
//Lehrveranstaltungen abfragen.
|
||||
$sql_query="SELECT * FROM vw_lehrveranstaltung
|
||||
WHERE studiensemester_kurzbz='$stdsem' AND lektor_uid='$uid'";
|
||||
$sql_query.=" ORDER BY stg_kurzbz,semester,verband,gruppe";
|
||||
$result=pg_exec($conn, $sql_query);
|
||||
$num_rows=pg_numrows($result);
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Reservierungsliste</title>
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<H2>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../index.php">Lehrveranstaltungsplan</a> >>
|
||||
<a href="index.php">Userprofil</a> >>
|
||||
Lehrveranstaltungen (<?php echo $stdsem;?>)
|
||||
</td>
|
||||
<td align="right"><A href="../help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H2>
|
||||
<?php
|
||||
for ($i=0;$i<$num_rows_stdsem;$i++)
|
||||
{
|
||||
$row=pg_fetch_object($result_stdsem);
|
||||
echo '<A href="lva_liste.php?uid='.$uid.'&stdsem='.$row->studiensemester_kurzbz.'">'.$row->studiensemester_kurzbz.'</A> - ';
|
||||
}
|
||||
if ($num_rows>0)
|
||||
{
|
||||
echo '<BR><BR><table border="0">';
|
||||
echo '<tr class="liste"><th>LVNR</th><th>Lehrfach</th><th>Lehrform</th><th>Bezeichnung</th><th>Lektor</th><th>STG</th><th>S</th><th>V</th><th>G</th><th>Einheit</th><th>Raumtyp</th><th>Alternativ</th><th>Block</th><th>WR</th><th>Std</th><th>KW</th><th>Anmerkung</th></tr>';
|
||||
for ($i=0; $i<$num_rows; $i++)
|
||||
{
|
||||
$zeile=$i % 2;
|
||||
$row=pg_fetch_object($result);
|
||||
|
||||
echo '<tr class="liste'.$zeile.'">';
|
||||
echo '<td>'.$row->lvnr.'</td>';
|
||||
echo '<td>'.$row->lehrfach.'</td>';
|
||||
echo '<td>'.$row->lehrform.'</td>';
|
||||
echo '<td>'.$row->lehrfach_bez.'</td>';
|
||||
echo '<td>'.$row->lektor.'</td>';
|
||||
echo '<td>'.$row->stg_kurzbz.'</td>';
|
||||
echo '<td>'.$row->semester.'</td>';
|
||||
echo '<td>'.$row->verband.'</td>';
|
||||
echo '<td>'.$row->gruppe.'</td>';
|
||||
echo '<td>'.$row->einheit.'</td>';
|
||||
echo '<td>'.$row->raumtyp.'</td>';
|
||||
echo '<td>'.$row->raumtypalternativ.'</td>';
|
||||
echo '<td>'.$row->stundenblockung.'</td>';
|
||||
echo '<td>'.$row->wochenrythmus.'</td>';
|
||||
echo '<td>'.$row->semesterstunden.'</td>';
|
||||
echo '<td>'.$row->start_kw.'</td>';
|
||||
echo '<td>'.$row->anmerkung.'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
else
|
||||
echo 'Keine Datensätze vorhanden!<BR>';
|
||||
?>
|
||||
<BR>Fehler und Feedback bitte an den betreffenden Studiengang!<BR>
|
||||
<HR>
|
||||
<H3>Hinweis</H3>
|
||||
Sonderaufträge wie zum Beispiel Praktikums- und Diplomandenbetreuung werden hier nicht angezeigt!<BR>
|
||||
<H3>Erklärung</H3>
|
||||
<strong> LVNR: </strong> Interne FAS-Nummer der Lehrveranstaltung<BR>
|
||||
<strong> STG-S-V-G: </strong>Studiengang-Semester-Verband-Gruppe<BR>
|
||||
<strong> Einheit: </strong> Spezialgruppen (Module, Projektgruppen, Spezialisierungsgruppen)<BR>
|
||||
<strong> Block: </strong> Stundenblockung (1->Einzelstunden; 2->Doppelstunden; ...)<BR>
|
||||
<strong> WR: </strong> Wochenrythmus (1->jede Woche; 2->jede 2. Woche; ...)<BR>
|
||||
<strong> Std: </strong> gesamte Semesterstunden<BR>
|
||||
<strong> KW: </strong> Kalenderwoche in der die Lehrveranstaltung startet<BR>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
session_start();
|
||||
$uid=$REMOTE_USER;
|
||||
$uid='pam';
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Passwort ?ndern </title>
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body class="background_main">
|
||||
<?php
|
||||
if (!session_is_registered('count'))
|
||||
{
|
||||
session_register('count');
|
||||
$count = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$count++;
|
||||
if ($count>3)
|
||||
{
|
||||
echo "<h4>Das Passwort Formular ist nach 3 Fehlern deaktiviert!</h4>";
|
||||
echo '<meta http-equiv="refresh" content="5; URL=https://cis.technikum-wien.at/profile/index.php">';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<font class="h1"><b>?nderung des Technikum Wien Passwortes</b></font>
|
||||
<p>Sie k?nnen mit diesem Formular Ihr Technikum Wien Passwort ?ndern.<br>
|
||||
Es wird sowohl Ihr Windows als auch Ihr Unix bzw. Mail Passwort ge?ndert!</p>
|
||||
<form method="POST" action="changepass.php">
|
||||
<table><tr><td>Username:</td>
|
||||
<td><INPUT type="text" name="username" readonly value="<?php echo $uid ?>"
|
||||
</td></tr>
|
||||
<tr><td>Altes Passwort:</td>
|
||||
<td><INPUT type="password" name="oldpass"></td></tr>
|
||||
<tr><td>Neues Passwort:</td>
|
||||
<td><INPUT type="password" name="newpass1"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
Neues Passwort<br>wiederholen:
|
||||
</td>
|
||||
<td><INPUT type="password" name="newpass2"></td></tr>
|
||||
</table>
|
||||
<p>
|
||||
<input type="submit" value="Passwort ?ndern" name="Send">
|
||||
<input type="reset" value="Zur?cksetzen" name="cancel">
|
||||
</p>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
include('../../config.inc.php');
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
/*
|
||||
if (isset($REMOTE_USER))
|
||||
$uid=$REMOTE_USER;
|
||||
else
|
||||
$uid='pam';
|
||||
*/
|
||||
$uid = get_uid();
|
||||
|
||||
if(isset($_GET['type']))
|
||||
$type=$_GET['type'];
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
//Stundentabelleholen
|
||||
if(! $result_stunde=pg_exec($conn, "SELECT * FROM tbl_stunde ORDER BY stunde"))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows_stunde=pg_numrows($result_stunde);
|
||||
|
||||
// Zeitwuensche speichern
|
||||
if (isset($type) && $type=='save')
|
||||
{
|
||||
for ($t=1;$t<7;$t++)
|
||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||
{
|
||||
$var='wunsch'.$t.'_'.$i;
|
||||
//echo $$var;
|
||||
$gewicht=$_POST[$var];
|
||||
$stunde=$i+1;
|
||||
$query="SELECT * FROM tbl_zeitwunsch WHERE uid='$uid' AND stunde=$stunde AND tag=$t";
|
||||
if(! $erg_wunsch=pg_exec($conn, $query))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows_wunsch=pg_num_rows($erg_wunsch);
|
||||
if ($num_rows_wunsch==0)
|
||||
{
|
||||
$query="INSERT INTO tbl_zeitwunsch (uid, stunde, tag, gewicht) VALUES ('$uid', $stunde, $t, $gewicht)";
|
||||
if(!($erg=pg_exec($conn, $query)))
|
||||
die(pg_last_error($conn));
|
||||
}
|
||||
elseif ($num_rows_wunsch==1)
|
||||
{
|
||||
$query="UPDATE tbl_zeitwunsch SET gewicht=$gewicht WHERE uid='$uid' AND stunde=$stunde AND tag=$t";
|
||||
//echo $query;
|
||||
if(!($erg=pg_exec($conn, $query)))
|
||||
die(pg_last_error($conn));
|
||||
}
|
||||
else
|
||||
die("Zuviele Eintraege fuer!");
|
||||
}
|
||||
}
|
||||
|
||||
if(!($erg=pg_exec($conn, "SELECT * FROM tbl_zeitwunsch WHERE uid='$uid'")))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows=pg_numrows($erg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$tag=pg_result($erg,$i,"tag");
|
||||
$stunde=pg_result($erg,$i,"stunde");
|
||||
$gewicht=pg_result($erg,$i,"gewicht");
|
||||
$wunsch[$tag][$stunde]=$gewicht;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Personendaten
|
||||
if(! $result=pg_exec($conn, "SELECT * FROM tbl_person WHERE uid='$uid'"))
|
||||
die(pg_last_error($conn));
|
||||
if (pg_numrows($result)==1)
|
||||
$person=pg_fetch_object($result);
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Profil</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<H2><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../index.php">Lehrveranstaltungsplan</a> >>
|
||||
<a href="index.php">Userprofil</a> >>
|
||||
Zeitwünsche
|
||||
</td>
|
||||
<td align="right"><A href="../help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H2>
|
||||
<H3>
|
||||
Zeitwünsche von <?php echo $person->titel.' '.$person->vornamen.' '.$person->nachname; ?>
|
||||
</H3>
|
||||
Results: <?php echo $num_rows; ?><br>
|
||||
Username: <?php echo $uid; ?><br>
|
||||
<FORM name="zeitwunsch" method="post" action="zeitwunsch.php?type=save">
|
||||
<TABLE>
|
||||
<TR>
|
||||
<?php
|
||||
echo '<th>Stunde<br>Beginn<br>Ende</th>';
|
||||
for ($i=0;$i<$num_rows_stunde; $i++)
|
||||
{
|
||||
$beginn=pg_result($result_stunde,$i,'"beginn"');
|
||||
$beginn=substr($beginn,0,5);
|
||||
$ende=pg_result($result_stunde,$i,'"ende"');
|
||||
$ende=substr($ende,0,5);
|
||||
$stunde=pg_result($result_stunde,$i,'"stunde"');
|
||||
echo "<th><div align=\"center\">$stunde<br>$beginn<br>$ende</div></th>";
|
||||
}
|
||||
?>
|
||||
</TR>
|
||||
<?php
|
||||
for ($j=1; $j<7; $j++)
|
||||
{
|
||||
echo '<TR><TD>'.$tagbez[$j].'</TD>';
|
||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||
{
|
||||
$index=$wunsch[$j][$i+1];
|
||||
if ($index=="")
|
||||
$index=1;
|
||||
$id='bgcolor';
|
||||
$id.=$index+3;
|
||||
echo '<TD align="center" id="'.$id.'"><INPUT align="right" type="text" name="wunsch'.$j.'_'.$i.'" size="1" maxlength="2" value="'.$index.'"></TD>';
|
||||
}
|
||||
echo '</TR>';
|
||||
}
|
||||
?>
|
||||
</TABLE>
|
||||
<INPUT type="hidden" name="uid" value="<?php echo $uid; ?>">
|
||||
<INPUT type="submit" name="Abschicken" value="Speichern">
|
||||
</FORM>
|
||||
<br>
|
||||
<hr>
|
||||
<H3>Erklärung:</H3>
|
||||
<P>Bitte kontrollieren/ändern Sie Ihre Zeitwünsche und klicken Sie anschließend
|
||||
auf "Speichern"!<BR><BR>
|
||||
</P>
|
||||
<TABLE width="50%" align="center" name="Zeitwerte">
|
||||
<TR>
|
||||
<TH><B>Wert</B></TH>
|
||||
<TH>
|
||||
<DIV align="center"><B>Bedeutung</B></DIV>
|
||||
</TH>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">2</DIV>
|
||||
</TD>
|
||||
<TD>Hier möchte ich unterrichten</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">1</DIV>
|
||||
</TD>
|
||||
<TD>Hier kann ich unterrichten</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">0</DIV>
|
||||
</TD>
|
||||
<TD>keine Bedeutung</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">-1</DIV>
|
||||
</TD>
|
||||
<TD>Hier nur in extremen Notfällen</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">-2</DIV>
|
||||
</TD>
|
||||
<TD>Hier auf gar keinen Fall !!!</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P> </P>
|
||||
<H3>Folgende Punkte sind zu beachten:</H3>
|
||||
<OL>
|
||||
<LI> Verwenden Sie den Wert -2 nur, wenn Sie zu dieser Stunde wirklich nicht
|
||||
können, um eine bessere Optimierung zu ermöglichen.</LI>
|
||||
<LI>Es sollten für jede Stunde die tatsächlich unterrichtet wird,
|
||||
mindestens das 3-fache an positiven Zeitwünschen angegeben werden.<BR>
|
||||
Beispiel: Sie unterrichten 4 Stunden/Woche, dann sollten Sie mindestens
|
||||
12 Stunden im Raster mit positiven Werten ausfüllen.</LI>
|
||||
</OL>
|
||||
<P>Bei Problemen wenden Sie sich bitte an die <A href="mailto:[email protected]">LV-Koordinationsstelle</A>.</P>
|
||||
<P> </P>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,136 @@
|
||||
<?php
|
||||
include('../../config.inc.php');
|
||||
include('../../../include/functions.inc.php');
|
||||
|
||||
if (isset($REMOTE_USER))
|
||||
$uid=$REMOTE_USER;
|
||||
else
|
||||
$uid='pam';
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
if(!($erg=pg_exec($conn, "SELECT * FROM zeitwunsch WHERE zeitwunsch.lektor_id=$lkid")))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows=pg_numrows($erg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$tag=pg_result($erg,$i,"tag");
|
||||
$stunde=pg_result($erg,$i,"stunde_id");
|
||||
$gewicht=pg_result($erg,$i,"gewicht");
|
||||
$wunsch[$tag][$stunde]=$gewicht;
|
||||
}
|
||||
if(!($erg_std=pg_exec($conn, "SELECT * FROM stunde ORDER BY id")))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows_std=pg_numrows($erg_std);
|
||||
for ($i=0;$i<$num_rows_std;$i++)
|
||||
{
|
||||
$beginn[$i]=pg_result($erg_std,$i,"beginn");
|
||||
$ende[$i]=pg_result($erg_std,$i,"ende");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Profil</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body class="background_main">
|
||||
<h4>Zeitwünsche von <?php echo $titel.' '.$vornamen.' '.$nachname; ?></h4>
|
||||
Results: <?php echo $num_rows; ?><br>
|
||||
Username: <?php echo $uid; ?><br>
|
||||
<TABLE width="100%" border="1">
|
||||
<TR>
|
||||
<TD align="center"><B>Stunde</B><BR><SMALL>Beginn<BR>Ende</SMALL></TD>
|
||||
<?php
|
||||
for ($i=1;$i<=$num_rows_std;$i++)
|
||||
echo '<TD align="center"><B>'.$i.'</B><BR><SMALL>'.$beginn[$i-1].'<BR>'.$ende[$i-1].'</SMALL></TD>';
|
||||
?>
|
||||
</TR>
|
||||
<?php
|
||||
for ($j=1; $j<7; $j++)
|
||||
{
|
||||
echo '<TR><TD>'.$tagbez[$j].'</TD>';
|
||||
for ($i=0;$i<$num_rows_std;$i++)
|
||||
{
|
||||
$index=$wunsch[$j][$i+1];
|
||||
if ($index=="")
|
||||
$index=1;
|
||||
$bgcolor=$cfgStdBgcolor[$index+3];
|
||||
echo '<TD align="center" bgcolor="'.$bgcolor.'">'.$index.'</TD>';
|
||||
}
|
||||
echo '</TR>';
|
||||
}
|
||||
?>
|
||||
</TABLE>
|
||||
<INPUT type="hidden" name="lkid" value="<?php echo $lkid; ?>">
|
||||
<INPUT type="hidden" name="titel" value="<?php echo $titel; ?>">
|
||||
<INPUT type="hidden" name="vornamen" value="<?php echo $vornamen; ?>">
|
||||
<INPUT type="hidden" name="nachname" value="<?php echo $nachname; ?>">
|
||||
<br>
|
||||
<hr>
|
||||
<H3>Eklärung:</H3>
|
||||
<P>Bitte kontrollieren Sie Ihre Zeitwünsche, änderungen per Mail bitte
|
||||
an <A href="mailto:[email protected]">Stundenplan</A>!<BR>
|
||||
<BR>
|
||||
</P>
|
||||
<TABLE width="35%" border="1" cellspacing="0" name="Zeitwerte">
|
||||
<TR>
|
||||
<TD><B>Wert</B></TD>
|
||||
<TD>
|
||||
<DIV align="center"><B>Bedeutung</B></DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">2</DIV>
|
||||
</TD>
|
||||
<TD>Hier möchte ich Unterrichen</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">1</DIV>
|
||||
</TD>
|
||||
<TD>Hier kann ich Unterrichten</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">0</DIV>
|
||||
</TD>
|
||||
<TD>keine Bedeutung</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">-1</DIV>
|
||||
</TD>
|
||||
<TD>Hier möchte ich eher nicht</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">-2</DIV>
|
||||
</TD>
|
||||
<TD>Hier nur in extremen Notfällen</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<DIV align="right">-3</DIV>
|
||||
</TD>
|
||||
<TD>Hier auf gar keinen Fall !!!</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P> </P>
|
||||
<H3>Folgende Punkte sind zu beachten:</H3>
|
||||
<OL>
|
||||
<LI> Verwenden Sie den Wert -3 nur wenn Sie zu dieser Stunde wirklich nicht
|
||||
können, um eine bessere Optimierung zu ermöglichen.</LI>
|
||||
<LI>Es müssen für jede Stunde die tatsächlich unterrichtet wird,
|
||||
mindestens das 1,5 fache an positiven Zeitwünschen angegeben werden.<BR>
|
||||
Beispiel: Sie unterrichten 4Stunden/Woche, dann müssen Sie mindesten
|
||||
6 Stunden im Raster mit positiven Werten ausfüllen.</LI>
|
||||
</OL>
|
||||
<P>Bei Problemen wenden Sie sich bitte an die <A href="mailto:[email protected]">Stundenplanstelle</A>.</P>
|
||||
<P> </P>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/****************************************************************************
|
||||
* Script: stpl_detail.php
|
||||
* Descr: Das Script dient zur Detailanzeige eines Eintrags im Stundenplan.
|
||||
* Es wird in Verbandsplan und Reservierungen gesucht.
|
||||
* Verzweigungen: von stpl_week.php
|
||||
* Author: Christian Paminger
|
||||
* Erstellt: 21.8.2001
|
||||
* Update: 11.11.2004 von Christian Paminger
|
||||
*****************************************************************************/
|
||||
|
||||
include('../config.inc.php');
|
||||
|
||||
// Variablen uebernehmen
|
||||
if (isset($_GET[type]))
|
||||
$type=$_GET[type];
|
||||
if (isset($_GET[datum]))
|
||||
$datum=$_GET[datum];
|
||||
if (isset($_GET[stunde]))
|
||||
$stunde=$_GET[stunde];
|
||||
if (isset($_GET[ort_kurzbz]))
|
||||
$ort_kurzbz=$_GET[ort_kurzbz];
|
||||
if (isset($_GET[pers_uid]))
|
||||
$pers_uid=$_GET[pers_uid];
|
||||
if (isset($_GET[stg_kz]))
|
||||
$stg_kz=$_GET[stg_kz];
|
||||
if (isset($_GET[sem]))
|
||||
$sem=$_GET[sem];
|
||||
if (isset($_GET[ver]))
|
||||
$ver=$_GET[ver];
|
||||
if (isset($_GET[grp]))
|
||||
$grp=$_GET[grp];
|
||||
if (isset($_GET[einheit_kurzbz]))
|
||||
$einheit_kurzbz=$_GET[einheit_kurzbz];
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
//Stundenplan
|
||||
$sql_query='SELECT vw_stundenplan.*, tbl_lehrfach.bezeichnung, tbl_person.titel AS pers_titel, tbl_person.nachname, tbl_person.vornamen';
|
||||
$sql_query.=' FROM vw_stundenplan, tbl_lehrfach, tbl_person';
|
||||
$sql_query.=" WHERE datum='$datum' AND stunde=$stunde AND tbl_person.uid=vw_stundenplan.uid AND tbl_lehrfach.lehrfach_nr=vw_stundenplan.lehrfach_nr";
|
||||
if ($type=='lektor')
|
||||
$sql_query.=" AND vw_stundenplan.uid='$pers_uid' ";
|
||||
elseif ($type=='ort')
|
||||
$sql_query.=" AND ort_kurzbz='$ort_kurzbz' ";
|
||||
else
|
||||
{
|
||||
$sql_query.=' AND vw_stundenplan.studiengang_kz='.$stg_kz.' AND (vw_stundenplan.semester='.$sem;
|
||||
if ($type=='student')
|
||||
$sql_query.=' OR vw_stundenplan.semester='.($sem+1);
|
||||
$sql_query.=')';
|
||||
//if ($ver!='0')
|
||||
// $sql_query.=" AND (verband='$ver' OR verband IS NULL OR verband='0')";
|
||||
//if ($grp!='0')
|
||||
// $sql_query.=" AND (gruppe='$grp' OR gruppe IS NULL OR gruppe='0')";
|
||||
}
|
||||
$sql_query.=' ORDER BY unr ASC, stg_kurzbz, vw_stundenplan.semester, verband, gruppe, einheit_kurzbz, uid LIMIT 100';
|
||||
//echo $sql_query.'<BR>';
|
||||
$erg_stpl=pg_exec($conn, $sql_query);
|
||||
$num_rows_stpl=pg_numrows($erg_stpl);
|
||||
|
||||
//Reservierungen
|
||||
$sql_query="SELECT vw_reservierung.*, tbl_person.titel AS pers_titel, tbl_person.vornamen,tbl_person.nachname FROM vw_reservierung, tbl_person WHERE datum='$datum' AND stunde=$stunde";
|
||||
if (isset($ort_kurzbz))
|
||||
$sql_query.=" AND vw_reservierung.ort_kurzbz='$ort_kurzbz'";
|
||||
if ($type=='lektor')
|
||||
$sql_query.=" AND vw_reservierung.uid='$pers_uid' ";
|
||||
$sql_query.=" AND vw_reservierung.uid=tbl_person.uid";
|
||||
if ($type=='verband' || $type=='student')
|
||||
$sql_query.=" AND studiengang_kz='$stg_kz' AND (semester='$sem' OR semester=0 OR semester IS NULL)";
|
||||
$sql_query.=' ORDER BY titel LIMIT 100';
|
||||
//echo $sql_query.'<BR>';
|
||||
$erg_repl=pg_exec($conn, $sql_query);
|
||||
$num_rows_repl=pg_numrows($erg_repl);
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Lehrveranstaltungsplan Details</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body class="background_main">
|
||||
<H2>Lehrveranstaltungsplan ⇒ Details</H2>
|
||||
Datum: <?php echo $datum; ?><BR>
|
||||
Stunde: <?php echo $stunde; ?><BR><BR>
|
||||
|
||||
<table class="stdplan">
|
||||
<?php
|
||||
if ($num_rows_stpl>0)
|
||||
echo '<tr> <th>UNr</th><th>Lektor</th><th>Ort</th><th>Lehrfach</th><th>Bezeichnung</th><th>Verband</th><th>Einheit</th> </tr>';
|
||||
for ($i=0; $i<$num_rows_stpl; $i++)
|
||||
{
|
||||
$unr=pg_result($erg_stpl,$i,"unr");
|
||||
$ortkurzbz=pg_result($erg_stpl,$i,"ort_kurzbz");
|
||||
$lehrfachkurzbz=pg_result($erg_stpl,$i,"lehrfach");
|
||||
$bezeichnung=pg_result($erg_stpl,$i,"bezeichnung");
|
||||
$pers_kurzbz=pg_result($erg_stpl,$i,"lektor");
|
||||
$pers_titel=pg_result($erg_stpl,$i,"pers_titel");
|
||||
$pers_vornamen=pg_result($erg_stpl,$i,"vornamen");
|
||||
$pers_nachname=pg_result($erg_stpl,$i,"nachname");
|
||||
$pers_email=pg_result($erg_stpl,$i,"uid").'@technikum-wien.at';
|
||||
$stgkurzbz=pg_result($erg_stpl,$i,"stg_kurzbz");
|
||||
$semester=pg_result($erg_stpl,$i,"semester");
|
||||
$verband=pg_result($erg_stpl,$i,"verband");
|
||||
$gruppe=pg_result($erg_stpl,$i,"gruppe");
|
||||
$einheit_kurzbz=pg_result($erg_stpl,$i,"einheit_kurzbz");
|
||||
?>
|
||||
<tr class="<?php echo 'liste'.$i%2; ?>">
|
||||
<td><?php echo $unr; ?></td>
|
||||
<td><A href="mailto:<?php echo $pers_email; ?>"><?php echo $pers_titel.' '.$pers_vornamen.' '.$pers_nachname; ?></A></td>
|
||||
<td><?php echo $ortkurzbz; ?></td>
|
||||
<td><?php echo $lehrfachkurzbz; ?></td>
|
||||
<td><?php echo $bezeichnung; ?></td>
|
||||
<td><A href="mailto:<?php echo strtolower($stgkurzbz).$semester.strtolower($verband).$gruppe; ?>@technikum-wien.at">
|
||||
<?php echo $stgkurzbz.'-'.$semester.$verband.$gruppe; ?></A></td>
|
||||
<td><A href="mailto:<?php echo strtolower($einheit_kurzbz); ?>@technikum-wien.at">
|
||||
<?php echo $einheit_kurzbz; ?></A></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table><BR>
|
||||
<?php
|
||||
if ($num_rows_repl>0)
|
||||
{
|
||||
echo '<h2>Reservierungen</h2>';
|
||||
echo '<table class="stdplan">';
|
||||
echo '<tr><th>Titel</th><th>Ort</th><th>Person</th><th>Beschreibung</th></tr>';
|
||||
for ($i=0; $i<$num_rows_repl; $i++)
|
||||
{
|
||||
$titel=pg_result($erg_repl,$i,"titel");
|
||||
$ortkurzbz=pg_result($erg_repl,$i,"ort_kurzbz");
|
||||
$pers_titel=pg_result($erg_repl,$i,"pers_titel");
|
||||
$pers_vornamen=pg_result($erg_repl,$i,"vornamen");
|
||||
$pers_nachname=pg_result($erg_repl,$i,"nachname");
|
||||
$pers_email=pg_result($erg_repl,$i,"uid").'@technikum-wien.at';
|
||||
$beschreibung=pg_result($erg_repl,$i,"beschreibung");
|
||||
echo '<tr class="liste'.($i%2).'">';
|
||||
echo '<td >'.$titel.'</td>';
|
||||
echo '<td >'.$ortkurzbz.'</td>';
|
||||
echo '<td ><A href="mailto:'.$pers_email.'">'.$pers_titel.' '.$pers_vornamen.' '.$pers_nachname.'</A></td>';
|
||||
echo '<td >'.$beschreibung.'</td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
?>
|
||||
<P>Fehler und Feedback bitte an <A href="mailto:[email protected]">LV-Koordinationsstelle</A>.</P>
|
||||
</body></html>
|
||||
@@ -0,0 +1,218 @@
|
||||
<?php
|
||||
/****************************************************************************
|
||||
* Script: stpl_kalender.php
|
||||
* Descr: Das Script dient zum Darstellung des Stundenplans
|
||||
* als Kalender ueber das gesamte Semester
|
||||
* Verzweigungen: von stpl_week.php
|
||||
* Author: Christian Paminger
|
||||
* Erstellt: 21.9.2001 von Christian Paminger
|
||||
* Update: 10.9.2005 von Christian Paminger
|
||||
*****************************************************************************/
|
||||
|
||||
//Startwerte setzen
|
||||
$db_stpl_table='stundenplan';
|
||||
$type=$_GET['type'];
|
||||
$pers_uid=$_GET['pers_uid'];
|
||||
$ort_kurzbz=(isset($_GET['ort_kurzbz'])?$_GET['ort_kurzbz']:'');
|
||||
$stg_kz=(isset($_GET['stg_kz'])?$_GET['stg_kz']:'');
|
||||
$sem=(isset($_GET['sem'])?$_GET['sem']:'');
|
||||
$ver=(isset($_GET['ver'])?$_GET['ver']:'');
|
||||
$grp=(isset($_GET['grp'])?$_GET['grp']:'');
|
||||
$einheit_kurzbz=(isset($_GET['einheit'])?$_GET['einheit']:'');
|
||||
$begin=$_GET['begin'];
|
||||
$ende=$_GET['ende'];
|
||||
$format=$_GET['format'];
|
||||
$version=(isset($_GET['version'])?$_GET['version']:2);
|
||||
|
||||
// UID bestimmen
|
||||
if (!isset($REMOTE_USER))
|
||||
$REMOTE_USER='pam';
|
||||
$uid=$REMOTE_USER;
|
||||
|
||||
|
||||
$jahr=date("Y",$begin);
|
||||
$mon=date("m",$begin);
|
||||
$name='TW-Kalender_'.$mon.'_'.$jahr;
|
||||
if (isset($target))
|
||||
$name.='_'.$target;
|
||||
|
||||
// doing some DOS-CRLF magic...
|
||||
$crlf="\n";
|
||||
$client=getenv("HTTP_USER_AGENT");
|
||||
if (ereg('[^(]*\((.*)\)[^)]*',$client,$regs))
|
||||
{
|
||||
$os = $regs[1];
|
||||
// this looks better under WinX
|
||||
if (eregi("Win",$os)) $crlf="\r\n";
|
||||
}
|
||||
|
||||
// Check Type
|
||||
// Print in csv-file
|
||||
if ($format=='csv')
|
||||
{
|
||||
$name.='.csv';
|
||||
header("Content-disposition: filename=$name");
|
||||
header("Content-type: application/ms-excel");
|
||||
header("Pragma: public");
|
||||
header("Expires: 0");
|
||||
if ($target=='outlook')
|
||||
echo '"Betreff","Beginnt am","Beginnt um","Endet am","Endet um","Ganztaegiges Ereignis","Erinnerung Ein/Aus","Erinnerung am","Erinnerung um","Besprechungsplanung","Erforderliche Teilnehmer","Optionale Teilnehmer","Besprechungsressourcen","Abrechnungsinformationen","Beschreibung","Kategorien","Ort","Priorit?t","Privat","Reisekilometer","Vertraulichkeit","Zeitspanne zeigen als"';
|
||||
else
|
||||
echo '"title","category","location","description","keywords","start_date","start_time","end_date","end_time","alarm","recur_type","recur_end_date","recur_interval","recur_data"';
|
||||
}
|
||||
// Print in ical-file - MR
|
||||
else if ($format=='ical')
|
||||
{
|
||||
$name.='.ics';
|
||||
header("Content-disposition: filename=$name");
|
||||
header("Content-type: text/calendar");
|
||||
header("Pragma: public");
|
||||
header("Expires: 0");
|
||||
echo 'BEGIN:VCALENDAR'.$crlf.'VERSION:'.$version.'.0';
|
||||
}
|
||||
// Print in HTML-File
|
||||
else
|
||||
{
|
||||
echo '<html>';
|
||||
echo '<head>';
|
||||
echo '<title>Kalender</title>';
|
||||
echo '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
|
||||
echo '<link rel="stylesheet" href="../../skin/cis.css" type="text/css">';
|
||||
echo '</head>';
|
||||
echo '<body>';
|
||||
}
|
||||
|
||||
|
||||
// Jetzt gehts los
|
||||
include('../config.inc.php');
|
||||
include('../../include/functions.inc.php');
|
||||
require('../../include/stundenplan.class.php');
|
||||
|
||||
writeCISlog('START');
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
}
|
||||
if (!isset($begin) || !isset($ende))
|
||||
// datum holen falls nicht gesetzt
|
||||
if (!isset($_GET['semesterplan']))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Datum ist nicht gesetzt!");
|
||||
}
|
||||
else
|
||||
{
|
||||
$result_semester=@pg_query($conn,"SELECT start,ende FROM tbl_studiensemester WHERE studiensemester_kurzbz=(SELECT wert FROM tbl_variable WHERE name='semester_aktuell' AND uid='$uid');");
|
||||
if (pg_numrows($result_semester)>0)
|
||||
{
|
||||
$begin=strtotime(pg_result($result_semester,0,'start'));
|
||||
$ende=strtotime(pg_result($result_semester,0,'ende'));
|
||||
}
|
||||
else
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die('Studiensemester konnte nicht gefunden werden!');
|
||||
}
|
||||
$result_semester=@pg_query($conn,"SELECT wert FROM tbl_variable WHERE uid='$uid' AND name='db_stpl_table';");
|
||||
if (pg_numrows($result_semester)>0)
|
||||
$db_stpl_table=pg_result($result_semester,0,'wert');
|
||||
else
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die('User nicht vorhanden!');
|
||||
}
|
||||
}
|
||||
if ($ende-$begin>31536000)
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Datumsbereich ist zu grosz!");
|
||||
}
|
||||
|
||||
if (!isset($type))
|
||||
if ($pers_uid=check_student($uid, $conn))
|
||||
$type='student';
|
||||
elseif ($pers_uid=check_lektor($uid, $conn))
|
||||
$type='lektor';
|
||||
else
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Cannot set type!");
|
||||
}
|
||||
if (!isset($pers_uid))
|
||||
if ($type=='student')
|
||||
$pers_uid=check_student($uid, $conn);
|
||||
elseif ($type=='lektor')
|
||||
$pers_uid=check_lektor($uid, $conn);
|
||||
|
||||
// Stundenplanobjekt erzeugen
|
||||
$stdplan=new stundenplan($type,$conn);
|
||||
$stdplan->crlf=$crlf;
|
||||
|
||||
// Zusaetzliche Daten laden
|
||||
if (! $stdplan->load_data($type,$pers_uid,$ort_kurzbz,$stg_kz,$sem,$ver,$grp,$einheit_kurzbz) )
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die($stdplan->errormsg);
|
||||
}
|
||||
|
||||
//Ueberschriften in HTML
|
||||
if ($format=='HTML')
|
||||
{
|
||||
if ($type=='verband' || $type=='einheit')
|
||||
if (count($einheit_kurzbz)>0)
|
||||
echo '<H1>Lehrverband: '.$einheit_kurzbz.'</H1>';
|
||||
else
|
||||
echo '<H1>Lehrverband: '.$stdplan->stg_kurzbzlang.'-'.$sem.$ver.$grp.'</H1>';
|
||||
if ($type=='ort')
|
||||
echo '<H1>Ort: '.$ort_kurzbz.' - '.$stdplan->ort_bezeichnung.'</H1>';
|
||||
if ($type=='lektor')
|
||||
echo '<H1>Lektor: '.$stdplan->$pers_titel.' '.$stdplan->pers_vornamen.' '.$stdplan->pers_nachname.'</H1>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Kalender erstellen
|
||||
while ($begin<$ende)
|
||||
{
|
||||
if (!date("w",$begin))
|
||||
$begin=jump_day($begin,1);
|
||||
$stdplan->init_stdplan();
|
||||
$datum=$begin;
|
||||
$begin+=604800; // eine Woche
|
||||
|
||||
// Stundenplan einer Woche laden
|
||||
if (! $stdplan->load_week($datum,$db_stpl_table))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die($stdplan->errormsg);
|
||||
}
|
||||
|
||||
// Stundenplan der Woche drucken
|
||||
if ($format=='csv' || $format=='ical')
|
||||
$stdplan->draw_week_csv($target);
|
||||
//else if ($format=='ical')
|
||||
// $stdplan->draw_week_ical($target);
|
||||
else
|
||||
$stdplan->draw_week();
|
||||
}
|
||||
|
||||
// Print in csv-file
|
||||
if ($format=='csv')
|
||||
{
|
||||
echo $crlf;
|
||||
}
|
||||
// Print in ical-file
|
||||
else if ($format=='ical')
|
||||
{
|
||||
echo $crlf.'END:VCALENDAR';
|
||||
}
|
||||
// Print in HTML-File
|
||||
else
|
||||
{
|
||||
echo '<P>Fehler und Feedback bitte an <A href="mailto:[email protected]">Stundenplan</A></P>';
|
||||
echo '</body></html>';
|
||||
}
|
||||
writeCISlog('STOP');
|
||||
?>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
$uid=$REMOTE_USER;
|
||||
//$uid='pam';
|
||||
|
||||
if (isset($_GET[id]))
|
||||
$id=$_GET[id];
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
|
||||
if (isset($id))
|
||||
{
|
||||
$sql_query="DELETE FROM tbl_reservierung WHERE reservierung_id=$id";
|
||||
$erg=pg_exec($conn, $sql_query);
|
||||
}
|
||||
|
||||
//Aktuelle Reservierungen abfragen.
|
||||
$datum=mktime();
|
||||
$datum=date("Y-m-d",$datum);
|
||||
$sql_query="SELECT * FROM vw_reservierung WHERE datum>='$datum' ";
|
||||
$sql_query.=" ORDER BY datum, titel, ort_kurzbz, stunde";
|
||||
$erg_res=pg_exec($conn, $sql_query);
|
||||
$num_rows_res=pg_numrows($erg_res);
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>Reservierungsliste</title>
|
||||
<link rel="stylesheet" href="../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<H2><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td> <a href="index.php">Lehrveranstaltungsplan</a> >> Reservierungen</td>
|
||||
<td align="right"><A href="help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H2>
|
||||
<?php
|
||||
if ($num_rows_res>0)
|
||||
{
|
||||
echo '<table border="0">';
|
||||
echo '<tr class="liste"><th>Datum</th><th>Titel</th><th>Stunde</th><th>Ort</th><th>Person</th><th>Beschreibung</th></tr>';
|
||||
for ($i=0; $i<$num_rows_res; $i++)
|
||||
{
|
||||
$zeile=$i % 2;
|
||||
$id=pg_result($erg_res,$i,"reservierung_id");
|
||||
$datum=pg_result($erg_res,$i,"datum");
|
||||
$titel=pg_result($erg_res,$i,"titel");
|
||||
$stunde=pg_result($erg_res,$i,"stunde");
|
||||
$ort_kurzbz=pg_result($erg_res,$i,"ort_kurzbz");
|
||||
$pers_uid=pg_result($erg_res,$i,"uid");
|
||||
//$lektor_kurzbz=pg_result($erg_res,$i,"lektor_kurzbz");
|
||||
$beschreibung=pg_result($erg_res,$i,"beschreibung");
|
||||
echo '<tr class="liste'.$zeile.'">';
|
||||
echo '<td>'.$datum.'</td>';
|
||||
echo '<td>'.$titel.'</td>';
|
||||
echo '<td>'.$stunde.'</td>';
|
||||
echo '<td>'.$ort_kurzbz.'</td>';
|
||||
echo '<td>'.$pers_uid.'</td>';
|
||||
echo '<td>'.$beschreibung.'<a name="liste'.$i.'"> </a></td>';
|
||||
$z=$i-1;
|
||||
if (($pers_uid==$uid)||($uid=='pam')||($uid=='kindlm')||($uid=='dvorak')||($uid=='betty'))
|
||||
echo '<td><A href="stpl_reserve_list.php?id='.$id.'#liste'.$z.'">Delete</A></td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,231 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<TITLE>Lehrveranstaltungsplan Technikum-Wien</TITLE>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
function MM_jumpMenu(targ,selObj,restore)
|
||||
{ //v3.0
|
||||
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
|
||||
if (restore)
|
||||
selObj.selectedIndex=0;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<LINK rel="stylesheet" href="../../skin/cis.css" type="text/css">
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
<H2><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td> <a href="index.php">Lehrveranstaltungsplan</a> >> Wochenplan</td>
|
||||
<td align="right"><A href="help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H2>
|
||||
<?php
|
||||
/****************************************************************************
|
||||
* Script: stpl_week.php
|
||||
* Descr: Das Script dient zum Navigieren im Stundenplan.
|
||||
* Ein Lektor kann auch einen Saal reservieren
|
||||
* Verzweigungen: nach stpl_detail.php
|
||||
* von index.php
|
||||
* Author: Christian Paminger
|
||||
* Erstellt: 21.8.2001
|
||||
* Update: 15.11.2004 von Christian Paminger
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
//$type='ort';
|
||||
//$ort_kurzbz='EDV6.08';
|
||||
//$datum=1102260015;
|
||||
|
||||
include_once('../config.inc.php');
|
||||
include_once('../../include/functions.inc.php');
|
||||
include_once('../../include/stundenplan.class.php');
|
||||
|
||||
// Test Einstellungen
|
||||
//if (!isset($REMOTE_USER))
|
||||
// $REMOTE_USER='tw01e061';
|
||||
//$uid=$REMOTE_USER;
|
||||
$uid=get_uid();
|
||||
|
||||
|
||||
writeCISlog('START');
|
||||
// Deutsche Umgebung
|
||||
//$loc_de=setlocale(LC_ALL, 'de_AT@euro', 'de_AT','de_DE@euro', 'de_DE');
|
||||
//setlocale(LC_ALL, $loc_de);
|
||||
|
||||
// Variablen uebernehmen
|
||||
if (isset($_GET['type']))
|
||||
$type=$_GET['type'];
|
||||
if (isset($_POST['type']))
|
||||
$type=$_POST['type'];
|
||||
if (isset($_GET['datum']))
|
||||
$datum=$_GET['datum'];
|
||||
if (isset($_POST['datum']))
|
||||
$datum=$_POST['datum'];
|
||||
|
||||
if (isset($_GET['ort_kurzbz']))
|
||||
$ort_kurzbz=$_GET['ort_kurzbz'];
|
||||
else if (isset($_POST['ort_kurzbz']))
|
||||
$ort_kurzbz=$_POST['ort_kurzbz'];
|
||||
else
|
||||
$ort_kurzbz=null;
|
||||
|
||||
if (isset($_GET['pers_uid']))
|
||||
$pers_uid=$_GET['pers_uid'];
|
||||
|
||||
if (isset($_GET['stg_kz']))
|
||||
$stg_kz=$_GET['stg_kz'];
|
||||
else if (isset($_POST['stg_kz']))
|
||||
$stg_kz=$_POST['stg_kz'];
|
||||
else
|
||||
$stg_kz=null;
|
||||
|
||||
if (isset($_POST['sem']))
|
||||
$sem=$_POST['sem'];
|
||||
else if (isset($_GET['sem']))
|
||||
$sem=$_GET['sem'];
|
||||
else
|
||||
$sem=null;
|
||||
|
||||
if (isset($_POST['ver']))
|
||||
$ver=$_POST['ver'];
|
||||
else if (isset($_GET['ver']))
|
||||
$ver=$_GET['ver'];
|
||||
else
|
||||
$ver=null;
|
||||
|
||||
if (isset($_POST['grp']))
|
||||
$grp=$_POST['grp'];
|
||||
else if (isset($_GET['grp']))
|
||||
$grp=$_GET['grp'];
|
||||
else
|
||||
$grp=null;
|
||||
|
||||
if (isset($_POST['einheit_kurzbz']))
|
||||
$einheit_kurzbz=$_POST['einheit_kurzbz'];
|
||||
else if (isset($_GET['einheit_kurzbz']))
|
||||
$einheit_kurzbz=$_GET['einheit_kurzbz'];
|
||||
else
|
||||
$einheit_kurzbz=null;
|
||||
|
||||
if (isset($_POST['user_uid']))
|
||||
$user_uid=$_POST['user_uid'];
|
||||
if (isset($_POST['reserve']))
|
||||
$reserve=$_POST['reserve'];
|
||||
if (isset($_POST['beschreibung']))
|
||||
$beschreibung=$_POST['beschreibung'];
|
||||
if (isset($_POST['titel']))
|
||||
$titel=$_POST['titel'];
|
||||
|
||||
// Verbindungsaufbau
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
}
|
||||
|
||||
// Datums Format
|
||||
if(!$erg_std=pg_query($conn, "SET datestyle TO ISO;"))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die(pg_last_error($conn));
|
||||
}
|
||||
|
||||
// Authentifizierung
|
||||
if ($uid=check_student(get_uid(), $conn))
|
||||
$user='student';
|
||||
elseif ($uid=check_lektor(get_uid(), $conn))
|
||||
$user='lektor';
|
||||
else
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Cannot set usertype!");
|
||||
}
|
||||
|
||||
// User bestimmen
|
||||
if (!isset($type))
|
||||
$type=$user;
|
||||
if (!isset($pers_uid))
|
||||
$pers_uid=$uid;
|
||||
// Reservieren
|
||||
if (isset($reserve) && $uid==$user_uid)
|
||||
{
|
||||
if(!$erg_std=pg_query($conn, "SELECT * FROM tbl_stunde ORDER BY stunde"))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die(pg_last_error($conn));
|
||||
}
|
||||
$num_rows_std=pg_numrows($erg_std);
|
||||
$count=0;
|
||||
for ($t=1;$t<7;$t++)
|
||||
for ($j=0;$j<$num_rows_std;$j++)
|
||||
{
|
||||
$stunde=pg_result($erg_std,$j,'"stunde"');
|
||||
$var='reserve'.$t.'_'.$stunde;
|
||||
//echo $$var;
|
||||
if (isset($_POST[$var]))
|
||||
$$var=$_POST[$var];
|
||||
if ($$var)
|
||||
{
|
||||
$datum_res=$$var;
|
||||
//echo $datum_res;
|
||||
$query="INSERT INTO tbl_reservierung
|
||||
(datum, uid, ort_kurzbz, stunde, beschreibung, titel, studiengang_kz )
|
||||
VALUES
|
||||
('$datum_res', '$user_uid', '$ort_kurzbz', $stunde, '$beschreibung', '$titel', 0)"; // semester, verband, gruppe, einheit_kurzbz,
|
||||
//echo $query;
|
||||
if(!($erg=pg_exec($conn, $query)))
|
||||
echo pg_last_error($conn);
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Stundenplan erstellen
|
||||
$stdplan=new stundenplan($type,$conn);
|
||||
if (!isset($datum))
|
||||
$datum=mktime();
|
||||
|
||||
// Benutzergruppe
|
||||
$stdplan->user=$user;
|
||||
// aktueller Benutzer
|
||||
$stdplan->user_uid=$uid;
|
||||
|
||||
// Zusaetzliche Daten laden
|
||||
if (! $stdplan->load_data($type,$pers_uid,$ort_kurzbz,$stg_kz,$sem,$ver,$grp,$einheit_kurzbz) )
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die($stdplan->errormsg);
|
||||
}
|
||||
//echo 'Datum:'.$datum.'<BR>';
|
||||
// Stundenplan einer Woche laden
|
||||
if (! $stdplan->load_week($datum))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die($stdplan->errormsg);
|
||||
}
|
||||
|
||||
// Kopfbereich drucken
|
||||
if (! $stdplan->draw_header())
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die($stdplan->errormsg);
|
||||
}
|
||||
//echo '<P align="center" style="font-size:xx-large;text-decoration:blink;color:#FF0000;">
|
||||
// Achtung! Stundenplan-Update l?uft!!!</P>';
|
||||
// Stundenplan der Woche drucken
|
||||
$stdplan->draw_week($uid);
|
||||
|
||||
if (isset($count))
|
||||
echo "Es wurden $count Stunden reserviert!<BR>";
|
||||
writeCISlog('STOP');
|
||||
?>
|
||||
<HR>
|
||||
<P>Fehler und Feedback bitte an <A href="mailto:[email protected]">LV-Koordinationsstelle</A>.</P>
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
include('../../include/functions.inc.php');
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
if(!($erg=pg_exec($conn, "SELECT * FROM tbl_studiengang WHERE studiengang_kz>0 ORDER BY kurzbz")))
|
||||
die(pg_last_error($conn));
|
||||
$num_rows=pg_numrows($erg);
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Übersicht der Lehrverbände</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link rel="stylesheet" href="../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<H2><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td> <a href="index.php">Lehrveranstaltungsplan</a> >> Lehrverbände</td>
|
||||
<td align="right"><A href="help/index.html" class="hilfe" target="_blank">HELP </A></td>
|
||||
</tr>
|
||||
</table>
|
||||
</H2>
|
||||
<table>
|
||||
<tr>
|
||||
<?php
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=@pg_fetch_object($erg, $i);
|
||||
echo "<th>$row->bezeichnung ($row->kurzbz)</th>";
|
||||
}
|
||||
?>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
for ($i=0; $i<$num_rows; $i++)
|
||||
{
|
||||
echo '<td nowrap valign="top">';
|
||||
$row=pg_fetch_object($erg, $i);
|
||||
$stg_kz=$row->studiengang_kz;
|
||||
$stg_kzbz=$row->kurzbz;
|
||||
$sql_query="SELECT DISTINCT semester FROM tbl_student WHERE studiengang_kz=$stg_kz ORDER BY semester";
|
||||
//echo $sql_query;
|
||||
if(!($result_sem=pg_exec($conn, $sql_query)))
|
||||
die(pg_last_error($conn));
|
||||
$nr_sem=pg_numrows($result_sem);
|
||||
for ($j=0; $j<$nr_sem; $j++)
|
||||
{
|
||||
$row_sem=pg_fetch_object($result_sem, $j);
|
||||
echo '<a href="stpl_week.php?type=verband&stg_kz='.$stg_kz."&sem=$row_sem->semester\">$stg_kzbz-$row_sem->semester</a><br>";
|
||||
$sql_query="SELECT DISTINCT verband FROM tbl_student WHERE studiengang_kz=$stg_kz AND semester=$row_sem->semester ORDER BY verband";
|
||||
//echo $sql_query;
|
||||
if(!($result_ver=pg_exec($conn, $sql_query)))
|
||||
die(pg_last_error($conn));
|
||||
$nr_ver=pg_numrows($result_ver);
|
||||
for ($k=0; $k<$nr_ver; $k++)
|
||||
{
|
||||
$row_ver=pg_fetch_object($result_ver, $k);
|
||||
echo " - <a href=\"stpl_week.php?type=verband&stg_kz=$stg_kz&sem=$row_sem->semester&ver=$row_ver->verband\">$stg_kzbz-$row_sem->semester$row_ver->verband</a><br>";
|
||||
$sql_query="SELECT DISTINCT gruppe FROM tbl_student WHERE studiengang_kz=$stg_kz AND semester=$row_sem->semester AND verband='$row_ver->verband' ORDER BY gruppe";
|
||||
//echo $sql_query;
|
||||
if(!($result_grp=pg_exec($conn, $sql_query)))
|
||||
die(pg_last_error($conn));
|
||||
$nr_grp=pg_numrows($result_grp);
|
||||
for ($l=0; $l<$nr_grp; $l++)
|
||||
{
|
||||
$row_grp=pg_fetch_object($result_grp, $l);
|
||||
echo " - <a href=\"stpl_week.php?type=verband&stg_kz=$stg_kz&sem=$row_sem->semester&ver=$row_ver->verband&grp=$row_grp->gruppe\">$stg_kzbz-$row_sem->semester$row_ver->verband$row_grp->gruppe</a><br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
echo"</td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user