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> <select name="typ" id="typ" onchange="seturl()">'; echo '<OPTION value="" >-- ' . $p->t('global/auswahl') . ' --</OPTION>'; $fbtyp = new freebusy(); $fbtyp->getTyp(); foreach ($fbtyp->result as $row) { if ($row->freebusytyp_kurzbz == $fb->freebusytyp_kurzbz) { $selected = 'selected'; } else { $selected = ''; } $vorlage = mb_str_replace('$uid', $user, $row->url_vorlage); echo '<OPTION value="' . $db->convert_html_chars($row->freebusytyp_kurzbz) . '" ' . $selected . ' url="' . $db->convert_html_chars($vorlage) . '">' . $db->convert_html_chars($row->bezeichnung), '</OPTION>'; } echo ' </select> </td> <td><input type="text" id="url" name="url" size="60" maxlength="1024" value="' . $db->convert_html_chars($fb->url) . '"/></td> <td><input type="checkbox" name="aktiv" ' . ($fb->aktiv ? 'checked="checked"' : '') . ' /></td> <td><input type="submit" value="' . $p->t('global/speichern') . '" /></td>