--- a/fhiiqm/ma_fkt_flist.php Wed Oct 05 16:46:09 2011 +0200
+++ b/fhiiqm/ma_fkt_flist.php Fri Oct 07 11:37:29 2011 +0200
@@ -1,3 +1,29 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 09/2011
+ *
+ * Liste Mitarbeiter - Funktion
+ */
+
+ error_reporting(E_ALL ^ E_NOTICE);
+
+ session_start();
+ if (! isset($_SESSION["userid"]))
+ {
+ include_once ("inc/func_lib.inc.php");
+ login($_SERVER["PHP_SELF"]);
+ exit;
+ }
+
+ if (is_null($_SESSION["recht"]) || (!is_null($_SESSION["recht"]) && !in_array("fmr",$_SESSION["recht"]) && !in_array("fme",$_SESSION["recht"])))
+ {
+ header("Location: start.php");
+ exit;
+ }
+
+?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
@@ -10,19 +36,14 @@
</head>
<body onload="document.ffilter.filter.focus();">
- <div class="float-r"><img src="img/reseller_account_template.png" border="0" alt="Mitarbeiter-Funktion" title="Mitarbeiter-Funktion"/></div>
-
+
<?php
+ echo " ";
+ echo "<div class=\"float-br smaller\" valign='top'>";
+ echo " user: " . $_SESSION["userid"];
+ echo " <a class='sc' href='/fhiiqm/logout.php' title='Session beenden'>logout</a></div>\n";
+ echo "<div class=\"float-r\"><img src=\"img/reseller_account_template.png\" border=\"0\" alt=\"Mitarbeiter-Funktion\" title=\"Mitarbeiter-Funktion\"/></div>\n";
-/**
- * @author Bettina Schwarzer, Fritz-Haber-Institut
- * @copyright 09/2011
- *
- * Liste Mitarbeiter - Funktion
- */
-
- error_reporting(E_ALL ^ E_NOTICE);
-
// Felder, nach denen gefiltert werden kann
$fields = array(2=>"Name",4=>"Funktion");
@@ -67,7 +88,7 @@
$bg = "#FFFFFF";
echo "<div align='center'>\n";
- echo "<p><b>Liste Miarbeiter - Funktion</b></p>\n";
+ echo "<p><b>Liste Mitarbeiter - Funktion</b></p>\n";
echo "<table border='0' cellspacing='0'>\n";
echo "<tr><td class='bigger'>Mittels '<img src='/fhiiqm/img/auf.gif' border='0' width='11' hight='11' />' / '<img src='/fhiiqm/img/ab.gif' border='0' width='11' hight='11' />'
@@ -162,8 +183,8 @@
}
$dbc -> close();
-
- echo "<p> <a href=\"/fhiiqm/ma_fkt_ed.php\" target=\"_self\" title=\"MA-Funktion erfassen\" class=\"sc\">Weiterem Mitarbeiter Funktion zuordnen</a></p>\n";
+ if (!is_null($_SESSION["recht"]) && in_array("fme",$_SESSION["recht"]))
+ echo "<p> <a href=\"/fhiiqm/ma_fkt_ed.php\" target=\"_self\" title=\"MA-Funktion erfassen\" class=\"sc\">Weiterem Mitarbeiter Funktion zuordnen</a></p>\n";
?>
</body>