first commit
387
Kennwortwechsel_doz.php
Executable file
@ -0,0 +1,387 @@
|
|||||||
|
<?php
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
|
||||||
|
if ($doz_uid1 == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||||
|
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
|
||||||
|
|
||||||
|
if (isset($_GET['action']))
|
||||||
|
$action = $_GET['action'];
|
||||||
|
else
|
||||||
|
$action = "";
|
||||||
|
|
||||||
|
switch($action){
|
||||||
|
default:
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$result = $db->query("SELECT doz_name, doz_vorname FROM doz where doz_uid=\"$doz_uid1\"");
|
||||||
|
$row = $result->fetch_array();
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Kennwort ändern</title>
|
||||||
|
</head>
|
||||||
|
<body onload=\"if(document.kennwort)document.kennwort.pw_alt.focus();return false;\">
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<font class=\"hd\">Kennwort ändern</font><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></font></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td>
|
||||||
|
<form action="; echo $_SERVER['PHP_SELF'] . "?action=wechsel"; echo" method=\"POST\" name=\"kennwort\">
|
||||||
|
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-width:0; border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"142\">
|
||||||
|
<tr>
|
||||||
|
<td style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||||
|
<b>Name:</b> </td>
|
||||||
|
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||||
|
<p>$row[doz_vorname] $row[doz_name]</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||||
|
<b>altes Kennwort:</b> </td>
|
||||||
|
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||||
|
<p>
|
||||||
|
<input type=\"password\" name=\"pw_alt\" size=\"30\"></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||||
|
<b>neues Kennwort:</b> </td>
|
||||||
|
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||||
|
<p>
|
||||||
|
<input type=\"password\" name=\"pw_neu\" size=\"30\"></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||||
|
<b>neues Kennwort wiederholen:</b> </td>
|
||||||
|
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||||
|
<p>
|
||||||
|
<input type=\"password\" name=\"pw_wied\" size=\"30\"></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"45%\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
<td width=\"55%\" align=\"left\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||||
|
<p> </p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<input type=\"submit\" value=\"Abschicken\" name=\"B1\" size=\"20\"></form>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "wechsel":
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$result = $db->query("SELECT doz_pwd FROM doz where doz_uid=\"$doz_uid1\"");
|
||||||
|
$row = $result->fetch_array();
|
||||||
|
|
||||||
|
|
||||||
|
If ($_POST[pw_alt] == "" or $_POST[pw_neu] == "" or $_POST[pw_wied] == "")
|
||||||
|
{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Eingabefehler</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Eingabefehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Es müssen alle Felder ausgefüllt werden!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"Kennwortwechsel_doz.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$pwd_alt = md5($_POST['pw_alt']);
|
||||||
|
|
||||||
|
if ($pwd_alt != $row[doz_pwd])
|
||||||
|
{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Eingabefehler</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Eingabefehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Ihr altes Kennwort stimmt nicht<br>mit dem aus dem System überein!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"Kennwortwechsel_doz.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$pwd_neu = md5($_POST['pw_neu']);
|
||||||
|
$pwd_wied = md5($_POST['pw_wied']);
|
||||||
|
|
||||||
|
if ($pwd_neu != $pwd_wied)
|
||||||
|
{
|
||||||
|
echo "
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Eingabefehler</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Eingabefehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Das neue Kennwort stimmt nicht<br>mit der Kennwortwiederholung überein!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"Kennwortwechsel_doz.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
dbconnect ();
|
||||||
|
|
||||||
|
$passwd = md5($_POST['pw_neu']);
|
||||||
|
//$passwd= mysqli_escape_string($db,$passwd);
|
||||||
|
|
||||||
|
$sql = $db->query ("UPDATE doz SET doz_pwd=\"$passwd\" WHERE doz_uid=\"$doz_uid1\"");
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Kennwort geändert</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Kennwort geändert</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Das Kennwort wurde aktualisiert!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"hauptframe.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} // Ende IF von Action Abfrage
|
||||||
|
?>
|
467
bewertung.php
Executable file
@ -0,0 +1,467 @@
|
|||||||
|
<?php
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
if ($doz_uid1 == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||||
|
|
||||||
|
$lfdnr = $_GET["nr"];
|
||||||
|
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
|
||||||
|
|
||||||
|
if (isset($_GET['action']))
|
||||||
|
$action = $_GET['action'];
|
||||||
|
else
|
||||||
|
$action = "";
|
||||||
|
|
||||||
|
switch($action){
|
||||||
|
default:
|
||||||
|
|
||||||
|
setcookie("ck_lfdnr", "");
|
||||||
|
setcookie("ck_lfdnr", $lfdnr);
|
||||||
|
|
||||||
|
|
||||||
|
if ($lfdnr == 1){
|
||||||
|
$titel = "1. Hauptwunsch";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($lfdnr == 2){
|
||||||
|
$titel = "2. Hauptwunsch";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($lfdnr == 3){
|
||||||
|
$titel = "1. Ersatzwunsch";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($lfdnr == 4){
|
||||||
|
$titel = "2. Ersatzwunsch";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$result2 = $db->query("SELECT lv_name
|
||||||
|
, lv_ort
|
||||||
|
, studiengang
|
||||||
|
, ag
|
||||||
|
, jahrgang
|
||||||
|
, lv_art
|
||||||
|
, teilnehmer
|
||||||
|
FROM bew_wunsch
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
AND lfd_nr = '$lfdnr'");
|
||||||
|
$row3 = $result2->fetch_array();
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Administrator anlegen</title>
|
||||||
|
<!--
|
||||||
|
<style type='text/css'>
|
||||||
|
select{
|
||||||
|
width:500px;
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body onload=\"if(document.bewertung)document.bewertung.vorlesung.focus();return false;\">
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"80%\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<font class=\"hd\">$titel</font><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></font></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td>
|
||||||
|
<form action="; echo $_SERVER['PHP_SELF'] . "?action=bew"; echo" method=\"POST\" name=\"bewertung\">
|
||||||
|
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse; border-width: 0\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"194\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
<b>Vorlesungsname*:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">";
|
||||||
|
|
||||||
|
$query = "SELECT vlid, bezeichnung FROM bew_vorlesungen ORDER BY bezeichnung";
|
||||||
|
$result = $db->query ($query)
|
||||||
|
or die ("Cannot execute query");
|
||||||
|
echo "<select size=\"8\" name=\"vorlesung\">";
|
||||||
|
while ($row = $result->fetch_array()){
|
||||||
|
echo "<option value='$row[vlid]'"; if($row3[lv_name] == $row[vlid]){echo " selected"; } echo">".$row['bezeichnung']." </option>\n";
|
||||||
|
}
|
||||||
|
echo "</select>";
|
||||||
|
echo"
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!--
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
<b>Vorlesungsort:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">
|
||||||
|
<input type=\"text\" name=\"ort\" value='$row3[lv_ort]' size=\"80\">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
-->
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
<b>Studiengang:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">
|
||||||
|
<select size=\"6\" name=\"stg\">";
|
||||||
|
$query = "SELECT kurzel, bezeichnung FROM bew_studiengang ORDER BY bezeichnung";
|
||||||
|
$result = $db->query ($query)
|
||||||
|
or die ("Cannot execute query");
|
||||||
|
while ($row = $result->fetch_array()){
|
||||||
|
echo"<option value='$row[kurzel]'"; if($row3[studiengang] == $row[kurzel]){ echo " selected"; } echo">$row[bezeichnung]</option>";
|
||||||
|
}
|
||||||
|
echo"
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
<b>AG:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">";
|
||||||
|
$db = dbconnect();
|
||||||
|
$query1 = "SELECT distinct UPPER(ag) ag
|
||||||
|
FROM stud
|
||||||
|
ORDER BY ag ASC
|
||||||
|
";
|
||||||
|
|
||||||
|
$result1 = $db->query ($query1)
|
||||||
|
or die ("Cannot execute query");
|
||||||
|
echo "<select size=\"1\" name=\"ag\">";
|
||||||
|
while ($row1 = $result1->fetch_array()){
|
||||||
|
echo "<option value='$row1[ag]' "; if($row3[ag] == $row1[ag]){echo " selected"; } echo">$row1[ag]</option>\n";
|
||||||
|
}
|
||||||
|
echo "</select>";
|
||||||
|
|
||||||
|
$query2 = "SELECT distinct UPPER(jahrgang) jahrgang
|
||||||
|
FROM stud
|
||||||
|
WHERE jahrgang <'99'
|
||||||
|
ORDER BY jahrgang DESC
|
||||||
|
";
|
||||||
|
|
||||||
|
$result2 = $db->query ($query2)
|
||||||
|
or die ("Cannot execute query");
|
||||||
|
echo " / ";
|
||||||
|
echo "<select size=\"1\" name=\"jahrgang\">";
|
||||||
|
while ($row2 = $result2->fetch_array()){
|
||||||
|
echo "<option value='$row2[jahrgang]'"; if($row3[jahrgang] == $row2[jahrgang]){echo " selected"; } echo">$row2[jahrgang]</option>\n";
|
||||||
|
}
|
||||||
|
echo "</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
<b>Vorlesungsart:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">
|
||||||
|
<select size=\"5\" name=\"art\">";
|
||||||
|
$query = "SELECT aid, bezeichnung FROM bew_art ORDER BY bezeichnung";
|
||||||
|
$result = $db->query ($query)
|
||||||
|
or die ("Cannot execute query");
|
||||||
|
while ($row = $result->fetch_array()){
|
||||||
|
echo"<option value='$row[aid]'"; if($row3[lv_art] == $row[aid]){echo " selected"; } echo">$row[bezeichnung]</option>";
|
||||||
|
}
|
||||||
|
echo"
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
<b>Anzahl der Teilnehmer:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">
|
||||||
|
<input type=\"text\" name=\"anz\" value='$row3[teilnehmer]' size=\"13\">
|
||||||
|
</td>
|
||||||
|
</tr
|
||||||
|
<tr>
|
||||||
|
<td width=\"40%\">
|
||||||
|
* = Pflichtfelder
|
||||||
|
</td>
|
||||||
|
<td width=\"60%\">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<input type=\"submit\" value=\"Abschicken\" name=\"B1\">
|
||||||
|
<input type=\"reset\" value=\"Zurücksetzen\" name=\"B2\">
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "bew":
|
||||||
|
$db = dbconnect();
|
||||||
|
$lfdnr = $_COOKIE["ck_lfdnr"];
|
||||||
|
|
||||||
|
|
||||||
|
if ($_POST[vorlesung] == ""){ // Fehler, falls Pflichtfelder unausgefüllt
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Eingabefehler</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Eingabefehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Es müssen mindestens die Pflichtfelder ausgefüllt werden!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"javascript:history.back()\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$result2 = $db->query("SELECT 1
|
||||||
|
FROM bew_wunsch
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
AND lfd_nr = '$lfdnr'");
|
||||||
|
$row3 = $result2->fetch_array();
|
||||||
|
|
||||||
|
$heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php
|
||||||
|
$heuteformat = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll
|
||||||
|
|
||||||
|
|
||||||
|
if($row3[0] != 1){
|
||||||
|
|
||||||
|
$sql = $db->query("INSERT INTO bew_wunsch ( doz_uid
|
||||||
|
, lv_name
|
||||||
|
, studiengang
|
||||||
|
, ag
|
||||||
|
, jahrgang
|
||||||
|
, lv_art
|
||||||
|
, teilnehmer
|
||||||
|
, lfd_nr
|
||||||
|
, datum
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
( '$doz_uid1'
|
||||||
|
, '$_POST[vorlesung]'
|
||||||
|
, '$_POST[stg]'
|
||||||
|
, '$_POST[ag]'
|
||||||
|
, '$_POST[jahrgang]'
|
||||||
|
, '$_POST[art]'
|
||||||
|
, '$_POST[anz]'
|
||||||
|
, '$lfdnr'
|
||||||
|
, '$heuteformat'
|
||||||
|
)
|
||||||
|
");
|
||||||
|
|
||||||
|
}else{
|
||||||
|
$sql = $db->query("UPDATE bew_wunsch
|
||||||
|
SET doz_uid = '$doz_uid1'
|
||||||
|
, lv_name = '$_POST[vorlesung]'
|
||||||
|
, studiengang = '$_POST[stg]'
|
||||||
|
, ag = '$_POST[ag]'
|
||||||
|
, jahrgang = '$_POST[jahrgang]'
|
||||||
|
, lv_art = '$_POST[art]'
|
||||||
|
, teilnehmer = '$_POST[anz]'
|
||||||
|
, lfd_nr = '$lfdnr'
|
||||||
|
, datum = '$heuteformat'
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
AND lfd_nr = '$lfdnr'
|
||||||
|
");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if($sql)
|
||||||
|
{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Einbindung</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Einbindung</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\">Der Bewertungswunsch wurde abgegeben!
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href='hauptframe.php'>
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
}else{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Einbindung fehlgeschlagen</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Einbindung fehlgeschlagen</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Der Administrator wurde nicht eingebunden!<br>Es trat ein interner Fehler auf!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href='hauptframe.php'>
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
83
export.php
Executable file
@ -0,0 +1,83 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\zula\datenbankanbindung.php
|
||||||
|
$db = dbconnect();
|
||||||
|
|
||||||
|
$sql = "SELECT doz_funktion
|
||||||
|
, doz_anrede
|
||||||
|
, doz_titel
|
||||||
|
, doz_vorname
|
||||||
|
, doz_name
|
||||||
|
, doz_mail
|
||||||
|
, bezeichnung
|
||||||
|
, kuerzel
|
||||||
|
, replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(studiengang, '1Sem1' ,'1. Semester'), '1Sem2', '2. Semester'), '1Sem3', '3. Semester'), '1Sem4', '4. Semester'), '1Sem5', '5. Semester'), '1Sem6', '6. Semester'), '2GI', 'Fakultät 2: Grundstudium I'), '2GII', 'Fakultät 2: Grundstudium II'), '2GIII', 'Fakultät 2: Grundstudium III'), '2HS', 'Fakultät 2: Hauptstudium') studiengang
|
||||||
|
, replace(replace(replace(replace(replace(replace(lv_art, 1, 'Vorlesung'), 2, 'Seminar'), 3, 'Proseminar'), 4 , 'Übung'), 5, 'Praktikum'), 6, 'AG') art
|
||||||
|
, teilnehmer
|
||||||
|
, ag
|
||||||
|
, jahrgang
|
||||||
|
, lfd_nr prioritaet
|
||||||
|
FROM doz, bew_wunsch, bew_vorlesungen
|
||||||
|
WHERE doz.doz_uid = bew_wunsch.doz_uid
|
||||||
|
AND bew_wunsch.lv_name = bew_vorlesungen.vlid
|
||||||
|
ORDER BY doz_name, prioritaet
|
||||||
|
";
|
||||||
|
|
||||||
|
$result = @$db->query($sql)
|
||||||
|
or die("Couldn't execute query:<br>" . mysql_error(). "<br>" . mysql_errno());
|
||||||
|
|
||||||
|
$now_date = date('d.m.Y-Hi');
|
||||||
|
|
||||||
|
//header info for browser
|
||||||
|
header('Content-Encoding: UTF-8');
|
||||||
|
header("Content-type: text/csv; charset=UTF-8");
|
||||||
|
#header("Content-Type: text/comma-separated-values;charset=UTF-8");
|
||||||
|
echo "\xEF\xBB\xBF";
|
||||||
|
header("Content-Disposition: attachment; filename=export_bewertung_$now_date.csv"); //header("Content-Disposition: attachment; filename=database_dump.$file_ending");
|
||||||
|
header("Pragma: no-cache");
|
||||||
|
header("Expires: 0");
|
||||||
|
|
||||||
|
/*
|
||||||
|
if ($Use_Title == 1){
|
||||||
|
echo("$title\n");
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
//define separator (defines columns in excel & tabs in word)
|
||||||
|
$sep = ";"; //tabbed character
|
||||||
|
|
||||||
|
//start of printing column names as names of MySQL fields
|
||||||
|
for ($i = 0; $i < mysqli_num_fields($result); $i++) {
|
||||||
|
echo mysqli_fetch_field_direct($result,$i)->name . ";";
|
||||||
|
}
|
||||||
|
print("\n");
|
||||||
|
//end of printing column names
|
||||||
|
|
||||||
|
//start while loop to get data
|
||||||
|
/*
|
||||||
|
note: the following while-loop was taken from phpMyAdmin 2.1.0.
|
||||||
|
--from the file "lib.inc.php".
|
||||||
|
*/
|
||||||
|
while($row = $result->fetch_array())
|
||||||
|
{
|
||||||
|
//set_time_limit(60); // HaRa
|
||||||
|
$schema_insert = "";
|
||||||
|
for($j=0; $j<mysqli_num_fields($result);$j++)
|
||||||
|
{
|
||||||
|
if(!isset($row[$j]))
|
||||||
|
$schema_insert .= "NULL".$sep;
|
||||||
|
elseif ($row[$j] != "")
|
||||||
|
$schema_insert .= "$row[$j]".$sep;
|
||||||
|
else
|
||||||
|
$schema_insert .= "".$sep;
|
||||||
|
}
|
||||||
|
$schema_insert = str_replace($sep."$", "", $schema_insert);
|
||||||
|
//following fix suggested by Josue (thanks, Josue!)
|
||||||
|
//this corrects output in excel when table fields contain \n or \r
|
||||||
|
//these two characters are now replaced with a space
|
||||||
|
$schema_insert = preg_replace("/\r\n|\n\r|\n|\r/", " ", $schema_insert);
|
||||||
|
$schema_insert .= "\t";
|
||||||
|
print(trim($schema_insert));
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
?>
|
321
fragebogen.php
Executable file
@ -0,0 +1,321 @@
|
|||||||
|
<?php
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
if ($doz_uid1 == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||||
|
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
|
||||||
|
|
||||||
|
if (isset($_GET['action']))
|
||||||
|
$action = $_GET['action'];
|
||||||
|
else
|
||||||
|
$action = "";
|
||||||
|
|
||||||
|
switch($action){
|
||||||
|
default:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$result2 = $db->query("SELECT antwort
|
||||||
|
FROM bew_fragebogen
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
");
|
||||||
|
|
||||||
|
$row3 = $result2->fetch_array();
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Administrator anlegen</title>
|
||||||
|
<!--
|
||||||
|
<style type='text/css'>
|
||||||
|
select{
|
||||||
|
width:500px;
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body onload=\"if(document.bewertung)document.bewertung.vorlesung.focus();return false;\">
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"60%\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<font class=\"hd\">Angaben zum Fragebogen</font><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></font></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td>
|
||||||
|
<form action="; echo $_SERVER['PHP_SELF'] . "?action=bew"; echo" method=\"POST\" name=\"bewertung\">
|
||||||
|
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse; border-width: 0\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"194\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"100%\" align='center'>
|
||||||
|
Ich bin bereit beide Fragebögen einzusetzen<br>
|
||||||
|
und damit zwei Befragungen durchzuführen.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<input type=\"radio\" value=\"N\" name=\"fragebogen\"";
|
||||||
|
IF ($row3[antwort] == "N" )
|
||||||
|
echo " checked";
|
||||||
|
echo ">Nein
|
||||||
|
<input type=\"radio\" value=\"Y\" name=\"fragebogen\"";
|
||||||
|
|
||||||
|
if ($row3[antwort] == "Y") echo " checked";
|
||||||
|
echo ">Ja
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p align='center'>
|
||||||
|
<input type=\"submit\" value=\"Abschicken\" name=\"B1\">
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "bew":
|
||||||
|
$db = dbconnect();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($_POST[fragebogen] == ""){ // Fehler, falls Pflichtfelder unausgefüllt
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Eingabefehler</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Eingabefehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Es muss eine Antwort abgegeben werden!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"javascript:history.back()\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$result2 = $db->query("SELECT 1
|
||||||
|
FROM bew_fragebogen
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
");
|
||||||
|
|
||||||
|
$row3 = $result2->fetch_array();
|
||||||
|
|
||||||
|
if($row3[0] != 1){
|
||||||
|
|
||||||
|
$sql = $db->query("INSERT INTO bew_fragebogen ( doz_uid
|
||||||
|
, antwort
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
( '$doz_uid1'
|
||||||
|
, '$_POST[fragebogen]'
|
||||||
|
)
|
||||||
|
");
|
||||||
|
|
||||||
|
}else{
|
||||||
|
$sql = $db->query("UPDATE bew_fragebogen
|
||||||
|
SET doz_uid = '$doz_uid1'
|
||||||
|
, antwort = '$_POST[fragebogen]'
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
");
|
||||||
|
}
|
||||||
|
|
||||||
|
if($sql)
|
||||||
|
{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Einbindung</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Einbindung</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\">Ihre Antwort wurde abgegeben!
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href='hauptframe.php'>
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
}else{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Einbindung fehlgeschlagen</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Einbindung fehlgeschlagen</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Der Administrator wurde nicht eingebunden!<br>Es trat ein interner Fehler auf!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href='hauptframe.php'>
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
57
hauptframe.php
Executable file
@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"Content-Language\" content=\"de\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Willkommen</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"> </td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<font class=\"hd\"><center>Herzlich Willkommen</center></font>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\">Sie befinden sich im Bewertungssystem für Dozenten<br>
|
||||||
|
der Fachhochschule Ludwigsburg!<br><br><b>Bitte halten sie Ihre <a href=pers_daten_doz.php>Daten</a> aktuell</b></p>
|
||||||
|
<p align=\"center\">Treffen Sie im linken Menü bitte Ihre Auswahl!</p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
?>
|
4
images/Font.txt
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
Button Schriftart
|
||||||
|
|
||||||
|
Verdana fett 12
|
||||||
|
Anti Aliasing
|
BIN
images/b_abschicken.gif
Executable file
After Width: | Height: | Size: 604 B |
BIN
images/b_login.gif
Executable file
After Width: | Height: | Size: 216 B |
BIN
images/blank.gif
Executable file
After Width: | Height: | Size: 43 B |
BIN
images/box_bottom.gif
Executable file
After Width: | Height: | Size: 37 B |
BIN
images/box_e1.gif
Executable file
After Width: | Height: | Size: 408 B |
BIN
images/box_e1a.gif
Executable file
After Width: | Height: | Size: 186 B |
BIN
images/box_e2.gif
Executable file
After Width: | Height: | Size: 258 B |
BIN
images/box_e2a.gif
Executable file
After Width: | Height: | Size: 181 B |
BIN
images/box_e3.gif
Executable file
After Width: | Height: | Size: 144 B |
BIN
images/box_e4.gif
Executable file
After Width: | Height: | Size: 152 B |
BIN
images/box_l.gif
Executable file
After Width: | Height: | Size: 51 B |
BIN
images/box_r.gif
Executable file
After Width: | Height: | Size: 51 B |
BIN
images/box_top.gif
Executable file
After Width: | Height: | Size: 62 B |
BIN
images/box_top1.gif
Executable file
After Width: | Height: | Size: 37 B |
BIN
images/drop.png
Executable file
After Width: | Height: | Size: 311 B |
BIN
images/drop_grey.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/edit.png
Executable file
After Width: | Height: | Size: 451 B |
BIN
images/edit_grey.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/export.gif
Executable file
After Width: | Height: | Size: 709 B |
BIN
images/i_login.gif
Executable file
After Width: | Height: | Size: 646 B |
BIN
images/ja.gif
Executable file
After Width: | Height: | Size: 320 B |
BIN
images/left.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/left_first.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/left_first_grey.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/left_grey.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/nein.gif
Executable file
After Width: | Height: | Size: 333 B |
BIN
images/right.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/right_grey.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/right_last.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/right_last_grey.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
images/sidebox-bar-left.gif
Executable file
After Width: | Height: | Size: 50 B |
BIN
images/sidebox-bar-px.gif
Executable file
After Width: | Height: | Size: 43 B |
BIN
images/sidebox-bar-right.gif
Executable file
After Width: | Height: | Size: 50 B |
BIN
images/sidebox-bottom.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/sidebox-title-bg.gif
Executable file
After Width: | Height: | Size: 153 B |
BIN
images/sidebox-title-left.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
images/sidebox-title-left1.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
images/sidebox-title-right.gif
Executable file
After Width: | Height: | Size: 356 B |
BIN
images/suchen.gif
Executable file
After Width: | Height: | Size: 272 B |
BIN
images/termin_erf.gif
Executable file
After Width: | Height: | Size: 489 B |
BIN
images/veranst_bearb.gif
Executable file
After Width: | Height: | Size: 570 B |
BIN
images/veranst_erf.gif
Executable file
After Width: | Height: | Size: 555 B |
BIN
images/zurueck.gif
Executable file
After Width: | Height: | Size: 550 B |
545
index.php
Executable file
@ -0,0 +1,545 @@
|
|||||||
|
<?php
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$ansp = $db->query("SELECT wert1, wert2 FROM parameter WHERE pid='1'");
|
||||||
|
$uhd = $ansp->fetch_array();
|
||||||
|
$ansprechpart = "$uhd[wert1]"; // Ansprechpartner bei Probleme
|
||||||
|
$helpmail = "$uhd[wert2]"; // Kontaktmailadresse bei Problemen
|
||||||
|
|
||||||
|
if (isset($_GET['action']))
|
||||||
|
$action = $_GET['action'];
|
||||||
|
else
|
||||||
|
$action = "";
|
||||||
|
|
||||||
|
switch($action){
|
||||||
|
default:
|
||||||
|
|
||||||
|
echo"
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Login Bewertungssystem</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onload=\"if(document.login)document.login.doz_uid.focus();return false;\">
|
||||||
|
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td height=\"30\"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img src=\"images/i_login.gif\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<font class=\"hd\">Bewertungssystem für Dozenten</font><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<ul>
|
||||||
|
<li>Bitte beantragen Sie zunächst Ihre <a href=\"mail_kennung.php\">Benutzerkennung</a></li>
|
||||||
|
<li>Wenn Sie schon eine Benutzerkennung haben, können Sie sich nachfolgend anmelden</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<form action="; echo $_SERVER['PHP_SELF'] . "?action=anmeld"; echo" method=\"POST\" name=\"login\">
|
||||||
|
<table cellspacing=\"1\" cellpadding=\"1\" width=\"100%\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td class=\"formdesc\">
|
||||||
|
Benutzername
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type=\"text\" name=\"doz_uid\" value size=\"20\" maxlength=\"60\" tabindex=\"1\" onchange=\"document.login.pwd.focus()\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class=\"formdesc\">
|
||||||
|
Passwort
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input type=\"password\" name=\"doz_pwd\" size=\"20\" tabindex=\"2\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr class=\"login\">
|
||||||
|
<td align=\"right\" colspan=\"2\">
|
||||||
|
<input title=\"Login\" type=\"image\" src=\"images/b_login.gif\" border=\"0\"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "anmeld":
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
|
||||||
|
$result = $db->query("SELECT doz_uid, doz_pwd FROM doz where doz_uid=\"". $_POST['doz_uid']."\"");
|
||||||
|
$row = $result->fetch_array();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Abfrage, was tun wenn Felder leer sind bzw. Passwort falsch ist
|
||||||
|
if ($_POST['doz_uid'] == "" or $_POST['doz_pwd'] == "")
|
||||||
|
{
|
||||||
|
echo "
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Login Proseminare</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img src=\"images/i_login.gif\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Fehlerhafte Eingabe </span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Es müssen alle Felder ausgefüllt werden</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"index.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_POST['doz_uid'] != $row['doz_uid']) {
|
||||||
|
echo"
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Benutzername unbekannt</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img src=\"images/i_login.gif\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Benutzername unbekannt</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Ber Benutzername ist im System nicht vorhanden<br>
|
||||||
|
Bei Fragen wenden Sie sich bitte an <a href=\"mailto:$helpmail?subject=Keine Anmeldekennung\">
|
||||||
|
$ansprechpart</a></b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"index.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$passwd = md5($_POST['doz_pwd']);
|
||||||
|
if ($passwd != $row[doz_pwd]){
|
||||||
|
|
||||||
|
setcookie("doz_uid1","");
|
||||||
|
setcookie("doz_uid1",$row[doz_uid]);
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Passwort falsch</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img src=\"images/i_login.gif\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Passwort falsch</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Das eingegebene Passwort ist falsch!</b><br><br>
|
||||||
|
Sie können sich ein neues Passwort an Ihre<br>FH-Mailadresse schicken lassen: <a href="; echo $_SERVER['PHP_SELF'] . "?action=pass_gen>Neues Passwort</a>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Bei weiteren Problemen wenden Sie sich bitte<br>
|
||||||
|
an <a href=\"mailto:$helpmail?subject=Keine Anmeldekennung\">$ansprechpart</a></p>
|
||||||
|
<p align=\"center\"><a href=\"index.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
setcookie("doz_uid1","");
|
||||||
|
setcookie("doz_uid1",$row[doz_uid]);
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<meta http-equiv=\"refresh\" content=\"0; URL=index_doz.htm\">
|
||||||
|
";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "pass_gen":
|
||||||
|
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
|
||||||
|
$pool = "qwertzupasdfghkyxcvbnm";
|
||||||
|
$pool .= "23456789";
|
||||||
|
$pool .= "WERTZUPLKJHGFDSAYXCVBNM";
|
||||||
|
|
||||||
|
srand ((double)microtime()*1000000);
|
||||||
|
for($index = 0; $index < 7; $index++)
|
||||||
|
{
|
||||||
|
$pass_word .= substr($pool,(rand()%(strlen ($pool))), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$new_pw_md5=md5($pass_word);
|
||||||
|
|
||||||
|
$sql = $db->query ("UPDATE doz SET doz_pwd='$new_pw_md5' WHERE doz_uid='$doz_uid1'");
|
||||||
|
|
||||||
|
// Nachricht über Passwortrücksetzung: Hinzugefügt 19.09.2006
|
||||||
|
$result2 = $db->query("SELECT doz_uid, doz_titel, doz_vorname, doz_name, doz_mail FROM doz WHERE doz_uid='$doz_uid1'");
|
||||||
|
$row2 = $result2->fetch_array();
|
||||||
|
|
||||||
|
$empfaenger = "$row2[doz_mail]";
|
||||||
|
$betreff = "Kurssystem: Passwort zurückgesetzt";
|
||||||
|
$text = "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Passwort zurückgesetzt</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<font face='Arial' size='2'>
|
||||||
|
Guten Tag $row2[doz_titel] $row2[doz_vorname] $row2[doz_name]!<br><br>
|
||||||
|
Sie haben Ihr Passwort im Kurssystem zurückgesetzt!<br>
|
||||||
|
Nachfolgend finden Sie Ihre neuen Zugangsdaten:
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td valign='top'>
|
||||||
|
<font face='Arial' size='2'>
|
||||||
|
Benutzerkennung:
|
||||||
|
</font>
|
||||||
|
</td>
|
||||||
|
<td valign='top'>
|
||||||
|
<font face='Arial' size='2'>
|
||||||
|
<b>$row2[doz_uid]</b>
|
||||||
|
</font>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td valign='top'>
|
||||||
|
<font face='Arial' size='2'>
|
||||||
|
Passwort:
|
||||||
|
</font>
|
||||||
|
</td>
|
||||||
|
<td valign='top'>
|
||||||
|
<font face='Arial' size='2'>
|
||||||
|
<b>$pass_word</b>
|
||||||
|
</font>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
Bitte beachten Sie, dass zwischen Groß- und<br>
|
||||||
|
Kleinschreibung unterschieden wird.
|
||||||
|
<p>
|
||||||
|
Ändern Sie bitte zu Ihrer eigenen Sicherheit das<br>
|
||||||
|
Passwort nach dem ersten Login.
|
||||||
|
<p>
|
||||||
|
Diese Mail wurde automatisch generiert!<br>
|
||||||
|
Antworten Sie daher nicht auf diese Mail<br>
|
||||||
|
<br>
|
||||||
|
Vielen Dank
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
|
||||||
|
$headers = "MIME-Version: 1.0\r\n";
|
||||||
|
$headers .= "Content-type: text/html; charset=utf-8\r\n";
|
||||||
|
|
||||||
|
$return = @mail($empfaenger, $betreff, $text, $headers);
|
||||||
|
|
||||||
|
// ENDE Nachricht über Passwortrücksetzung
|
||||||
|
|
||||||
|
if($return){
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Login Wahlpflichtfachsystem</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img src=\"images/i_login.gif\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Bestätigung</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Mailversand!</b><br><br>
|
||||||
|
Ihr neues Passwort wurde an $row2[doz_mail] geschickt.
|
||||||
|
<p align=\"center\"><a href=\"index.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}else{
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Login Wahlpflichtfachsystem</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img src=\"images/i_login.gif\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Versandfehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Versandfehler!</b><br><br>
|
||||||
|
Das Passwort konnte nicht verschickt werden!
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Bitte wenden Sie sich an <a href=\"mailto:$helpmail?subject=Keine Anmeldekennung\">$ansprechpart</a></p>
|
||||||
|
<p align=\"center\"><a href=\"index.php\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} // Ende IF von Action Abfrage
|
||||||
|
?>
|
23
index_doz.htm
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Bewertungssystem der Fachhochschule Ludwigsburg</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<frameset framespacing="0" border="0" frameborder="0" rows="64,*">
|
||||||
|
<frame name="Banner" scrolling="no" noresize target="Inhalt" src="topframe.php">
|
||||||
|
<frameset cols="184,*">
|
||||||
|
<frame name="Inhalt" target="Hauptframe" scrolling="auto" src="menuframe.php" noresize>
|
||||||
|
<frame name="kurshaupt" scrolling="auto" src="hauptframe.php" target="_self">
|
||||||
|
</frameset>
|
||||||
|
<noframes>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht
|
||||||
|
unterstützt.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
|
||||||
|
</html>
|
35
logo-trans.gif
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
GIF89aA ‚ ÷ÿ ÿÿÿÆÆÆ½ÆÆ½ÆÎµ½Æµ½ÎµÆBœœÖŒœÆ„”½!B”œ¥½Rkµ!Bœµ½ÖµÎ¥Æ”œµ„”Æs„½1Jœ)B”œ¥Æk{µcsZkRc¥)Bœ¥Î”œ½Œ”µœ¥Î{„csµJZœRc9J””œÆŒ”½„ŒµBRœ9Jœ1B”)9ŒŒ”Æ„Œ½{„µs{{„½)9”„ŒÆs{µksZc¥ksµckckµZcRZ¥JRœJR¥BJœ9B”9Bœ19Œ19”)1Œµµ½½½Æ½µµÆ½½ÎµµÎ¥¥½ÆµµÖÎ¥¥Æœœ½Ö¥¥ÎœœÆ””½ŒŒµœœÎ””ÆŒŒ½{{ŒŒÆ„„½ssµkkcc¥ccRRœZZRR¥99Œ99”11„11Œ91„B9ŒJ9ŒJ9„J1„½µÎR9„R1„Z9„”{Z9{Z1„c9„Z1{c9{c1{”µk9{k1{s9{k1ss1{½¥½µœµµ”µµŒµ¥{¥ŒRŒ{9{s1ss)s{1s”RŒ½”µµŒ„¥„1s½œµ„9sÆ¥½kœŒ1s„)kŒ9s„1kÆ”µ¥ZŒ”1sŒ)kƽ”9sŒ1k”)kÆœµ”1kœ)kœ1k”)cΜµ¥1kœ)cƵ½Æ¥µ1k¥)cΔ¥1cµ1k)cƜތ1cµ)c!ZÎ¥µµ1c½)cµ!ZçŒÞ„¥½1c)ZÆ)cÎ)cޔ焥Æ1cµ)Z½)ZÞŒ¥Î1cÆ)ZÖœÖ1cÎ)ZÖ)ZÆ!RÎ!R猥Æ1ZÎ1Z½)RÆ)RÞ)Zç)ZÖ!RÞ!RÖJεç9cÖ1ZÞ1ZÎ)RÖ)Rç!RÞJçJÞBç1Zï1ZÞ)Rç)RÖ!JÞ!JÞBçBÖ9ZÞ9Zç9ZÞ1Rï)Rç!JçBïBç9ç1RÞ)Jç!Bç1ï!Bç9ç1ï1 ÀÀÀ!ù ÿ , A ‚ @ÿ ÿ 80 «jÞª5SÈp¡Ã†JŒÈЛ7VjÜ8°Hp CŠNœ¸’ÙJ’\¹’UŽ0;"óF,U1Vè\1f§1+‚èÌ)4çN1neâT茅 u8¥ªöíע¼Ø)tç
|
||||||
|
hTÅ{DzìJoÜ®qbcÁ‚L}N¬°á$ÀUpa±¨N¡b<ÅKg¶°a‘ͼzºc”€]šd<á×ï
|
||||||
|
!+2;Ì™3»U£j•0ŠŽ+MŠ (ÔëW1·Ö¥ìL{ä»w~,!q$ ‘S’\PäFÀ<ƒŽ)JGÕíÚ´Y ÁÃ'waÚ]´X'PËß½"ÿßiÏ1Î&W Àªý£Ùk×’ñ²E¿T)ú©æ³v³UöÂ
|
||||||
|
t’ä€ñK‚t ‚ €4
|
||||||
|
BwÒƒ
|
||||||
|
¤`…þ²^† À
|
||||||
|
…Ö&ˆþBb‰a˜aªÄbaÙˆã!ŠÿH8cgÙü‡â†"1¶xòHNáÔVNmq° O‰qÆž´5Þ´”‚ªýfygÁtT’Ì5ßTãYîlV
|
||||||
|
5Ü´Ã7Éd‡m-pÆ'ÌxòC_‘QLvõ TW}é$I:díZÖàa<Q„>´`—@àÀf] q†/ê8jV6í\’À
|
||||||
|
,l`—
|
||||||
|
`ÿgŸ>
|
||||||
|
5j£¦²¤)<!†DàA
|
||||||
|
R¼€?„‰¨N¦”šëHé4 ÿ!ÅXº‘]qYk\y•’h¢Š*½¼¢Š$… Á3ΖN:€gq
|
||||||
|
R|¼T"Nß&»¬À^ J:Bæ#ˆ¸÷,Kà¸a *&üðHs¹àÅ+õ¸%—ÈpÌÒ‰?n,²HàÜXòŠ';ø1€@¶ÒŠ(³H¿Œ‚£Í7ƒ´ËËìÁJ–,vM1ÊÌ‹}¡x‚I)± £5Õp“N–³‘ä1ŽÖx
|
||||||
|
0©â†—må•_g°A…0â†PZFžL’8µ “¥|´ÿ¢ÆFYÖUÙg !GŠ<òˆ"{è‘ÆbÄÝÖƒøÒœÇ+¤èà;±,x’s®‡AƒV5ÁòU[xXÓÊ>ÐPÄ
|
||||||
|
=¹¶B·¶ã5‰‚“;XÚOÜžU;° Þk¦Ä#25ßdò°ÜÀC±Ð‚
|
||||||
|
Ë^fA!·lN$ˆB 'ìð‚¥ø`¶Nèѳ8ÙHÀ2( PP*ˆ²ŒêmÈ,ð8Ež€ À\ÐB:ÀÑý L:‚$‘¾“í~;À]rЂ'd$ #S¸¾2†^Xïdò@D .ðÛÑ`Øy‰ ÿº'ºä epwxF sõŽ@Á.@pT 9G—±p¨ƒ,„aȲ™Î€£G;<BŒà¹Á|ñN¢À!$k(M2JN<±Ä²ˆ#‹x@>!¡9CœÀܲ„&Z}Ë+XTI’% âÈ *!8ˆ¡ŒTDBn¨ãWfˆG ueÙŠ(V¡AmäˆAˆv3šMLEûË×Ô³pÀr—½T%ˆDIJ–ÙA"òFÖDÆ?•HháXæÉœù¢õ„|‘ÉnF²gòòfxËf!¿y³_þˆœ-f5{j2d=ËF-ĉ Qà²góÄ‘¾zùÿÜeˆ•àDã%éGmIuá/ˆ7§J3Híôç-WBo@ƒ¶E&7 !
|
||||||
|
îúhÚöÀˆPÄ‚Ó@Ç$AR‰"“!ÉÆ×lÁ 8œáu+à€‚†38ÅD9ƒ ꆥ‘ôs á G1RÁ 7àq§!ì“…8ìaŠPĿڒ†=„X;ê*uQŽPÀa”ßêÊw–´G.‰I+˜Ò-Z1/±a·x,\Ê»``‰Š*NÙ ˆ¯ò¢ˆ-ÕÚ1T"
|
||||||
|
o]Pá‹Aä„opÞÄœP!€ª;qC+Ž‘Žo ò,hi‡2:ÙQÆ®+PA
|
||||||
|
ÀWÿÜŽ]ÏWÎ
|
||||||
|
®ô0çH'"÷<Ãð´“",AÒÓÉṙ†[œ–Aà¨F:–§á‰¢yAo8"€)Ü\`ª^®®Á
|
||||||
|
wDL.èÕj FÛ~à2XÁy¿âÒ>LÞhG/œ²øf8Ðì?Fa‚Ž<r0ÈÐâ5ääôÁü^RÐQŽ`ƒ1®›+´P¢”"@qtм Œwül\Uñ[S‰ã—À€d`Km€’iÂ>œ(¸Áïxè³nì¡R£hÀ¦ €*8RŽçG%ŽÏ@O?`€ ®`ƒ+$—ápÒcÿøÀePà›Hq+—“ðtk˜¤eâØ†z”["Œâ 88A¤ ‚0ý…¼Ý²©„Q„)ð yZ‰ÁŠ€0<è/‰Ÿ%Á)Ø ‡EÈ@ p»Yå6Í#µ£´$¡–:
|
||||||
|
–›‘"Ô@ŒÔo‘Žxý7°(žèk)@ wGàAù@e6 Ùb6N‡#&p» \áP˜Ž@FQÎÅw_ƒ5ÔíÃ<`°#Ñ áqô]O2׊tÄÃ…‘´HRKœ P0As€0\`r€æTAÚÓ#c‰G/2áßÈã`u¬PÛ‚Ü›/BÿéIÉcÀAnbÀÉp†YÈz$â8„ R£3 9¦ž)[óð9Z ï0¶YÔ…¿tÔ`Dw¥+ôÀžwgè…ÒYÂ?ÿíðF,îà¥E^&ØŒÜ3™!£²œb¦5µ±IeØ"[5ŠÍ¾‚ˆâÇ×¶)o$˜PD<
|
||||||
|
Ò~4xˆD+–ÑÃàä{#(×åbðBÀ 1ÚÁ—láh)×tv?¬Fq¯™Ãn¦z €ðÆÄ|sÑ™{®Íäf)‰ýÄxϱ“Ôža³—™ð_:4%_ìøÿLþÉŠ"{²úù"¾ÈrvÉ{r³çÓ>hǸ¿JÜ3“àÿ§æe†þîÇ3í_¥ø—ÜÎôçËüÛ·?óÙI~†áüº'KÒÇ1Á€Û2¹b|¨ Õ3Ë £Lø´€Y1€ØêWL'áW A‚ 8‚çº ;ÐVÂP
|
||||||
|
¤àžàaÖq‚C£CC±i-*Ñ4Ö4¿¤eŸÓáÐà‰`<&fü6‰€
|
||||||
|
["ñ°
|
||||||
|
]¥]F7kÒRq’áà
|
||||||
|
É0
|
||||||
|
‰ *”QÈ`î$žõQt¨V(q§s©à ‚°\ðc>æ#Š0
|
||||||
|
º€
|
||||||
|
á âÐ…¿ —%†Ûÿ2,ç
|
||||||
|
±ÓÍ
|
||||||
|
;7%W5$Ü\u#g#Z|f3’ÅTeS#^59;aV¿EZu“7†e¢ø]c¥6’XõTaxU8ÙõKi#Z;’G´xU†‹qåQ—•=6Ä6fÄVZ–Ø8qœe0†_¨eP¢Œ…#W`Yó¤eJ•‹u³
|
||||||
|
›àxŽ¿%Žu3‡Âˆ‹¤Ø6»¨T8꧘= 8¬XŠN…Z׆¬•96†œsPCY³ˆqã[eñ‹gŒOÃ[a²"1‹»¨Xk²ß…Óø.ö…„99©‹ùhW¡( ÈðŽQÓ̈%ªøõHUê &—Uc
|
||||||
|
Y
|
||||||
|
*=É5Nå¿tÑiFñxŽ!I$Õ0V…‘ªø“ÒhFÕ æÈMWå8ï AXy•ZI߀6L7 ;
|
After Width: | Height: | Size: 5.5 KiB |
64
logout_doz.php
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
setcookie("doz_uid1", "", time() - 1);
|
||||||
|
setcookie ("jahrgang", "", time() - 1);
|
||||||
|
|
||||||
|
echo "
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Zugang gesperrt</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Abmeldung</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Der Logoutvorgang wurde erfolgreich abgeschlossen!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a target=\"_parent\" href=\"index.php\">
|
||||||
|
<img border=\"0\" src=\"images/b_login.gif\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
?>
|
111
menuframe.php
Executable file
@ -0,0 +1,111 @@
|
|||||||
|
<?php
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
if ($doz_uid1 == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
|
||||||
|
echo"
|
||||||
|
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<title>Menu</title>
|
||||||
|
<base target=\"Hauptframe\">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class=\"farbe\" leftmargin=\"2\">
|
||||||
|
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" align=\"center\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr height=\"15\">
|
||||||
|
<td>
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"15\" border=\"0\" id=\"table2\">
|
||||||
|
<tr>
|
||||||
|
<td valign=\"top\" align=\"left\" width=\"26\" height=\"30\">
|
||||||
|
<img src=\"images/sidebox-title-left.gif\"></td>
|
||||||
|
<td valign=\"center\" align=\"left\" width=\"143\" background=\"images/sidebox-title-bg.gif\" height=\"30\">
|
||||||
|
<font class=\"option\" color=\"#ffffff\"> <b>Menu</b></font></td>
|
||||||
|
<td valign=\"top\" align=\"left\" width=\"6\" height=\"30\">
|
||||||
|
<img src=\"images/sidebox-title-right.gif\"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"175\" height=\"100%\" border=\"0\" id=\"table3\">
|
||||||
|
<tr valign=\"top\">
|
||||||
|
<td valign=\"bottom\" align=\"left\" width=\"4\" background=\"images/sidebox-bar-left.gif\">
|
||||||
|
<p><font face=\"Verdana\" style=\"font-size: 8pt\">
|
||||||
|
<img src=\"images/sidebox-bar-px.gif\"></font></p>
|
||||||
|
</td>
|
||||||
|
<td valign=\"top\" align=\"left\" width=\"166\" bgcolor=\"#d6dff7\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"164\" border=\"0\" height=\"100%\" id=\"table4\">
|
||||||
|
<tr>
|
||||||
|
<td valign=\"top\"> <font face=\"Verdana\"><span style=\"font-size: 8pt\">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<b>1. Schritt</b><br>
|
||||||
|
|
||||||
|
<strong>·</strong>
|
||||||
|
<a href=\"pers_daten_doz.php\" target=\"kurshaupt\">Persönliche Daten</a><br>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<!--
|
||||||
|
<b>2. Schritt</b><br>
|
||||||
|
<strong>·</strong>
|
||||||
|
<a href=\"fragebogen.php\" target=\"kurshaupt\">Angaben zum Fragebogen</a><br>
|
||||||
|
|
||||||
|
<br>-->
|
||||||
|
|
||||||
|
<b>2. Schritt</b><br>
|
||||||
|
|
||||||
|
<strong>·</strong>
|
||||||
|
<a target=\"kurshaupt\" href=\"bewertung.php?nr=1\">1. Hauptwunsch</a><br>
|
||||||
|
|
||||||
|
<strong>·</strong>
|
||||||
|
<a target=\"kurshaupt\" href=\"bewertung.php?nr=2\">2. Hauptwunsch</a><br>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<strong>·</strong>
|
||||||
|
<a target=\"kurshaupt\" href=\"bewertung.php?nr=3\">1. Ersatzwunsch</a><br>
|
||||||
|
|
||||||
|
<strong>·</strong>
|
||||||
|
<a target=\"kurshaupt\" href=\"bewertung.php?nr=4\">2. Ersatzwunsch</a><br>
|
||||||
|
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<strong>·</strong>
|
||||||
|
<a href=\"Kennwortwechsel_doz.php\" target=\"kurshaupt\">Kennwortwechsel</a><br>
|
||||||
|
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<strong>·</strong> </font>
|
||||||
|
<a href=\"logout_doz.php\" target=\"_top\">Logout</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td valign=\"top\" align=\"left\" width=\"4\" background=\"images/sidebox-bar-right.gif\">
|
||||||
|
<img src=\"images/sidebox-bar-px.gif\"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td height=\"15\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"175\" height=\"15\" border=\"0\" id=\"table5\">
|
||||||
|
<tr>
|
||||||
|
<td valign=\"top\" align=\"left\" width=\"175\" height=\"29\">
|
||||||
|
<img src=\"images/sidebox-bottom.gif\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>";
|
||||||
|
?>
|
293
pers_daten_doz.php
Executable file
@ -0,0 +1,293 @@
|
|||||||
|
<?php
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
if ($doz_uid1 == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||||
|
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
|
||||||
|
if (isset($_GET['action']))
|
||||||
|
$action = $_GET['action'];
|
||||||
|
else
|
||||||
|
$action = "";
|
||||||
|
|
||||||
|
switch($action){
|
||||||
|
default:
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$result = $db->query("SELECT doz_funktion, doz_anrede, doz_name, doz_vorname, doz_strasse, doz_plz, doz_ort, doz_titel, doz_mail FROM doz where doz_uid=\"$doz_uid1\"");
|
||||||
|
$row = $result->fetch_array();
|
||||||
|
echo "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Daten vervollständigen</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_top.gif\" valign=\"top\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<font class=\"hd\">Daten vervollständigen</font><br>
|
||||||
|
<span class=\"sh\">Halten Sie bitte Ihre Daten aktuell</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></font></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td>
|
||||||
|
<form action="; echo $_SERVER['PHP_SELF'] . "?action=persdat"; echo" method=\"POST\" name=\"pers_daten\">
|
||||||
|
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-width:0; border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" height=\"280\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
|
||||||
|
<b>Titel:*</b>
|
||||||
|
</td>
|
||||||
|
<td align=\"left\">
|
||||||
|
<input type=\"text\" name=\"Titel\" size=\"60\" value=\"$row[doz_titel]\">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<b>Funktion:*<br>
|
||||||
|
</td>
|
||||||
|
<td align=\"left\">
|
||||||
|
<select name='Funktion'>
|
||||||
|
<option value=''>-</option>
|
||||||
|
<option value='Dozent'";if($row[doz_funktion] == 'Dozent'){ echo " selected";} echo">Dozent</option>
|
||||||
|
<option value='Dekan'";if($row[doz_funktion] == 'Dekan'){ echo " selected";} echo">Dekan</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<b>Anrede:*<br>
|
||||||
|
</td>
|
||||||
|
<td align=\"left\">
|
||||||
|
<select name=\"Anrede\">
|
||||||
|
<option value=''>-</option>
|
||||||
|
<option value='Herr'";if($row[doz_anrede] == 'Herr'){ echo " selected";} echo">Herr</option>
|
||||||
|
<option value='Frau'";if($row[doz_anrede] == 'Frau'){ echo " selected";} echo">Frau</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<b>Vorname:*<br>
|
||||||
|
</td>
|
||||||
|
<td align=\"left\">
|
||||||
|
<input type=\"text\" name=\"Vorname\" size=\"60\" value=\"$row[doz_vorname]\">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"24%\">
|
||||||
|
<b>Nachname:*</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"76%\" align=\"left\">
|
||||||
|
<input type=\"text\" name=\"Nachname\" size=\"60\" value=\"$row[doz_name]\"></td>
|
||||||
|
</tr>
|
||||||
|
<!--
|
||||||
|
<tr>
|
||||||
|
<td width=\"24%\">
|
||||||
|
<b>Straße:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"76%\" align=\"left\">
|
||||||
|
<input type=\"text\" name=\"strasse\" size=\"60\" value=\"$row[doz_strasse]\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"24%\">
|
||||||
|
<b>PLZ / Ort:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"76%\" align=\"left\">
|
||||||
|
<input type=\"text\" name=\"plz\" size=\"5\" value=\"$row[doz_plz]\">
|
||||||
|
<input type=\"text\" name=\"ort\" size=\"49\" value=\"$row[doz_ort]\"></td>
|
||||||
|
</tr>
|
||||||
|
-->
|
||||||
|
<tr>
|
||||||
|
<td width=\"24%\">
|
||||||
|
<b>E-Mail:</b>
|
||||||
|
</td>
|
||||||
|
<td width=\"76%\" align=\"left\">
|
||||||
|
$row[doz_mail]</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"24%\">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td width=\"76%\" align=\"left\">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=\"2\">
|
||||||
|
* Pflichtfelder
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"24%\">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td width=\"76%\" align=\"left\">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<input type=\"submit\" value=\"Abschicken\" name=\"B1\" size=\"20\"></body>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "persdat":
|
||||||
|
|
||||||
|
|
||||||
|
if ($_POST[Titel] == "" or $_POST[Funktion] == "" or $_POST[Anrede] == "" or $_POST[Vorname] == "" or $_POST[Nachname] == "" ){
|
||||||
|
echo"
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Eingabefehler</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Eingabefehler</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Es müssen alle Felder ausgefüllt werden!</b>
|
||||||
|
</p>
|
||||||
|
<p align=\"center\"><a href=\"javascript:history.back()\">
|
||||||
|
<img border=\"0\" src=\"images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
||||||
|
</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$sql = $db->query ("UPDATE doz SET
|
||||||
|
doz_funktion='$_POST[Funktion]'
|
||||||
|
, doz_anrede='$_POST[Anrede]'
|
||||||
|
, doz_vorname='$_POST[Vorname]'
|
||||||
|
, doz_name='$_POST[Nachname]'
|
||||||
|
, doz_titel='$_POST[Titel]'
|
||||||
|
WHERE doz_uid='$doz_uid1'
|
||||||
|
");
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<meta http-equiv=\"refresh\" content=\"2; URL=hauptframe.php\">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<title>Änderungen gespeichert</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div align=\"center\">
|
||||||
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"0\">
|
||||||
|
<tr>
|
||||||
|
<td width=\"10\" background=\"images/box_e1.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"images/box_top.gif\" valign=\"top\"></td>
|
||||||
|
<td width=\"95%\" background=\"images/box_top.gif\">
|
||||||
|
<img height=\"10\" src=\"images/blank.gif\" width=\"1\"><br>
|
||||||
|
<span class=\"sh\">Änderungen gespeichert</span><br>
|
||||||
|
<img height=\"5\" src=\"images/blank.gif\" width=\"1\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e2.gif\">
|
||||||
|
<img height=\"40\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width=\"1%\" background=\"images/box_l.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td colspan=\"2\"><br>
|
||||||
|
<p align=\"center\"><b>Die Änderungen wurden gespeichert!</b>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td width=\"1%\" background=\"images/box_r.gif\">
|
||||||
|
<img height=\"1\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"images/box_e3.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"images/box_bottom.gif\" colspan=\"2\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"8\"></td>
|
||||||
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"images/box_e4.gif\">
|
||||||
|
<img height=\"16\" src=\"images/blank.gif\" width=\"22\"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>";
|
||||||
|
} // Ende Action
|
||||||
|
?>
|
119
styles_pc.css
Executable file
@ -0,0 +1,119 @@
|
|||||||
|
font.hd { /* Überschrifteinstellungen */
|
||||||
|
font-family : Verdana,Arial,Helvetica,sans-serif;
|
||||||
|
font-size : 17px;
|
||||||
|
font-weight : bold;
|
||||||
|
color : #002276;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sh { /* Subheader */
|
||||||
|
font-weight : normal;
|
||||||
|
font-size : 12px;
|
||||||
|
color : rgb(101, 101, 101);
|
||||||
|
font-family : Arial,Helvetica,sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
li { /* Aufzählungen */
|
||||||
|
font-weight : normal;
|
||||||
|
font-size : 12px;
|
||||||
|
font-family : Arial,Helvetica,sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formdesc {
|
||||||
|
padding-left : 10px;
|
||||||
|
width : 33%;
|
||||||
|
color : rgb(255, 255, 255);
|
||||||
|
background-color : rgb(146, 155, 171);
|
||||||
|
font-weight : bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login {
|
||||||
|
background-color : #f1f2f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-weight : normal;
|
||||||
|
color : #000066;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 9pt;
|
||||||
|
color : #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
td {
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 9pt;
|
||||||
|
color : #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 8pt;
|
||||||
|
font-weight : bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.uberschrift {
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 12pt;
|
||||||
|
font-weight : bold;
|
||||||
|
color : #006699;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.bemerkung {
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 8pt;
|
||||||
|
font-weight : bold;
|
||||||
|
color : #FF0000;
|
||||||
|
text-transform : uppercase; /* Großbuchstaben */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.farbe { /* Hintergrundsfarbe im Titel bei Export Word, Aushänge */
|
||||||
|
background-color : #6487DC;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.contentfarbe { /* Hintergrundsfarbe in Tabellen bei Inhalten */
|
||||||
|
background-color : #DEDEDE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.titel { /* Kopfframe */
|
||||||
|
font-weight : bold;
|
||||||
|
text-decoration : none;
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 16pt;
|
||||||
|
color : #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.footer { /* Fußzeile (Copyright) */
|
||||||
|
text-decoration : none;
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 8pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.nav_link { /* Hyperlinks in der Navigation */
|
||||||
|
text-decoration : none;
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 8pt;
|
||||||
|
height : 13pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.nav_head { /* Überschriften in der Navigation */
|
||||||
|
font-weight : bold;
|
||||||
|
text-decoration : none;
|
||||||
|
font-family : verdana, arial;
|
||||||
|
font-size : 9pt;
|
||||||
|
}
|
32
topframe.php
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||||
|
$doz_uid1=$_COOKIE["doz_uid1"];
|
||||||
|
if($doz_uid1 == "")
|
||||||
|
{
|
||||||
|
echo "Bitte melden Sie sich erst am System an!";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$db = dbconnect();
|
||||||
|
$datum=date("Y-m-d H:i:s");
|
||||||
|
$ip=getenv("REMOTE_ADDR");
|
||||||
|
|
||||||
|
$result_1 = @$db->query("INSERT INTO bew_dozlog (Datum, IP, uid) VALUES ('$datum', '$ip', '$doz_uid1')");
|
||||||
|
// Ende Log Datei
|
||||||
|
echo"
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
||||||
|
<meta http-equiv=\"Content-Language\" content=\"de\">
|
||||||
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||||
|
<title>Kurs</title>
|
||||||
|
<base target=\"Inhalt\">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class=\"farbe\">
|
||||||
|
<p class=\"titel\"><b>Bewertungssystem</b></p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>";
|
||||||
|
?>
|