mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
This commit is contained in:
@@ -1,81 +0,0 @@
|
||||
<?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:pam@technikum-wien.at">Christian Paminger</A>.<BR>
|
||||
Letzte Änderung am 11.9.2004 von <A href="mailto:pam@technikum-wien.at">Christian Paminger</A>.
|
||||
</P>
|
||||
</body>
|
||||
</html>
|
||||
@@ -9,36 +9,41 @@
|
||||
* Update: 11.11.2004 von Christian Paminger
|
||||
*****************************************************************************/
|
||||
|
||||
include('../config.inc.php');
|
||||
require_once('../../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[gruppe_kurzbz]))
|
||||
$gruppe_kurzbz=$_GET[gruppe_kurzbz];
|
||||
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['gruppe_kurzbz']))
|
||||
$gruppe_kurzbz=$_GET['gruppe_kurzbz'];
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
// Datenbankverbindung
|
||||
if (!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
// Datums Format und search_path
|
||||
if(!$erg_std=pg_query($conn, "SET datestyle TO ISO; SET search_path TO campus;"))
|
||||
die(pg_last_error($conn));
|
||||
|
||||
//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";
|
||||
$sql_query='SELECT vw_stundenplan.*, tbl_lehrfach.bezeichnung, vw_mitarbeiter.titelpre, vw_mitarbeiter.nachname, vw_mitarbeiter.vorname';
|
||||
$sql_query.=' FROM vw_stundenplan, lehre.tbl_lehrfach, vw_mitarbeiter';
|
||||
$sql_query.=" WHERE datum='$datum' AND stunde=$stunde AND vw_mitarbeiter.uid=vw_stundenplan.uid AND tbl_lehrfach.lehrfach_id=vw_stundenplan.lehrfach_id";
|
||||
if ($type=='lektor')
|
||||
$sql_query.=" AND vw_stundenplan.uid='$pers_uid' ";
|
||||
elseif ($type=='ort')
|
||||
@@ -54,18 +59,18 @@ else
|
||||
//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, gruppe_kurzbz, uid LIMIT 100';
|
||||
$sql_query.=' ORDER BY unr ASC, stg_kurzbz, vw_stundenplan.semester, verband, gruppe, gruppe_kurzbz 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";
|
||||
$sql_query="SELECT vw_reservierung.*, vw_mitarbeiter.titelpre, vw_mitarbeiter.vorname,vw_mitarbeiter.nachname FROM vw_reservierung, vw_mitarbeiter 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";
|
||||
$sql_query.=" AND vw_reservierung.uid=vw_mitarbeiter.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';
|
||||
@@ -78,7 +83,7 @@ $num_rows_repl=pg_numrows($erg_repl);
|
||||
<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">
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body class="background_main">
|
||||
<H2>Lehrveranstaltungsplan ⇒ Details</H2>
|
||||
@@ -96,8 +101,8 @@ for ($i=0; $i<$num_rows_stpl; $i++)
|
||||
$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");
|
||||
$titelpre=pg_result($erg_stpl,$i,"titelpre");
|
||||
$pers_vorname=pg_result($erg_stpl,$i,"vorname");
|
||||
$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");
|
||||
@@ -108,7 +113,7 @@ for ($i=0; $i<$num_rows_stpl; $i++)
|
||||
?>
|
||||
<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><A href="mailto:<?php echo $pers_email; ?>"><?php echo $titelpre.' '.$pers_vorname.' '.$pers_nachname; ?></A></td>
|
||||
<td><?php echo $ortkurzbz; ?></td>
|
||||
<td><?php echo $lehrfachkurzbz; ?></td>
|
||||
<td><?php echo $bezeichnung; ?></td>
|
||||
@@ -131,15 +136,15 @@ if ($num_rows_repl>0)
|
||||
{
|
||||
$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");
|
||||
$titelpre=pg_result($erg_repl,$i,"titelpre");
|
||||
$pers_vorname=pg_result($erg_repl,$i,"vorname");
|
||||
$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 ><A href="mailto:'.$pers_email.'">'.$titelpre.' '.$pers_vorname.' '.$pers_nachname.'</A></td>';
|
||||
echo '<td >'.$beschreibung.'</td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
|
||||
@@ -9,6 +9,18 @@
|
||||
* Update: 10.9.2005 von Christian Paminger
|
||||
*****************************************************************************/
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/wochenplan.class.php');
|
||||
|
||||
// Datenbankverbindung
|
||||
if (!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
// Datums Format und search_path
|
||||
if(!$erg_std=pg_query($conn, "SET datestyle TO ISO; SET search_path TO campus;"))
|
||||
die(pg_last_error($conn));
|
||||
|
||||
|
||||
//Startwerte setzen
|
||||
$db_stpl_table='stundenplan';
|
||||
$type=$_GET['type'];
|
||||
@@ -23,6 +35,7 @@ $begin=$_GET['begin'];
|
||||
$ende=$_GET['ende'];
|
||||
$format=$_GET['format'];
|
||||
$version=(isset($_GET['version'])?$_GET['version']:2);
|
||||
$target=(isset($_GET['target'])?$_GET['target']:null);
|
||||
|
||||
// UID bestimmen
|
||||
if (!isset($REMOTE_USER))
|
||||
@@ -77,24 +90,12 @@ else
|
||||
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 '<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']))
|
||||
@@ -147,7 +148,7 @@ if (!isset($pers_uid))
|
||||
$pers_uid=check_lektor($uid, $conn);
|
||||
|
||||
// Stundenplanobjekt erzeugen
|
||||
$stdplan=new stundenplan($type,$conn);
|
||||
$stdplan=new wochenplan($type,$conn);
|
||||
$stdplan->crlf=$crlf;
|
||||
|
||||
// Zusaetzliche Daten laden
|
||||
@@ -214,5 +215,4 @@ else
|
||||
echo '<P>Fehler und Feedback bitte an <A href="mailto:stpl@technikum-wien.at">Stundenplan</A></P>';
|
||||
echo '</body></html>';
|
||||
}
|
||||
writeCISlog('STOP');
|
||||
?>
|
||||
@@ -1,15 +1,20 @@
|
||||
<?php
|
||||
include('../config.inc.php');
|
||||
require_once('../../config.inc.php');
|
||||
|
||||
$uid=$REMOTE_USER;
|
||||
//$uid='pam';
|
||||
|
||||
if (isset($_GET[id]))
|
||||
$id=$_GET[id];
|
||||
if (isset($_GET['id']))
|
||||
$id=$_GET['id'];
|
||||
|
||||
if (!$conn = @pg_pconnect(CONN_STRING))
|
||||
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
|
||||
// Datenbankverbindung
|
||||
if (!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
// Datums Format und search_path
|
||||
if(!$erg_std=pg_query($conn, "SET datestyle TO ISO; SET search_path TO campus;"))
|
||||
die(pg_last_error($conn));
|
||||
|
||||
if (isset($id))
|
||||
if (isset($id))
|
||||
{
|
||||
$sql_query="DELETE FROM tbl_reservierung WHERE reservierung_id=$id";
|
||||
$erg=pg_exec($conn, $sql_query);
|
||||
@@ -27,7 +32,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="../../../skin/cis.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<H2><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
<?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>.
|
||||
*/
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/studiensemester.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/lehrveranstaltung.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
$rechte=new benutzerberechtigung($db_conn);
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(check_lektor($user,$db_conn))
|
||||
$is_lector=true;
|
||||
else
|
||||
$is_lector=false;
|
||||
?>
|
||||
<!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">
|
||||
<!--
|
||||
__js_page_array = new Array();
|
||||
|
||||
function js_toggle_container(conid)
|
||||
{
|
||||
if (document.getElementById)
|
||||
{
|
||||
var block = "table-row";
|
||||
if (navigator.appName.indexOf('Microsoft') > -1)
|
||||
block = 'block';
|
||||
var status = __js_page_array[conid];
|
||||
if (status == null)
|
||||
status=document.getElementById(conid).style.display; //status = "none";
|
||||
if (status == "none")
|
||||
{
|
||||
document.getElementById(conid).style.display = block;
|
||||
__js_page_array[conid] = "visible";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById(conid).style.display = 'none';
|
||||
__js_page_array[conid] = "none";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="159" valign="top" nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<!-- ************* Meine CIS ******************* -->
|
||||
<tr>
|
||||
<td nowrap><a class="MenuItem" href="?MeineCIS" onClick="return(js_toggle_container('MeineCIS'));" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Meine CIS</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="MeineCIS" style="display: visible;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="Item" href="lvplan/profile/index.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Profil</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="Item" href="lvplan/stpl_week.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> LV-Plan</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
//Eigenen LV des eingeloggten Lektors anzeigen
|
||||
if($is_lector)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a href="?Location" class="MenuItem" onClick="return(js_toggle_container('MeineLVs'));">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Meine LV
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="MeineLVs" style="display: visible;">
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px;">
|
||||
<?php
|
||||
$stsemobj = new studiensemester($db_conn);
|
||||
$stsem = $stsemobj->getAktorNext();
|
||||
$stg_obj = new studiengang($db_conn);
|
||||
if($stg_obj->getAll())
|
||||
{
|
||||
$stg = array();
|
||||
foreach($stg_obj->result as $row)
|
||||
$stg[$row->studiengang_kz] = $row->kurzbzlang;
|
||||
}
|
||||
else
|
||||
echo "Fehler beim Auslesen der Studiengaenge";
|
||||
|
||||
$qry = "SELECT bezeichnung, studiengang_kz, semester, lehreverzeichnis, tbl_lehrveranstaltung.lehrveranstaltung_id
|
||||
FROM lehre.tbl_lehrveranstaltung, lehre.tbl_lehreinheit, lehre.tbl_lehreinheitmitarbeiter
|
||||
WHERE tbl_lehrveranstaltung.lehrveranstaltung_id=tbl_lehreinheit.lehrveranstaltung_id AND
|
||||
tbl_lehreinheit.lehreinheit_id=tbl_lehreinheitmitarbeiter.lehreinheit_id AND
|
||||
mitarbeiter_uid='$user' AND tbl_lehreinheit.studiensemester_kurzbz='$stsem'";
|
||||
|
||||
if($result = pg_query($db_conn,$qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
echo '<li><a class="Item2" title="'.$row->bezeichnung.'" href="lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'" target="content">'.$stg[$row->studiengang_kz].' '.$row->semester.' '.$row->lehreverzeichnis.'</a></li>';
|
||||
}
|
||||
else
|
||||
echo "Fehler beim Auslesen des Lehrfaches";
|
||||
?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
+23
-12
@@ -9,18 +9,29 @@
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="170" nowrap><img src="../skin/images/TWLogo_klein.jpg"></td>
|
||||
<td nowrap><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="13" valign="bottom"><img src="../skin/images/header_line.gif" width="100%" height="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="170" nowrap>
|
||||
<a href="index.html" target="_top">
|
||||
<img src="../skin/images/TWLogo_klein.jpg">
|
||||
</a>
|
||||
</td>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="10" valign="bottom"><img src="../skin/images/header_line.gif" width="100%" height="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="GlobalMenu">
|
||||
[ <a href="index.html" target="_top">HOME</a>
|
||||
| <a href="private/menu.php" target="menu">Meine CIS</a> ]
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -270,4 +270,10 @@ h4
|
||||
color: #008E74;
|
||||
cursor: hand;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#GlobalMenu
|
||||
{
|
||||
margin-top: 3px;
|
||||
text-align: right;
|
||||
}
|
||||
Reference in New Issue
Block a user