|
1 <?php |
|
2 |
|
3 /** |
|
4 * @author Bettina Schwarzer, Fritz-Haber-Institut |
|
5 * @copyright 12/2011 |
|
6 * |
|
7 * Form Anlage Risiko |
|
8 */ |
|
9 |
|
10 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
|
11 if (!isset($dbc) || !$dbc) $dbc = new dbconnection(); |
|
12 $okn = true; |
|
13 |
|
14 ?> |
|
15 <div align="center"> |
|
16 <table> |
|
17 <tr><td class="bigger">Die Auswahl der Anlage geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Anlage-Feld. |
|
18 </td></tr> |
|
19 <tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie 'ä', 'ü', 'ö', 'ß' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr> |
|
20 <tr><td class="bigger"> </td></tr> |
|
21 </table> |
|
22 </div> |
|
23 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="falrisk"> |
|
24 <div align="center"> |
|
25 <table border="0" cellspacing="3" cellpadding="3"> |
|
26 <tr><td>Anlage *</td> |
|
27 <td valign="top"><input class="long20" type="text" name="ar[bez]" id="arbez" value="<?php echo $ar['bez']; ?>"/> |
|
28 <?php |
|
29 if (isset($ar['bez']) && $ar['bez']< "!") |
|
30 { |
|
31 echo "<br><span class=\"red\">Anlage ist erforderlich!</span>\n"; |
|
32 $okn = false; |
|
33 } |
|
34 ?> |
|
35 </td> |
|
36 </tr> |
|
37 <tr><td>Risikobezeichnung *</td> |
|
38 <td valign="top"><input type="text" name="ar[risk]" size="50" maxlength="50" value="<?php echo $ar['risk']; ?>"/> |
|
39 <?php |
|
40 if (isset($ar['risk']) && $ar['risk']< "!") |
|
41 { |
|
42 echo "<br><span class=\"red\">Risikobezeichnung ist erforderlich!</span>\n"; |
|
43 $okn = false; |
|
44 } |
|
45 ?> |
|
46 </td> |
|
47 </tr> |
|
48 <tr><td>Risikowahrscheinlichkeit</td> |
|
49 <td valign="top"><input type="text" name="ar[rprob]" size="5" maxlength="5" value="<?php echo $ar['rprob']; ?>"/>% |
|
50 <br />Wertebereich: 0 ... 100%, Kommastellen möglich |
|
51 </td> |
|
52 </tr> |
|
53 <tr><td>geschätzte Schadenshöhe</td> |
|
54 <td valign="top"><input type="text" name="ar[rdam]" size="20" maxlength="20" value="<?php echo $ar['rdam']; ?>"/> € |
|
55 <br />2 Kommastellen möglich |
|
56 </td> |
|
57 </tr> |
|
58 <tr><td>Wichtung der Bedeutung<br />für Forschungsbetrieb</td> |
|
59 <td valign="top"><input type="text" name="ar[rimp]" size="5" maxlength="5" value="<?php echo $ar['rimp']; ?>"/> |
|
60 <br />Wertebereich: 0 - keine Bedeutung, 1 - entscheidend, Nachkommastellen möglich |
|
61 </td> |
|
62 </tr> |
|
63 |
|
64 <input type="hidden" name="ar[id]" id="arid" value="<?php echo $ar["id"]; ?>"/> |
|
65 <input type="hidden" name="ar[okn]" value="<?php echo $okn; ?>"/> |
|
66 <!-- </table> |
|
67 </div> |
|
68 </form> --> |