fhiiqm/form/alrisk_form.inc.php
changeset 19 33ee23fafd4d
child 20 5877137431e4
equal deleted inserted replaced
18:d0aa14180761 19:33ee23fafd4d
       
     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 '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
       
    20 <tr><td class="bigger">&nbsp;</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&ouml;glich
       
    51             </td>
       
    52         </tr>
       
    53         <tr><td>gesch&auml;tzte Schadensh&ouml;he</td>
       
    54             <td valign="top"><input type="text" name="ar[rdam]" size="20" maxlength="20" value="<?php echo $ar['rdam']; ?>"/>&nbsp;&euro;
       
    55                 <br />2 Kommastellen m&ouml;glich
       
    56             </td>
       
    57         </tr>
       
    58         <tr><td>Wichtung der Bedeutung<br />f&uuml;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&ouml;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> -->