fhiiqm/form/alrisk_form.inc.php
changeset 19 33ee23fafd4d
child 20 5877137431e4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fhiiqm/form/alrisk_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
@@ -0,0 +1,68 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 12/2011
+ * 
+ * Form Anlage Risiko
+ */
+
+	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
+	if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
+    $okn = true;
+
+?>
+<div align="center">
+<table>
+<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">&nbsp;</td></tr>
+</table>
+</div>
+<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="falrisk"> 
+<div align="center">
+    <table border="0" cellspacing="3" cellpadding="3">
+        <tr><td>Anlage *</td>
+            <td valign="top"><input class="long20" type="text" name="ar[bez]" id="arbez" value="<?php echo $ar['bez']; ?>"/>
+            <?php
+                if (isset($ar['bez']) && $ar['bez']< "!")
+                { 
+                    echo "<br><span class=\"red\">Anlage ist erforderlich!</span>\n";
+                    $okn = false;
+                }    
+            ?>
+            </td>
+        </tr>
+        <tr><td>Risikobezeichnung *</td>
+            <td valign="top"><input type="text" name="ar[risk]" size="50" maxlength="50" value="<?php echo $ar['risk']; ?>"/>
+            <?php
+                if (isset($ar['risk']) && $ar['risk']< "!")
+                { 
+                    echo "<br><span class=\"red\">Risikobezeichnung ist erforderlich!</span>\n";
+                    $okn = false;
+                }    
+            ?>
+            </td>
+        </tr>
+        <tr><td>Risikowahrscheinlichkeit</td>
+            <td valign="top"><input type="text" name="ar[rprob]" size="5" maxlength="5" value="<?php echo $ar['rprob']; ?>"/>%
+                <br />Wertebereich: 0 ... 100%, Kommastellen m&ouml;glich
+            </td>
+        </tr>
+        <tr><td>gesch&auml;tzte Schadensh&ouml;he</td>
+            <td valign="top"><input type="text" name="ar[rdam]" size="20" maxlength="20" value="<?php echo $ar['rdam']; ?>"/>&nbsp;&euro;
+                <br />2 Kommastellen m&ouml;glich
+            </td>
+        </tr>
+        <tr><td>Wichtung der Bedeutung<br />f&uuml;r Forschungsbetrieb</td>
+            <td valign="top"><input type="text" name="ar[rimp]" size="5" maxlength="5" value="<?php echo $ar['rimp']; ?>"/>
+                <br />Wertebereich: 0 - keine Bedeutung, 1 - entscheidend, Nachkommastellen m&ouml;glich
+            </td>
+        </tr>
+
+    <input type="hidden" name="ar[id]" id="arid" value="<?php echo $ar["id"]; ?>"/>
+    <input type="hidden" name="ar[okn]" value="<?php echo $okn; ?>"/>
+<!-- </table>
+ </div>   
+</form> -->
\ No newline at end of file