+ Anlage duplizieren, Voreinstellungen edit, Korrekturen
authorBettina Schwarzer <schwarzer@fhi-berlin.mpg.de>
Thu, 15 Dec 2011 16:42:56 +0100
changeset 20 5877137431e4
parent 19 33ee23fafd4d
child 21 97dba0fe820c
+ Anlage duplizieren, Voreinstellungen edit, Korrekturen
fhiiqm/alpruef_ed.php
fhiiqm/alpruef_flist.php
fhiiqm/alrisk_ed.php
fhiiqm/alrisk_flist.php
fhiiqm/anlage_ed.php
fhiiqm/anlage_flist.php
fhiiqm/css/db.css
fhiiqm/css/db_print.css
fhiiqm/form/alpruef_form.inc.php
fhiiqm/form/alrisk_form.inc.php
fhiiqm/form/anlage_form.inc.php
fhiiqm/form/ma_fkt_form.inc.php
fhiiqm/form/recht_form.inc.php
fhiiqm/img/duplicate.gif
fhiiqm/inc/func_lib.inc.php
fhiiqm/inc/menu.inc.php
fhiiqm/info_ins.php
fhiiqm/info_upd.php
fhiiqm/ma_fkt_ed.php
fhiiqm/partner_ins.php
fhiiqm/partner_upd.php
fhiiqm/prod_hier.php
fhiiqm/raum_upd.php
fhiiqm/recht_ed.php
fhiiqm/recht_list.php
fhiiqm/test/duplicate_record.php
fhiiqm/test/start_without_right.php
fhiiqm/test/vertrag_menu.html
fhiiqm/vertrag_ins.php
fhiiqm/vertrag_upd.php
--- a/fhiiqm/alpruef_ed.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/alpruef_ed.php	Thu Dec 15 16:42:56 2011 +0100
@@ -30,7 +30,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />	
+    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" media="screen"/>	
+    <link type="text/css" href="/fhiiqm/css/db_print.css" rel="Stylesheet" media="print"/>	
     <link type="text/css" href="/fhiiqm/css/jquery/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-1.6.2.min.js"></script>
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
@@ -131,7 +132,7 @@
             echo "</table>\n";
             echo "</div>\n";
             if (!is_null($_SESSION["recht"]) && !in_array("ae", $_SESSION["recht"]))
-                echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"alpruef_flist.php\" target=\"_self\" title=\"Anlagen pruefen\">&laquo; zur Liste der Anlagenpr&uuml;fungen</a></p>\n"; 
+                echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"alpruef_flist.php\" target=\"_self\" title=\"Anlagen pruefen\">&laquo; zur Liste der Anlagenpr&uuml;fungen</a></p>\n"; 
             echo "</form>\n";   
         }
         else
@@ -168,20 +169,26 @@
                 {   // nur Aenderung Dateiname
                     include ("inc/file_upload.inc.php");
                     $fname = gen_filename($al["pfname"],$al["pfname_old"],$alpid,0);
-                    $len = strlen($alpid)+1; 
+                    $len = strlen($alpid)+1;
                     if (substr($fname,0,$len) != "$alpid" . "_") $fname = $alpid . "_" . $fname;
                     if ($al["pfname"] != $al["pfname_old"])
                     {
                         $retf  = mod_file("/var/www/fhiiqm/alprot",$alpid,$fname,"upd");  // Umbenennen alte Datei
                         if ($retf) 
                         {
-                            $sql = "UPDATE A_Pruefung SET pruef_file = '" . $fname ."' WHERE alp_ID=$alpid";
+                            $sql = "UPDATE A_Pruefung SET pruef_file = '" . $fname . "' WHERE alp_ID=$alpid";
                             $retp=$dbc->execute($sql);
                             if (!$retp) 
                                 echo $dbc -> error . "<br>\n";
                             if (substr($fname,0,$len) == "$alpid" . "_") $fname = substr($fname,$len,50);
                         }
                         
+                    }
+                    else
+                    {
+                        //kein Upload, keine Dateinamenaenderung
+                        if (substr($fname,0,$len) == "$alpid" . "_") $fname = substr($fname,$len,50);
+                        $retf=1; $retp=1;
                     }    
                 }    
                 $stmt = $dbc -> stmtinit();
@@ -260,13 +267,14 @@
                 if (is_object($pdat)) $pdat = $pdat->format('d.m.Y H:i:s'); else $pdat = "&nbsp;";
                 echo "<tr><td>Prüfdatum: </td><td>" . $pdat. "</td></tr>\n";
                 if ($fname>"!") echo "<tr><td>Dateiname Prüfprotokoll: </td><td>" . $pfile. "</td></tr>\n";
-                echo "<tr><td>Bemerkung: </td><td>" . $al['bem'] . "<td></td></tr>\n";
+                echo "<tr><td>Bemerkung: </td><td>" . nl2br($al['bem']) . "<td></td></tr>\n";
                 echo "</table>\n";   
             }            
             $dbc -> close();
             echo "</div>\n";
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"alpruef_ed.php\" target=\"_self\" title=\"Pr&uuml;fung erfassen\">Weitere Anlagen-Pr&uuml;fung erfassen</a></p>\n";    
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"alpruef_flist.php\" target=\"_self\" title=\"Anlagen pruefen\">Liste der Anlagenpr&uuml;fungen</a></p>\n"; 
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"alpruef_ed.php\" target=\"_self\" title=\"Pr&uuml;fung erfassen\">Weitere Anlagen-Pr&uuml;fung erfassen</a></p>\n";    
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"alpruef_flist.php\" target=\"_self\" title=\"Anlagen pruefen\" class=\"sc\">Liste der Anlagenpr&uuml;fungen</a>";
+            echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\">Anlagenenliste</a></p>\n";    
         }
  ?>
  </body>
