fhiiqm/report/abt_ag_aptyp_report.php
changeset 29 72f79dab938e
parent 28 8d8bce56918f
child 31 0a1eb975fbd9
--- a/fhiiqm/report/abt_ag_aptyp_report.php	Thu Jul 12 13:29:11 2012 +0200
+++ b/fhiiqm/report/abt_ag_aptyp_report.php	Thu Aug 23 10:17:50 2012 +0200
@@ -79,12 +79,12 @@
     if ($search && $_GET['s'] != 2)
     {    
         echo "<span class='sc'>";
-        echo "<br />&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/raum_report.php\" target=\"_self\" title=\"Berichte\" class='sc'>&laquo; zur Berichts&uuml;bersicht</a>";
+        echo "<br />&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/as_report.php\" target=\"_self\" title=\"Berichte\" class='sc'>&laquo; zur Berichts&uuml;bersicht</a>";
         echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"" . $_SERVER["PHP_SELF"] . "\" target=\"_self\" title=\"Abt-AG-Arbpltyp\" class=\"sc\">neuer Bericht Abteilung-AG-Arbeitsplatztypen</a>\n";    
         echo "</span>";
     }
     echo "<div align='center'>\n";
-    echo "<p><b>Bericht Abteilung - AG - Arbeitsplatztypen</b></p>\n";
+    echo "<p><b>(3) Bericht Abteilung - AG - Arbeitsplatztypen</b></p>\n";
     echo "</div>\n";
     if (!$search)
     {
@@ -124,8 +124,8 @@
                   echo "$i.&nbsp;&nbsp;<select name='rag[sort$i]'>\n";
                   foreach ($sort as $key=>$val)
                   {
-                    $rsort = $sort . $i;
-                    if ($rag[$rsort] == $i) $select= " selected"; else $select = "";
+                    $rsort = "sort" . $i;
+                    if ($rag[$rsort] == $val) $select= " selected"; else $select = "";
                     echo "<option$select value='$key'>$val</option>\n";
                   }
                   echo "</select>&nbsp;&nbsp;&nbsp;&nbsp;\n";
@@ -213,6 +213,7 @@
         			if ($bg == $bg1) $bg = $bg2; else $bg = $bg1;
                     echo "<tr bgcolor='" . $bg . "'>"; 
                     if (!$rag['abt'] || $rag['abt'] == -1) echo "<td>$row->abt_name";
+                    if (strpos($row->rag_bez,"DynamiX")) $row->rag_bez = str_replace("X","&chi;",$row->rag_bez);
                     echo "<td>$row->rag_bez";
                     echo "<td>$row->arbplatz_typ - $row->arbplatz_typ_bez";
                 }
@@ -247,7 +248,7 @@
         if ($search != 2)
         {    
             echo "<span class='sc'>";
-            echo "<br /><br />&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/raum_report.php\" target=\"_self\" title=\"Berichte\" class='sc'>&laquo; zur Berichts&uuml;bersicht</a>";
+            echo "<br /><br />&nbsp;&nbsp;&nbsp;<a href=\"/fhiiqm/as_report.php\" target=\"_self\" title=\"Berichte\" class='sc'>&laquo; zur Berichts&uuml;bersicht</a>";
             echo "&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"" . $_SERVER["PHP_SELF"] . "\" target=\"_self\" title=\"Raum-Typ\" class=\"sc\">neuer Bericht Abteilung-AG-Arbeitsplatztypen</a>\n";    
             echo "</span>";
         }