Exemplo n.º 1
0
		<th>' . $p->t('freebusy/aktiv') . '</th>
		<th colspan="2">' . $p->t('global/aktion') . '</th>
	</tr>
	</thead>
	<tbody>';
echo '<tr>';
echo '<td>' . $p->t('freebusy/LVPlanBezeichnung') . '</td>';
echo '<td>' . $p->t('freebusy/LVPlanTyp') . '</td>';
echo '<td></td>';
echo '<td>' . $p->t('global/ja') . '</td>';
echo '<td></td>';
echo '<td></td>';
echo '</tr>';
foreach ($fb->result as $row) {
    $typ = new freebusy();
    $typ->loadTyp($row->freebusytyp_kurzbz);
    echo '<tr>';
    echo '<td>' . $db->convert_html_chars($row->bezeichnung) . '</td>';
    echo '<td>' . $db->convert_html_chars($typ->bezeichnung) . '</td>';
    echo '<td>' . $db->convert_html_chars($row->url) . '</td>';
    echo '<td>' . ($row->aktiv ? $p->t('global/ja') : $p->t('global/nein')) . '</td>';
    echo '<td><a href="' . $_SERVER['PHP_SELF'] . '?action=edit&id=' . $row->freebusy_id . '">' . $p->t('global/bearbeiten') . '</a></td>';
    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();