--- a/fhiiqm/alpruef_flist.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/alpruef_flist.php	Thu Dec 15 16:42:56 2011 +0100
@@ -186,6 +186,7 @@
     $dbc -> close();
     if (!is_null($_SESSION["recht"]) && in_array("ae",$_SESSION["recht"]))
         echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alpruef_ed.php\" target=\"_self\" title=\"Anlagenpruefung erfassen\" class=\"sc\">Weitere Anlagenpr&uuml;fung erfassen</a></p>\n";    
+    echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\" class=\"sc\">Anlagenenliste</a>\n";    
 
 ?>
 </body>
--- a/fhiiqm/alrisk_ed.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/alrisk_ed.php	Thu Dec 15 16:42:56 2011 +0100
@@ -30,7 +30,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />	
+    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" media="screen"/>	
+    <link type="text/css" href="/fhiiqm/css/db_print.css" rel="Stylesheet" media="print"/>	
     <link type="text/css" href="/fhiiqm/css/jquery/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-1.6.2.min.js"></script>
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
@@ -122,7 +123,7 @@
             echo "</table>\n";
             echo "</div>\n";
             if (!is_null($_SESSION["recht"]) && !in_array("ae", $_SESSION["recht"]))
-                echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"alrisk_flist.php\" target=\"_self\" title=\"Risiko Anlagen\">&laquo; Liste Risiko Anlagen</a></p>\n"; 
+                echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"alrisk_flist.php\" target=\"_self\" title=\"Risiko Anlagen\">&laquo; Liste Risiko Anlagen</a></p>\n"; 
             echo "</form>\n";   
 
         }
@@ -201,7 +202,9 @@
                 echo "</table>\n";
             }
             echo "</div>\n";       
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"alrisk_flist.php\" target=\"_self\" title=\"Anlagenrisiko\">Risiko-Anlagen-Liste</a>\n";    
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"alrisk_ed.php\" target=\"_self\" title=\"Anlagenrisiko erfassen\">Weiteres Anlagen-Risiko erfassen</a></p>\n";    
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"alrisk_flist.php\" target=\"_self\" title=\"Anlagenrisiko\">Risiko-Anlagen-Liste</a>";
+            echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\">Anlagenenliste</a></p>\n";    
 
             
         }
--- a/fhiiqm/alrisk_flist.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/alrisk_flist.php	Thu Dec 15 16:42:56 2011 +0100
@@ -179,7 +179,8 @@
     }
     $dbc -> close();
     if (!is_null($_SESSION["recht"]) && in_array("ae",$_SESSION["recht"]))
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alrisk_ed.php\" target=\"_self\" title=\"Risiko Anlage erfassen\" class=\"sc\">Weiteres Risiko Anlage erfassen</a></p>\n";    
+        echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alrisk_ed.php\" target=\"_self\" title=\"Risiko Anlage erfassen\">Weiteres Risiko Anlage erfassen</a></p>\n";    
+    echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\" class=\"sc\">Anlagenenliste</a>\n";    
 
 ?>
 </body>
--- a/fhiiqm/anlage_ed.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/anlage_ed.php	Thu Dec 15 16:42:56 2011 +0100
@@ -23,6 +23,37 @@
     
     include_once($_SERVER["DOCUMENT_ROOT"]."/fhiiqm/inc/dbconnect.inc.php");
     if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
+
+
+    $al     = $_POST["al"];
+    $alid   = $_GET["i"];
+    $copy   = $_GET["c"];
+    $sub    = $_POST["eintragen"];
+    $del    = $_POST["del"];
+    $dup    = $_POST["dup"];
+    if (!$dup) $dup = $_GET["d"];
+	$ok		= $_POST["ok"];
+    if (!$al['okn']) $ok=false;
+    $duptext="";
+
+    if ($dup)
+    {   // Anlage duplizieren
+        include_once ($_SERVER["DOCUMENT_ROOT"]."/fhiiqm/inc/func_lib.inc.php");
+        $tab = "Anlage";
+        $key = "al_ID";
+        $val =  $alid;
+//        $ret=1;
+        $ret = duplicate_record ($tab, $key, $val);
+        if ($ret)
+        { 
+            $alid=$ret;
+            $addr = $_SERVER["PHP_SELF"] . "?i=$alid&c=1";
+            header("Location: $addr");
+            exit;
+        }
+        else $duptext = " - Fehler beim Duplizieren von ". $al["bez"];    
+    }
+
 ?>
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -30,7 +61,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />	
+    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" media="screen"/>	
+    <link type="text/css" href="/fhiiqm/css/db_print.css" rel="Stylesheet" media="print"/>	
     <link type="text/css" href="/fhiiqm/css/jquery/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-1.6.2.min.js"></script>
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
@@ -62,20 +94,15 @@
     </script>
 
     <?php
-        $al     = $_POST["al"];
-        $alid   = $_GET["i"];
-        $sub    = $_POST["eintragen"];
-        $del    = $_POST["del"];
-    	$ok		= $_POST["ok"];
-        if (!$al['okn']) $ok=false;
 //        print_r($al);
         
         if ($alid) $text = "editieren"; else $text = "erfassen";
-        echo "<h3>Anlage $text<h3>";
+        if ($copy) $duptext = " (Kopie)";
+        echo "<h3>Anlage $text$duptext<h3>";
         
         echo "</div>\n";
         
-        if (!$ok || (!$sub && !$del))
+        if (!$ok || (!$sub && !$del && !$dup))
         {
             if ($alid && (!$sub || !$del) && !isset($al))
             { // update
@@ -103,6 +130,22 @@
                  } 
                         
             }
