first commit
This commit is contained in:
924
stud/auswahl.php
Executable file
924
stud/auswahl.php
Executable file
@ -0,0 +1,924 @@
|
||||
<?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='2'");
|
||||
$uhd = $ansp->fetch_array();
|
||||
$ansprechpart = "$uhd[wert1]"; // Ansprechpartner bei Probleme
|
||||
$helpmail = "$uhd[wert2]"; // Kontaktmailadresse bei Problemen
|
||||
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
|
||||
include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
// ÜBerprüfung, ob die Anmeldefrist überschritten ist
|
||||
$heute = mktime(0, 0, 0, date("m"), date("d"), date("Y")); // heutiges Datum
|
||||
$heute_format = date("Y-m-d", $heute); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich
|
||||
|
||||
$res = $db->query("SELECT Jahrgang, stg FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
$anm_schluss = $db->query("SELECT DATE_Format(skik_beginn, '%Y-%m-%d')AS beginndatum, DATE_Format(skik_beginn, '%d.%m.%Y')AS beginnform, DATE_Format(skik_ende, '%Y-%m-%d')AS enddatum FROM skik_ende where jahrgang='$stud_jahr[Jahrgang]' AND stg='$stud_jahr[stg]'");
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[enddatum]); // Umrechnung des Enddatums in eine Zahl
|
||||
$c = strtotime ($row_schluss[beginndatum]); // Umrechnung des Beginndatums in eine Zahl
|
||||
|
||||
if ($a < $c){
|
||||
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>Anmeldungen noch nicht möglich!</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\">Anmeldungen noch nicht möglich!</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>Anmeldungen sind erst ab $row_schluss[beginnform] möglich!</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>";
|
||||
exit;
|
||||
} // Ende Überprüfung der Zeitüberschreitung
|
||||
|
||||
if ($a > $b){
|
||||
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>Anmeldezeit verstrichen</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\">Anmeldezeit verstrichen</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>Anmeldungen sind derzeit nicht möglich!</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>";
|
||||
exit;
|
||||
} // Ende Überprüfung der Zeitüberschreitung
|
||||
// Anmeldeschluss, auslesen und 1 Tag abziehen, da der Student das Datum wissen möchte, bis wann er sich anmelden kann, und nicht ab wann das System gesperrt ist.
|
||||
$anm_schluss = $db->query("SELECT DATE_Format(skik_ende, '%d. %m. %Y') FROM skik_ende where jahrgang=\"$stud_jahr[Jahrgang]\"");
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Auslesen des Datenbankdatum, um davon ein Tag abziehen zu können
|
||||
|
||||
$tag = substr($row_schluss[0], 0,2); // Tag auslesen aus der SQL-Abfrage
|
||||
$mon = substr($row_schluss[0], 3,3); // Monat auslesen aus der SQL-Abfrage
|
||||
$jahr = substr($row_schluss[0], 7, 10); // Jahr auslesen aus der SQL Abfrage
|
||||
|
||||
$tstamp = mktime(0,0,0, $mon, $tag, $jahr); // Tag subtrahieren, der dann in der HTML auch ausgegeben wird
|
||||
$datum = date("d.m.Y",$tstamp); // Datum formatieren
|
||||
|
||||
|
||||
$result = $db->query("SELECT uid, nachname, vorname, Jahrgang FROM stud where uid=\"$uid1\"");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
|
||||
// ################################################## BEGINN DER FEHLERMELDUNGEN ##################################################
|
||||
|
||||
$stg_leer = $db->query("SELECT vorname, nachname, poplz, poort, postrasse, stg, stgtext, ag, jahrgang FROM stud where uid=\"$uid1\"");
|
||||
$row_stg = $stg_leer->fetch_array(); // Feststellen, wenn Feld leer muss ein Studiengang gewählt werden
|
||||
|
||||
if ($row_stg[stg] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>In Ihrem Profil ist kein Studienzweig eingetragen.<br>Bitte wenden Sie sich an <a href=\"mailto:$helpmail?subject=Kein Studienzweig bei $uid1\">
|
||||
$ansprechpart</a></b></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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($row_stg[vorname] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihren Vornamen eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($row_stg[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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihren Nachnamen eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($row_stg[poplz] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihre Postleitzahl eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($row_stg[poort] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihren Wohnort eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($row_stg[postrasse] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihre Straße eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
*/
|
||||
if ($row_stg[ag] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihre AG eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($row_stg[jahrgang] == "") {
|
||||
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>Fehlende Informationen</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\">Fehlende Informationen</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>Sie müssen zuerst Ihren Jahrgang eintragen!</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>";
|
||||
exit;
|
||||
}
|
||||
*/
|
||||
|
||||
// ################################################## ENDE DER FEHLERMELDUNGEN ##################################################
|
||||
|
||||
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>Auswahl der Sprachkurse / Interkulturelle Kompetenzen für $row[vorname] $row[nachname]</title>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id=\"MicrosoftUhr\" class=\"Uhr\"></div>
|
||||
<layer id=\"NetscapeUhr\"></layer>
|
||||
|
||||
<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=\"100%\" 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\">Auswahl der Sprachkurse / Interkulturelle Kompetenzen für $row[vorname] $row[nachname]</font><br>
|
||||
<span class=\"sh\">Anmelde- / Änderungsfrist ist der $datum
|
||||
</span>
|
||||
<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=Vertiefungsbereich"; echo" method=\"POST\" name=\"auswahl\">
|
||||
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E7E8ED\" width=\"100%\" id=\"AutoNumber1\">
|
||||
<tr>
|
||||
<td width=\"5%\">
|
||||
<p align=\"center\"><b>
|
||||
Nr.</b></p>
|
||||
</td>
|
||||
<td width=\"55%\">
|
||||
<p style=\"margin-left: 6; margin-top:4; margin-bottom:4\"><b>Bezeichnung</b></p>
|
||||
</td>
|
||||
<td width=\"10%\" align=\"center\" height=\"18\">
|
||||
<b>1. Priorität</b></p>
|
||||
</td>
|
||||
<td width=\"10%\" align=\"center\">
|
||||
<b>2. Priorität</b></p>
|
||||
</td>
|
||||
<td width=\"10%\" align=\"center\">
|
||||
<b>3. Priorität</b></p>
|
||||
</td>
|
||||
<td width=\"10%\" align=\"center\">
|
||||
<b>4. Priorität</b></p>
|
||||
</td>";
|
||||
$db = dbconnect();
|
||||
$res = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, AG, Jahrgang, stg, mail FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
$query = "SELECT id, FPRNr, Bezeichnung, bemerkung
|
||||
FROM skik_kurs
|
||||
WHERE Jahr='$stud_jahr[Jahrgang]'
|
||||
AND Zweig LIKE '%$stud_jahr[stg]%'
|
||||
ORDER BY FPRNr ASC";
|
||||
$result = $db->query($query)
|
||||
or die ("Cannot execute query1");
|
||||
while ($row = $result->fetch_array()){
|
||||
echo "
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"5%\" valign=\"middle\" align=\"center\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
$row[FPRNr]
|
||||
</td>
|
||||
<td width=\"55%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
$row[Bezeichnung]<br><span class=\"bemerkung\">$row[bemerkung]</span>
|
||||
</td>
|
||||
|
||||
<td width=\"10%\" align=\"center\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<input type=\"radio\" value=\"$row[id]\" name=\"FPRNr_Prio1\"";
|
||||
$db = dbconnect();
|
||||
$result2 = $db->query("SELECT uid, id, Prioritaet FROM skik_wunsch where id=\"$row[id]\" and uid=\"$uid1\" and Prioritaet=\"1\"");
|
||||
$row2 = $result2->fetch_array();
|
||||
if ($row2[Prioritaet] == "1") echo " checked"; echo ">
|
||||
</td>
|
||||
|
||||
|
||||
<td width=\"10%\" align=\"center\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<input type=\"radio\" value=\"$row[id]\" name=\"FPRNr_Prio2\"";
|
||||
$db = dbconnect();
|
||||
$result3 = $db->query("SELECT uid, id, Prioritaet FROM skik_wunsch where id=\"$row[id]\" and uid=\"$uid1\" and Prioritaet=\"2\"");
|
||||
$row3 = $result3->fetch_array();
|
||||
if ($row3[Prioritaet] == "2") echo " checked"; echo ">
|
||||
</td>
|
||||
|
||||
|
||||
<td width=\"10%\" align=\"center\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<input type=\"radio\" value=\"$row[id]\" name=\"FPRNr_Prio3\"";
|
||||
$db = dbconnect();
|
||||
$result4 = $db->query("SELECT uid, id, Prioritaet FROM skik_wunsch where id=\"$row[id]\" and uid=\"$uid1\" and Prioritaet=\"3\"");
|
||||
$row4 = $result4->fetch_array();
|
||||
if ($row4[Prioritaet] == "3") echo " checked"; echo ">
|
||||
</td>
|
||||
|
||||
|
||||
<td width=\"10%\" align=\"center\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<input type=\"radio\" value=\"$row[id]\" name=\"FPRNr_Prio4\"";
|
||||
$db = dbconnect();
|
||||
$result5 = $db->query("SELECT uid, id, Prioritaet FROM skik_wunsch where id=\"$row[id]\" and uid=\"$uid1\" and Prioritaet=\"4\"");
|
||||
$row5 = $result5->fetch_array();
|
||||
if ($row5[Prioritaet] == "4") echo " checked"; echo ">
|
||||
</td>
|
||||
</tr>"; }
|
||||
echo "
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<input type=\"submit\" value=\"Abschicken\" name=\"uhrbutton\">
|
||||
</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 "Vertiefungsbereich":
|
||||
$db = dbconnect();
|
||||
if ($_POST['FPRNr_Prio1'] == "" or $_POST['FPRNr_Prio2'] == "" or $_POST['FPRNr_Prio3'] == "" or $_POST['FPRNr_Prio4'] == "" or $_POST['FPRNr_Prio1'] == $_POST['FPRNr_Prio2'] or $_POST['FPRNr_Prio2'] == $_POST['FPRNr_Prio3'] or $_POST['FPRNr_Prio3'] == $_POST['FPRNr_Prio4'] or $_POST['FPRNr_Prio1'] == $_POST['FPRNr_Prio3'] or $_POST['FPRNr_Prio1'] == $_POST['FPRNr_Prio4'] or $_POST['FPRNr_Prio2'] == $_POST['FPRNr_Prio4']) {
|
||||
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>Doppelbelegung</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\">Doppelbelegung</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 dürfen keine Felder doppelt angeklickt 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$sql = $db->query("delete from skik_wunsch where uid = '$uid1'");
|
||||
$result_1 = $db->query("INSERT INTO `skik_wunsch` ( `uid` , `id` , `Prioritaet` ) VALUES ('$uid1', ". $_POST['FPRNr_Prio1'].", '0')");
|
||||
$result_1 = $db->query("INSERT INTO `skik_wunsch` ( `uid` , `id` , `Prioritaet` ) VALUES ('$uid1', ". $_POST['FPRNr_Prio1'].", '1')");
|
||||
$result_1 = $db->query("INSERT INTO `skik_wunsch` ( `uid` , `id` , `Prioritaet` ) VALUES ('$uid1', ". $_POST['FPRNr_Prio2'].", '2')");
|
||||
$result_1 = $db->query("INSERT INTO `skik_wunsch` ( `uid` , `id` , `Prioritaet` ) VALUES ('$uid1', ". $_POST['FPRNr_Prio3'].", '3')");
|
||||
$result_1 = $db->query("INSERT INTO `skik_wunsch` ( `uid` , `id` , `Prioritaet` ) VALUES ('$uid1', ". $_POST['FPRNr_Prio4'].", '4')");
|
||||
|
||||
$ausgabe1 = $db->query("SELECT Bezeichnung FROM skik_kurs where id=". $_POST['FPRNr_Prio1']."");
|
||||
$Wpf1 = $ausgabe1->fetch_array();
|
||||
|
||||
$ausgabe2 = $db->query("SELECT Bezeichnung FROM skik_kurs where id=". $_POST['FPRNr_Prio2']."");
|
||||
$Wpf2 = $ausgabe2->fetch_array();
|
||||
|
||||
$ausgabe3 = $db->query("SELECT Bezeichnung FROM skik_kurs where id=". $_POST['FPRNr_Prio3']."");
|
||||
$Wpf3 = $ausgabe3->fetch_array();
|
||||
|
||||
$ausgabe4 = $db->query("SELECT Bezeichnung FROM skik_kurs where id=". $_POST['FPRNr_Prio4']."");
|
||||
$Wpf4 = $ausgabe4->fetch_array();
|
||||
|
||||
include("kurs/wpf/erg_auswahl1.php"); // Auswertung der Erstwahl der Sprachkurse / Interkulturelle Kompetenzen
|
||||
|
||||
} // If Anweisung Action-Abfrage
|
||||
|
||||
?>
|
127
stud/detailansicht.php
Executable file
127
stud/detailansicht.php
Executable file
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
if ($_COOKIE["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
|
||||
require_once '../htmlpurifier-4.10.0/library/HTMLPurifier.auto.php';
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$purifier = new HTMLPurifier($config);
|
||||
|
||||
$id = $_GET['id'];
|
||||
$db = dbconnect();
|
||||
|
||||
$res = $db->query("SELECT FPRNr, Bezeichnung, Ansprechpart, TN_min, TN_max, Jahr, gruppen, beschreibung, termine, termin_ausserhalb, bemerkung
|
||||
FROM skik_kurs
|
||||
WHERE id='$id'");
|
||||
$row = $res->fetch_array();
|
||||
|
||||
$gruppen = $row['gruppen'];
|
||||
$termine = $row['termine'];
|
||||
|
||||
$query = "SELECT concat(doz_titel,' ', doz_vorname,' ', doz_name,' (', doz_mail ,')') dozent
|
||||
FROM skik_doz a,doz b
|
||||
WHERE a.doz_nr = b.doz_nr
|
||||
AND id = $id";
|
||||
|
||||
$result4 = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
while ($row1 = $result4->fetch_array()){
|
||||
$dozent .= $row1['dozent']."<br>";
|
||||
}
|
||||
|
||||
if($row['Ansprechpart']!=''){
|
||||
$ansprechpartner = $row['Ansprechpart'];
|
||||
$partner ="AprechpartnerIn: $ansprechpartner";
|
||||
}
|
||||
|
||||
if($row['termin_ausserhalb'] != ''){
|
||||
$auserhalb = "Die Veranstaltungstermine werden möglicherweise außerhalb<br>der Hochschule Ludwigsburg stattfinden.";
|
||||
$term_ausser ="<tr>
|
||||
<td>
|
||||
Hinweis:
|
||||
</td>
|
||||
<td>
|
||||
$auserhalb
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
|
||||
$header = "<table width='607' border='0' cellpadding='0' cellspacing='0' border ='1' style='background-color:#CCCCCC;'>
|
||||
<tr>
|
||||
<td align='center' width='607'>
|
||||
Sprachkurs / Interkulturelle Kompetenzen
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' width='607'>
|
||||
- $row[FPRNr] -\n$row[Bezeichnung]
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width='607' border='0' cellpadding='0' cellspacing='0' border ='0'>
|
||||
<tr>
|
||||
<td width='150'>
|
||||
DozentIn:
|
||||
</td>
|
||||
<td width='457'>
|
||||
$dozent
|
||||
$partner
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='150'>
|
||||
Termine:
|
||||
</td>
|
||||
<td width='457'>
|
||||
$termine
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
$term_ausser
|
||||
|
||||
<tr>
|
||||
<td width='150'>
|
||||
Anzahl der Gruppen:
|
||||
</td>
|
||||
<td width='457'>
|
||||
$gruppen
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
";
|
||||
|
||||
$beschreibung = str_replace (array("<ul>", chr(10)), array("</div><div align='justify'><ul type='square'>",""), $row['beschreibung']);
|
||||
$beschreibung = str_replace (array("<ul>", chr(10), "<ol>"), array("</div><div align='justify'><ul type='square'>","", "</div><div align='justify'><ol>"), $beschreibung);
|
||||
$beschreibung = str_replace (array("ä", "Ä", "ü", "Ü", "ö", "Ö", "ß")
|
||||
, array("ä", "Ä", "ü", "Ü", "ö", "Ö", "ß")
|
||||
, $beschreibung
|
||||
);
|
||||
# Span muss entfernt werden, da sonst font-family:Times kommt, die Schrift findet html2pdf nicht.
|
||||
$beschreibung = preg_replace("(</?span[^>]*\>)i", "", $beschreibung);
|
||||
# Colgroup muss entfernt werden, das gibt es nicht
|
||||
$beschreibung = preg_replace("(</?colgroup[^>]*\>)i", "", $beschreibung);
|
||||
$beschreibung = $purifier->purify($beschreibung);
|
||||
|
||||
require_once('../html2pdf_v4.03/html2pdf.class.php');
|
||||
$inhalt_fin = '<page backtop="0mm" backbottom="10mm" style="font-size: 11pt" style="font-family: freeserif">'.nl2br($inhalt_fin).'</page>';
|
||||
|
||||
#echo $header.$beschreibung;
|
||||
#exit;
|
||||
try
|
||||
{
|
||||
// seitenränder (in mm)
|
||||
$oben=15; //mT
|
||||
$unten=15; //mB
|
||||
$links=15; //mL
|
||||
$rechts=15; //mR
|
||||
$html2pdf = new HTML2PDF('P', 'A4', 'de', true, 'UTF-8', array($links, $oben, $rechts, $unten));
|
||||
$html2pdf->pdf->SetDisplayMode('real');
|
||||
$html2pdf->writeHTML($header.$beschreibung, isset($_GET['vuehtml']));
|
||||
$html2pdf->Output("SKIK_$row[FPRNr].pdf",'D');
|
||||
|
||||
}
|
||||
catch(HTML2PDF_exception $e) {
|
||||
echo $e;
|
||||
}
|
||||
?>
|
293
stud/endgueltig.php
Executable file
293
stud/endgueltig.php
Executable file
@ -0,0 +1,293 @@
|
||||
<?php
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$db = dbconnect();
|
||||
include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
// ÜBerprüfung, ob die Anmeldefrist überschritten ist
|
||||
$heute = mktime(0, 0, 0, date("m"), date("d"), date("Y")); // heutiges Datum
|
||||
$heute_format = date("Y-m-d", $heute); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich
|
||||
|
||||
$res = $db->query("SELECT Jahrgang, stg FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
$anm_schluss = $db->query("SELECT DATE_Format(skik_einsicht, '%Y-%m-%d')AS datum, DATE_Format(skik_einsicht, '%d.%m.%Y')AS einsicht1 FROM skik_ende where jahrgang='$stud_jahr[Jahrgang]' AND stg='$stud_jahr[stg]'");
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[datum]); // Umrechnung des Beginndatums in eine Zahl
|
||||
|
||||
if ($a < $b){
|
||||
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\">Zugang gesperrt</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 Einsicht ist nicht vor<br>$row_schluss[einsicht1]<br>möglich!</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>";
|
||||
exit;
|
||||
} // Ende Überprüfung der Zeitüberschreitung
|
||||
|
||||
|
||||
|
||||
// Herausfinden, ob überhaupt ein Vertiefungsbereich abgegeben wurde
|
||||
$psn_abg = $db->query("SELECT uid FROM skik_wunsch WHERE uid=\"$uid1\"");
|
||||
$abgegeben = $psn_abg->fetch_array();
|
||||
|
||||
if ($abgegeben[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>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\">Zugang gesperrt</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>Sie müssen zuerst Sprachkurse/Interkulturelle Kompetenzen belegen</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
$sql = $db->query("SELECT id from skik_wunsch where uid=\"$uid1\" and Prioritaet=\"0\"");
|
||||
$row = $sql->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
$sql1 = $db->query("SELECT FPRNr, Bezeichnung from skik_kurs where id=\"$row[id]\"");
|
||||
$row1 = $sql1->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
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>Endgültiges Vertiefungsbereich</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\">Endgültiges Ergebnis</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>
|
||||
<table width=\"80%\" align=\"center\">
|
||||
<tr>
|
||||
<td width=\"35%\"><b>Nr.:</b></td>
|
||||
<td align=\"left\">$row1[FPRNr]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"35%\" valign=\"top\"><b>Bezeichnung:</b></td>
|
||||
<td align=\"left\">$row1[Bezeichnung]</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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><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>";
|
||||
|
||||
// Mailversand auslösen Ticket 143
|
||||
// Die beteiligten Professoren sollen unabhängig vom Sprackurs/Interkulturelle Kompetenz per Mail angeschrieben werden, dass Sie zum Prüfer für Sprackurse/Interkulturelle Kompetenzen bestellt werden.
|
||||
// Egal welchen Sprackurs/Interkulturelle Kompetenz und egal welcher Student
|
||||
|
||||
// Tabelle ´skik_mail_ausschuss´ protokolliert das für jeden Jahrgang
|
||||
// While Schleife über alle beteiligten Dozenten und jedem eine Mail schicken, wenn er sie in diesem Jahr noch nicht bekommen hat
|
||||
|
||||
$query2 = "SELECT doz_nr
|
||||
FROM skik_doz
|
||||
WHERE id='$row[id]'
|
||||
";
|
||||
$result2 = $db->query($query2)
|
||||
or die ("Cannot execute query2");
|
||||
while ($row2 = $result2->fetch_array()){
|
||||
|
||||
$sql3 = $db->query("SELECT count(*) Anz
|
||||
FROM skik_mail_ausschuss
|
||||
WHERE jahrgang ='$stud_jahr[Jahrgang]'
|
||||
AND doz_nr = $row2[doz_nr]
|
||||
");
|
||||
$row3 = $sql3->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
// Wenn dieses Jahr noch keine Mail vesand wurde, dann eine versenden
|
||||
if($row3['Anz'] == 0 AND $stud_jahr['Jahrgang'] >= '17'){
|
||||
|
||||
$result4 = $db->query("SELECT doz_mail, doz_vorname, doz_name
|
||||
FROM doz
|
||||
WHERE doz_nr='$row2[doz_nr]'
|
||||
");
|
||||
$row4 = $result4->fetch_array();
|
||||
|
||||
$empfaenger = "$row4[doz_mail]";
|
||||
$betreff = "Bestellung zur prüfenden Person";
|
||||
$text = "
|
||||
<html>
|
||||
<head>
|
||||
<title>Bestellung</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face='Arial' size='2'>
|
||||
Sehr geehrte Damen und Herren,<br><br>
|
||||
der Prüfungsausschuss bestellt Sie zur prüfenden Person für den/die von Ihnen angebotenen Kurs/e Sprachen/IKK des Studienjahrgangs $stud_jahr[Jahrgang] und dankt Ihnen für Ihren Einsatz.
|
||||
<br>
|
||||
<br>
|
||||
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 .= "From: Hochschule Ludwigsburg <pm-ba@hs-ludwigsburg.de>\n";
|
||||
$headers .= "Content-type: text/html; charset=utf-8\r\n";
|
||||
|
||||
|
||||
$return = @mail($empfaenger, $betreff, $text, $headers);
|
||||
# if($return){
|
||||
$heute_format = date("Y-m-d H:i:s",time());
|
||||
$sql = $db->query ("INSERT INTO skik_mail_ausschuss (doz_nr, jahrgang, mail_dat)
|
||||
VALUES ('$row2[doz_nr]', '$stud_jahr[Jahrgang]', '$heute_format')
|
||||
");
|
||||
# }
|
||||
$betreff = "$row4[doz_vorname] $row4[doz_name]: Bestellung zur prüfenden Person";
|
||||
$empfaenger = "pm-ba@hs-ludwigsburg.de";
|
||||
$return = @mail($empfaenger, $betreff, $text, $headers);
|
||||
}
|
||||
}
|
||||
?>
|
BIN
stud/ico_pdf.gif
Executable file
BIN
stud/ico_pdf.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 1007 B |
236
stud/liste.php
Executable file
236
stud/liste.php
Executable file
@ -0,0 +1,236 @@
|
||||
<?php
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$db = dbconnect();
|
||||
include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
// ÜBerprüfung, ob die Anmeldefrist überschritten ist
|
||||
$heute = mktime(0, 0, 0, date("m"), date("d"), date("Y")); // heutiges Datum
|
||||
$heute_format = date("Y-m-d", $heute); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich
|
||||
|
||||
$res = $db->query("SELECT Jahrgang, stg FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
$anm_schluss = $db->query("SELECT DATE_Format(skik_einsicht, '%Y-%m-%d')AS datum, DATE_Format(skik_einsicht, '%d.%m.%Y')AS einsicht1 FROM skik_ende where jahrgang='$stud_jahr[Jahrgang]' AND stg='$stud_jahr[stg]'");
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[datum]); // Umrechnung des Beginndatums in eine Zahl
|
||||
|
||||
if ($a < $b){
|
||||
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\">Zugang gesperrt</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 Einsicht ist nicht vor<br>$row_schluss[einsicht1]<br>möglich!</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>";
|
||||
exit;
|
||||
} // Ende Überprüfung der Zeitüberschreitung
|
||||
|
||||
|
||||
|
||||
// Herausfinden, ob überhaupt ein Vertiefungsbereich abgegeben wurde
|
||||
$psn_abg = $db->query("SELECT uid FROM skik_wunsch WHERE uid=\"$uid1\"");
|
||||
$abgegeben = $psn_abg->fetch_array();
|
||||
|
||||
if ($abgegeben[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>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\">Zugang gesperrt</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>Sie müssen zuerst Sprachkurse/Interkulturelle Kompetenzen belegen</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
$sql = $db->query("SELECT id from skik_wunsch where uid=\"$uid1\" and Prioritaet=\"0\"");
|
||||
$row = $sql->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
$sql1 = $db->query("SELECT FPRNr, Bezeichnung from skik_kurs where id=\"$row[id]\"");
|
||||
$row1 = $sql1->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
|
||||
$query2 = "SELECT vorname, nachname, ag, jahrgang from stud, skik_wunsch where stud.uid=skik_wunsch.uid AND id='$row[id]' and Prioritaet='0' ORDER BY nachname";
|
||||
$result2 = $db->query($query2)
|
||||
or die ("Cannot execute query2");
|
||||
|
||||
|
||||
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>Endgültiges Ergebnis</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=\"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=\"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\">Teilnehmer in den Sprachkursen / in der Interkulturellen Kompetenz</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>
|
||||
<table width=\"100%\" align=\"center\">
|
||||
<tr>
|
||||
<td align=\"left\" width='70%'><b>Name</b></td>
|
||||
<td align=\"left\" width='30%'><b>AG</b></td>
|
||||
</tr>";
|
||||
|
||||
while ($row2 = $result2->fetch_array()){
|
||||
echo"
|
||||
<tr>
|
||||
<td width='70%' valign=\"top\">$row2[vorname] $row2[nachname]</td>
|
||||
<td width='30%' align=\"left\">$row2[ag]/$row2[jahrgang]</td>
|
||||
</tr>";
|
||||
}
|
||||
echo"
|
||||
</table>
|
||||
|
||||
<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>";
|
||||
|
||||
|
||||
?>
|
479
stud/pers_daten_Vertiefungsbereich.php
Executable file
479
stud/pers_daten_Vertiefungsbereich.php
Executable file
@ -0,0 +1,479 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
|
||||
if (isset($_GET['action']))
|
||||
$action = $_GET['action'];
|
||||
else
|
||||
$action = "";
|
||||
|
||||
switch($action){
|
||||
default:
|
||||
|
||||
$db = dbconnect();
|
||||
include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
$result = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, AG, Jahrgang, mail FROM stud where uid=\"$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 Ihre Daten bis zum Ende des Studiums 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=\"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=\"32\">
|
||||
<b>Vorname:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<p>
|
||||
<input type=\"text\" name=\"Vorname\" size=\"50\" value=\"$row[vorname]\"></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<b>Nachname:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<p>
|
||||
<input type=\"text\" name=\"Nachname\" size=\"50\" value=\"$row[nachname]\"></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<b>Straße:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<p>
|
||||
<input type=\"text\" name=\"strasse\" size=\"50\" value=\"$row[postrasse]\"></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<b>PLZ / Ort:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<p>
|
||||
<input type=\"text\" name=\"plz\" size=\"5\" value=\"$row[poplz]\">
|
||||
<input type=\"text\" name=\"ort\" size=\"40\" value=\"$row[poort]\"></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<b>AG:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<p>
|
||||
<input type=\"text\" name=\"AG\" size=\"1\" value=\"$row[AG]\">
|
||||
/
|
||||
$row[Jahrgang]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<b>E-Mail:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"32\">
|
||||
<p>$row[mail]
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"28%\" style=\"border-style: none; border-width: medium\" height=\"25\"> </td>
|
||||
<td width=\"72%\" align=\"left\" style=\"border-style: none; border-width: medium\" height=\"25\"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"98%\" style=\"border-style: none; border-width: medium\" height=\"25\" colspan=\"2\">
|
||||
Alle Felder müssen ausgefüllt werden
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"28%\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<p> </p>
|
||||
</td>
|
||||
<td width=\"72%\" 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 "persdat":
|
||||
|
||||
|
||||
if ($_POST['Vorname'] == "" or $_POST['Nachname'] == "" or $_POST['strasse'] == "" or $_POST['plz'] == "" or $_POST['ort'] == "" or $_POST['AG'] == ""){
|
||||
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();
|
||||
|
||||
// UPDATE FLAG setzen
|
||||
$result2 = $db->query("SELECT vorname, nachname, mtknr, postrasse, poplz, poort, ag FROM stud where uid=\"$uid1\"");
|
||||
$row2 = $result2->fetch_array();
|
||||
|
||||
$lv_vorname = 'false';
|
||||
$lv_nachname = 'false';
|
||||
$lv_strasse = 'false';
|
||||
$lv_plz = 'false';
|
||||
$lv_ort = 'false';
|
||||
$lv_ag = 'false';
|
||||
|
||||
if ($row2[vorname] != $_POST[Vorname]){
|
||||
$lv_vorname = 'true';
|
||||
}
|
||||
|
||||
if ($row2[nachname] != $_POST[Nachname]){
|
||||
$lv_nachname = 'true';
|
||||
}
|
||||
|
||||
if ($row2[postrasse] != $_POST[strasse]){
|
||||
$lv_strasse = 'true';
|
||||
}
|
||||
|
||||
if ($row2[poplz] != $_POST[plz]){
|
||||
$lv_plz = 'true';
|
||||
}
|
||||
|
||||
if ($row2[poort] != $_POST[ort]){
|
||||
$lv_ort = 'true';
|
||||
}
|
||||
|
||||
if ($row2[ag] != $_POST[AG]){
|
||||
$lv_ag = 'true';
|
||||
}
|
||||
|
||||
|
||||
if ($lv_vorname == 'true' or $lv_nachname == 'true' or $lv_strasse == 'true' or $lv_plz == 'true' or $lv_ort == 'true' or $lv_ag == 'true'){
|
||||
$heute_format = date("Y-m-d H:i:s",time());
|
||||
$sql = $db->query ("UPDATE stud SET update_flag='$heute_format' WHERE uid=\"$uid1\"");
|
||||
|
||||
$result3 = $db->query("SELECT wert1, wert2 FROM parameter WHERE pid=3");
|
||||
$row3 = $result3->fetch_array();
|
||||
|
||||
$empfaenger = "$row3[wert2]";
|
||||
$betreff = "$row3[wert1]";
|
||||
$text = "
|
||||
<html>
|
||||
<head>
|
||||
<title>Adressänderung</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face='Arial' size='2'>
|
||||
Guten Tag!<br><br>
|
||||
Im Kurssystem wurden bei dem Student / der Studentin <b>$row2[vorname] $row2[nachname]</b><br>mit der Matrikelnummer <b>$row2[mtknr]</b> folgende Adressdaten geändert:<br>
|
||||
<br>
|
||||
<table>";
|
||||
if ($lv_vorname == 'true'){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
Vorname:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$_POST[Vorname]</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($lv_nachname == 'true'){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
Nachname:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$_POST[Nachname]</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($lv_strasse == 'true'){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
Straße:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$_POST[strasse]</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($lv_plz == 'true'){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
PLZ:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$_POST[plz]</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($lv_ort == 'true'){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
Ort:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$_POST[ort]</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($lv_ag == 'true'){
|
||||
$text .= "
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
AG:
|
||||
</font>
|
||||
</td>
|
||||
<td valign='top'>
|
||||
<font face='Arial' size='2'>
|
||||
<b>$_POST[AG]</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
$text .= "
|
||||
</table>
|
||||
<br>
|
||||
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);
|
||||
|
||||
}
|
||||
// UPDATE FLAG ENDE
|
||||
|
||||
|
||||
$sql = $db->query ("UPDATE stud SET vorname='". $_POST['Vorname']."', nachname='". $_POST['Nachname']."', postrasse='". $_POST['strasse']."', poplz='". $_POST['plz']."', poort='". $_POST['ort']."', AG='". $_POST['AG']."' WHERE uid=\"$uid1\"");
|
||||
$result1 = $db->query("SELECT Jahrgang FROM stud where uid=\"$uid1\"");
|
||||
$row1 = $result1->fetch_array();
|
||||
|
||||
echo "
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv=\"refresh\" content=\"6; URL=../hauptframe.php\">
|
||||
<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 geändert</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>
|
||||
<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>
|
||||
". $_POST['Vorname']." ".$_POST['Nachname']."</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<b>Straße:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<p>
|
||||
". $_POST['strasse']."</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<b>PLZ / Ort:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<p>
|
||||
". $_POST['plz']." ". $_POST['ort']."</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<b>AG:</b>
|
||||
</td>
|
||||
<td align=\"left\" style=\"border-style: none; border-width: medium\" height=\"25\">
|
||||
<p>
|
||||
". $_POST['AG']." / $row1[Jahrgang]</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</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>";
|
||||
} // Ende Action
|
||||
?>
|
305
stud/seminarsschein_stud.php
Executable file
305
stud/seminarsschein_stud.php
Executable file
@ -0,0 +1,305 @@
|
||||
<?php
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$db = dbconnect();
|
||||
include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
// ÜBerprüfung, ob die Anmeldefrist überschritten ist
|
||||
$heute = mktime(0, 0, 0, date("m"), date("d"), date("Y")); // heutiges Datum
|
||||
$heute_format = date("Y-m-d", $heute); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich
|
||||
|
||||
$res = $db->query("SELECT Jahrgang, stg FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
$anm_schluss = $db->query("SELECT DATE_Format(druck_schein, '%Y-%m-%d')AS datum, DATE_Format(druck_schein, '%d.%m.%Y')AS einsicht1 FROM skik_ende where jahrgang=\"$stud_jahr[Jahrgang]\" AND stg='$stud_jahr[stg]'");
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[datum]); // Umrechnung des Beginndatums in eine Zahl
|
||||
|
||||
# Kein Druckdatum eingetragen
|
||||
if($row_schluss['datum'] == '0000-00-00'){
|
||||
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\">Zugang gesperrt</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>Ein Ausdruck der Bescheinigung ist aktuell nicht vorgesehen!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
# Zeit noch nicht erreicht zum Drucken
|
||||
if ($a < $b){
|
||||
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\">Zugang gesperrt</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>Ein Ausdruck der Bescheinigung ist ab<br>$row_schluss[einsicht1]<br>möglich!</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>";
|
||||
exit;
|
||||
} // Ende Überprüfung der Zeitüberschreitung
|
||||
|
||||
|
||||
|
||||
// Herausfinden, ob überhaupt ein Proseminar abgegeben wurde
|
||||
$psn_abg = $db->query("SELECT uid FROM skik_wunsch WHERE uid=\"$uid1\"");
|
||||
$abgegeben = $psn_abg->fetch_array();
|
||||
|
||||
if ($abgegeben[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>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\">Zugang gesperrt</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>Sie müssen zuerst ein Proseminar abgeben!</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>";
|
||||
exit;
|
||||
}
|
||||
|
||||
$query_thema = $db->query("SELECT Thema
|
||||
FROM skik_ergebnis
|
||||
WHERE uid='$uid1'");
|
||||
|
||||
|
||||
$row_thema = $query_thema->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
|
||||
if($stud_jahr['stg'] == 'I'){
|
||||
$mail = 'pm-ba@hs-ludwigsburg.de';
|
||||
}elseif($stud_jahr['stg'] == 'F'){
|
||||
$mail = 'afv-ba@hs-ludwigsburg.de';
|
||||
}elseif($stud_jahr['stg'] == 'R'){
|
||||
$mail = 'rv-ba@hs-ludwigsburg.de';
|
||||
}
|
||||
/* Thema gibt es in diesem System nicht
|
||||
if ($row_thema['Thema'] == ''){
|
||||
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>Ausdruck nicht möglich</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=\"600\" 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\">Ausdruck nicht möglich</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\">Ein Ausdruck der Bescheinigung ist nicht möglich, da kein Thema hinterlegt ist.<br>
|
||||
Bitte wenden Sie sich an das <a href='mailto:$mail'>Fakultätsbüro</a>
|
||||
</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>";
|
||||
exit;
|
||||
}
|
||||
*/
|
||||
|
||||
$sql = $db->query("SELECT id from skik_wunsch where uid=\"$uid1\" and Prioritaet=\"0\"");
|
||||
$row = $sql->fetch_array(); // Herausfinden des Beginndatums des vom Studenten gewählten Kurses
|
||||
$ck_SID = $row['id'];
|
||||
|
||||
echo "
|
||||
<meta http-equiv=\"refresh\" content=\"0; URL=../admin/bescheinigung/seminarscheine.php?stud=$uid1&ck_SID=$ck_SID\">
|
||||
";
|
||||
|
||||
?>
|
481
stud/suche.php
Executable file
481
stud/suche.php
Executable file
@ -0,0 +1,481 @@
|
||||
<?php
|
||||
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
$res = $db->query("SELECT Jahrgang, stg FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
#include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
|
||||
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\">
|
||||
|
||||
<style type='text/css'>
|
||||
select{
|
||||
width:250px;
|
||||
}
|
||||
|
||||
|
||||
/* (Live) Search begin */
|
||||
#LSResult {
|
||||
width: 192px;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
background: #eee;
|
||||
border-bottom: 4px solid #ddd;
|
||||
}
|
||||
|
||||
#searchcontrols {
|
||||
background: #ddd;
|
||||
text-align: right;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#searchcontrols #resultsTitle {
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
}
|
||||
#searchcontrols #resultsLegend {
|
||||
float: right;
|
||||
}
|
||||
#searchcontrols #resultsLegend a {
|
||||
font-size: 1.3em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.LSRow:hover, #LSHighlight, #LSHighlight:hover {
|
||||
background: #dde;
|
||||
}
|
||||
|
||||
#LSResult:hover #LSHighlight {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#LSHighlight {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.LSRow {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.LSRow span a, .LSRow span a:visited {
|
||||
word-spacing: -1px;
|
||||
line-height: 1.3em;
|
||||
font-weight: normal;
|
||||
color: #bbb;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<title>Suche</title>
|
||||
</head>
|
||||
|
||||
<body onload=\"start();\">
|
||||
|
||||
<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=\"75%\" 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\">Suche</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=suche"; echo" id=\"searchform\" method=\"POST\" name=\"searchform\">
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E7E8ED\" width=\"100%\" id=\"AutoNumber1\">
|
||||
|
||||
|
||||
<tr>
|
||||
<td width=\"30%\" align=\"left\" height=\"18\">
|
||||
<b>Bezeichnung:</b>
|
||||
</td>
|
||||
<td width=\"70%\" align=\"left\" height=\"18\">
|
||||
<input type=\"text\" name=\"bezeichnung\" size=\"37\">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"30%\" align=\"left\" height=\"18\">
|
||||
<b>Dozent:</b>
|
||||
</td>
|
||||
<td width=\"70%\" align=\"left\" height=\"18\">
|
||||
<!--[if lt IE 7]><div id=\"kategorie\"><![endif]-->
|
||||
";
|
||||
$db = dbconnect();
|
||||
$query = "SELECT distinct doz.doz_nr, doz_name, doz_vorname, doz_titel
|
||||
FROM doz, skik_doz, skik_kurs
|
||||
WHERE doz.doz_nr = skik_doz.doz_nr
|
||||
AND skik_kurs.id = skik_doz.id
|
||||
AND skik_kurs.jahr = '$stud_jahr[Jahrgang]'
|
||||
AND skik_kurs.Zweig LIKE '%$stud_jahr[stg]%'
|
||||
ORDER BY doz_name ASC";
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
echo "<select id='dozent' name='dozent'>
|
||||
<option value='%'>(alle)</option>";
|
||||
while ($row = $result->fetch_array()){
|
||||
echo "<option value=\"".$row[doz_nr]."\">$row[doz_name], $row[doz_vorname] $row[doz_titel] </option>\n";
|
||||
}
|
||||
|
||||
echo"
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=\"30%\" align=\"left\" height=\"18\">
|
||||
<b>Suchart:</b>
|
||||
</td>
|
||||
<td width=\"70%\" align=\"left\" height=\"18\">
|
||||
<label for=\"r3\"><input type=\"radio\" name=\"art\" 'checked' value=\"exact\" id=\"r3\" onfocus=\"setVisibility(0);\"> Exakte Suche</label><br>
|
||||
<label for=\"r4\"><input type=\"radio\" name=\"art\" value=\"any\" id=\"r4\" onfocus=\"setVisibility(0);\"> Ähnliche Suche (bei Kurs wird auch Sprach<b>kurs</b> gefunden)</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<input type=\"submit\" value=\"Abschicken\">
|
||||
</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 "suche":
|
||||
|
||||
$bezeichnung = strtoupper($_POST[bezeichnung]);
|
||||
|
||||
$dozent = strtoupper($_POST[dozent]);
|
||||
|
||||
$art = $_POST[art];
|
||||
|
||||
|
||||
//Select zusammenbauen
|
||||
if($art == 'exact' AND $bezeichnung != ''){ // wenn leer, darf kein regexp kommen, sonst würde er nichts finden
|
||||
$trenner1 = 'REGEXP ';
|
||||
$start1 = '[[:<:]]';
|
||||
$ende1 = '[[:>:]]';
|
||||
}else{
|
||||
$trenner1 = 'LIKE ';
|
||||
$start1 = '%';
|
||||
$ende1 = '%';
|
||||
}
|
||||
|
||||
|
||||
|
||||
$sql1 = "SELECT count(distinct skik_kurs.id) as anz_treffer
|
||||
FROM skik_kurs, skik_doz
|
||||
WHERE ";
|
||||
|
||||
######################################################################################################
|
||||
## SQL ZUSAMMENBAUEN FÜR DIE ÜBERSCHRIFT
|
||||
######################################################################################################
|
||||
|
||||
$bezeichnung = preg_replace('/\s{2,}/sm',' ',$bezeichnung,PREG_SET_ORDER); //Mehr als zwei leerzeichen entfernen
|
||||
preg_match_all("/(\-{0,1}\+{0,1}\*{0,1}%{0,1}\"([^\"]+)\"\*{0,1}%{0,1}\+{0,1}\-{0,1}|\-{0,1}\+{0,1}\*{0,1}%{0,1}(\w+)\*{0,1}%{0,1}\+{0,1}\-{0,1})/", $bezeichnung, $Bezeichnungen);
|
||||
# Erklärung: \-{0,1} --> 0 oder 1 Minuszeichen kann string enthalten
|
||||
# \+{0,1} --> 0 oder 1 Pluszeichen kann string enthalten
|
||||
# \*{0,1} --> 0 oder 1 Asterisk kann string enthalten
|
||||
# %{0,1} --> 0 oder 1 Prozentzeichen kann string enthalten, muss nicht durch \ escaped werden
|
||||
# Vorderer Teil bis | überprüft ob "" eingegeben wurden und splittet innerhalb der "" nicht. Hinterer Teil wenn Wörter ohne "" eingegeben wurde
|
||||
|
||||
if($bezeichnung != ""){
|
||||
|
||||
$sql .= " ("; //Kein AND vor der Klammer notwendig, da direkt nach where, bei anderen muss AND davor stehen
|
||||
|
||||
for($i=0; $i < count($Bezeichnungen); $i++)
|
||||
{
|
||||
|
||||
#In der Überschrift kommen Umlaute vor, daher keine Ersetzung der Umlaute
|
||||
#$ueberschrift = str_replace (array("\\", "ä", "ö", "ü", "ß", "Ä", "Ö", "Ü"), array("", "&AUML;", "&OUML;", "&UUML;", "&SZLIG;", "&AUML;", "&OUML;", "&UUML;"), $Ueberschriften[0][$i]);
|
||||
$ueber = str_replace (array("+", "-", "\"", "\\"), array("", "", "", ""), $Bezeichnungen[0][$i]);
|
||||
|
||||
if($i == 0){
|
||||
$oper = "";
|
||||
}else{
|
||||
$oper = "AND";
|
||||
}
|
||||
|
||||
if(strpos($Bezeichnungen[0][$i],"+") === 0){
|
||||
$sql .= "UPPER(bezeichnung) $trenner1 '$start1".$ueber."$ende1' ";
|
||||
} elseif(strpos($Bezeichnungen[0][$i],"-") === 0){
|
||||
$sql .= "$oper UPPER(bezeichnung) NOT $trenner1 '$start1".$ueber."$ende1' ";
|
||||
} elseif($Bezeichnungen[0][$i] == ""){
|
||||
NULL;
|
||||
}else{
|
||||
$sql .= "$oper UPPER(bezeichnung) $trenner1 '$start1".$ueber."$ende1' ";
|
||||
}
|
||||
}
|
||||
|
||||
$sql .= ")";
|
||||
|
||||
}else{
|
||||
|
||||
$sql .= " UPPER(bezeichnung) LIKE '%' "; //Wenn nichts eingegeben, dann soll alles angzeigt werden. Das braucht man hier weil zusammengesetzter string sonst WHERE AND TEXTSTELLE = .... heißen könnte
|
||||
|
||||
}
|
||||
|
||||
######################################################################################################
|
||||
## SQL ZUSAMMENBAUEN FÜR DIE ÜBERSCHRIFT ENDE
|
||||
######################################################################################################
|
||||
|
||||
|
||||
|
||||
$sql .= "AND skik_kurs.jahr = '$stud_jahr[Jahrgang]'
|
||||
AND skik_kurs.Zweig LIKE '%$stud_jahr[stg]%'
|
||||
AND skik_doz.id = skik_kurs.id
|
||||
AND skik_doz.doz_nr LIKE '$dozent'";
|
||||
|
||||
#####################################################################################################
|
||||
## SQL ZUSAMMENBAUEN FÜR DIE RESTLICHEN FELDER ENDE
|
||||
######################################################################################################
|
||||
|
||||
|
||||
######################################################################################################
|
||||
## GESAMTSELECT - SQL ZUSAMMENBAUEN
|
||||
######################################################################################################
|
||||
|
||||
$query = $sql1.$sql;
|
||||
|
||||
#echo $query;
|
||||
#exit;
|
||||
|
||||
$result = $db->query($query);
|
||||
$res = $result->fetch_array()
|
||||
or die ("Cannot execute query");
|
||||
|
||||
|
||||
|
||||
if($res[anz_treffer] == '' or $res[anz_treffer] == 0){
|
||||
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>keine Treffer</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\">keine Treffer</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 wurden keine Suchergebnisse gefunden</b>
|
||||
|
||||
|
||||
<p align=\"center\"><a href=".$_SERVER['PHP_SELF'] .">
|
||||
<img border=\"0\" src=\"../images/zurueck.gif\"></a>
|
||||
|
||||
</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;
|
||||
}
|
||||
|
||||
|
||||
function kurzer_text($string,$laenge){
|
||||
$origin=strlen($string);
|
||||
$stri_arr=explode(" ",$string);
|
||||
$anzzahl=count($stri_arr);
|
||||
$gekuerzt=0;
|
||||
$string="";
|
||||
while($gekuerzt<$anzzahl){
|
||||
$string_alt=$string;
|
||||
$string=$string." ".$stri_arr[$gekuerzt];
|
||||
$gekuerzt++;
|
||||
if(strlen($string)>$laenge){
|
||||
$gekuerzt=$anzzahl;
|
||||
$string=$string_alt;
|
||||
}
|
||||
}
|
||||
if($laenge<$origin){
|
||||
$string=$string."<nobr> <b>...</b></nobr>";
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
echo "
|
||||
<head>
|
||||
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
||||
<link rel=\"stylesheet\" href=\"../styles_pc.css\" type=\"text/css\">
|
||||
<title>Statistik</title>
|
||||
<style><!--
|
||||
.sl,.r{font-weight:normal;margin:0;display:inline}
|
||||
.r{font-size:1em}
|
||||
.g{margin-top:1em;margin-bottom:1em}
|
||||
.a,.a:link{color:green}
|
||||
body,td,div,.p,a{font-family:arial,sans-serif}
|
||||
--></style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table align=\"center\" border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"95%\" id=\"table1\">
|
||||
<tr>
|
||||
<td>
|
||||
<div align=\"center\">
|
||||
<table valign=\"top\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" 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\">Suchergebnisse</font><br>
|
||||
<span class=\"sh\">Treffer: $res[anz_treffer]</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>
|
||||
<table valign=\"top\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E7E8ED\" width=\"100%\" id=\"AutoNumber1\">";
|
||||
$db = dbconnect();
|
||||
|
||||
$sql1 = "SELECT distinct skik_kurs.id, skik_kurs.FPRNr, bezeichnung, beschreibung, Ansprechpart, termine
|
||||
FROM skik_kurs, skik_doz
|
||||
WHERE ";
|
||||
|
||||
$sql2 = " ORDER BY id asc";
|
||||
$query = $sql1.$sql.$sql2;
|
||||
|
||||
$result = $db->query($query)
|
||||
or die ("Cannot execute query");
|
||||
while ($row = $result->fetch_array()){
|
||||
|
||||
$preview = kurzer_text(strip_tags($row[beschreibung]),200);
|
||||
|
||||
|
||||
|
||||
echo "<tr>
|
||||
<td>
|
||||
<h2 class=r><a class=l href=detailansicht.php?id=$row[0]><b>$row[1]) $row[bezeichnung]</b></a></h2><br>
|
||||
";if(strlen($preview) > 1){echo "$preview<br>";} echo"
|
||||
<span class=a>";if($row[Ansprechpart] != ''){ echo "<b>Ansprechpartner:</b> $row[Ansprechpart]<br>";} echo "
|
||||
";if($row[termine] != ''){ echo "<b>Termine:</b> $row[termine]<br>";} echo "</span>
|
||||
<p>
|
||||
<p>
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
echo"
|
||||
</table>
|
||||
</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>
|
||||
";
|
||||
|
||||
|
||||
} // If Anweisung Action-Abfrage
|
||||
|
||||
|
||||
?>
|
143
stud/ubersicht.php
Executable file
143
stud/ubersicht.php
Executable file
@ -0,0 +1,143 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
if ($_COOKIE["uid1"] == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
if ($uid1 == ""){ include("kurs/anmeldefehler_subdir.php"); exit;} //Wenn man nicht angemeldet ist soll man nichts auswählen können
|
||||
/*
|
||||
Übersicht1 Studenten: Alle Sprachkurse / Interkulturelle Kompetenzen werden mit Dozenten entsprechend ihres Studienzweiges angezeigt
|
||||
*/
|
||||
$db = dbconnect();
|
||||
include("kurs/skik/skik_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
|
||||
$res = $db->query("SELECT Jahrgang, stg FROM stud where uid=\"$uid1\"");
|
||||
$stud_jahr = $res->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>Übersicht über die Sprachkurse / Interkulturelle Kompetenzen des Studienjahrgangs $stud_jahr[Jahrgang]</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=\"100%\" 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\">Übersicht über die Sprachkurse / Interkulturelle Kompetenzen des Studienjahrgangs $stud_jahr[Jahrgang]</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>
|
||||
|
||||
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#E7E8ED\" width=\"100%\" id=\"AutoNumber1\">
|
||||
<tr>
|
||||
<td width=\"5%\">
|
||||
<p align=\"center\"><b>Nr.</b></p>
|
||||
</td>
|
||||
<td width=\"49%\">
|
||||
<b>Bezeichnung</b>
|
||||
</td>
|
||||
<td width=\"26%\">
|
||||
<b>Leiter / Leiterin</b>
|
||||
</td>
|
||||
</td>
|
||||
<td width=\"10%\">
|
||||
<p align=\"center\"><b>Anmeldungen</b>
|
||||
</td>
|
||||
<td width=\"10%\">
|
||||
<p align=\"center\"><b>Kurzbeschreibung</b>
|
||||
</td>
|
||||
</tr>";
|
||||
$db = dbconnect();
|
||||
$query = "SELECT id, FPRNr, Bezeichnung, TN_max, bemerkung
|
||||
FROM skik_kurs
|
||||
WHERE Jahr='$stud_jahr[Jahrgang]'
|
||||
AND Zweig LIKE '%$stud_jahr[stg]%'
|
||||
ORDER BY FPRNr asc";
|
||||
$result = $db->query($query)
|
||||
or die ("Cannot execute query");
|
||||
while ($row = $result->fetch_array()){
|
||||
|
||||
if ( $res=$db->query("SELECT COUNT( * )
|
||||
FROM skik_wunsch, stud
|
||||
WHERE id =$row[id]
|
||||
AND Prioritaet = '0'
|
||||
AND skik_wunsch.uid = stud.uid
|
||||
AND stud.durchgefallen !='Y'") ){
|
||||
|
||||
if ( $row1=$res->fetch_array() ) {
|
||||
$result1=$row1[0];
|
||||
} else $result1=0;
|
||||
} else $result1=0;
|
||||
echo "
|
||||
<tr>
|
||||
<td width=\"5%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<p align=\"center\">
|
||||
$row[FPRNr]</p>
|
||||
</td>
|
||||
<td width=\"49%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
$row[Bezeichnung]<br>
|
||||
<span class=\"bemerkung\">$row[bemerkung]</span>
|
||||
</td>
|
||||
<td valign=\"middle\" width=\"26%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">";
|
||||
|
||||
$query2 = "SELECT doz_titel, doz_name FROM doz LEFT JOIN skik_doz USING ( doz_nr ) WHERE skik_doz.id = $row[id] AND skik_doz.doz_nr = doz.doz_nr";
|
||||
$result2 = $db->query($query2)
|
||||
or die ("Cannot execute query2");
|
||||
while ($row2 = $result2->fetch_array()){
|
||||
echo "$row2[doz_titel] $row2[doz_name]<br>";
|
||||
}
|
||||
echo"
|
||||
</td>
|
||||
<td width=\"10%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<p align=\"center\">$result1
|
||||
</td>
|
||||
<td width=\"10%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">
|
||||
<p align=\"center\" style=\"margin-top: 4; margin-bottom: 4\">
|
||||
<a href='detailansicht.php?id=$row[id]' target='blank'><img src='../images/i.jpg' border='0'></a>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
echo "
|
||||
</table>
|
||||
</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>";
|
||||
?>
|
Reference in New Issue
Block a user