mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
This commit is contained in:
@@ -15,19 +15,19 @@
|
||||
* 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>,
|
||||
* 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 öffnen der Datenbankverbindung');
|
||||
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
|
||||
if(check_lektor($user,$sql_conn))
|
||||
$is_lector=true;
|
||||
?>
|
||||
@@ -37,38 +37,38 @@
|
||||
if(isset($feedback_submit) && (!isset($message_sent) || $message_sent == "no"))
|
||||
{
|
||||
$destination = 'cis@technikum-wien.at';
|
||||
|
||||
|
||||
$sql_query = "SELECT DISTINCT vorname, nachname, (uid || '@technikum-wien.at') AS emailtw FROM campus.vw_benutzer WHERE uid='$user' LIMIT 1";
|
||||
|
||||
|
||||
$feedback_message = chop($txtFeedbackMessage);
|
||||
|
||||
if($feedback_message != "")
|
||||
{
|
||||
if($result = pg_query($sql_conn, $sql_query))
|
||||
{
|
||||
{
|
||||
if($row = pg_fetch_object($result))
|
||||
{
|
||||
{
|
||||
if(mail($destination, "[CIS-Feedback]", $feedback_message, "FROM: feedback@technikum-wien.at\nREPLY-TO: $row->emailtw\n\n"))
|
||||
{
|
||||
{
|
||||
echo '<script language="JavaScript">';
|
||||
echo ' document.location.href = document.location.href + "?message_sent=yes";';
|
||||
echo '</script>';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<script language="JavaScript">';
|
||||
echo ' document.location.href = document.location.href + "?message_sent=no";';
|
||||
echo '</script>';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<script language="JavaScript">';
|
||||
echo ' document.location.href = document.location.href + "?message_sent=no";';
|
||||
echo '</script>';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<script language="JavaScript">';
|
||||
echo ' document.location.href = document.location.href + "?message_sent=no";';
|
||||
@@ -81,13 +81,13 @@
|
||||
echo ' document.location.href = document.location.href + "?message_sent=no";';
|
||||
echo '</script>';
|
||||
}
|
||||
|
||||
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<link href="../../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
@@ -103,10 +103,10 @@
|
||||
</head>
|
||||
|
||||
<body onLoad="focusFirstElement();">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<table class="tabcontent" id="inhalt">
|
||||
<tr>
|
||||
<td width="10"> </td>
|
||||
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<td class="tdwidth10"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader"> Kommunikation - Feedback</font></td>
|
||||
</tr>
|
||||
@@ -119,28 +119,28 @@
|
||||
<?php
|
||||
if(isset($message_sent) && $message_sent == "yes")
|
||||
{
|
||||
echo "<font class=\"headline\">Vielen Dank für Ihr Feedback!</font><br>";
|
||||
echo "<font class=\"subline\">Ihre Nachricht wurde an das zuständige Personal weitergeleitet.</font></td>";
|
||||
|
||||
echo "<h3>Vielen Dank für Ihr Feedback!</h3>";
|
||||
echo "<h3>Ihre Nachricht wurde an das zuständige Personal weitergeleitet.</h3></td>";
|
||||
|
||||
exit;
|
||||
}
|
||||
else if(isset($message_sent) && $message_sent == "no")
|
||||
{
|
||||
echo "<font class=\"headline\">Ihr Feedback wurde nicht weitergeleitet!</font><br>";
|
||||
echo "<font class=\"subline\">Bitte wenden Sie sich an die Administration.</font></td>";
|
||||
|
||||
echo "<h3>Ihr Feedback wurde nicht weitergeleitet!</h3>";
|
||||
echo "<h3>Bitte wenden Sie sich an die Administration.</h3></td>";
|
||||
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<font class="headline">Ihre Meinung zählt!</font><br>
|
||||
<font class="subline">Hier können Sie uns Feedback geben.</font>
|
||||
<h3>Ihre Meinung zählt!</h3>
|
||||
<h3>Hier können Sie uns Feedback geben.</h3>
|
||||
<p>Helfen Sie mit, unseren Service zu verbessern und geben Sie uns hier Ihr Feedback. Haben Sie spezielle Wünsche und Anregungen für uns, vermissen Sie wichtige Informationen oder wollen Sie uns mal richtig die Meinung sagen? Für Ihre Beiträge haben wir immer ein offenes Ohr. Denn nur wenn wir Ihre Meinung kennen, können wir auf Ihre Belange und Wünsche eingehen.</p>
|
||||
<p>Für technische Gebrechen verwenden Sie bitte das <a href='http://bug.technikum-wien.at' target="_blank" class='Item'>Bugtracking-System</a></p>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td nowrap><br>
|
||||
Bitte geben Sie hier Ihr Feedback ein:<br>
|
||||
<textarea class="TextBox" style="width: 99%; heigth: 166px" name="txtFeedbackMessage" rows="10" cols="70" maxlength="2000"></textarea></td>
|
||||
<textarea style="width: 99%; heigth: 166px" name="txtFeedbackMessage" rows="10" cols="70" maxlength="2000"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
@@ -153,7 +153,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="30"> </td>
|
||||
<td class="tdwidth30"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user