<?php
/**
* @author Bettina Schwarzer, Fritz-Haber-Institut
* @copyright 06/2012
*
* Form Arbeitssicherheit Massnahme
*
*/
include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
$okn=true;
?>
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="form_asm" target="_self">
<div align="center">
<table width="60%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td width="20%">Arbeitssicherheit Massnahme *</td>
<td><input type="text" name="asm[bez]" size="50" maxlength="50" value="<?php echo $asm['bez']; ?>" />
<?php
if (isset($asm['bez']) && $asm['bez']<'!')
{
echo "<br><span class=\"red\">Bezeichnung ist erforderlich!</span>\n";
$okn = false;
}
?>
</td>
</tr>
<tr>
<td>Bemerkung</td>
<td><textarea name="asm[bem]" cols="100" rows="20"><?php echo $asm['bem']; ?></textarea>
<div>max. 2000 Zeichen sind möglich</div></td>
</tr>
<input type="hidden" name="asm[okn]" value="<?php echo $okn; ?>"/>
<!--
</table>
</form>
-->