+            elseif (!$alid && !$sub && isset($al))
+            {   // Default-Einstellung abhaengig von Anlagenkategorie bei Erfassen
+                $sql = "SELECT al_kat_ID,al_befgrad_ID,al_pruefart_ID,al_pruefintv_ID
+                        FROM fhiiqm.A_kat_std 
+                        WHERE al_kat_ID = " . $al["kat"];
+                if ($resdft = $dbc -> queryObjectArray($sql))
+                {
+                    foreach ($resdft as $row)
+                    {
+                        $al["befg"] = $row->al_befgrad_ID;
+                        $al["part"] = $row->al_pruefart_ID;
+                        $al["pintv"] = $row->al_pruefintv_ID;
+                    }
+                }
+
+            }
             include ($_SERVER["DOCUMENT_ROOT"]."/fhiiqm/form/anlage_form.inc.php");     
             if ($sub || $del)
     		{
@@ -122,13 +165,16 @@
                	<tr><td>&nbsp;</td>\n
                 	<td><input  class=\"button\" type=\"submit\" name=\"eintragen\" value=\"  eintragen  \" />";
                 if ($alid)
-                    echo "&nbsp;&nbsp;&nbsp;<input class=\"button\" type=\"submit\" value=\"l&ouml;schen\" name=\"del\" title=\"delete\" />";
+                {
+                    echo "&nbsp;&nbsp;&nbsp;<input class=\"buttonr\" type=\"submit\" value=\"l&ouml;schen\" name=\"del\" title=\"delete\" />";
+                    echo "&nbsp;&nbsp;&nbsp;<input class=\"button\" type=\"submit\" value=\"duplizieren\" name=\"dup\" title=\"delete\" />";
+                }    
                	echo "</td></tr>\n";
             }
             echo "</table>\n";
             echo "</div>\n";
             if (!is_null($_SESSION["recht"]) && !in_array("ae", $_SESSION["recht"]))
-                echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\">&laquo; zur Anlagenliste</a></p>\n"; 
+                echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\">&laquo; zur Anlagenliste</a></p>\n"; 
             echo "</form>\n";   
 
         }
@@ -176,6 +222,10 @@
                 if ($al["part"]== -1) $al["part"] = null;
                 if ($al["pintv"]== -1) $al["pintv"] = null;
                 if ($al["raum"]== -1) $al["raum"] = null;
+                foreach ($al as $key=>$value)
+                {
+        			if (is_null($value) || $value < "!") $al["$key"] = null;
+                }    
                 $stmt = $dbc -> stmtinit();
                 if (is_object($stmt))
                 {
@@ -223,10 +273,12 @@
                 }
             }
             echo "</div>\n";       
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\">Anlagenenliste</a>\n";    
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"anlage_flist.php\" target=\"_self\" title=\"Anlagen\">Anlagenenliste</a>\n";    
             echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"anlage_ed.php\" target=\"_self\" title=\"Anlage erfassen\">Weitere Anlage erfassen</a></p>";    
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alpruef_flist.php\" target=\"_self\" title=\"Anlagenpruefung-Liste\" class=\"sc\">Liste Anlagenpr&uuml;fungen</a>";    
-            echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alpruef_ed.php\" target=\"_self\" title=\"Anlagenpruefung erfassen\" class=\"sc\">Anlagenpr&uuml;fung erfassen</a></p>\n";    
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alpruef_flist.php\" target=\"_self\" title=\"Anlagenpruefung-Liste\">Liste Anlagenpr&uuml;fungen</a>";    
+            echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alpruef_ed.php\" target=\"_self\" title=\"Anlagenpruefung erfassen\">Anlagenpr&uuml;fung erfassen</a></p>\n";    
+            echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alrisk_flist.php\" target=\"_self\" title=\"Anlagenrisiko-Liste\">Liste Anlagenrisiken</a>";    
+            echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/alrisk_ed.php\" target=\"_self\" title=\"Anlagenrisiko erfassen\">Anlagenrisiko erfassen</a></p>\n";    
         }      
 
  ?>
--- a/fhiiqm/anlage_flist.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/anlage_flist.php	Thu Dec 15 16:42:56 2011 +0100
@@ -96,6 +96,7 @@
             können Sie nach relevanten Spalten auf- bzw. absteigend sortieren</td></tr>
             <tr><td class='bigger'>'<img src='/fhiiqm/img/filter.gif' border='0' width='14' hight='11' />' erm&ouml;glicht das Filtern nach ausgew&auml;hlten Spalten der Liste</td></tr>
             <tr><td class='bigger'>Klick auf '<img src='/fhiiqm/img/edit.gif' border='0' width='11' hight='11'>' - Bearbeiten der Anlage, 
+            '<img src='/fhiiqm/img/duplicate.gif' border='0' hight='11'>' - Duplizieren der Anlage, 
             '<img src='/fhiiqm/img/details.gif' border='0' hight='11'>' - Pr&uuml;fungen der Anlage, 
             '<img src='/fhiiqm/img/fire.png' border='0' hight='11'>' - Risiken der Anlage</td>
             </tr>\n";
@@ -138,12 +139,13 @@
 
         echo "<th>&nbsp;</th>";
         echo "<th>&nbsp;</th>";
