equal
deleted
inserted
replaced
2 |
2 |
3 /** |
3 /** |
4 * @author Bettina Schwarzer, Fritz-Haber-Institut |
4 * @author Bettina Schwarzer, Fritz-Haber-Institut |
5 * @copyright 06/2012 |
5 * @copyright 06/2012 |
6 * |
6 * |
7 * Form Arbeitsplatztyp - Grfahr |
7 * Form Arbeitsplatztyp - Gefaehrdung |
8 * |
8 * |
9 */ |
9 */ |
10 |
10 |
11 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
11 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
12 if (!isset($dbc) || !$dbc) $dbc = new dbconnection(); |
12 if (!isset($dbc) || !$dbc) $dbc = new dbconnection(); |
13 |
13 |
14 ?> |
14 ?> |
15 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="form_info" target="_self"> |
15 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="form_info" target="_self"> |
16 <div align="center"> |
16 <div align="center"> |
17 <table width="55%" border="0" cellspacing="3" cellpadding="3"> |
17 <table width="50%" border="0" cellspacing="3" cellpadding="3"> |
18 <tr> |
18 <tr> |
19 <td width="20%">Arbeitsplatztyp *</td> |
19 <td>Arbeitsplatztyp *</td> |
20 <td> |
20 <td> |
21 <select name="ap[aptyp]" size="1"> |
21 <select name="ap[aptyp]" size="1"> |
22 <?php |
22 <?php |
23 $select = null; |
23 $select = null; |
24 $sql = "SELECT arbplatz_typ, arbplatz_typ_bez FROM fhiiqm.Arbplatz_Typ ORDER BY 1"; |
24 $sql = "SELECT arbplatz_typ, arbplatz_typ_bez FROM fhiiqm.Arbplatz_Typ ORDER BY 1"; |
64 arr = {<?php echo ($sgf); ?>}; // Ergebnis: {'key':'value','key':'value',...} |
64 arr = {<?php echo ($sgf); ?>}; // Ergebnis: {'key':'value','key':'value',...} |
65 //--> |
65 //--> |
66 </script> |
66 </script> |
67 |
67 |
68 <a href="<?php echo "javascript:addInput('add');" ?>" title="weitere Gefährdung"><img src="/fhiiqm/img/add.png" /></a> |
68 <a href="<?php echo "javascript:addInput('add');" ?>" title="weitere Gefährdung"><img src="/fhiiqm/img/add.png" /></a> |
69 <a href="<?php echo "javascript:delInput('add');" ?>" title="löschen letzte Gefährdung"><img src="/fhiiqm/img/delete.png" /></a> |
69 <a href="<?php echo "javascript:delInput('add');" ?>" title="löschen letzte Gefährdung"><img src="/fhiiqm/img/delete.png" /></a><br /> |
70 <?php |
70 <?php |
71 if ($apid || ($sub && isset($ap) && !$ok)) |
71 if ($apid || ($sub && isset($ap) && !$ok)) |
72 { |
72 { |
73 if (count($ap['gf'])>1) |
73 if (count($ap['gf'])>1) |
74 { |
74 { |