Files
FHC-Core/cis/private/lvplan/index.php
T
2011-08-22 13:59:43 +00:00

236 lines
8.2 KiB
PHP

<?php
/* Copyright (C) 2008 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 >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../../config/cis.config.inc.php');
require_once('../../../include/basis_db.class.php');
require_once('../../../include/functions.inc.php');
require_once('../../../include/phrasen.class.php');
$sprache = getSprache();
$p=new phrasen($sprache);
if (!$db = new basis_db())
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
if (!$uid=get_uid())
die('Sie sind nicht angemeldet. Es wurde keine Benutzer UID gefunden ! <a href="javascript:history.back()">Zur&uuml;ck</a>');
$sql_query="SET search_path TO campus; SELECT titelpre, titelpost, uid, nachname, vorname FROM vw_benutzer WHERE uid LIKE '$uid'";
//echo $sql_query;
$result=$db->db_query($sql_query);
if($db->db_num_rows($result)==0)
{
//GastAccount
$titelpre='';
$titelpost='';
$uid='';
$nachname='';
$vornamen='';
//echo "User not found!";
}
else
{
$titelpre=$db->db_result($result,0,'"titelpre"');
$titelpost=$db->db_result($result,0,'"titelpost"');
$uid=$db->db_result($result,0,'"uid"');
$nachname=$db->db_result($result,0,'"nachname"');
$vornamen=$db->db_result($result,0,'"vorname"');
}
$sql_query="SELECT studiengang_kz, kurzbz, kurzbzlang, bezeichnung, typ FROM public.tbl_studiengang WHERE aktiv ORDER BY typ, kurzbz";
$result_stg=$db->db_query($sql_query);
if(!$result_stg)
die ("Studiengang not found!");
$num_rows_stg=$db->db_num_rows($result_stg);
$sql_query="SELECT ort_kurzbz, bezeichnung FROM public.tbl_ort WHERE aktiv AND lehre ORDER BY ort_kurzbz";
$result_ort=$db->db_query($sql_query);
if(!$result_ort)
die("ort not found!");
$num_rows_ort=$db->db_num_rows($result_ort);
$sql_query="SELECT uid, kurzbz FROM vw_mitarbeiter ORDER BY kurzbz";
$result_lektor=$db->db_query($sql_query);
if(!$result_lektor)
die("lektor not found!");
$num_rows_lektor=$db->db_num_rows($result_lektor);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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/style.css.php" rel="stylesheet" type="text/css">
</head>
<BODY id="inhalt">
<font size="2">
<table class="tabcontent">
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;<?php echo $p->t("lvplan/lehrveranstaltungsplan");?></font></td>
<td align="right" class="ContentHeader"><A href="help/index.html" class="hilfe" target="_blank"><font class="ContentHeader">HELP&nbsp;</font></A></td>
</tr>
</table>
<!--<DIV align="right">Version: <?php echo VERSION; ?></DIV>-->
Username:
<?php
if (isset($uid))
echo $uid;
else
echo $p->t('lvplan/nichtVorhanden').' '.$p->t('lvplan/bitteWendenSieSichAn').'<A href="mailto:'.MAIL_ADMIN.'">Admin</A>!';
?><BR>
<DIV align="left">
<a class="Item" href="stpl_week.php?pers_uid=<?php echo $uid; ?>"><?php echo $titelpre.' '.$vornamen." ".$nachname.' '.$titelpost;?></a>
&nbsp; -> <?php echo $p->t("lvplan/persoenlicherLvPlan");?><BR>
<a class="Item" href="../profile/index.php"><?php echo $p->t("lvplan/profil");?></a>
&nbsp; -> <?php echo $p->t("lvplan/stammdatenKontrollieren")?><BR>
</DIV>
<BR>
<FORM name="Auswahl" action="stpl_week.php">
<table class="tabcontent">
<tr>
<td width="50%" class="ContentHeader2">
&nbsp;<?php echo $p->t("lvplan/saalplan"); ?>
</td>
<td width="50%" class="ContentHeader2">
&nbsp;<?php echo $p->t("lvplan/lektorenplan"); ?>
</td>
</tr>
<tr>
<td>
<BR>
<?php echo $p->t('lvplan/saal');?>
<select name="select" onChange="MM_jumpMenu('self',this,0)">
<option value="stpl_week.php" selected>... ??? ...</option>
<?php
for ($i=0;$i<$num_rows_ort;$i++)
{
$row=$db->db_fetch_object ($result_ort, $i);
echo "<option value=\"stpl_week.php?type=ort&ort_kurzbz=$row->ort_kurzbz\">$row->ort_kurzbz ($row->bezeichnung)</option>";
}
?>
</select>
(<?php echo $p->t("lvplan/saalreservierung"); ?>)<BR><BR>
<A class="Item" href="stpl_reserve_list.php"><?php echo $p->t('lvplan/reservierungsliste'); ?></A> (<?php echo $p->t('lvplan/reservierungenLoeschen'); ?>)<BR>
<A class="Item" href="raumsuche.php"><?php echo $p->t('lvplan/raumsuche'); ?></A><BR>
</td>
<td valign="top">
<br>
<?php echo $p->t('lvplan/lektor'); ?>
<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=$db->db_fetch_object ($result_lektor, $i);
echo "<option value=\"stpl_week.php?type=lektor&pers_uid=$row->uid\">$row->kurzbz</option>";
}
?>
</select>
</td>
</tr>
</table>
<br><br>
<table class="tabcontent"><tr><td class="ContentHeader2">&nbsp;<?php echo $p->t('lvplan/lehrverband');?></td></tr></table>
<table width="40%" border="0" cellpadding="0" cellspacing="3">
<tr nowrap>
<td width="20%" valign="middle">
<?php echo $p->t('global/studiengang'); ?><BR>
<select name="stg_kz" >
<?php
$num_rows=$db->db_num_rows($result_stg);
for ($i=0;$i<$num_rows;$i++)
{
$row=$db->db_fetch_object ($result_stg, $i);
echo '<option value="'.$row->studiengang_kz.'">'.strtoupper($row->typ.$row->kurzbz)." ( $row->kurzbzlang - $row->bezeichnung )</option>";
}
?>
</select>
</td>
<td valign="middle">
<?php echo $p->t('lvplan/sem');?><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">
<?php echo $p->t('lvplan/ver');?><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>
<option value="F">F</option>
<option value="V">V</option>
</select>
</td>
<td valign="middle" >
<?php echo $p->t('lvplan/grp');?><BR>
<select name="grp">
<option value="0" selected>*</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</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 class="Item" href="verband_uebersicht.php"><?php echo $p->t('lvplan/lehrverbaende')?></a> -> <?php echo $p->t('lvplan/uebersichtDerLehrverbaende');?><BR>
<BR><BR><HR>
<P><?php echo $p->t('lvplan/fehlerUndFeedback');?> <A class="Item" href="mailto:<?php echo MAIL_LVPLAN?>"><?php echo $p->t('lvplan/lvKoordinationsstelle');?></A>.</P>
<!--
<P class=little>
Erstellt am 24.8.2001 von <A href="mailto:pam@technikum-wien.at">Christian Paminger</A>.<BR>
Letzte &Auml;nderung am 11.1.2005 von <A href="mailto:pam@technikum-wien.at">Christian Paminger</A>.
</P>
-->
</font>
</body>
</html>