127 lines
5.1 KiB
PHP
Executable File
127 lines
5.1 KiB
PHP
Executable File
<?php
|
|
include("aespa/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
|
session_start();
|
|
if(isset($_COOKIE["uid1"])){
|
|
$uid=$_COOKIE["uid1"];
|
|
}elseif(isset($_SESSION['uid1'])){
|
|
$uid=$_SESSION['uid1'];
|
|
}else{
|
|
$uid='';
|
|
}
|
|
|
|
|
|
echo"
|
|
<html>
|
|
|
|
<head>
|
|
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
|
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
|
<title>Menu</title>
|
|
<base target=\"Hauptframe\">
|
|
<style type=\"text/css\">
|
|
|
|
body { font-family:Verdana;font-size:11px;color:#000000; }
|
|
|
|
a:link { font-family:verdana, arial;font-weight:normal;color:#000066; text-decoration:none;}
|
|
a:active { font-family:verdana, arial;font-weight:normal;color:#000066; text-decoration:none;}
|
|
a:visited { font-family:verdana, arial;font-weight:normal;color:#000066; text-decoration:none;}
|
|
a:hover { font-family:verdana, arial;font-weight:normal;color:#000066;text-decoration:underline; }
|
|
|
|
a:link.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:none; }
|
|
a:active.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:none; }
|
|
a:visited.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:none; }
|
|
a:hover.sub { font-family:Verdana;font-size:10px;color:#000000;text-decoration:underline; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body class=\"farbe\" leftmargin=\"2\">
|
|
|
|
<table border=\"0\" style=\"border-collapse: collapse\" align=\"center\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
|
<tr height=\"15\">
|
|
<td>
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"15\" border=\"0\" id=\"table2\">
|
|
<tr>
|
|
<td valign=\"top\" align=\"left\" width=\"26\" height=\"30\">
|
|
<img src=\"images/sidebox-title-left.gif\"></td>
|
|
<td valign=\"center\" align=\"left\" width=\"143\" background=\"images/sidebox-title-bg.gif\" height=\"30\">
|
|
<font class=\"option\" color=\"#ffffff\"> <b>Menu</b></font></td>
|
|
<td valign=\"top\" align=\"left\" width=\"6\" height=\"30\">
|
|
<img src=\"images/sidebox-title-right.gif\"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"175\" height=\"100%\" border=\"0\" id=\"table3\">
|
|
<tr valign=\"top\">
|
|
<td valign=\"bottom\" align=\"left\" width=\"4\" background=\"images/sidebox-bar-left.gif\">
|
|
<p><font face=\"Verdana\" style=\"font-size: 8pt\">
|
|
<img src=\"images/sidebox-bar-px.gif\"></font></p>
|
|
</td>
|
|
<td valign=\"top\" align=\"left\" width=\"166\" bgcolor=\"#d6dff7\">
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"164\" border=\"0\" height=\"100%\" id=\"table4\">
|
|
<tr>
|
|
<td valign=\"top\"><font face=\"Verdana\"><span style=\"font-size: 8pt\">
|
|
<br>
|
|
<strong>·</strong>
|
|
<a target='kurshaupt' href=\"fragebogen.php\">Fragebogen ausfüllen</a>
|
|
<br>
|
|
<strong>·</strong>
|
|
<a target='kurshaupt' href=\"suche.php\">Suchen nach Berichten</a>
|
|
<br>
|
|
<br>";
|
|
$db = dbconnect();
|
|
$query = "SELECT beschreibung, dateiname, target
|
|
FROM aesp_admin_rechte a, aesp_admin_rechte_zuord b
|
|
WHERE a.aesp_admin_rolle = b.aesp_admin_rolle
|
|
AND b.uid = '$uid'
|
|
ORDER BY sort_order ASC
|
|
";
|
|
|
|
$result = $db->query($query)
|
|
or die ("Cannot execute query");
|
|
$ln_zaehler = 0;
|
|
while ($row = $result->fetch_array()){
|
|
if($ln_zaehler == 0){
|
|
echo "<b>Administration</b><br>";
|
|
}
|
|
echo"
|
|
<strong>·</strong>
|
|
<a target='$row[target]' href=\"$row[dateiname]\">$row[beschreibung]</a><br>";
|
|
$ln_zaehler = 1;
|
|
}
|
|
|
|
echo"
|
|
<br> <strong>·</strong>
|
|
<a target=\"_top\" href=\"logout.php\">Logout</a><br>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</td>
|
|
<td valign=\"top\" align=\"left\" width=\"4\" background=\"images/sidebox-bar-right.gif\">
|
|
<img src=\"images/sidebox-bar-px.gif\">
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height=\"15\">
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"175\" height=\"15\" border=\"0\" id=\"table5\">
|
|
<tr>
|
|
<td valign=\"top\" align=\"left\" width=\"175\" height=\"29\">
|
|
<img src=\"images/sidebox-bottom.gif\"> </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>";
|
|
?>
|