echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?action=delete&id=' . $row->freebusy_id . '">' . $p->t('global/löschen') . '</a></td>'; echo '</tr>'; } echo '</tbody> </table>'; echo '<a href="' . $_SERVER['PHP_SELF'] . '?action=neu">' . $p->t('freebusy/neuerEintrag') . '</a>'; //Formular zum Anlegen und Editieren anzeigen if ($action == 'edit' || $action == 'neu') { $fb = new freebusy(); if ($action == 'neu') { $new = true; echo '<hr><h3>' . $p->t('global/neu') . '</h3>'; } else { $new = false; echo '<hr><h3>' . $p->t('global/editieren') . '</h3>'; if (!$fb->load($id)) { die($p->t('global/fehlerBeimLadenDesDatensatzes')); } } echo '<form action="' . $_SERVER['PHP_SELF'] . '?action=save" method="POST">'; echo '<input type="hidden" name="id" value="' . $fb->freebusy_id . '" />'; echo '<table> <tr> <th>' . $p->t('global/bezeichnung') . '</th> <th>' . $p->t('freebusy/typ') . '</th> <th>' . $p->t('freebusy/url') . '</th> <th>' . $p->t('freebusy/aktiv') . '</th> </tr> <tr> <td><input type="text" name="bezeichnung" size="20" maxlength="256" value="' . $db->convert_html_chars($fb->bezeichnung) . '"/></td> <td>