--- a/fhiiqm/partner_flist.php Tue Sep 27 14:59:40 2011 +0200
+++ b/fhiiqm/partner_flist.php Wed Oct 05 16:46:09 2011 +0200
@@ -1,3 +1,29 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 08/2011
+ *
+ * Liste Partner
+ */
+
+ error_reporting(E_ALL ^ E_NOTICE);
+
+ session_start();
+ if (! isset($_SESSION["userid"]))
+ {
+ include_once ("inc/func_lib.inc.php");
+ login("vertrag_flist1.php");
+ exit;
+ }
+
+ if (is_null($_SESSION["recht"]) || (!is_null($_SESSION["recht"]) && !in_array("vpr",$_SESSION["recht"]) && !in_array("vpe",$_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,18 +36,14 @@
</head>
<body onload="document.ffilter.filter.focus();">
- <div class="float-r"><img src="img/group_gear.png" border="0" alt="Partner" title="Partner"/></div>
-
-<?php
+
-/**
- * @author Bettina Schwarzer, Fritz-Haber-Institut
- * @copyright 08/2011
- *
- * Liste Partner
- */
-
- error_reporting(E_ALL ^ E_NOTICE);
+<?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/group_gear.png\" border=\"0\" alt=\"Partner\" title=\"Partner\"/></div>\n";
// Felder, nach denen gefiltert werden kann
$fields = array(2=>"Firma",4=>"Ort",6=>"Name");
@@ -50,7 +72,7 @@
if (!isset($sort) && !$sort) $sort = 2;
if (!isset($dir) && !$dir) $dir = "";
- include ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php");
+ include_once ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php");
include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
$dbc = new dbconnection();
@@ -162,13 +184,14 @@
else
{
echo "<p class='red'> Leider nichts gefunden für ". $fields["$fnum"] . " wie '$filter'!</p><br />";
- echo " <a href=\"" . $_SERVER["PHP_SELF"] . "\" target=\"_self\" title=\"Raumliste\" class=\"sc\">Raumliste</a></p>\n";
+ echo " <a href=\"" . $_SERVER["PHP_SELF"] . "\" target=\"_self\" title=\"Partnerliste\" class=\"sc\">Partnerliste</a></p>\n";
}
}
$dbc -> close();
- echo "<p> <a href=\"/fhiiqm/partner_ins.php\" target=\"_self\" title=\"Partner erfassen\" class=\"sc\">Weiteren Partner erfassen</a></p>\n";
+ if (!is_null($_SESSION["recht"]) && in_array("vpe",$_SESSION["recht"]))
+ echo "<p> <a href=\"/fhiiqm/partner_ins.php\" target=\"_self\" title=\"Partner erfassen\" class=\"sc\">Weiteren Partner erfassen</a></p>\n";
?>
</body>