fhiiqm/form/as_massn_form.inc.php
changeset 28 8d8bce56918f
equal deleted inserted replaced
27:d92bbe898f32 28:8d8bce56918f
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * @author Bettina Schwarzer, Fritz-Haber-Institut
       
     5  * @copyright 06/2012
       
     6  * 
       
     7  * Form Arbeitssicherheit Massnahme
       
     8  * 
       
     9  */
       
    10 
       
    11 	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
       
    12 	if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
       
    13     $okn=true;
       
    14 
       
    15 ?>
       
    16     <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="form_asm" target="_self">
       
    17     <div align="center"> 	
       
    18     <table width="60%" border="0" cellspacing="3" cellpadding="3">
       
    19     <tr>
       
    20         <td width="20%">Arbeitssicherheit Massnahme *</td>        
       
    21         <td><input type="text" name="asm[bez]"  size="50" maxlength="50" value="<?php echo $asm['bez']; ?>" />
       
    22             <?php 
       
    23 			     if (isset($asm['bez']) && $asm['bez']<'!')
       
    24 				{
       
    25 					echo "<br><span class=\"red\">Bezeichnung ist erforderlich!</span>\n";
       
    26 					$okn = false;
       
    27 				}
       
    28              ?> 
       
    29         </td>   
       
    30     </tr>
       
    31     <tr>
       
    32         <td>Bemerkung</td>
       
    33         <td><textarea name="asm[bem]" cols="100" rows="20"><?php echo $asm['bem']; ?></textarea>
       
    34 		<div>max. 2000 Zeichen sind m&ouml;glich</div></td>
       
    35     </tr>
       
    36     <input type="hidden" name="asm[okn]" value="<?php echo $okn; ?>"/>
       
    37 <!--
       
    38     </table>
       
    39     </form>
       
    40 -->