<OPTION value="">-- Alle --</OPTION>'; $oe = new organisationseinheit(); $oe->getAll(); foreach ($oe->result as $row) { if ($row->oe_kurzbz == $oe_kurzbz) { $selected = 'selected'; } else { $selected = ''; } echo '<OPTION value="' . $row->oe_kurzbz . '" ' . $selected . '>' . $row->organisationseinheittyp_kurzbz . ' ' . $row->bezeichnung . '</OPTION>'; } echo '</SELECT> <input type="submit" value="Filtern" /> </form>'; if ($oe_kurzbz != '') { if (!$service->getServicesOrganisationseinheit($oe_kurzbz)) { die($service->errormsg); } } else { if (!$service->getAll()) { die($service->errormsg); } } echo '<table class="tablesorter" id="myTable"> <thead> <tr> <th>ID</th> <th>Bezeichnung</th> <th>Beschreibung</th> <th>Organisationseinheit</th> <th>Content_ID</th>