+        echo "<th>&nbsp;</th>";
         echo "<th>&nbsp;</th></tr>\n";
         
         foreach ($result as $row)
         {
 			if ($bg == $bg1) $bg = $bg2; else $bg = $bg1;
-            echo "<tr bgcolor='" . $bg . "'><td>$row->al_bez</a></td>";
+            echo "<tr bgcolor='" . $bg . "'><td>$row->al_bez</td>";
             echo "<td>" .nl2br($row->al_beschreibung)."</td>";    
             echo "<td>$row->kat</td>";
             echo "<td>$row->befgr</td>";
@@ -153,6 +155,7 @@
             echo "<td>$row->raum_nr</td>";
             echo "<td>$row->verantw</td>";
             echo "<td><a href='/fhiiqm/anlage_ed.php?i=$row->al_ID'><img src=\"/fhiiqm/img/edit.gif\" alt='edit' title='edit' border='0'/></a></td>";
+            echo "<td><a href='/fhiiqm/anlage_ed.php?i=$row->al_ID&d=1&c=1'><img src=\"/fhiiqm/img/duplicate.gif\" alt='duplizieren' title='duplizieren' border='0'/></a></td>";
             echo "<td><a href='/fhiiqm/alpruef_flist.php?s=3&d=DESC&f=5&b=$row->al_ID&st=0&z=25'>
                 <img src=\"/fhiiqm/img/details.gif\" alt='Pr&uuml;fungen' title='Pr&uuml;fungen' border='0'/></a></td>";
             echo "<td><a href='/fhiiqm/alrisk_flist.php?s=2&d=&f=5&b=$row->al_ID&st=0&z=25'>
--- a/fhiiqm/css/db.css	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/css/db.css	Thu Dec 15 16:42:56 2011 +0100
@@ -181,6 +181,15 @@
     color: #000066;
     background-color: #a5adbd}
     
+.buttonr
+{   font-family: Verdana, Arial, Helvetica, Geneva, sans-serif;
+    border: 2px solid;
+    border-style:outset;
+    border-color: #a5adbd; 
+    text-decoration: none;
+    color: #FF0000;
+    background-color: #a5adbd}
+    
 .float{
 	float:left;
 	clear:left;
--- a/fhiiqm/css/db_print.css	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/css/db_print.css	Thu Dec 15 16:42:56 2011 +0100
@@ -134,6 +134,15 @@
     color: #000066;
     background-color: #a5adbd}
     
+.buttonr
+{   font-family: Verdana, Arial, Helvetica, Geneva, sans-serif;
+    border: 2px solid;
+    border-style:outset;
+    border-color: #a5adbd; 
+    text-decoration: none;
+    color: #FF0000;
+    background-color: #a5adbd}
+    
 .float{
 	float:left;
 	clear:left;
--- a/fhiiqm/form/alpruef_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/form/alpruef_form.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -14,9 +14,9 @@
 ?>
 <div align="center">
 <table>
-<tr><td class="bigger">Die Auswahl der Anlage geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Anlage-Feld.
+<tr><td class="bigger">Die Auswahl der Anlage geschieht durch<br />Eingeben von mindesten 2 Zeichen in das 'Anlage'-Feld.
 </td></tr>
-<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
+<tr><td class="bigger">Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
 <tr><td class="bigger">&nbsp;</td></tr>
 </table>
 </div>
--- a/fhiiqm/form/alrisk_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/form/alrisk_form.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -14,9 +14,9 @@
 ?>
 <div align="center">
 <table>
-<tr><td class="bigger">Die Auswahl der Anlage geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Anlage-Feld.
+<tr><td class="bigger">Die Auswahl der Anlage geschieht durch<br />Eingeben von mindesten 2 Zeichen in das 'Anlage'-Feld.
 </td></tr>
-<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
+<tr><td class="bigger"><!--<div class="red">Achtung! </div>-->Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
 <tr><td class="bigger">&nbsp;</td></tr>
 </table>
 </div>
--- a/fhiiqm/form/anlage_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/form/anlage_form.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -15,9 +15,9 @@
 ?>
 <div align="center">
 <table>
-<tr><td class="bigger">Die Auswahl eines Anlagenverantwortlichen geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Verantwortlicher-Feld.
+<tr><td class="bigger">Die Auswahl eines Anlagenverantwortlichen geschieht durch<br />Eingeben von mindesten 2 Zeichen in das 'Verantwortlicher'-Feld.
 </td></tr>
-<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
+<tr><td class="bigger">Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
 <tr><td class="bigger">&nbsp;</td></tr>
 </table>
 </div>
@@ -51,7 +51,7 @@
                     if ($result = $dbc->queryObjectArray($sql))
                     {
                         foreach ($result as $row)
-                        {   if (strlen($row->al_kat_ID) == 1) $katid =  $row->al_kat_ID . "&nbsp;&nbsp;"; else $katid = $row->al_kat_ID; 
+                        {   if (strlen($row->al_kat_ID) == 1) $katid =  "&nbsp;" . $row->al_kat_ID; else $katid = $row->al_kat_ID; 
                             if ($row->al_kat_ID == $al['kat'])
         					   echo "<option selected value=\"$row->al_kat_ID\">$katid: $row->al_kat_bez</option>\n";
         				    else
@@ -63,7 +63,7 @@
             </td>
         </tr>
      <?php 
-        if ($al["kat"] != 4)
+        if ($al["kat"] != 6) // Gasflaschen
         {
      ?>       
         <tr><td>Bef&auml;higungsgrad</td>
--- a/fhiiqm/form/ma_fkt_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/form/ma_fkt_form.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -12,7 +12,7 @@
 <table>
 <tr><td class="bigger">Die Auswahl eines Mitarbeiters geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Mitarbeiter-Feld.
 </td></tr>
-<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
+<tr><td class="bigger">Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
 <tr><td class="bigger">&nbsp;</td></tr>
 </table>
 </div>
@@ -119,6 +119,6 @@
 <?php
     echo "</div>\n";
     if (!is_null($_SESSION["recht"]) && !in_array("fme", $_SESSION["recht"]))
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"ma_fkt_flist.php\" target=\"_self\" title=\"Funktionen\">&laquo; zur Funktionenliste</a></p>\n"; 
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"ma_fkt_flist.php\" target=\"_self\" title=\"Funktionen\">&laquo; zur Funktionenliste</a></p>\n"; 
     echo "</form>\n";   
 ?>
\ No newline at end of file
--- a/fhiiqm/form/recht_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/form/recht_form.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -31,7 +31,7 @@
 <table>
 <tr><td class="bigger">Die Auswahl eines Mitarbeiters geschieht durch Eingeben von mindesten 2 Zeichen in das Mitarbeiter-Feld.
 </td></tr>
-<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
+<tr><td class="bigger">Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
 <tr><td class="bigger">&nbsp;</td></tr>
 </table>
 </div>
Binary file fhiiqm/img/duplicate.gif has changed
--- a/fhiiqm/inc/func_lib.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/inc/func_lib.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -205,5 +205,44 @@
             </html>\n";
         }    
     }
+    
+    function duplicate_record ($table, $key_name, $key_value) 
+    {
+    	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
+        global $dbc; // Verbindung ist schon da? 
+    	if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
+
+        // Get the names of all fields/columns in the table
+        $sql = 'SHOW COLUMNS FROM ' . $table . ';';
+        $result = $dbc -> queryObjectArray($sql);
+        
+        // Generate the duplication query with those fields except the key
+        $query = 'INSERT INTO ' . $table . ' (SELECT ';
+        
+        foreach ($result as $row) 
+        {
+            if ($row->Field == $key_name) {
+            $query .= 'NULL, ';
+            } else {
+            $query .= $row->Field . ', ';
+            } // END IF
+        } 
+        
+        $query = substr($query, 0, strlen($query) - 2);
+        $query .= ' FROM ' . $table . ' WHERE ' . $key_name . ' = "' . $key_value . '")';
+
+        $ret = $dbc -> execute($query);
+        if ($ret)
+        { 
+            // Return the new id
+            $new_id = $dbc -> insertId();
+            return $new_id;
+        }
+        else
+            return false;
+/*
+        return $query;
+*/    
+    } 
        
 ?>
\ No newline at end of file
--- a/fhiiqm/inc/menu.inc.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/inc/menu.inc.php	Thu Dec 15 16:42:56 2011 +0100
@@ -101,9 +101,9 @@
           if (in_array("fme",$_SESSION["recht"]))
             		echo "<li><a href=\"/fhiiqm/ma_fkt_ed.php\" target=\"_blank\" title=\"MA-Funktionen\">Mitarbeiter - Funktion erfassen</a></li>\n";
           if (in_array("rtr",$_SESSION["recht"]) || in_array("rte",$_SESSION["recht"]))
-            		echo "<li><a href=\"/fhiiqm/recht_list.php\" target=\"_blank\" title=\"Nutzerliste\"><b>Nutzer - Rechte bearbeiten</b></a></li>\n";
+            		echo "<li><a href=\"/fhiiqm/recht_list.php\" target=\"_blank\" title=\"Nutzerliste\">Nutzer - Rechte bearbeiten</a></li>\n";
           if (in_array("rte",$_SESSION["recht"]))
-            		echo "<li><a href=\"/fhiiqm/recht_ed.php\" target=\"_blank\" title=\"Rechte\"><b>Rechteverwaltung neuer Nutzer</b></a></li>\n";
+            		echo "<li><a href=\"/fhiiqm/recht_ed.php\" target=\"_blank\" title=\"Rechte\">Rechteverwaltung neuer Nutzer</a></li>\n";
     //<!--				<li><a href="#">Anleitungen</a></li> -->
     	  echo "   </ul>\n
                 </li>\n";
--- a/fhiiqm/info_ins.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/info_ins.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Eingabe Informationen</title>
 </head>
@@ -173,8 +174,8 @@
         }
         $dbc -> close();
         echo "</div>\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"info_flist.php\" target=\"_self\" title=\"Infoliste\">Zur Infolisteliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"info_ins.php\" target=\"_self\" title=\"Information erfassen\">Weitere Information erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"info_flist.php\" target=\"_self\" title=\"Infoliste\">Zur Infolisteliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"info_ins.php\" target=\"_self\" title=\"Information erfassen\">Weitere Information erfassen</a></p>\n";    
     }
 
 
--- a/fhiiqm/info_upd.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/info_upd.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Eingabe Informationen</title>
 </head>
@@ -140,7 +141,7 @@
         echo "</table>\n";
         echo "</div>\n";
         if (!is_null($_SESSION["recht"]) && !in_array("ie",$_SESSION["recht"]))
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"info_flist.php\" target=\"_self\" title=\"Infoliste\">&laquo; zur Infoliste</a></p>\n";    
+            echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"info_flist.php\" target=\"_self\" title=\"Infoliste\">&laquo; zur Infoliste</a></p>\n";    
         echo "</form>\n";	
 
         
@@ -258,8 +259,8 @@
     if ($ok && ($upd || $del))
     {
         echo "</div><br /><br />\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"info_flist.php\" target=\"_self\" title=\"Infoliste\">Zur&uuml;ck zur Infoliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"info_ins.php\" target=\"_self\" title=\"Info erfassen\">Weitere Info erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"info_flist.php\" target=\"_self\" title=\"Infoliste\">Zur&uuml;ck zur Infoliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"info_ins.php\" target=\"_self\" title=\"Info erfassen\">Weitere Info erfassen</a></p>\n";    
     }
 
 ?>
--- a/fhiiqm/ma_fkt_ed.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/ma_fkt_ed.php	Thu Dec 15 16:42:56 2011 +0100
@@ -30,7 +30,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />	
+    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" media="screen"/>	
+    <link type="text/css" href="/fhiiqm/css/db_print.css" rel="Stylesheet" media="print"/>	
     <link type="text/css" href="/fhiiqm/css/jquery/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-1.6.2.min.js"></script>
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
@@ -193,8 +194,8 @@
                 }
             }
         echo "</div>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"ma_fkt_flist.php\" target=\"_self\" title=\"Funktionen\">Zur Funktionenliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"ma_fkt_ed.php\" target=\"_self\" title=\"Funktion erfassen\">Weitere Funktion erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"ma_fkt_flist.php\" target=\"_self\" title=\"Funktionen\">Zur Funktionenliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"ma_fkt_ed.php\" target=\"_self\" title=\"Funktion erfassen\">Weitere Funktion erfassen</a></p>\n";    
         }   
     ?>
 
--- a/fhiiqm/partner_ins.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/partner_ins.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Eingabe Partner</title>
 </head>
@@ -130,7 +131,8 @@
             echo "<p class='red'>Eingabe der Partnerdaten ist fehlgeschlagen!</p>\n";
         $dbc -> close();
         echo "</div>\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"partner_ins.php\" target=\"_self\" title=\"Partner erfassen\">Weiteren Partner erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"partner_flist.php\" target=\"_self\" title=\"Partnerliste\">Partnerliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"partner_ins.php\" target=\"_self\" title=\"Partner erfassen\">Weiteren Partner erfassen</a></p>\n";    
     }
 
 ?>
--- a/fhiiqm/partner_upd.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/partner_upd.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Aktualisieren Partnerdaten</title>
 </head>
@@ -113,7 +114,7 @@
         echo "</table>\n";
         echo "</div>\n";
         if (!is_null($_SESSION["recht"]) && !in_array("vpe",$_SESSION["recht"]))
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"partner_flist.php\" target=\"_self\" title=\"Partnerliste\">&laquo; zur Partnerliste</a></p>\n";    
+            echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"partner_flist.php\" target=\"_self\" title=\"Partnerliste\">&laquo; zur Partnerliste</a></p>\n";    
         echo "</form>\n";	
 
     }
