mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
Anpassung CIS an neue DB
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>CIS - FH Technikum Wien</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
<link rel="shortcut icon" href="../../../favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<frameset rows="77,*,1" cols="*" frameborder="NO" border="0" framespacing="0">
|
||||
<frame src="../../topbar.html" name="topbar" scrolling="NO" noresize>
|
||||
<frameset rows="*" cols="200,*" framespacing="0" frameborder="NO" border="0">
|
||||
<frame src="menu.php" name="menu" scrolling="AUTO" noresize>
|
||||
<frame src="pinboard.php" name="content">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body>
|
||||
<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht unterstützt.</p>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
||||
@@ -0,0 +1,369 @@
|
||||
<?php
|
||||
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(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
$rechte=new benutzerberechtigung($sql_conn);
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
else
|
||||
$is_lector=false;
|
||||
|
||||
function CutString($strVal, $limit)
|
||||
{
|
||||
if(strlen($strVal) > $limit+3)
|
||||
{
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($course_id) && !isset($term_id))
|
||||
{
|
||||
$course_id = 254;
|
||||
$term_id = 1;
|
||||
|
||||
if(!$is_lector)
|
||||
{
|
||||
$sql_query = "SELECT studiengang_kz, semester FROM campus.vw_student WHERE uid='$user' LIMIT 1";
|
||||
|
||||
$result_student = pg_exec($sql_conn, $sql_query);
|
||||
$num_rows_student = pg_numrows($result_student);
|
||||
|
||||
if($num_rows_student > 0)
|
||||
{
|
||||
$row = pg_fetch_object($result_student, 0);
|
||||
|
||||
$course_id = $row->studiengang_id;
|
||||
$term_id = $row->semester;
|
||||
}
|
||||
|
||||
if($course_id==0)
|
||||
$course_id=254;
|
||||
if($term_id==0)
|
||||
$term_id=1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!isset($course_id) || $course_id==0)
|
||||
{
|
||||
$course_id = 254;
|
||||
}
|
||||
|
||||
if(!isset($term_id) || $term_id==0)
|
||||
{
|
||||
$term_id = 1;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!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 = "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>
|
||||
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
function MM_jumpMenu(targ, selObj, restore)
|
||||
{
|
||||
eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
|
||||
|
||||
if(restore)
|
||||
{
|
||||
selObj.selectedIndex = 0;
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo '<script language="JavaScript">';
|
||||
echo ' parent.content.location.href="pinboard.php?course_id='.$course_id.'&term_id='.$term_id.'"';
|
||||
echo '</script>';
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="159" valign="top" nowrap>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" frame="rhs" style="border-color:#BCBCBC;">
|
||||
<form method="post" action="menu.php">
|
||||
<tr>
|
||||
<td nowrap><a class="HyperItem" href="../../index.html" target="_top"><< Zum Campus wechseln </a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="81" nowrap>Studiengang: </td>
|
||||
<td nowrap>
|
||||
<select name="course" onChange="MM_jumpMenu('self',this,0)" class="TextBox">
|
||||
<?php
|
||||
$stg_obj = new studiengang($sql_conn);
|
||||
$stg_obj->getAll('kurzbzlang');
|
||||
//$sql_query = "SELECT DISTINCT studiengang_kz AS id, kurzbzlang FROM public.tbl_studiengang WHERE NOT(studiengang_kz='0') ORDER BY kurzbzlang";
|
||||
|
||||
//$result = pg_exec($sql_conn, $sql_query);
|
||||
//$num_rows_result = pg_num_rows($result);
|
||||
$sel_kurzbzlang='';
|
||||
|
||||
foreach($stg_obj->result as $row)
|
||||
{
|
||||
if($row->studiengang_kz!=0)
|
||||
{
|
||||
if(isset($course_id) AND $course_id == $row->studiengang_kz)
|
||||
{
|
||||
echo '<option value="menu.php?course_id='.$row->studiengang_kz.'&term_id='.$term_id.'" selected>'.$row->kurzbzlang.'</option>';
|
||||
$sel_kurzbzlang=$row->kurzbzlang;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<option value="menu.php?course_id='.$row->studiengang_kz.'&term_id='.$term_id.'">'.$row->kurzbzlang.'</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>Semester: </td>
|
||||
<td nowrap>
|
||||
<select name="term" onChange="MM_jumpMenu('self',this,0)" class="TextBox">
|
||||
<?php
|
||||
|
||||
$stg_obj=new studiengang($sql_conn,$course_id);
|
||||
|
||||
$max = $stg_obj->max_semester;
|
||||
|
||||
if($term_id>$max)
|
||||
$term_id=1;
|
||||
|
||||
for($i=0;$i<$max;$i++)
|
||||
{
|
||||
if(($i+1)==$term_id)
|
||||
echo '<option value="menu.php?course_id='.$course_id.'&term_id='.($i+1).'" selected>'.($i+1).'. Semester</option>';
|
||||
else
|
||||
echo '<option value="menu.php?course_id='.$course_id.'&term_id='.($i+1).'">'.($i+1).'. Semester</option>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<tr>
|
||||
<td nowrap> </td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$lv_obj = new lehrveranstaltung($sql_conn);
|
||||
|
||||
$lv_obj->load_lva($course_id,$term_id, true);
|
||||
|
||||
foreach($lv_obj->lehrveranstaltungen as $row)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo ' <td nowrap><ul style="margin: 0px; padding: 0px; padding-left: 20px;">';
|
||||
echo "<li><a class=\"Item2\" title=\"".$row->bezeichnung."\" href=\"lesson.php?course_id=$course_id&term_id=$term_id&short=$row->kurzbz\" target=\"content\">".CutString($row->bezeichnung, 21)."</a></li>";
|
||||
echo ' </ul></td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
echo '<tr>';
|
||||
echo ' <td nowrap> </td>';
|
||||
echo '</tr>';
|
||||
|
||||
//Eigenen LV des eingeloggten Lektors anzeigen
|
||||
if($is_lector || $rechte->isBerechtigt('admin'))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap><a href="?Eigene" class="MenuItem" onClick="return(js_toggle_container('Eigene'));"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Meine LV</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Eigene" style="display: none;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px;">
|
||||
<?php
|
||||
$stsemobj = new studiensemester($sql_conn);
|
||||
$stsem = $stsemobj->getAktorNext();
|
||||
|
||||
$stg_obj = new studiengang($sql_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 * FROM tbl_lehrfach WHERE lehrfach_nr IN (SELECT distinct lehrfach_nr FROM tbl_lehrveranstaltung WHERE lektor='$user' AND studiensemester_kurzbz='$stsem') AND studiengang_kz!=0";
|
||||
$qry = "SELECT bezeichnung, studiengang_kz, semester, lehreverzeichnis 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($sql_conn,$qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
echo "<li><a class=\"Item2\" title=\"".$row->bezeichnung."\" href=\"lesson.php?course_id=$row->studiengang_kz&term_id=$row->semester&short=$row->lehreverzeichnis\" 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
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap><a class="MenuItem" href="pinboard.php?course_id=<?php echo $course_id; ?>&term_id=<?php echo $term_id; ?>" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Pinboard</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap><a href="?Info & Kommunikation" class="MenuItem" onClick="return(js_toggle_container('Info & Kommunikation'));"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Info & Kommunikation</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Info & Kommunikation" style="display: none;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="Item" href="../../lvplan/" target="_blank"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Stundenplan</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="Item" href="https://webmail.technikum-wien.at" target="_blank"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Webmail</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="Item" href="../info/faq_upload.html" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> FAQ</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if($is_lector || $rechte->isBerechtigt('admin'))
|
||||
{
|
||||
echo '<tr>';
|
||||
echo ' <td nowrap><a href="?Lektorenbereich" class="MenuItem" onClick="return(js_toggle_container(\'Lektorenbereich\'));"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Lektorenbereich</a></td>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo ' <td nowrap>';
|
||||
echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lektorenbereich" style="display: none;">';
|
||||
|
||||
|
||||
echo ' <tr>';
|
||||
echo ' <td width="10" nowrap> </td>';
|
||||
echo ' <td nowrap><a class="Item" href="ects/index.php?stg='.$course_id.'&sem='.$term_id.'" target="_blank"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> LV Info</a></td>';
|
||||
echo ' </tr>';
|
||||
|
||||
|
||||
echo ' <tr>';
|
||||
echo ' <td width="10" nowrap> </td>';
|
||||
echo ' <td nowrap><a class="Item" href="fernlehrunterlagen.html" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Fernlehrunterlagen</a></td>';
|
||||
echo ' </tr>';
|
||||
echo ' <tr>';
|
||||
echo ' <td width="10" nowrap> </td>';
|
||||
echo ' <td nowrap><a class="Item" href="dokumentenvorlagen.html" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Vorlagen für die<br> Dokumentenerstellung</a></td>';
|
||||
echo ' </tr>';
|
||||
echo ' <tr>';
|
||||
echo ' <td width="10" nowrap> </td>';
|
||||
echo ' <td nowrap><a class="Item" href="pinboardverwaltung.php?course_id='.$course_id.'&term_id='.$term_id.'" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Pinboardverwaltung</a></td>';
|
||||
echo ' </tr>';
|
||||
echo ' <tr>';
|
||||
echo ' <td width="10" nowrap> </td>';
|
||||
echo ' <td nowrap><a class="Item" href="upload.php" target="_blank"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Webupload</a></td>';
|
||||
echo ' </tr>';
|
||||
echo ' </table>';
|
||||
echo ' </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
writeCISlog('STOP');
|
||||
?>
|
||||
<tr>
|
||||
<td nowrap><a class="MenuItem" href="../mailverteiler.php?kbzl=<?php echo $sel_kurzbzlang.'#'.$course_id; ?>" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Mailverteiler</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,438 @@
|
||||
<?php
|
||||
/**
|
||||
* Pinboard
|
||||
* Zeigt alle Pinboardeintraege an. Am rechten Rand werden
|
||||
* Studiengangsleiter, Studiengangsleiter Stellvertreter, Assistentin
|
||||
* und Studentenvertreter dieses Studienganges angezeigt.
|
||||
*
|
||||
* Aufruf pinboard.php?course_id=254&term_id=1[&showall]
|
||||
* course_id: Studiengang
|
||||
* term_id: Semester
|
||||
* showall: Zeigt alle Pinboardeintraege an
|
||||
*/
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/studiengang.class.php');
|
||||
require_once('../../../include/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim öffnen der Datenbankverbindung');
|
||||
|
||||
$short='';
|
||||
if(isset($_GET['course_id']) && is_numeric($_GET['course_id']))
|
||||
{
|
||||
$stg_obj = new studiengang($sql_conn, $course_id);
|
||||
$short = $stg_obj->kurzbzlang;
|
||||
$course_id = $_GET['course_id'];
|
||||
}
|
||||
else
|
||||
die('Fehler bei der Parameterübergabe');
|
||||
|
||||
if(isset($_GET['showall']))
|
||||
{
|
||||
$showall=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$showall=false;
|
||||
}
|
||||
|
||||
function print_news($stg_id, $semester, $sql_conn, $showall=false)
|
||||
{
|
||||
$alter = ($showall?0:MAXNEWSALTER);
|
||||
$news_obj = new news($sql_conn);
|
||||
$zaehler=0;
|
||||
if($news_obj->getnews($alter, $stg_id, $semester))
|
||||
{
|
||||
foreach ($news_obj->result as $row)
|
||||
{
|
||||
$zaehler++;
|
||||
if($row->updateamum!='')
|
||||
$datum = date('d.m.Y - h:i',strtotime(strftime($row->updateamum)));
|
||||
else
|
||||
$datum='';
|
||||
|
||||
if($semester == 0)
|
||||
{
|
||||
echo '<p><small>'.$datum.' - '.$row->verfasser.' - [Allgemein]</small><br><b>'.$row->betreff.'</b><br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p><small>'.$datum.' - '.$row->verfasser.' - [Semester '.$semester.']</small><br><b>'.$row->betreff.'</b><br>';
|
||||
}
|
||||
|
||||
echo "$row->text</p>";
|
||||
}
|
||||
}
|
||||
if($zaehler==0)
|
||||
echo '<p>Zur Zeit gibt es keine aktuellen News!</p>';
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="10"> </td>
|
||||
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="ContentHeader" width="70%"><font class="ContentHeader"> Pinboard <?php if(isset($short)) echo $short; ?></font></td>
|
||||
<td> </td>
|
||||
<td class="ContentHeader3" width="25%"><font class="HyperItem"> Studiengangsmanagement</font></td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!isset($short))
|
||||
exit;
|
||||
?>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><?php print_news($course_id, (int)$term_id, $sql_conn, $showall); ?><a href='<?php echo $_SERVER['REQUEST_URI']."&showall"; ?>' class='Item'>Archiv</a></td>
|
||||
<td> </td>
|
||||
<td valign="top">
|
||||
<p>Studiengangsleiter:<br>
|
||||
<?php
|
||||
//Studiengangsleiter auslesen
|
||||
$qry = "SELECT * FROM campus.vw_mitarbeiter JOIN tbl_benutzerfunktion using(uid) WHERE studiengang_kz='$course_id' AND funktion_kurzbz='stgl'";
|
||||
if($result_course_leader = pg_query($sql_conn, $qry))
|
||||
{
|
||||
$num_rows_course_leader = pg_numrows($result_course_leader);
|
||||
if($num_rows_course_leader > 0)
|
||||
{
|
||||
$row_course_leader = pg_fetch_object($result_course_leader, 0);
|
||||
}
|
||||
}
|
||||
|
||||
echo "<b>";
|
||||
|
||||
if(isset($row_course_leader) && $row_course_leader != "")
|
||||
{
|
||||
if(!($row_course_leader->vorname == "" && $row_course_leader->nachname == ""))
|
||||
{
|
||||
echo $row_course_leader->titelpre.' '.$row_course_leader->vorname.' '.$row_course_leader->nachname.' '.$row_course_leader->titelpost;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht definiert";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht definiert";
|
||||
}
|
||||
|
||||
echo "</b><br>";
|
||||
|
||||
if(isset($row_course_leader) && $row_course_leader != "")
|
||||
{
|
||||
if($row_course_leader->uid != "")
|
||||
{
|
||||
echo "<a href=\"mailto:$row_course_leader->uid@technikum-wien.at\" class=\"Item\">$row_course_leader->uid@technikum-wien.at</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "E-Mail nicht definiert";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "E-Mail nicht definiert";
|
||||
}
|
||||
|
||||
echo "<br>";
|
||||
echo "Tel.:";
|
||||
|
||||
if(isset($row_course_leader) && $row_course_leader != "")
|
||||
{
|
||||
if($row_course_leader->telefonklappe != "")
|
||||
{
|
||||
echo '01 333 40 77 - '.$row_course_leader->telefonklappe;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht vorhanden";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht vorhanden";
|
||||
}
|
||||
|
||||
echo "</p>";
|
||||
echo "<p></p>";
|
||||
echo "<p>Stellvertreter:<br>";
|
||||
|
||||
//Studiengangsleiter Stellvertreter auselesen
|
||||
$sql_query = "SELECT * FROM campus.vw_mitarbeiter JOIN tbl_benutzerfunktion using(uid) WHERE studiengang_kz='$course_id' AND funktion_kurzbz='stglstv'";
|
||||
|
||||
if($result_course_leader_deputy = pg_query($sql_conn, $sql_query))
|
||||
{
|
||||
$num_rows_course_leader_deputy = pg_numrows($result_course_leader_deputy);
|
||||
|
||||
if($num_rows_course_leader_deputy > 0)
|
||||
{
|
||||
$row_course_leader_deputy = pg_fetch_object($result_course_leader_deputy, 0);
|
||||
}
|
||||
}
|
||||
|
||||
echo "<b>";
|
||||
|
||||
if(isset($row_course_leader_deputy) && $row_course_leader_deputy != "")
|
||||
{
|
||||
if(!($row_course_leader_deputy->vorname == "" && $row_course_leader_deputy->nachname == ""))
|
||||
{
|
||||
echo $row_course_leader_deputy->titelpre.' '.$row_course_leader_deputy->vorname.' '.$row_course_leader_deputy->nachname.' '.$row_course_leader_deputy->titelpost;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht definiert";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht definiert";
|
||||
}
|
||||
|
||||
echo "</b><br>";
|
||||
|
||||
if(isset($row_course_leader_deputy) && $row_course_leader_deputy != "")
|
||||
{
|
||||
if($row_course_leader_deputy->uid != "")
|
||||
{
|
||||
echo "<a href=\"mailto:$row_course_leader_deputy->uid@technikum-wien.at\" class=\"Item\">$row_course_leader_deputy->uid@technikum-wien.at</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "E-Mail nicht definiert";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "E-Mail nicht definiert";
|
||||
}
|
||||
|
||||
echo "<br>";
|
||||
echo "Tel.:";
|
||||
|
||||
if(isset($row_course_leader_deputy) && $row_course_leader_deputy != "")
|
||||
{
|
||||
if($row_course_leader_deputy->telefonklappe != "")
|
||||
{
|
||||
echo '01 333 40 77 - '.$row_course_leader_deputy->telefonklappe;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht vorhanden";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht vorhanden";
|
||||
}
|
||||
|
||||
echo "</p>";
|
||||
echo "<p>Sekretariat:</font><font face='Arial, Helvetica, sans-serif' size='2'><br>";
|
||||
//Sektritariat auslesen
|
||||
|
||||
$sql_query = "SELECT * FROM campus.vw_mitarbeiter JOIN tbl_benutzerfunktion using(uid) WHERE studiengang_kz='$course_id' AND funktion_kurzbz='ass'";
|
||||
|
||||
if($result_course_secretary = pg_query($sql_conn, $sql_query))
|
||||
{
|
||||
$num_rows_course_secretary = pg_numrows($result_course_secretary);
|
||||
|
||||
if($num_rows_course_secretary > 0)
|
||||
{
|
||||
$row_course_secretary = pg_fetch_object($result_course_secretary, 0);
|
||||
}
|
||||
}
|
||||
|
||||
echo "<b>";
|
||||
|
||||
if(isset($row_course_secretary) && $row_course_secretary != "")
|
||||
{
|
||||
if(!($row_course_secretary->vorname == "" && $row_course_secretary->nachname == ""))
|
||||
{
|
||||
echo $row_course_secretary->titelpre.' '.$row_course_secretary->vorname.' '.$row_course_secretary->nachname.' '.$row_course_secretary->titelpost;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht definiert";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht definiert";
|
||||
}
|
||||
|
||||
echo "</b><br>";
|
||||
|
||||
if(isset($row_course_secretary) && $row_course_secretary != "")
|
||||
{
|
||||
if($row_course_secretary->uid != "")
|
||||
{
|
||||
echo "<a href=\"mailto:$row_course_secretary->uid@technikum-wien.at\" class=\"Item\">$row_course_secretary->uid@technikum-wien.at</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "E-Mail nicht definiert";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "E-Mail nicht definiert";
|
||||
}
|
||||
|
||||
echo "<br>";
|
||||
echo "Tel.:";
|
||||
|
||||
if(isset($row_course_secretary) && $row_course_secretary != "")
|
||||
{
|
||||
if($row_course_secretary->telefonklappe != "")
|
||||
{
|
||||
echo '01 333 40 77 - '.$row_course_secretary->telefonklappe;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht vorhanden";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Nicht vorhanden";
|
||||
}
|
||||
|
||||
echo "<p>Studentenvertreter:</font><font face='Arial, Helvetica, sans-serif' size='2'><br>";
|
||||
|
||||
$sql_query = "SELECT * FROM campus.vw_benutzer JOIN tbl_benutzerfunktion using(uid) WHERE studiengang_kz='$course_id' AND funktion_kurzbz='stdv'";
|
||||
|
||||
if($result_course_stdv = pg_query($sql_conn, $sql_query))
|
||||
{
|
||||
$num_rows_course_stdv = pg_numrows($result_course_stdv);
|
||||
|
||||
if($num_rows_course_stdv > 0)
|
||||
{
|
||||
while($row_stdv = pg_fetch_object($result_course_stdv))
|
||||
{
|
||||
echo "<a href='mailto:".$row_stdv->uid."@technikum-wien.at'>$row_stdv->titelpre $row_stdv->vorname $row_stdv->nachname $row->titelpost</a><br>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<b>Nicht vorhanden</b>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<table border="0" width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<?php
|
||||
$dest_dir = dir('../../../documents/'.strtolower($short).'/lehrziele');
|
||||
|
||||
if(!is_dir($dest_dir->path))
|
||||
{
|
||||
if(!is_dir('../../../documents/'.strtolower($short)))
|
||||
exec('mkdir -m 775 "../../../documents/'.strtolower($short).'"');
|
||||
exec('mkdir -m 775 "../../../documents/'.strtolower($short).'/lehrziele"');
|
||||
chgrp('../../../documents/'.strtolower($short).'/lehrziele', teacher);
|
||||
}
|
||||
|
||||
if($dest_dir)
|
||||
{
|
||||
$dir_empty = true;
|
||||
|
||||
while($entry = $dest_dir->read())
|
||||
{
|
||||
if($entry != "." && $entry != "..")
|
||||
{
|
||||
$dir_empty = false;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($dir_empty) && $dir_empty == false)
|
||||
{
|
||||
echo '<img src="../../../skin/images/seperator.gif"> <a href="'.$dest_dir->path.'/" class="Item" target="_blank">Lehrziele</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<img src="../../../skin/images/seperator.gif"> Lehrziele';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<?php
|
||||
$dest_dir = dir('../../../documents/'.strtolower($short).'/allgemeiner_download');
|
||||
|
||||
if(!is_dir($dest_dir->path))
|
||||
{
|
||||
if(!is_dir('../../../documents/'.strtolower($short)))
|
||||
exec('mkdir -m 775 "../../../documents/'.strtolower($short).'"');
|
||||
exec('mkdir -m 775 "../../../documents/'.strtolower($short).'/allgemeiner_download"');
|
||||
chgrp('../../../documents/'.strtolower($short).'/allgemeiner_download', teacher);
|
||||
}
|
||||
|
||||
if($dest_dir)
|
||||
{
|
||||
$dir_empty = true;
|
||||
|
||||
while($entry = $dest_dir->read())
|
||||
{
|
||||
if($entry != "." && $entry != "..")
|
||||
{
|
||||
$dir_empty = false;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($dir_empty) && $dir_empty == false)
|
||||
{
|
||||
echo '<img src="../../../skin/images/seperator.gif"> <a href="'.$dest_dir->path.'/" class="Item" target="_blank">Allgemeiner Download</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<img src="../../../skin/images/seperator.gif"> Allgemeiner Download';
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<?php
|
||||
echo '<img src="../../../skin/images/seperator.gif"> <a href="news://cis.technikum-wien.at/'.strtolower($short).'" class="Item" target="_blank">Newsgroups</a>';
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/gruppe.class.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/benutzer.class.php');
|
||||
require_once('../../include/student.class.php');
|
||||
require_once('../../include/lehrverband.class.php');
|
||||
|
||||
writeCISlog('START');
|
||||
if(!$conn=pg_pconnect(CONN_STRING))
|
||||
{
|
||||
writeCISlog('STOP');
|
||||
die("Fehler beim Herstellen der DB Connection");
|
||||
}
|
||||
|
||||
$user=get_uid();
|
||||
|
||||
$is_lector=check_lektor($user,$conn);
|
||||
?>
|
||||
<!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 = "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 border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="10"> </td>
|
||||
<td>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width ="690" class="ContentHeader"><font class="ContentHeader"> Kommunikation - Mailverteiler</font></td>
|
||||
</tr>
|
||||
</table><br><br>
|
||||
<strong><font color="#ff0000">Hinweis: </font></strong>Diese Verteiler dürfen nur für Fachhochschul-relevante Zwecke verwendet werden!
|
||||
<br>
|
||||
<strong><font color="#ff0000">Info: </font></strong>Infos bezüglich <a href="Mailverteiler.pdf" target="_blank">Berechtigungskonzept</a> Mailverteiler, <a href="bedienung_mailverteiler.pdf" target="_blank">Bedienungsanleitung</a> Mailverteiler
|
||||
<br>
|
||||
<?php
|
||||
$stg_obj = new studiengang($conn);
|
||||
if(!$stg_obj->getAll('studiengang_kz'))
|
||||
echo $stg_obj->errormsg;
|
||||
|
||||
foreach($stg_obj->result as $row)
|
||||
{
|
||||
// Kopfzeile hinausschreiben
|
||||
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
|
||||
echo "<tr><td> </td></tr>";
|
||||
echo "<tr>";
|
||||
echo " <td width=\"390\" class=\"ContentHeader2\">";
|
||||
echo " $row->kurzbzlang - $row->bezeichnung<a name=\"$row->studiengang_kz\"> </a></td>";
|
||||
echo " <td width=\"20\"class=\"ContentHeader2\"> </td>";
|
||||
echo " <td width=\"200\"class=\"ContentHeader2\"> </td>";
|
||||
echo " <td width=\"100\"class=\"ContentHeader2\" align=\"right\"><a class=\"Item2\" href=\"mailverteiler.php#\">top </a></td>";
|
||||
echo " </tr>";
|
||||
echo "<tr><td> </td></tr>\n";
|
||||
|
||||
// Verteiler Normal
|
||||
$grp_obj = new gruppe($conn);
|
||||
if(!$grp_obj->getgruppe($row->studiengang_kz, null, true, true))
|
||||
echo $grp_obj->errormsg;
|
||||
|
||||
foreach($grp_obj->result as $row1)
|
||||
{
|
||||
echo "<tr>";
|
||||
echo " <td width=\"390\" >• $row1->beschreibung</td>";
|
||||
|
||||
// LINK for opening a closed mail dispatcher
|
||||
// display the open-link only when its a closed dispatcher and if the user has status lector
|
||||
// if dispatcher has attribute aktiv=true no opening action is needed
|
||||
echo "<td width=\"20\">";
|
||||
if(!$row1->aktiv)
|
||||
{
|
||||
if($is_lector)
|
||||
{
|
||||
/* open a popup containing the final dispatcher address */
|
||||
echo '<a href="#" onClick="javascript:window.open(\'open_grp.php?grp='.strtolower($row1->gruppe_kurzbz).'&desc='.$row1->beschreibung.'\',\'_blank\',\'width=500,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes\');return false;" class="Item"><img src="../../../skin/images/open.gif" title="Verteiler öffnen"></a>';
|
||||
echo "</td>";
|
||||
echo " <td width='200'>";
|
||||
echo "<a href='mailto:".$row1->gruppe_kurzbz."@technikum-wien.at' class='Item'>".strtolower($row1->gruppe_kurzbz)."@technikum-wien.at</a></td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "</td>";
|
||||
echo " <td width='200'>";
|
||||
//echo "".$row1->mail."@technikum-wien.at</td>";
|
||||
echo "gesperrt</td>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "</td>";
|
||||
echo " <td width='200'>";
|
||||
echo "<a href='mailto:".strtolower($row1->gruppe_kurzbz)."@technikum-wien.at' class='Item'>".strtolower($row1->gruppe_kurzbz)."@technikum-wien.at</a></td>";
|
||||
}
|
||||
|
||||
if(strtolower($row1->gruppe_kurzbz)=='tw_std')
|
||||
echo '<td width=\"100\" align="right"> </td>';
|
||||
else
|
||||
echo ' <td width=\"100\" align="right"><a href="#" onClick="javascript:window.open(\'pers_in_grp.php?grp='.$row1->gruppe_kurzbz.'\',\'_blank\',\'width=600,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes\');return false;" class="Item">Personen</a>';
|
||||
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
|
||||
//StudentenListe Rausschreiben
|
||||
if($row->studiengang_kz!=0) //0 ist für ganzes TW
|
||||
{
|
||||
// ffe, 20060508: Display the opening link for department dispatchers only for students of the particular department
|
||||
$std_obj = new student($conn, $user);
|
||||
|
||||
$qry_stud = "SELECT count(*) as anzahl FROM campus.vw_student WHERE studiengang_kz='$row->studiengang_kz'";
|
||||
|
||||
if(!$row_stud=pg_fetch_object(pg_query($conn, $qry_stud)))
|
||||
echo 'Fehler beim laden der Studenten';
|
||||
|
||||
if($row_stud->anzahl>0)
|
||||
{
|
||||
echo "<tr><td width=\"390\" >• Alle Studenten dieses Studiengangs</td>";
|
||||
|
||||
// ffe, 20060508: Display the opening link for department dispatchers only for students of the particular department
|
||||
if($is_lector || $std_obj->studiengang_kz==$row->studiengang_kz)
|
||||
{
|
||||
echo " <td width=\"20\">";
|
||||
echo '<a href="#" onClick="javascript:window.open(\'open_grp.php?grp='.strtolower($row->kurzbz).'_std&desc=Alle Studenten von '.strtolower($row->kurzbz).'\',\'_blank\',\'width=600,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes\');return false;" class="Item"><img src="../../skin/images/open.gif" title="Verteiler öffnen"></a></td>';
|
||||
/* open a popup containing the final dispatcher address */
|
||||
echo " <td width=\"200\" ><a href=\"mailto:".strtolower($row->kurzbz)."_std@technikum-wien.at\" class=\"Item\">".strtolower($row->kurzbz)."_std@technikum-wien.at</a></td>";
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <td width=\"20\"> </td>";
|
||||
//echo " <td width=\"200\" ><a href=\"mailto:".strtolower($row->kurzbz)."_std@technikum-wien.at\" class=\"Item\">".strtolower($row->kurzbz)."_std@technikum-wien.at</a></td>";
|
||||
echo " <td width=\"200\" >gesperrt</td>";
|
||||
}
|
||||
|
||||
echo ' <td width=\"100\" align="right"><a href="#" onClick="javascript:window.open(\'stud_in_grp.php?kz='.$row->studiengang_kz.'&all=true\',\'_blank\',\'width=600,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes\');return false;" class="Item">Personen</a>';
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "\n";
|
||||
echo '<tr><td><a href="#" onClick="return(js_toggle_container(\''.$row->kurzbzlang.'\'));" class="Item">• Studentenverteiler</a>';
|
||||
echo '</td></tr></table>';
|
||||
echo '<table border="0" cellspacing="0" cellpadding="0" id="'.$row->kurzbzlang.'" style="display: none">';
|
||||
|
||||
//$sql_query1 = "SELECT DISTINCT semester FROM public.tbl_student where studiengang_kz ='$row->studiengang_kz' AND uid NOT LIKE '_dummy%' ORDER BY semester";
|
||||
$lv_obj = new lehrverband($conn);
|
||||
$lv_obj->getlehrverband($row->studiengang_kz);
|
||||
|
||||
$zeilenzaehler=0;
|
||||
echo "\n";
|
||||
foreach($lv_obj->result as $row1)
|
||||
{
|
||||
if((!is_null($row1->semester)) AND ($row1->semester != "") AND ($row1->semester<'10'))
|
||||
{
|
||||
$qry_cnt = "SELECT count(*) as anzahl FROM campus.vw_student WHERE studiengang_kz='$row1->studiengang_kz' AND semester='$row1->semester'";
|
||||
if(trim($row1->verband)!='')
|
||||
$qry_cnt .= " AND verband='$row1->verband'";
|
||||
if(trim($row1->gruppe)!='')
|
||||
$qry_cnt .= " AND gruppe='$row1->gruppe'";
|
||||
|
||||
if($row_cnt = pg_fetch_object(pg_query($conn, $qry_cnt)))
|
||||
{
|
||||
if($row_cnt->anzahl>0)
|
||||
{
|
||||
$param = "kz=".$row->studiengang_kz."&sem=".$row1->semester;
|
||||
$strhelp = strtolower($row->kurzbz.$row1->semester.$row1->verband.$row1->gruppe);
|
||||
echo "<tr>\n";
|
||||
echo " <td width=\"390\"> • Semester $row1->semester";
|
||||
if(trim($row1->verband)!='')
|
||||
{
|
||||
$param .="&verband=$row1->verband";
|
||||
echo " Verband $row1->verband";
|
||||
}
|
||||
if(trim($row1->gruppe)!='')
|
||||
{
|
||||
$param .="&grp=$row1->gruppe";
|
||||
echo " Gruppe $row1->gruppe";
|
||||
}
|
||||
echo "</td>";
|
||||
echo " <td width='20'></td>";
|
||||
echo " <td width=\"200\"><a href='mailto:$strhelp@technikum-wien.at' class=\"Item\">$strhelp@technikum-wien.at</a></td>";
|
||||
echo " <td width=\"100\" align=\"right\"><a class=\"Item\" href=\"#\" onClick='javascript:window.open(\"stud_in_grp.php?".$param."\",\"_blank\",\"width=600,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes\");return false;'>Personen</a></td>";
|
||||
echo "</tr>";
|
||||
$zeilenzaehler++;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($zeilenzaehler==0)
|
||||
{
|
||||
echo "<tr><td>Keine Verteiler vorhanden</td></tr>";
|
||||
}
|
||||
$zeilenzaehler=0;
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
}
|
||||
echo "</table>";
|
||||
?>
|
||||
</td>
|
||||
<td with="10">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
//Menue oeffnen wenn kurzbz uebergeben wird
|
||||
if(isset($_GET['kbzl']) AND $_GET['kbzl']!='')
|
||||
{
|
||||
echo "<script language='javascript'>
|
||||
js_toggle_container('".$_GET['kbzl']."');
|
||||
</script>";
|
||||
}
|
||||
writeCISlog('STOP');
|
||||
?>
|
||||
</body></html>
|
||||
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
function mail_id_generator()
|
||||
{
|
||||
mt_srand((double)microtime()*1000000);
|
||||
|
||||
/* Laenge des Passwortes dem Zufall ueberlassen */
|
||||
$length = 6; //mt_rand(6, 6);
|
||||
$fix_similar = '';
|
||||
$valid_charset = "";
|
||||
|
||||
/* Stelle ein Charset zusammen */
|
||||
if (!$valid_charset)
|
||||
{
|
||||
// deactivated, regarding an case sensitive issue
|
||||
//$valid_charset .= 'ABCDEFGHIJKLMNOPQRSTUVXYZ';
|
||||
$valid_charset .= 'abcdefghijklmnopqrstuvxyz';
|
||||
$valid_charset .= '0123456789';
|
||||
//$valid_charset .= '!@_-';
|
||||
}
|
||||
|
||||
$charset_length = strlen($valid_charset);
|
||||
|
||||
if ($charset_length == 0) return false;
|
||||
|
||||
/* Initialisieren - Auswahl von chars bis definierte Anzahl erreicht */
|
||||
$mail_id = "";
|
||||
while(strlen($mail_id) < $length)
|
||||
{
|
||||
/* Waehle einen zufaelligen char aus */
|
||||
$char = $valid_charset[mt_rand(0, ($charset_length-1))];
|
||||
|
||||
/* Abgleich von gleich aussehenden chars */
|
||||
if (($fix_similar && !strpos('O01lI5S', $char)) || !$fix_similar) $mail_id .= $char;
|
||||
}
|
||||
return $mail_id;
|
||||
}
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
/* ffe, 20051020 to stop bored people
|
||||
if(!$conn=pg_pconnect(CONN_STRING))
|
||||
die("Fehler beim Herstellen der DB Verbindung");
|
||||
|
||||
if(!check_lektor($_SERVER["REMOTE_USER"],$conn))
|
||||
{
|
||||
ob_clean();
|
||||
exit();
|
||||
}
|
||||
*/
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<title>Öffnen eines Mailverteilers</title>
|
||||
<body>
|
||||
<?php
|
||||
if(isset($_REQUEST['token']) && isset($_REQUEST['grp']))
|
||||
{
|
||||
?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Mailverteiler</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Status</font></td>
|
||||
</tr>
|
||||
<?php
|
||||
/* Generate an random String */
|
||||
$mail_id=mail_id_generator();
|
||||
|
||||
/* call the shellpart at polyxena */
|
||||
$command = "ssh polyxena sudo /root/bin/mlistin.sh " . $_REQUEST['grp'] . " " . $mail_id . " 2>&1";
|
||||
exec($command);
|
||||
|
||||
/* ffe, 20051020 - do a little logging */
|
||||
$message= date("F j G:i:s") . " mailgroup: [" . $_REQUEST['grp'] . "] (using " . $mail_id . ") requested by [" . $_SERVER['PHP_AUTH_USER'] . "]\n";
|
||||
|
||||
$filet = fopen("../../../system/.htmlistopen.log", "a");
|
||||
fwrite($filet, $message, strlen($message));
|
||||
fclose($filet);
|
||||
|
||||
// for the users
|
||||
echo "
|
||||
<tr>
|
||||
<td><a href='mailto:".$_REQUEST['grp'].$mail_id."@technikum-wien.at'>".$_REQUEST['desc']."</a></td>
|
||||
<td>Geöffnet (Code: ".$mail_id.")</td>
|
||||
</tr>
|
||||
<table>
|
||||
|
||||
<p>Um ein Mail an den Verteiler zu senden klicken Sie bitte auf den obigen Link. Ihr Mailprogramm öffnet automatisch eine Vorlage für ein neues Mail, welche bereits die korrekte Adresse enthält.
|
||||
|
||||
<p>Das Senden ist für den Zeitraum von <b>2 Stunden</b> bzw. für die <b>einmalige</b> Benutzung unter der Adresse <a href='mailto:".$_REQUEST['grp'].$mail_id."@technikum-wien.at'>".$_REQUEST['grp'].$mail_id."@technikum-wien.at</a> möglich.
|
||||
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($_REQUEST['grp']=="")
|
||||
{
|
||||
exit();
|
||||
}
|
||||
else
|
||||
{
|
||||
//Fixed for https
|
||||
//echo"Bitte bestätigen Sie das Öffnen des Verteilers ".$_REQUEST['grp'].": <a href=\"http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']."?grp=".$_REQUEST['grp']."&desc=".$_REQUEST['desc']."&token=1\">Bestätige</a>";
|
||||
echo"Bitte bestätigen Sie das Öffnen des Verteilers ".$_REQUEST['grp'].": <a href=\"".$_SERVER['SCRIPT_NAME']."?grp=".$_REQUEST['grp']."&desc=".$_REQUEST['desc']."&token=1\">Bestätige</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</body></html>
|
||||
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<title>Personen im Mailverteiler</title>
|
||||
<body>
|
||||
<?php
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../config.inc.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim öffnen der Datenbankverbindung');
|
||||
|
||||
$user=get_uid();
|
||||
|
||||
if(check_lektor($user,$conn))
|
||||
$is_lector=true;
|
||||
?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Nachname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Vorname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">E-Mail</font></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
//$sql_query = "SELECT vornamen AS vn,nachname AS nn,a.uid as uid FROM public.tbl_personmailgrp AS a, public.tbl_person AS b WHERE a.uid=b.uid AND a.mailgrp_kurzbz='$grp' ORDER BY nachname";
|
||||
$qry = "SELECT uid, vorname, nachname FROM campus.vw_benutzer WHERE uid IN(SELECT uid FROM tbl_benutzergruppe where gruppe_kurzbz='".addslashes($_GET['grp'])."') ORDER BY nachname, vorname";
|
||||
if($result=pg_query($conn, $qry))
|
||||
{
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
echo "<tr>";
|
||||
echo " <td>$row->nachname</td>";
|
||||
echo " <td>$row->vorname</td>";
|
||||
echo " <td><a href='mailto:$row->uid@technikum-wien.at' class='Item'>$row->uid@technikum-wien.at</a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</body></html>
|
||||
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<title>Personen im Mailverteiler</title>
|
||||
<body>
|
||||
<?php
|
||||
require_once('../config.inc.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim öffnen der Datenbankverbindung');
|
||||
|
||||
if(!isset($_GET['kz']))
|
||||
die('Fehlerhafte parameteruebergabe');
|
||||
?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Nachname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">Vorname</font></td>
|
||||
<td class="ContentHeader"><font class="ContentHeader">E-Mail</font></td>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($_GET['all']))
|
||||
{
|
||||
$qry = "SELECT vorname, nachname, uid FROM campus.vw_student WHERE studiengang_kz='".addslashes($_GET['kz'])."' ORDER BY nachname, vorname";
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = "SELECT vorname, nachname, uid FROM campus.vw_student WHERE studiengang_kz='".addslashes($_GET['kz'])."'";
|
||||
|
||||
if(isset($_GET['sem']))
|
||||
$qry.=" AND semester='".addslashes($_GET['sem'])."'";
|
||||
|
||||
if(isset($_GET['verband']))
|
||||
$qry.=" AND verband='".addslashes($_GET['verband'])."'";
|
||||
|
||||
if(isset($_GET['grp']))
|
||||
$qry.=" AND gruppe='".addslashes($_GET['grp'])."'";
|
||||
|
||||
$qry.= ' ORDER BY nachname, vorname';
|
||||
}
|
||||
|
||||
if($result=pg_query($conn, $qry))
|
||||
{
|
||||
while($row=pg_fetch_object($result))
|
||||
{
|
||||
echo "<tr>";
|
||||
echo " <td>$row->nachname</td>";
|
||||
echo " <td>$row->vorname</td>";
|
||||
echo " <td><a href='mailto:$row->uid@technikum-wien.at' class='Item'>$row->uid@technikum-wien.at</a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
else
|
||||
echo 'Fehler beim Auslesen der Studentendaten';
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user