mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-15 22:12:16 +00:00
This commit is contained in:
+187
-185
@@ -1,186 +1,188 @@
|
||||
<?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/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)
|
||||
{
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!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">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/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>
|
||||
|
||||
<?php
|
||||
echo '<script language="JavaScript" type="text/javascript">';
|
||||
echo ' parent.content.location.href="pinboard.php"';
|
||||
echo '</script>';
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td width="159" class='tdvertical' nowrap>
|
||||
<table class="tabcontent" frame="rhs">
|
||||
<tr>
|
||||
<td class='tdwrap'><a class="HyperItem" href="../../index.html" target="_top"><< HOME</a> </a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$lv_obj = new lehrveranstaltung($sql_conn);
|
||||
if(!$lv_obj->load_lva('0',null, null, true,null,'bezeichnung'))
|
||||
echo "<tr><td>$lv_obj->errormsg</td></tr>";
|
||||
|
||||
foreach($lv_obj->lehrveranstaltungen AS $row)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo ' <td class="tdwrap">';
|
||||
echo " <li><a class=\"Item2\" title=\"".$row->bezeichnung."\" href=\"../lehre/lesson.php?lvid=$row->lehrveranstaltung_id\" target=\"content\">".CutString($row->bezeichnung, 21)."</a></li>";
|
||||
echo ' </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td class='tdwrap'><a class="MenuItem" href="pinboard.php" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Pinboard</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'><a href="anmeldung.php" target='content' class="MenuItem" onClick="js_toggle_container('Anmeldung')"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Anmeldung</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'>
|
||||
<table class="tabcontent" id="Anmeldung" style="display: none;">
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><a class="Item" href="anmeldungsuebersicht.php" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'><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 class='tdwrap'>
|
||||
<table class="tabcontent" id="Info & Kommunikation" style="display: none;">
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><a class="Item" href="../../private/lvplan/" target="_blank"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> LV-Plan</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><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 class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><a class="Item" href="../../public/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 class="tdwrap"><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 class="tdwrap">';
|
||||
echo ' <table class="tabcontent" id="Lektorenbereich" style="display: none;">';
|
||||
echo ' <tr>';
|
||||
echo ' <td class="tdwidth10" nowrap> </td>';
|
||||
echo ' <td class="tdwrap"><a class="Item" href="pinboardverwaltung.php" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Pinboardverwaltung</a></td>';
|
||||
echo ' </tr>';
|
||||
echo ' </table>';
|
||||
echo ' </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
</body>
|
||||
<?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 >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*
|
||||
*/
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/benutzerberechtigung.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)
|
||||
{
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!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">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/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>
|
||||
|
||||
<?php
|
||||
echo '<script language="JavaScript" type="text/javascript">';
|
||||
echo ' parent.content.location.href="pinboard.php"';
|
||||
echo '</script>';
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td width="159" class='tdvertical' nowrap>
|
||||
<table class="tabcontent" frame="rhs">
|
||||
<tr>
|
||||
<td class='tdwrap'><a class="HyperItem" href="../../index.html" target="_top"><< HOME</a> </a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$lv_obj = new lehrveranstaltung($sql_conn);
|
||||
if(!$lv_obj->load_lva('0',null, null, true,null,'bezeichnung'))
|
||||
echo "<tr><td>$lv_obj->errormsg</td></tr>";
|
||||
|
||||
foreach($lv_obj->lehrveranstaltungen AS $row)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo ' <td class="tdwrap">';
|
||||
echo " <li><a class=\"Item2\" title=\"".$row->bezeichnung."\" href=\"../lehre/lesson.php?lvid=$row->lehrveranstaltung_id\" target=\"content\">".CutString($row->bezeichnung, 21)."</a></li>";
|
||||
echo ' </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td class='tdwrap'><a class="MenuItem" href="pinboard.php" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Pinboard</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'><a href="anmeldung.php" target='content' class="MenuItem" onClick="js_toggle_container('Anmeldung')"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Anmeldung</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'>
|
||||
<table class="tabcontent" id="Anmeldung" style="display: none;">
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><a class="Item" href="anmeldungsuebersicht.php" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdwrap'><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 class='tdwrap'>
|
||||
<table class="tabcontent" id="Info & Kommunikation" style="display: none;">
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><a class="Item" href="../../private/lvplan/" target="_blank"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> LV-Plan</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><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 class="tdwidth10" nowrap> </td>
|
||||
<td class='tdwrap'><a class="Item" href="../../public/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 class="tdwrap"><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 class="tdwrap">';
|
||||
echo ' <table class="tabcontent" id="Lektorenbereich" style="display: none;">';
|
||||
echo ' <tr>';
|
||||
echo ' <td class="tdwidth10" nowrap> </td>';
|
||||
echo ' <td class="tdwrap"><a class="Item" href="pinboardverwaltung.php" target="content"><img src="../../../skin/images/menu_item.gif" width="7" height="9"> Pinboardverwaltung</a></td>';
|
||||
echo ' </tr>';
|
||||
echo ' </table>';
|
||||
echo ' </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,109 +1,111 @@
|
||||
<?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/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die("Fehler beim oeffnen der Datenbankverbindung");
|
||||
|
||||
|
||||
function print_news($sql_conn)
|
||||
{
|
||||
$news_obj = new news($sql_conn);
|
||||
$news_obj->getnews(MAXNEWSALTER,'0','0', false, null, MAXNEWS);
|
||||
$open=true;
|
||||
$zaehler=0;
|
||||
echo "<div id='news'>";
|
||||
foreach ($news_obj->result as $row)
|
||||
{
|
||||
$zaehler++;
|
||||
if($row->datum!='')
|
||||
$datum = date('d.m.Y',strtotime(strftime($row->datum)));
|
||||
else
|
||||
$datum='';
|
||||
|
||||
echo '<div class="news">';
|
||||
//if($row->semester == '')
|
||||
//{
|
||||
echo '
|
||||
<div class="titel">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="60%" align="left">'.$row->betreff.'</td>
|
||||
<!--<td width="30%" align="center"></td>-->
|
||||
<td width="30%" align="right" style="display: '.($open?'none':'block').'" id="'.$zaehler.'Mehr" ><a href="#" class="Item" onclick="return show(\''.$zaehler.'\')">mehr >></a></td>
|
||||
<td width="30%" align="right" style="display: '.($open?'block':'none').'" id="'.$zaehler.'Verfasser">'.$row->verfasser.' <span style="font-weight: normal">( '.$datum.' )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="text" style="display: '.($open?'block':'none').';" id="'.$zaehler.'Text">
|
||||
'.str_replace("../../skin","../../../skin","$row->text").'
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
';
|
||||
/*if($row->semester == 0)
|
||||
{
|
||||
echo '<tr><td class="ContentHeader2"><p><small>'.$datum.' - '.$row->verfasser.' - [Allgemein]</small><br><b>'.$row->betreff.'</b><br></td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr><td class="ContentHeader2"><p><small>'.$datum.' - '.$row->verfasser.' - </small><br><b>'.$row->betreff.'</b><br></td></tr>';
|
||||
}
|
||||
|
||||
echo "<tr><td class='MarkLine'>".str_replace("../../skin","../../../skin","$row->text")."</p></td></tr>";*/
|
||||
}
|
||||
echo "</div>";
|
||||
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=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader" width="70%"><font class="ContentHeader"> Pinboard</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><?php print_news($sql_conn); ?></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
<?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 >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*
|
||||
*/
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die("Fehler beim oeffnen der Datenbankverbindung");
|
||||
|
||||
|
||||
function print_news($sql_conn)
|
||||
{
|
||||
$news_obj = new news($sql_conn);
|
||||
$news_obj->getnews(MAXNEWSALTER,'0','0', false, null, MAXNEWS);
|
||||
$open=true;
|
||||
$zaehler=0;
|
||||
echo "<div id='news'>";
|
||||
foreach ($news_obj->result as $row)
|
||||
{
|
||||
$zaehler++;
|
||||
if($row->datum!='')
|
||||
$datum = date('d.m.Y',strtotime(strftime($row->datum)));
|
||||
else
|
||||
$datum='';
|
||||
|
||||
echo '<div class="news">';
|
||||
//if($row->semester == '')
|
||||
//{
|
||||
echo '
|
||||
<div class="titel">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="60%" align="left">'.$row->betreff.'</td>
|
||||
<!--<td width="30%" align="center"></td>-->
|
||||
<td width="30%" align="right" style="display: '.($open?'none':'block').'" id="'.$zaehler.'Mehr" ><a href="#" class="Item" onclick="return show(\''.$zaehler.'\')">mehr >></a></td>
|
||||
<td width="30%" align="right" style="display: '.($open?'block':'none').'" id="'.$zaehler.'Verfasser">'.$row->verfasser.' <span style="font-weight: normal">( '.$datum.' )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="text" style="display: '.($open?'block':'none').';" id="'.$zaehler.'Text">
|
||||
'.mb_ereg_replace("../../skin","../../../skin","$row->text").'
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
';
|
||||
/*if($row->semester == 0)
|
||||
{
|
||||
echo '<tr><td class="ContentHeader2"><p><small>'.$datum.' - '.$row->verfasser.' - [Allgemein]</small><br><b>'.$row->betreff.'</b><br></td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr><td class="ContentHeader2"><p><small>'.$datum.' - '.$row->verfasser.' - </small><br><b>'.$row->betreff.'</b><br></td></tr>';
|
||||
}
|
||||
|
||||
echo "<tr><td class='MarkLine'>".str_replace("../../skin","../../../skin","$row->text")."</p></td></tr>";*/
|
||||
}
|
||||
echo "</div>";
|
||||
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=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader" width="70%"><font class="ContentHeader"> Pinboard</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><?php print_news($sql_conn); ?></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,255 +1,248 @@
|
||||
<?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>.
|
||||
*/
|
||||
mb_internal_encoding("UTF-8");
|
||||
mb_regex_encoding("UTF-8");
|
||||
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
else
|
||||
die('Sie haben keine Berechtigung fuer diesen Bereich');
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<?php
|
||||
if(isset($news_submit) && (!isset($message_sent) || $message_sent == "no"))
|
||||
{
|
||||
$author = chop($_POST['txtAuthor']);
|
||||
$title = chop($_POST['txtTitle']);
|
||||
$datum = $_POST['datum'];
|
||||
$news_message = chop(str_replace("\r\n", "<br>", $txtNewsMessage));
|
||||
|
||||
if($author != "" && $title != "" && $news_message != "")
|
||||
{
|
||||
$news_obj = new news($sql_conn);
|
||||
|
||||
$news_obj->verfasser = $author;
|
||||
$news_obj->uid = $user;
|
||||
$news_obj->studiengang_kz = '0';
|
||||
|
||||
$news_obj->semester = '0';
|
||||
$news_obj->betreff = $title;
|
||||
$news_obj->text = $news_message;
|
||||
$news_obj->datum = $datum;
|
||||
$news_obj->datum_bis = $datum_bis;
|
||||
$news_obj->updatevon = $user;
|
||||
|
||||
if(isset($news_id) && $news_id != "")
|
||||
{
|
||||
$news_obj->new=false;
|
||||
$news_obj->news_id = $news_id;
|
||||
}
|
||||
else
|
||||
$news_obj->new=true;
|
||||
|
||||
if($news_obj->save())
|
||||
{
|
||||
echo '<script language="JavaScript" type="text/javascript">';
|
||||
echo " document.location.href = 'pinboard_entry.php?&message_sent=yes';";
|
||||
echo '</script>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $news_obj->errormsg;
|
||||
//echo "<script language=\"JavaScript\">";
|
||||
//echo " document.location.href = 'pinboard_entry.php?&message_sent=no';";
|
||||
//echo "</script>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " document.location.href = 'pinboard_entry.php?message_sent=no';";
|
||||
echo "</script>";
|
||||
}
|
||||
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function focusFirstElement()
|
||||
{
|
||||
if(document.NewsEntry.txtAuthor != null)
|
||||
{
|
||||
document.NewsEntry.txtAuthor.focus();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " parent.news_window.location.href = 'pinboard_show.php'";
|
||||
echo "</script>";
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body onLoad="focusFirstElement();">
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><form method="post" name="NewsEntry">
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader"> Lektorenbereich - Pinboardverwaltung</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
|
||||
if(isset($message_sent) && $message_sent == "yes")
|
||||
{
|
||||
if(isset($changed) && $changed == "yes")
|
||||
{
|
||||
echo " <td>";
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " parent.news_window.location.href = 'pinboard_show.php'";
|
||||
echo "</script>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo " <td> </td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo " <td><font class=\"h3\">Die Nachricht wurde erfolgreich geändert!</font></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <td>";
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " parent.news_window.location.href = 'pinboard_show.php'";
|
||||
echo "</script>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo " <td> </td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo " <td><font class=\"h3\">Die Neuigkeit wurde erfolgreich eingetragen!</font></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
exit;
|
||||
}
|
||||
else if(isset($message_sent) && $message_sent == "no")
|
||||
{
|
||||
echo "<td> </td>";
|
||||
echo "</tr>";
|
||||
echo " <td><font class=\"h3\">Die Neuigkeit wurde nicht eingetragen!</font><br>";
|
||||
echo "<font class=\"h3\">Es wurden nicht alle erforderlichen Felder ausgefüllt.</font></td>";
|
||||
echo "</tr>";
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
echo '<td class="ContentHeader2"> ';
|
||||
|
||||
if(isset($news_id) && $news_id != "")
|
||||
{
|
||||
$news_obj = new news($sql_conn, $news_id);
|
||||
|
||||
$verfasser = $news_obj->verfasser;
|
||||
$betreff = $news_obj->betreff;
|
||||
$text = $news_obj->text;
|
||||
$datum = $news_obj->datum;
|
||||
$datum_bis = $news_obj->datum_bis;
|
||||
|
||||
echo 'Eintrag ändern';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Neuen Eintrag erstellen';
|
||||
}
|
||||
|
||||
echo '</td>';
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td width="65">Verfasser:</td>
|
||||
<td width="218"><input type="text" class="TextBox" name="txtAuthor" size="30"<?php if(isset($news_id) && $news_id != "") echo ' value="'.$verfasser.'"'; ?>>
|
||||
</td>
|
||||
<td width="80">Sichtbar ab</td>
|
||||
<td><input type="text" class="TextBox" name="datum" size="10" value="<?php if(isset($news_id) && $news_id != "") echo date('d.m.Y',strtotime(strftime($datum))); else echo date('d.m.Y'); ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Titel:</td>
|
||||
<td><input type="text" class="TextBox" name="txtTitle" size="30"<?php if(isset($news_id) && $news_id != "") echo ' value="'.$betreff.'"'; ?>></td>
|
||||
<td width="80">Sichtbar bis</td>
|
||||
<td><input type="text" class="TextBox" name="datum_bis" size="10" value="<?php if(isset($news_id) && $news_id != "" && $datum_bis!='') echo date('d.m.Y',strtotime(strftime($datum_bis))); else echo ''; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>Bitte geben Sie hier Ihre Nachricht ein:</td>
|
||||
<td colspan='2'><strong><font class="error">Hinweis:</font></strong>
|
||||
Bitte beachten Sie, dass im Titel auch das jeweilige Freifach genannt wird.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="TextBox" style="width: 99%; heigth: 166px" name="txtNewsMessage" rows="10" cols="70" maxlength="2000"><?php if(isset($news_id) && $news_id != "") echo mb_ereg_replace("<br>", "\r\n", $text); ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<input type="hidden" name="news_submit">
|
||||
<input type="submit" name="btnSend" value="Abschicken">
|
||||
<?php
|
||||
if(isset($news_id) && $news_id != "")
|
||||
{
|
||||
echo "<input type=\"reset\" name=\"btnCancel\" value=\"Abbrechen\" onClick=\"document.location.href='pinboard_entry.php';\"></td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<input type="reset" name="btnCancel" value="Zurücksetzen" onClick="document.NewsEntry.txtAuthor.focus();"></td>';
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</form></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
<?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 >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*
|
||||
*/
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
else
|
||||
die('Sie haben keine Berechtigung fuer diesen Bereich');
|
||||
|
||||
|
||||
// POST/GET Parameter uebernehmen
|
||||
if (isset($_GET))
|
||||
{
|
||||
while (list ($tmp_key, $tmp_val) = each($_GET))
|
||||
{
|
||||
$$tmp_key=$tmp_val;
|
||||
}
|
||||
}
|
||||
if (isset($_POST))
|
||||
{
|
||||
while (list ($tmp_key, $tmp_val) = each($_POST))
|
||||
{
|
||||
$$tmp_key=$tmp_val;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($btnCancel))
|
||||
{
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " document.location.href = 'pinboard_entry.php?message_sent=no';";
|
||||
echo "</script>";
|
||||
exit;
|
||||
}
|
||||
|
||||
if(isset($btnSend))
|
||||
{
|
||||
$author = chop($_POST['txtAuthor']);
|
||||
$title = chop($_POST['txtTitle']);
|
||||
$datum = $_POST['datum'];
|
||||
$news_message = chop($_POST['txtNewsMessage']);
|
||||
if($author != "" && $title != "" && $news_message != "")
|
||||
{
|
||||
$news_message = mb_ereg_replace("\r\n", "<br>", $news_message);
|
||||
|
||||
$news_obj = new news($sql_conn);
|
||||
|
||||
$news_obj->verfasser = $author;
|
||||
$news_obj->uid = $user;
|
||||
$news_obj->studiengang_kz = '0';
|
||||
|
||||
$news_obj->semester = '0';
|
||||
$news_obj->betreff = $title;
|
||||
$news_obj->text = $news_message;
|
||||
$news_obj->datum = $datum;
|
||||
$news_obj->datum_bis = $datum_bis;
|
||||
$news_obj->updatevon = $user;
|
||||
|
||||
if(isset($news_id) && $news_id != "")
|
||||
{
|
||||
$news_obj->new=false;
|
||||
$news_obj->news_id = $news_id;
|
||||
}
|
||||
else
|
||||
$news_obj->new=true;
|
||||
|
||||
if(!$news_obj->save())
|
||||
exit($news_obj->errormsg);
|
||||
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " parent.news_window.location.href = 'pinboard_show.php'";
|
||||
echo "</script>";
|
||||
|
||||
if(!$news_obj->new)
|
||||
{
|
||||
echo " <h3>Die Nachricht wurde erfolgreich geändert!</h3>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <h3>Die Neuigkeit wurde erfolgreich eingetragen!</h3>";
|
||||
}
|
||||
#exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$message_sent="no";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
<!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">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function focusFirstElement()
|
||||
{
|
||||
if(document.NewsEntry.txtAuthor != null)
|
||||
{
|
||||
document.NewsEntry.txtAuthor.focus();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="focusFirstElement();">
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td>
|
||||
|
||||
<form method="post" name="NewsEntry" accept-charset="UTF-8" action="<?php echo $_SERVER['PHP_SELF'];?>" enctype="application/x-www-form-urlencoded">
|
||||
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader"> Lektorenbereich - Pinboardverwaltung</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
echo '<td class="ContentHeader2"> ';
|
||||
if(isset($news_id) && $news_id != "")
|
||||
{
|
||||
$news_obj = new news($sql_conn, $news_id);
|
||||
$verfasser = $news_obj->verfasser;
|
||||
$betreff = $news_obj->betreff;
|
||||
$text = $news_obj->text;
|
||||
$text=mb_ereg_replace("<br>","\r\n", $text);
|
||||
|
||||
$datum = $news_obj->datum;
|
||||
$datum = date('d.m.Y',strtotime(strftime($datum)));
|
||||
|
||||
$datum_bis = $news_obj->datum_bis;
|
||||
if ($datum_bis!='')
|
||||
$datum_bis=date('d.m.Y',strtotime(strftime($datum_bis)));
|
||||
echo 'Eintrag ändern';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Neuen Eintrag erstellen';
|
||||
$verfasser = '';
|
||||
$betreff = '';
|
||||
$text = '';
|
||||
$datum = date('d.m.Y');
|
||||
$datum_bis = '';
|
||||
}
|
||||
echo '</td>';
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
if (isset($message_sent) && $message_sent=="no")
|
||||
{
|
||||
echo '<tr><td>Es wurden nicht alle Felder eingegeben!</td></tr>';
|
||||
$verfasser = (isset($_POST['txtAuthor'])?$_POST['txtAuthor']:'');
|
||||
$betreff = (isset($_POST['txtTitle'])?$_POST['txtTitle']:'');
|
||||
$text = (isset($_POST['txtNewsMessage'])?$_POST['txtNewsMessage']:'');
|
||||
$datum = (isset($_POST['datum'])?$_POST['datum']:date('d.m.Y'));
|
||||
$datum_bis = (isset($_POST['datum_bis'])?$_POST['datum_bis']:'');
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td width="65">Verfasser:</td>
|
||||
<td width="218"><input type="text" class="TextBox" name="txtAuthor" size="30" value="<?php echo $verfasser; ?>">
|
||||
</td>
|
||||
<td width="80">Sichtbar ab</td>
|
||||
<td><input type="text" class="TextBox" name="datum" size="10" value="<?php echo $datum; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Titel:</td>
|
||||
<td><input type="text" class="TextBox" name="txtTitle" size="30" value="<?php echo $betreff; ?>"></td>
|
||||
<td width="80">Sichtbar bis</td>
|
||||
<td><input type="text" class="TextBox" name="datum_bis" size="10" value="<?php echo $datum_bis; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>Bitte geben Sie hier Ihre Nachricht ein:</td>
|
||||
<td colspan='2'><strong><font class="error">Hinweis:</font></strong>
|
||||
Bitte beachten Sie, dass im Titel auch das jeweilige Freifach genannt wird.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="TextBox" style="width: 99%; heigth: 166px" name="txtNewsMessage" rows="10" cols="70" maxlength="2000"><?php echo $text; ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<input type="hidden" name="news_id" value="<?php echo (isset($news_id)?$news_id:'');?>" >
|
||||
<input type="hidden" name="news_submit" value="1" >
|
||||
<input type="submit" name="btnSend" value="Abschicken">
|
||||
<?php
|
||||
if(isset($news_id) && $news_id != "")
|
||||
{
|
||||
echo "<input type=\"reset\" name=\"btnCancel\" value=\"Abbrechen\" onClick=\"document.location.href='pinboard_entry.php';\"></td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<input type="reset" name="btnCancel" value="Zurücksetzen" onClick="document.NewsEntry.txtAuthor.focus();"></td>';
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</form></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,139 +1,154 @@
|
||||
<?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/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
|
||||
if($is_lector)
|
||||
{
|
||||
if(isset($remove_id) && $remove_id != "")
|
||||
{
|
||||
$news_obj = new news($sql_conn);
|
||||
if($news_obj->delete($remove_id))
|
||||
{
|
||||
writeCISlog('DELETE PINBOARD','');
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " document.location.href = 'pinboard_show.php'";
|
||||
echo "</script>";
|
||||
}
|
||||
else
|
||||
echo 'Fehler beim loeschen'.$news_obj->errormsg;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
die('Sie haben keine Berechtigung fuer diesen Bereich');
|
||||
?>
|
||||
<!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">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function deleteEntry(id)
|
||||
{
|
||||
if(confirm("Soll dieser Eintrag wirklich gelöscht werden?") == true)
|
||||
{
|
||||
document.location.href = 'pinboard_show.php?remove_id=' + id;
|
||||
}
|
||||
}
|
||||
|
||||
function editEntry(id)
|
||||
{
|
||||
parent.news_entry.location.href = 'pinboard_entry.php?news_id=' + id;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="tabcontent">
|
||||
<?php
|
||||
$news_obj = new news($sql_conn);
|
||||
$news_obj->getnews(MAXNEWSALTER,'0','0',true, null, MAXNEWS);
|
||||
|
||||
$zaehler =0;
|
||||
$i=0;
|
||||
foreach($news_obj->result as $row)
|
||||
{
|
||||
$i++;
|
||||
$zaehler++;
|
||||
echo "<tr>";
|
||||
|
||||
if($i % 2 != 0)
|
||||
echo '<td class="MarkLine">';
|
||||
else
|
||||
echo '<td>';
|
||||
|
||||
if($row->datum!='')
|
||||
$datum = date('d.m.Y',strtotime(strftime($row->datum)));
|
||||
else
|
||||
$datum='';
|
||||
|
||||
echo ' <table class="tabcontent">';
|
||||
echo ' <tr>';
|
||||
echo ' <td class="tdwrap">';
|
||||
echo ' <small>'.$datum.' - '.$row->verfasser.'</small>';
|
||||
echo ' </td>';
|
||||
echo ' <td align="right" class="tdwrap">';
|
||||
echo ' <a onClick="editEntry('.$row->news_id.');">Editieren</a>, <a onClick="deleteEntry('.$row->news_id.');">Löschen</a>';
|
||||
echo ' </td>';
|
||||
echo ' </tr>';
|
||||
echo ' </table>';
|
||||
echo ' <strong>'.$row->betreff.'</strong><br>'.$row->text.'</td>';
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo ' <td> </td>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo ' <td> </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
if($zaehler==0)
|
||||
echo 'Zur Zeit gibt es keine aktuellen News!';
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
<?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 >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*
|
||||
*/
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/news.class.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
|
||||
$user = get_uid();
|
||||
$is_lector=false;
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
else
|
||||
die('Sie haben keine Berechtigung fuer diesen Bereich');
|
||||
|
||||
// POST/GET Parameter uebernehmen
|
||||
if (isset($_GET))
|
||||
{
|
||||
while (list ($tmp_key, $tmp_val) = each ($_GET))
|
||||
{
|
||||
$$tmp_key=$tmp_val;
|
||||
}
|
||||
|
||||
}
|
||||
else if (isset($_POST))
|
||||
{
|
||||
while (list ($tmp_key, $tmp_val) = each ($_POST))
|
||||
{
|
||||
$$tmp_key=$tmp_val;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($remove_id) && $remove_id != "")
|
||||
{
|
||||
$news_obj = new news($sql_conn);
|
||||
if($news_obj->delete($remove_id))
|
||||
{
|
||||
writeCISlog('DELETE PINBOARD','');
|
||||
echo "<script language=\"JavaScript\">";
|
||||
echo " document.location.href = 'pinboard_show.php'";
|
||||
echo "</script>";
|
||||
}
|
||||
else
|
||||
echo 'Fehler beim loeschen'.$news_obj->errormsg;
|
||||
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=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
function deleteEntry(id)
|
||||
{
|
||||
if(confirm("Soll dieser Eintrag wirklich gelöscht werden?") == true)
|
||||
{
|
||||
document.location.href = 'pinboard_show.php?remove_id=' + id;
|
||||
}
|
||||
}
|
||||
function editEntry(id)
|
||||
{
|
||||
parent.news_entry.location.href = 'pinboard_entry.php?news_id=' + id;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="tabcontent">
|
||||
<?php
|
||||
$news_obj = new news($sql_conn);
|
||||
$news_obj->getnews(MAXNEWSALTER,'0','0',true, null, MAXNEWS);
|
||||
|
||||
$zaehler =0;
|
||||
$i=0;
|
||||
foreach($news_obj->result as $row)
|
||||
{
|
||||
$i++;
|
||||
$zaehler++;
|
||||
echo '<tr>';
|
||||
|
||||
if($i % 2 != 0)
|
||||
echo '<td class="MarkLine">';
|
||||
else
|
||||
echo '<td>';
|
||||
|
||||
if($row->datum!='')
|
||||
$datum = date('d.m.Y',strtotime(strftime($row->datum)));
|
||||
else
|
||||
$datum='';
|
||||
echo ' <table class="tabcontent">';
|
||||
echo ' <tr>';
|
||||
echo ' <td class="tdwrap">';
|
||||
echo ' <small>'.$datum.' - '.$row->verfasser.'</small>';
|
||||
echo ' </td>';
|
||||
echo ' <td align="right" class="tdwrap">';
|
||||
echo ' <a onClick="editEntry('.$row->news_id.');">Editieren</a>, <a onClick="deleteEntry('.$row->news_id.');">Löschen</a>';
|
||||
echo ' </td>';
|
||||
echo ' </tr>';
|
||||
echo ' </table>';
|
||||
echo ' <strong>'.$row->betreff.'</strong><br>'.$row->text.'</td>';
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo ' <td> </td>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo ' <td> </td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
if($zaehler==0)
|
||||
echo 'Zur Zeit gibt es keine aktuellen News!';
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,71 +1,74 @@
|
||||
<?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');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<frameset rows="375,*" cols="*" framespacing="0"" frameborder="NO" border="0">
|
||||
<frame src="pinboard_entry.php" name="news_entry">
|
||||
<frame src="pinboard_show.php" name="news_window">
|
||||
</frameset>
|
||||
<noframes><body>
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader"> Lektorenbereich - Pinboardverwaltung</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
if(!$is_lector)
|
||||
{
|
||||
die('Sie haben leider keine Berechtigung für diese Seite.');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body></noframes>
|
||||
</html>
|
||||
<?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 >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*
|
||||
*/
|
||||
require_once('../../config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$sql_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
$is_lector=false;
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<frameset rows="375,*" cols="*" framespacing="0"" frameborder="NO" border="0">
|
||||
<frame src="pinboard_entry.php" name="news_entry">
|
||||
<frame src="pinboard_show.php" name="news_window">
|
||||
</frameset>
|
||||
<noframes><body>
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader"> Lektorenbereich - Pinboardverwaltung</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
if(!$is_lector)
|
||||
{
|
||||
die('Sie haben leider keine Berechtigung für diese Seite.');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body></noframes>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user