@@ -191,8 +192,8 @@
     if ($ok && ($upd || $del))
     {
         echo "</div><br /><br />\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"partner_flist.php\" target=\"_self\" title=\"Partnerliste\">Zur&uuml;ck zur Partnerliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"partner_ins.php\" target=\"_self\" title=\"Partner erfassen\">Weiteren Partner erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"partner_flist.php\" target=\"_self\" title=\"Partnerliste\">Zur&uuml;ck zur Partnerliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"partner_ins.php\" target=\"_self\" title=\"Partner erfassen\">Weiteren Partner erfassen</a></p>\n";    
     }
     
 ?>
--- a/fhiiqm/prod_hier.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/prod_hier.php	Thu Dec 15 16:42:56 2011 +0100
@@ -38,7 +38,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen" /> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print" /> 
 
 	<title>Produkthierarchie</title>
 </head>
@@ -141,7 +142,7 @@
     }
     else
     {
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"prod_hier.php\" target=\"_self\" title=\"Produkthierarchie\">neue Suche Produkthierarchie</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"prod_hier.php\" target=\"_self\" title=\"Produkthierarchie\">neue Suche Produkthierarchie</a></p>\n";    
         echo "<div align='center'>\n";
         if ($prods['ber'] || $prods['grp'])
         {
@@ -199,9 +200,9 @@
 			echo "<p>Tabelle 'produkt' enthaelt $result Eintraege</p>\n";
 		} */
         echo "</div>\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"prod_hier.php\" target=\"_self\" title=\"Produkthierarchie\">neue Suche Produkthierarchie</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"prod_hier.php\" target=\"_self\" title=\"Produkthierarchie\">neue Suche Produkthierarchie</a></p>\n";    
         if (!is_null($_SESSION["recht"]) && in_array("pe",$_SESSION["recht"]))
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"produkt_ins.php\" target=\"_self\" title=\"Produkt erfassen\">Produkt erfassen</a></p>\n";    
+            echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"produkt_ins.php\" target=\"_self\" title=\"Produkt erfassen\">Produkt erfassen</a></p>\n";    
     }
 
 ?>
