--- a/fhiiqm/report/vertrag_report_kuend.php Tue Sep 27 14:59:40 2011 +0200
+++ b/fhiiqm/report/vertrag_report_kuend.php Wed Oct 05 16:46:09 2011 +0200
@@ -7,6 +7,22 @@
* Report Vertrag Kündigungstermin
*
*/
+
+ error_reporting(E_ALL ^ E_NOTICE);
+
+ session_start();
+ if (! isset($_SESSION["userid"]))
+ {
+ include_once ($_SERVER["DOCUMENT_ROOT"] . "/fhiiqm/inc/func_lib.inc.php");
+ login("vertrag_report_kuend.php");
+ exit;
+ }
+
+ if (is_null($_SESSION["recht"]) || (!is_null($_SESSION["recht"]) && !in_array("vr",$_SESSION["recht"]) && !in_array("ve",$_SESSION["recht"])))
+ {
+ header("Location: /fhiiqm/start.php");
+ exit;
+ }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -23,8 +39,13 @@
</head>
<body >
- <div class="float-r"><img src="/fhiiqm/img/document_mark_as_final.png" border="0" alt="Bericht" title="Bericht"/></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=\"/fhiiqm/img/document_mark_as_final.png\" border=\"0\" alt=\"Bericht\" title=\"Bericht\"/></div>\n";
+?>
<script>
$(document).ready(function() {
$("#kd").datepicker({
@@ -44,7 +65,6 @@
</script>
<?php
- error_reporting(E_ALL ^ E_NOTICE);
$vr = $_POST["vr"]; // Parameter aus Form
$create = $_POST["create"];
@@ -67,7 +87,7 @@
{
include($_SERVER["DOCUMENT_ROOT"]. "/fhiiqm/form/vertrag_report_form.inc.php");
echo "<p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>";
- echo "<p> <a href=\"/fhiiqm/vertrag_report.html\" target=\"_self\" title=\"Berichte\" class='sc'>« zur Berichtsübersicht</a></p>\n";
+ echo "<p> <a href=\"/fhiiqm/vertrag_report.php\" target=\"_self\" title=\"Berichte\" class='sc'>« zur Berichtsübersicht</a></p>\n";
}
else
{
@@ -183,7 +203,7 @@
echo "<br /><br /> <a href=\"" . $_SERVER["PHP_SELF"] . "\" target=\"_self\"
title=\"Report Vertrag-Kündigungstermin\" class=\"sc\">neuer Bericht Vertrag - Kündigungstermin</a></p>\n";
- echo "<p> <a href=\"/fhiiqm/vertrag_report.html\" target=\"_self\" title=\"Berichte\" class='sc'>« zur Berichtsübersicht</a></p>\n";
+ echo "<p> <a href=\"/fhiiqm/vertrag_report.php\" target=\"_self\" title=\"Berichte\" class='sc'>« zur Berichtsübersicht</a></p>\n";
}
?>