fhiiqm/form/ma_fkt_form.inc.php
changeset 14 32203b8f40ee
parent 10 f538f73ebc37
child 16 3ebe66308a00
--- a/fhiiqm/form/ma_fkt_form.inc.php	Wed Oct 05 16:46:09 2011 +0200
+++ b/fhiiqm/form/ma_fkt_form.inc.php	Fri Oct 07 11:37:29 2011 +0200
@@ -19,7 +19,7 @@
 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="fmafkt"> 
 <div align="center">
     <table border="0" cellspacing="3" cellpadding="3">
-        <div class="ui-widget">
+<!--        <div class="ui-widget"> -->
         <tr><td>Mitarbeiter *</td>
             <td valign="top"><input class="long20" type="text" name="fkt[persknr]" id="persknr" value="<?php echo $fkt['persknr']; ?>"/>
             </td>
@@ -60,14 +60,24 @@
             <td valign="top"><textarea name="fkt[bem]" id="bem" rows="3" cols="33"><?php echo $fkt['bem']; ?></textarea>
             </td>
         </tr>
-       	<tr><td>&nbsp;</td>
-        	<td><input  class="button" type="submit" name="eintragen" value="  eintragen  " />
-        <!--			<input type="submit" name="abbrechen" value="abbrechen">&nbsp;&nbsp;&nbsp; -->
-      		</td>
-        	</tr>
-         </div>
+        <?php
+        if (!is_null($_SESSION["recht"]) && in_array("fme",$_SESSION["recht"]))
+        {
+        ?>
+           	<tr><td>&nbsp;</td>
+            	<td><input  class="button" type="submit" name="eintragen" value="  eintragen  " /></td>
+           	</tr>
+        <?php
+        }
+        ?>
+<!--         </div> -->
     </table>
     <input type="hidden" name="fkt[pid]" id="pid" value="<?php echo $fkt['pid']; ?>"/>
     <input type="hidden" name="fkt[fid]" id="fid" value="<?php echo $fkt['fid']; ?>"/>
-</form>
-</div>
\ No newline at end of file
+
+<?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\">Zur Funktionenliste</a></p>\n"; 
+    echo "</form>\n";   
+?>
\ No newline at end of file