--- a/fhiiqm/raum_upd.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/raum_upd.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Aktualisieren Raumdaten</title>
 </head>
@@ -116,7 +117,7 @@
         echo "</table>\n";
         echo "</div>\n";
         if (!is_null($_SESSION["recht"]) && !in_array("re", $_SESSION["recht"]))
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"raum_flist.php$liste\" target=\"_self\" title=\"Raumliste\">&laquo; zur Raumliste</a></p>\n";    
+            echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"raum_flist.php$liste\" target=\"_self\" title=\"Raumliste\">&laquo; zur Raumliste</a></p>\n";    
         echo "</form>\n";	
 
     }
@@ -225,8 +226,8 @@
         // Raumliste filtern mit zuletzt eingegeben Haus
         $liste="?s=2&f=4&b=" . substr($raum["geb"],0,3);
         echo "</div><br /><br />\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"raum_flist.php$liste\" target=\"_self\" title=\"Raumliste\">Zur&uuml;ck zur Raumliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"raum_ins.php\" target=\"_self\" title=\"Raum erfassen\">Weiteren Raum erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"raum_flist.php$liste\" target=\"_self\" title=\"Raumliste\">Zur&uuml;ck zur Raumliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"raum_ins.php\" target=\"_self\" title=\"Raum erfassen\">Weiteren Raum erfassen</a></p>\n";    
     }
     
 ?>
