fhiiqm/form/ma_fkt_form.inc.php
author Bettina Schwarzer <schwarzer@fhi-berlin.mpg.de>
Tue, 13 Sep 2011 16:32:49 +0200
changeset 9 f3ee378f9631
parent 7 d2fe4fb36670
child 10 f538f73ebc37
permissions -rw-r--r--
+ cssMenu, kleinere ?nderungen

<?php

/**
 * @author Bettina Schwarzer, Fritz-Haber-Institut
 * @copyright 09/2011
 */



?>
<div align="center">
<table>
<tr><td class="bigger">Die Auswahl von Mitarbeiter bzw. Funktion geschieht durch<br />Eingeben von mindesten 2 bzw. 1 Zeichen in das entsprechende Feld.
</td></tr>
<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
<tr><td class="bigger">&nbsp;</td></tr>
</table>
</div>
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="application/x-www-form-urlencoded" name="fmafkt"> 
<div align="center">
    <table border="0" cellspacing="3" cellpadding="3">
        <div class="ui-widget">
        <tr><td>Mitarbeiter *</td>
            <td valign="top"><input class="long20" type="text" name="fkt[persknr]" id="persknr" value="<?php echo $fkt['persknr']; ?>"/>
            </td>
        </tr>
        <tr><td>Funktion *</td>
            <td valign="top">
                <!--<input class="long20" type="text" name="fkt[func]" id="func" value="<?php echo $fkt['func']; ?>"/> -->
                <select name="fkt[func]">
                <?php 
                    $sql = "SELECT fkt_bez, fkt_ID FROM `fhiiqm`.`Funktion` ORDER BY 1";
                    if ($result = $dbc->queryObjectArray($sql))
                    {
                        foreach ($result as $row)
                        {
                            if ($row->fkt_ID == $fkt['func'])
        					   echo "<option selected value=\"$row->fkt_ID\">$row->fkt_bez</option>\n";
        				    else
        					   echo "<option value=\"$row->fkt_ID\">$row->fkt_bez</option>\n";
                        }
                }
                ?>
                </select>            
            </td>
        </tr>
        <tr><td>Geltungsbereich</td>
            <td valign="top"><input class="long20" type="text" name="fkt[ber]" id="ber" maxlength="50" value="<?php echo $fkt['ber']; ?>"/>
            </td>
        </tr>
        <tr><td>Beginn</td>
            <td valign="top"><input class="long10" type="text" name="fkt[von]" id="von" value="<?php echo $fkt['von']; ?>"/>
            </td>
        </tr>
        <tr><td>Ende</td>
            <td valign="top"><input class="long10" type="text" name="fkt[bis]" id="bis" value="<?php echo $fkt['bis']; ?>"/>
            </td>
        </tr>
        <tr><td>Bemerkung</td>
            <td valign="top"><textarea name="fkt[bem]" id="bem" rows="3" cols="33"><?php echo $fkt['bem']; ?></textarea>
            </td>
        </tr>
       	<tr><td>&nbsp;</td>
        	<td><input  class="button" type="submit" name="eintragen" value="  eintragen  " />
        <!--			<input type="submit" name="abbrechen" value="abbrechen">&nbsp;&nbsp;&nbsp; -->
      		</td>
        	</tr>
         </div>
    </table>
    <input type="hidden" name="fkt[pid]" id="pid" value="<?php echo $fkt['pid']; ?>"/>
    <input type="hidden" name="fkt[fid]" id="fid" value="<?php echo $fkt['fid']; ?>"/>
</form>
</div>