first commit
This commit is contained in:
363
admin/menuframe_28.09.2005.php
Executable file
363
admin/menuframe_28.09.2005.php
Executable file
@ -0,0 +1,363 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$user_admin=$_COOKIE["user_admin"];
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$result = $db->query("SELECT * FROM rechte_fachprojekt where user=\"$user_admin\"");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
|
||||
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>
|
||||
|
||||
<script type=\"text/javascript\">
|
||||
<!--
|
||||
|
||||
function show(divid) {";
|
||||
|
||||
if ($row[uebersicht] == 'Y' or
|
||||
$row[kennwort_zurecksetzen] == 'Y' or
|
||||
$row[prioritaeten_bearbeiten] == 'Y' or
|
||||
$row[unangemeldete_studenten] == 'Y' or
|
||||
$row[belegung_studenten] == 'Y' or
|
||||
$row[fachprojektliste] == 'Y' or
|
||||
$row[adressliste] == 'Y' or
|
||||
$row[adressliste_word] == 'Y' or
|
||||
$row[mailcompare] == 'Y' or
|
||||
$row[noteneingabe] == 'Y' or
|
||||
$row[fachprojektbescheinigung] == 'Y' or
|
||||
$row[mail_fachprojekt] == 'Y' or
|
||||
$row[ausgabe_aushaenge] == 'Y' or
|
||||
$row[anmeldeschluss_aendern] == 'Y' or
|
||||
$row[fachprojekt_bearbeiten] == 'Y'
|
||||
)
|
||||
{
|
||||
print "document.getElementById(\"cat1\").style.display=\"none\";";
|
||||
}
|
||||
|
||||
if ($row[fachprojekt_erfassen] == 'Y' or
|
||||
$row[dozent_anlegen] == 'Y' or
|
||||
$row[dozent_bearbeiten] == 'Y' or
|
||||
$row[dozent_loeschen] == 'Y' or
|
||||
$row[student_anlegen] == 'Y' or
|
||||
$row[student_bearbeiten] == 'Y' or
|
||||
$row[ldapsearch] == 'Y' or
|
||||
$row[mailsystem] == 'Y' or
|
||||
$row[datenbankadministration] == 'Y' or
|
||||
$row[adminrechte_anlegen] == 'Y' or
|
||||
$row[adminrechte_bearbeiten] == 'Y' or
|
||||
$row[adminrechte_loeschen] == 'Y'
|
||||
)
|
||||
{
|
||||
print "document.getElementById(\"cat2\").style.display=\"none\";";
|
||||
}
|
||||
|
||||
if ($row[useronline] == 'Y' or
|
||||
$row[loginlog] == 'Y' or
|
||||
$row[login_doz] == 'Y'
|
||||
)
|
||||
{
|
||||
print"document.getElementById(\"cat3\").style.display=\"none\";";
|
||||
}
|
||||
echo"
|
||||
|
||||
document.getElementById(divid).style.display=\"inline\";
|
||||
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</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=\"134%\" id=\"table4\">
|
||||
<tr>
|
||||
<td valign=\"top\"><font face=\"Verdana\"><span style=\"font-size: 8pt\">
|
||||
<a target=\"kurshaupt\" href=\"jahrgang.php\">Jahrgang</a><br>";
|
||||
|
||||
if ($row[kennwortwechsel] == 'Y'){ echo"
|
||||
<a target=\"kurshaupt\" href=\"kennwortwechsel_admin.php\">Kennwortwechsel</a><br>";
|
||||
}
|
||||
|
||||
if ($row[uebersicht] == 'Y' or
|
||||
$row[kennwort_zurecksetzen] == 'Y' or
|
||||
$row[prioritaeten_bearbeiten] == 'Y' or
|
||||
$row[unangemeldete_studenten] == 'Y' or
|
||||
$row[belegung_studenten] == 'Y' or
|
||||
$row[fachprojektliste] == 'Y' or
|
||||
$row[adressliste] == 'Y' or
|
||||
$row[adressliste_word] == 'Y' or
|
||||
$row[mailcompare] == 'Y' or
|
||||
$row[noteneingabe] == 'Y' or
|
||||
$row[fachprojektbescheinigung] == 'Y' or
|
||||
$row[mail_fachprojekt] == 'Y' or
|
||||
$row[ausgabe_aushaenge] == 'Y' or
|
||||
$row[anmeldeschluss_aendern] == 'Y' or
|
||||
$row[fachprojekt_bearbeiten] == 'Y'
|
||||
)
|
||||
{ echo"<b><a href=\"#\" onclick=\"show('cat1')\" target=\"Inhalt\"><b>Jahrgangsabhängig »</b></a><br></b>
|
||||
<div id=\"cat1\" style=\"display:none\">";
|
||||
|
||||
if ($row[uebersicht] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"ubersicht.php\" class=\"sub\">Übersicht</a><br>";
|
||||
}
|
||||
|
||||
if ($row[kennwort_zurecksetzen] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"pass_back.php\" class=\"sub\">Kennwort zurücksetzen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[prioritaeten_bearbeiten] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"bearbeiten.php\" class=\"sub\">Prioritäten bearbeiten</a><br>";
|
||||
}
|
||||
|
||||
if ($row[unangemeldete_studenten] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"unangemeldet.php\" class=\"sub\">unangemeldete
|
||||
Studenten</a><br>";
|
||||
}
|
||||
|
||||
if ($row[belegung_studenten] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"studbeleg.php\" class=\"sub\">Belegung der
|
||||
Studenten</a><br>";
|
||||
}
|
||||
|
||||
if ($row[fachprojektliste] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"liste.php\" class=\"sub\">Fachprojektliste</a><br>";
|
||||
}
|
||||
|
||||
if ($row[adressliste] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"ausgabe.php\" class=\"sub\">Ausgabe Adressliste</a><br>";
|
||||
}
|
||||
|
||||
if ($row[adressliste_word] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"export.php\" class=\"sub\">Ausgabe Adressliste
|
||||
Word</a><br>";
|
||||
}
|
||||
|
||||
if ($row[mailcompare] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"mailcompare.php\" class=\"sub\">Mailadressen prüfen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[noteneingabe] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"noteneingabe_admin.php\" class=\"sub\">Noteneingabe</a><br>";
|
||||
}
|
||||
if ($row[fachprojektbescheinigung] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"fachprojektbescheinigung_admin.php\" class=\"sub\">Fachprojektbescheinigung</a><br>";
|
||||
}
|
||||
if ($row[mail_fachprojekt] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"mail_fach.php\" class=\"sub\">Mail an
|
||||
Fachprojekt </a><br>";
|
||||
}
|
||||
|
||||
if ($row[ausgabe_aushaenge] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"ausg_aush.php\" class=\"sub\">Ausgabe Aushänge</a><br>";
|
||||
}
|
||||
|
||||
if ($row[anmeldeschluss_aendern] == 'Y'){ echo"
|
||||
<strong>·</strong><span style=\"font-size: 8pt\"> </span>
|
||||
<a target=\"kurshaupt\" href=\"anmschluss.php\" class=\"sub\">Anmeldeschluss
|
||||
ändern</a><br>";
|
||||
}
|
||||
if ($row[fachprojekt_bearbeiten] == 'Y'){ echo"
|
||||
<strong>·</strong><span style=\"font-size: 8pt\"> </span>
|
||||
<a target=\"kurshaupt\" href=\"fachprojekt_bearbeiten.php\" class=\"sub\">Fachprojekte bearbeiten
|
||||
</a><br>";
|
||||
}
|
||||
echo"</div>";
|
||||
}
|
||||
|
||||
|
||||
if ($row[fachprojekt_erfassen] == 'Y' or
|
||||
$row[dozent_anlegen] == 'Y' or
|
||||
$row[dozent_bearbeiten] == 'Y' or
|
||||
$row[dozent_loeschen] == 'Y' or
|
||||
$row[student_anlegen] == 'Y' or
|
||||
$row[student_bearbeiten] == 'Y' or
|
||||
$row[ldapsearch] == 'Y' or
|
||||
$row[mailsystem] == 'Y' or
|
||||
$row[datenbankadministration] == 'Y' or
|
||||
$row[adminrechte_anlegen] == 'Y' or
|
||||
$row[adminrechte_bearbeiten] == 'Y' or
|
||||
$row[adminrechte_loeschen] == 'Y'
|
||||
)
|
||||
{echo "
|
||||
<a href=\"#\" onclick=\"show('cat2')\" target=\"Inhalt\"><b>Administration »</b></a><br>
|
||||
<div id=\"cat2\" style=\"display:none\">";
|
||||
|
||||
if ($row[fachprojekt_erfassen] == 'Y'){ echo"
|
||||
<strong>·</strong><span style=\"font-size: 8pt\">
|
||||
</span><a target=\"kurshaupt\" href=\"erfassen.php\" class=\"sub\">
|
||||
Fachprojekt erfassen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[dozent_anlegen] == 'Y'){ echo"
|
||||
<strong><span style=\"font-size: 8pt\">·</span></strong><span style=\"font-size: 8pt\">
|
||||
</span><a target=\"kurshaupt\" href=\"doz_anleg.php\" class=\"sub\">Dozent
|
||||
anlegen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[dozent_bearbeiten] == 'Y'){ echo"
|
||||
<strong><span style=\"font-size: 8pt\">·</span></strong><span style=\"font-size: 8pt\">
|
||||
</span><a target=\"kurshaupt\" href=\"doz_bearb.php\" class=\"sub\">Dozent
|
||||
bearbeiten</a><br>";
|
||||
}
|
||||
|
||||
if ($row[dozent_loeschen] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"doz_del.php\" class=\"sub\">Dozent löschen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[student_anlegen] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"registrierung.php\" class=\"sub\">Studenten
|
||||
anlegen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[student_bearbeiten] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"stud_bearb.php\" class=\"sub\">Student bearbeiten</a><br>";
|
||||
}
|
||||
|
||||
if ($row[ldapsearch] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"ldap_search.php\" class=\"sub\">LDAP Suche</a><br>";
|
||||
}
|
||||
|
||||
if ($row[mailsystem] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"mail.php\" class=\"sub\">Mailsystem</a><br>";
|
||||
}
|
||||
|
||||
if ($row[datenbankadministration] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"pma\" class=\"sub\">Datenbankadministration</a><br>";
|
||||
}
|
||||
|
||||
if ($row[adminrechte_anlegen] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"adminrechte.php\" class=\"sub\">Adminrechte anlegen</a><br>";
|
||||
}
|
||||
|
||||
if ($row[adminrechte_bearbeiten] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"adminrechte_bearb.php\" class=\"sub\">Adminrechte bearbeiten</a><br>";
|
||||
}
|
||||
|
||||
if ($row[adminrechte_loeschen] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"adminrechte_del.php\" class=\"sub\">Adminrechte löschen</a><br>";
|
||||
}
|
||||
echo"</div>";
|
||||
}
|
||||
|
||||
if ($row[useronline] == 'Y' or
|
||||
$row[loginlog] == 'Y' or
|
||||
$row[login_doz] == 'Y'
|
||||
)
|
||||
{ echo"
|
||||
<a href=\"#\" onclick=\"show('cat3')\" target=\"Inhalt\"><b>Statistik »</b></a><br>
|
||||
<div id=\"cat3\" style=\"display:none\">";
|
||||
if ($row[useronline] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"fach_useronline.php\" class=\"sub\">Login Statistik</a><br>";
|
||||
}
|
||||
|
||||
if ($row[loginlog] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"login_log.php\" class=\"sub\">Login-Log (Studenten)</a><br>";
|
||||
}
|
||||
|
||||
if ($row[login_doz] == 'Y'){ echo"
|
||||
<strong>·</strong>
|
||||
<a target=\"kurshaupt\" href=\"login_doz.php\" class=\"sub\">Login-Log (Dozenten)</a><br>";
|
||||
}
|
||||
echo"</div>";
|
||||
}
|
||||
echo"
|
||||
<a target=\"_top\" href=\"logout_admin.php\">Logout</a><br>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign=\"top\" align=\"left\" width=\"4\" background=\"../images/sidebox-bar-right.gif\">
|
||||
<img src=\"../images/sidebox-bar-px.gif\"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height=\"15\">
|
||||
<table cellspacing=\"0\" cellpadding=\"0\" width=\"175\" height=\"15\" border=\"0\" id=\"table5\">
|
||||
<tr>
|
||||
<td valign=\"top\" align=\"left\" width=\"175\" height=\"29\">
|
||||
<img src=\"../images/sidebox-bottom.gif\"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>";
|
||||
?>
|
Reference in New Issue
Block a user