--- a/fhiiqm/recht_ed.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/recht_ed.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />	
+    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" media="screen"/>	
+    <link type="text/css" href="/fhiiqm/css/db_print.css" rel="Stylesheet" media="print"/>	
     <link type="text/css" href="/fhiiqm/css/jquery/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-1.6.2.min.js"></script>
     <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
@@ -121,7 +122,7 @@
         echo "</table>\n";
         echo "</div>\n";
 //        if (!is_null($_SESSION["recht"]) && !in_array("rte", $_SESSION["recht"]))
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"recht_list.php\" target=\"_self\" title=\"Nutzerliste\">&laquo; zur Nutzerliste</a></p>\n"; 
+            echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"recht_list.php\" target=\"_self\" title=\"Nutzerliste\">&laquo; zur Nutzerliste</a></p>\n"; 
         echo "</form>\n";	
 
     }
@@ -214,8 +215,8 @@
         }
         $dbc -> close();
         echo "</div>\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"".$_SERVER["PHP_SELF"]."\" target=\"_self\" title=\"Rechte erfassen\">Weiteren Nutzer & Rechte erfassen</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href='/fhiiqm/recht_list.php' title='Nutzerliste'>zur Nutzerliste</a></p>";
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"".$_SERVER["PHP_SELF"]."\" target=\"_self\" title=\"Rechte erfassen\">Weiteren Nutzer & Rechte erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href='/fhiiqm/recht_list.php' title='Nutzerliste'>zur Nutzerliste</a></p>";
     }
 ?>
 </body>
--- a/fhiiqm/recht_list.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/recht_list.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />	
+    <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" media="screen"/>	
+    <link type="text/css" href="/fhiiqm/css/db_print.css" rel="Stylesheet" media="print"/>	
 	<title>Nutzer fhiiqm</title>
 </head>
 
@@ -74,7 +75,7 @@
         echo "</table></div>\n";
     }
     if (!is_null($_SESSION["recht"]) && in_array("re",$_SESSION["recht"]))
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/recht_ed.php\" target=\"_self\" title=\"Nutzer erfassen\" class=\"sc\">Weiteren Nutzer & Rechte erfassen</a></p>\n";    
+        echo "<p class=\"sc\">&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/recht_ed.php\" target=\"_self\" title=\"Nutzer erfassen\">Weiteren Nutzer & Rechte erfassen</a></p>\n";    
 
 ?>
 </body>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fhiiqm/test/duplicate_record.php	Thu Dec 15 16:42:56 2011 +0100
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 12/2011
+ */
+
+    $tab = 'Anlage';
+    $key = 'al_ID';
+    $val = "8";
+    include ($_SERVER["DOCUMENT_ROOT"]."/fhiiqm/inc/func_lib.inc.php");
+    $id = duplicate_record ($tab, $key, $val);
+    echo "neue id = $id"; 
+
+?>
\ No newline at end of file
--- a/fhiiqm/test/start_without_right.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/test/start_without_right.php	Thu Dec 15 16:42:56 2011 +0100
@@ -3,8 +3,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
-   	<link href="css/navio.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="/fhiiqm/css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="/fhiiqm/css/navio.css" rel="STYLESHEET" type="TEXT/CSS" /> 
 	<meta name="author" content="Bettina Schwarzer, FHI" />
 
 	<title>FHI Administration</title>
@@ -20,7 +20,9 @@
 //    print_r ($_SESSION['recht']);
 ?>
 </div>
-<div id="renavi" align="right"><img src="img/fhi.jpg" border="0" alt="FHI" width="100%"/>&nbsp;&nbsp;&nbsp;</div>
-
+<div id="renavi" align="right">
+<iframe frameborder="0" scrolling="no" style="border:0px" src="http://books.google.de/books?id=5DhMAAAAIAAJ&lpg=RA1-PA179&ots=2I9MhvO7ZM&dq=milch%20gei%C3%9Feln&hl=de&pg=RA1-PA181&output=embed" width="500" height="500"></iframe>
+<img src="/fhiiqm/img/fhi.jpg" border="0" alt="FHI" width="50%"/>&nbsp;&nbsp;&nbsp;
+</div>
 </body>
 </html>
\ No newline at end of file
--- a/fhiiqm/test/vertrag_menu.html	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/test/vertrag_menu.html	Thu Dec 15 16:42:56 2011 +0100
@@ -10,34 +10,35 @@
 </head>
 
 <body>
-<table width="100%">
-<tr><td width="35%">
-<h3>&nbsp;&nbsp;&nbsp;Vertr&auml;ge am Fritz-Haber-Institut</h3>
+<div id="navi">
+<h3>&nbsp;&nbsp;&nbsp;Datenbank f&uuml;r die Administration und Infrastruktur im Fritz-Haber-Institut</h3>
 
-<p>&nbsp;&nbsp;&nbsp;Hier können Sie neue Verträge und das zugeh&ouml;rige Dokument eingeben.<br />
-&nbsp;&nbsp;&nbsp;Für Korrekturen w&auml;hlt man aus der Liste den Vertrag und klickt auf <img src="img/edit.gif" border="0" alt="Vertrag editieren" />.</p>
-<p>&nbsp;&nbsp;&nbsp;Weitere Daten, die in Bezug zu Verträgen stehen, können <br /> 
-&nbsp;&nbsp;&nbsp;mittels der angebotenen Links gesichtet, erfasst und geändert werden.
+<p>&nbsp;&nbsp;&nbsp;Hier k&ouml;nnen Daten, die von Bedeutung f&uuml;r die Infrastruktur sind,<br />
+&nbsp;&nbsp;&nbsp;mittels der angebotenen Links erfasst, gesichtet und ge&auml;ndert werden.</p> 
+<p>&nbsp;&nbsp;&nbsp;F&uuml;r Korrekturen w&auml;hlt man aus der Liste den gew&uuml;nschten Eintrag und klickt auf '<img src="img/edit.gif" border="0" alt="editieren" />'.<br />
+&nbsp;&nbsp;&nbsp;Daraufhin &ouml;ffnet sich das &Auml;nderungsformular.
 </p>
 
