113 lines
4.8 KiB
PHP
Executable File
113 lines
4.8 KiB
PHP
Executable File
<?php
|
|
$jahrgang=$_COOKIE["jahrgang"];
|
|
$hs=$_COOKIE["ck_hs"];
|
|
$user_admin=$_COOKIE["user_admin"];
|
|
|
|
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
|
if (isset($_GET['action']))
|
|
$action = $_GET['action'];
|
|
else
|
|
$action = "";
|
|
|
|
switch($action){
|
|
default:
|
|
|
|
$db = dbconnect();
|
|
include("kurs/sta/stan_soadmonline_write.php"); // Für Statistik, wieviele User online sind
|
|
|
|
|
|
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>Studentenjahrgang wählen</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\">Studentenjahrgang und Hochschule wählen</font><br>
|
|
<img height=\"5\" src=\"../images/blank.gif\" width=\"1\"></td>
|
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e2.gif\">
|
|
<img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=\"1%\" background=\"../images/box_l.gif\">
|
|
<img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
<td colspan=\"2\"><br>
|
|
<form action="; echo $_SERVER['PHP_SELF'] . "?action=jahr"; echo" method=\"POST\">";
|
|
$db = dbconnect();
|
|
$query = "SELECT Jahrgang FROM stud GROUP BY Jahrgang ORDER BY jahrgang DESC";
|
|
$result = $db->query ($query)
|
|
or die ("Cannot execute query");
|
|
echo "<p align=\"center\"><select size=\"5\" name=\"jahr\">";
|
|
while ($row = $result->fetch_array()){
|
|
echo "<option value='$row[Jahrgang]'";if ($row['Jahrgang'] == $jahrgang){echo " selected";} echo ">".$row['Jahrgang']." </option>\n";
|
|
}
|
|
echo "</select>";
|
|
echo "
|
|
<br>
|
|
<br>
|
|
<p align=\"center\">
|
|
<p align=\"center\">
|
|
<select size=\"2\" name=\"hs\">";
|
|
echo"<option value='K'";if ($hs == 'K'){echo " selected";} echo ">Kehl </option>\n";
|
|
echo"<option value='L'";if ($hs == 'L'){echo " selected";} echo ">Ludwigsburg </option>\n";
|
|
echo "</select>";
|
|
echo "
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<input type=\"submit\" value=\"Abschicken\" name=\"B1\"> </p>
|
|
</form>
|
|
<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>";
|
|
break;
|
|
case "jahr":
|
|
|
|
|
|
|
|
setcookie("jahrgang","");
|
|
setcookie("jahrgang",$_POST['jahr']);
|
|
|
|
setcookie("ck_hs","");
|
|
setcookie("ck_hs",$_POST['hs']);
|
|
|
|
echo "
|
|
<meta http-equiv=\"refresh\" content=\"0; URL=hauptframe_jahr.php\">
|
|
";
|
|
} // Ende Action script
|
|
|
|
?>
|