first commit
This commit is contained in:
178
stud/hinweis_aend.php
Normal file
178
stud/hinweis_aend.php
Normal file
@ -0,0 +1,178 @@
|
||||
<?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"];
|
||||
|
||||
#require("check_zweig.php"); // Prüft, ob Innenverwaltung angemeldet ist: setzt datenbankanbindung.php voraus
|
||||
#require("check_weitere_daten.php");
|
||||
include("kurs/sta/stan_useronline_write.php"); // Für Statistik, wieviele User online sind
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ÜBerprüfung, ob die Anmeldefrist überschritten ist
|
||||
$heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum
|
||||
$heute_format = date("YmdHis", $heute); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich
|
||||
|
||||
$res = $db->query("SELECT Jahrgang FROM stud WHERE uid=\"$uid1\"");
|
||||
$stud_jahr = $res->fetch_array();
|
||||
|
||||
$anm_schluss = $db->query("SELECT DATE_Format(anmeldeschluss, '%d.%m.%Y um %H:%i:%s Uhr')AS endeform, DATE_Format(anmeldeschluss, '%Y%m%d%H%i%s')AS enddatum
|
||||
FROM stan_frist
|
||||
WHERE jahrgang=\"$stud_jahr[Jahrgang]\"");
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginn- Schlussdatums
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[enddatum]); // Umrechnung des Enddatums in eine Zahl
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Wenn Erstanträge abgesendet wurden, dürfen keine Stellen mehr vorgemerkt werden
|
||||
$res2 = $db->query("SELECT distinct status
|
||||
FROM stan_antrag
|
||||
WHERE uid='$uid1'
|
||||
LIMIT 1");
|
||||
$stud_status = $res2->fetch_array();
|
||||
|
||||
if($stud_status[status] != '0'){
|
||||
|
||||
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>Änderungsanträge 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\">Änderungsanträge 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\">Änderungsanträge können erst<br><b>nach Anmeldeschluss oder gestelltem Erstantrag</b><br>abgegeben werden!<br>
|
||||
<br>Sie können bis zum $row_schluss[endeform]<br>Anträge <a href=\"antrag.php\">abgeben</a>.</a></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
|
||||
}
|
||||
#################
|
||||
|
||||
|
||||
|
||||
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>Änderungsanträge 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\">Folgen bei Änderungsanträgen</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>
|
||||
<ul>
|
||||
<li>Änderungsanträge können abgegeben werden, wenn Sie eine bereits gebuchte Stelle abändern müssen.</li>
|
||||
<li>Änderungsanträge werden zunächst erstellt (vorgemerkt). Sobald Ihre Daten/Zeiträume stimmig sind, können Sie den Änderungsantrag stellen.</li>
|
||||
<li>Änderungsanträge haben zur Folge, dass die <b>AG-Standorte evtl. neu gewählt</b> werden müssen.<br>Bitte überprüfen Sie das nachdem Sie ihre Daten abgeschickt haben.</li>
|
||||
</ul>
|
||||
<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>";
|
||||
|
||||
?>
|
Reference in New Issue
Block a user