-<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="vertrag_ins.php" target="_blank" title="Vertrag erfassen">Vertrag erfassen</a></p>
-<!-- <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="vertrag_list1.php" target="_blank" title="Vertr&auml;ge anlisten">Vertr&auml;ge anlisten (sortieren)</a></p> -->
+<p><br />&nbsp;&nbsp;&nbsp;Vertr&auml;ge</p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="vertrag_flist1.php" target="_blank" title="Vertr&auml;ge anlisten">Vertr&auml;ge anlisten (sortieren, filtern)</a></p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="vertrag_search.php" target="_blank" title="Vertrag suchen">Vertrag suchen (bearbeiten)</a></p>
+<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="vertrag_ins.php" target="_blank" title="Vertrag erfassen">Vertrag erfassen</a></p>
 <p><br />&nbsp;&nbsp;&nbsp;Produkte (Zuordnung zu Vertrag)</p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="prod_hier.php" target="_blank" title="Produkthierarchie">Produkthierarchie</a></p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="produkt_ins.php" target="_blank" title="Produkt erfassen">Produkt erfassen</a></p>
 <p><br />&nbsp;&nbsp;&nbsp;Partner (Vertrag)</p>
-<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="partner_flist.php" target="_blank" title="Partnerliste">Partnerliste (sortieren, filtern)</a></p>
+<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="partner_flist.php" target="_blank" title="Partnerliste">Liste der Partner (sortieren, filtern)</a></p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="partner_ins.php" target="_blank" title="Partner erfassen">Partner erfassen</a></p>
+<p><br />&nbsp;&nbsp;&nbsp;Informationen</p>
+<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="info_flist.php" target="_blank" title="Infoliste">Liste Informationen (sortieren, filtern)</a></p>
+<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="info_ins.php" target="_blank" title="Info erfassen">Information erfassen</a></p>
 <p><br />&nbsp;&nbsp;&nbsp;R&auml;ume</p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="raum_flist.php" target="_blank" title="Raumliste">Raumliste (sortieren, filtern)</a></p>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="raum_ins.php" target="_blank" title="Raum erfassen">Raum erfassen</a></p>
-</td>
-<!-- <td align="right"><img src="img/fhilogotransp.gif" border="0" alt="FHI-Logo" />&nbsp;&nbsp;&nbsp;</td> -->
-<td align="right"><img src="img/fhi.jpg" border="0" alt="FHI" width="100%" />&nbsp;&nbsp;&nbsp;</td>
-</tr>
+<p><br />&nbsp;&nbsp;&nbsp;Arbeitssicherheit</p>
+<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="gefahr_ap_search.php" target="_blank" title="Gefahr">Recherche Gefahren am Arbeitsplatz</a></p>
+</div>
+<div id="renavi" align="right"><img src="img/fhi.jpg" border="0" alt="FHI" width="100%"/>&nbsp;&nbsp;&nbsp;</div>
 
-</table>
 </body>
 </html>
\ No newline at end of file
--- a/fhiiqm/vertrag_ins.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/vertrag_ins.php	Thu Dec 15 16:42:56 2011 +0100
@@ -30,7 +30,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Eingabe Vertragsdaten</title>
 </head>
@@ -209,8 +210,8 @@
         }
         $dbc -> close();
         echo "</div>\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">Zur Vertragsliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_ins.php\" target=\"_self\" title=\"Vertrag erfassen\">Weiteren Vertrag erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">Zur Vertragsliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_ins.php\" target=\"_self\" title=\"Vertrag erfassen\">Weiteren Vertrag erfassen</a></p>\n";    
 
     }
 
--- a/fhiiqm/vertrag_upd.php	Fri Dec 09 14:33:22 2011 +0100
+++ b/fhiiqm/vertrag_upd.php	Thu Dec 15 16:42:56 2011 +0100
@@ -29,7 +29,8 @@
 
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
+   	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" media="screen"/> 
+   	<link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> 
 
 	<title>Aktualisieren Vertragsdaten</title>
 </head>
@@ -172,7 +173,7 @@
         echo "</table>\n";
         echo "</div>\n";
         if (!is_null($_SESSION["recht"]) && !in_array("ve",$_SESSION["recht"]))
-            echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">&laquo; zur Vertragsliste</a></p>\n";    
+            echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">&laquo; zur Vertragsliste</a></p>\n";    
         echo "</form>\n";
         	
     }
@@ -306,8 +307,8 @@
     if ($ok && ($upd || $del))
     {
         echo "</div><br /><br />\n";
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">Zur&uuml;ck zur Vertragsliste</a></p>\n";    
-        echo "<p>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_ins.php\" target=\"_self\" title=\"Vertrag erfassen\">Weiteren Vertrag erfassen</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">Zur&uuml;ck zur Vertragsliste</a></p>\n";    
+        echo "<p class='sc'>&nbsp;&nbsp;&nbsp;<a href=\"vertrag_ins.php\" target=\"_self\" title=\"Vertrag erfassen\">Weiteren Vertrag erfassen</a></p>\n";    
     }
     
 ?>