public function show_seminar_avatar($eventname, $search_item)
 {
     if ($search_item->type === "seminar") {
         $search_item->avatar = CourseAvatar::getAvatar($search_item->entry_id)->getURL(Avatar::MEDIUM);
         $seminar = new Seminar($search_item->entry_id);
         $date = $seminar->getDatesHTML(array('link_to_dates' => false));
         $search_item->presentation = "<div>";
         $key = 0;
         foreach ($seminar->getMembers('dozent') as $dozent) {
             if ($key > 0) {
                 $search_item->presentation .= ", ";
             }
             $search_item->presentation .= '<a href="' . URLHelper::getLink("about.php", array('username' => $dozent['username'])) . '">' . htmlReady($dozent['Vorname'] . " " . $dozent['Nachname']) . '</a>';
             $key++;
         }
         $search_item->presentation .= "</div>";
         $search_item->presentation .= "<div>";
         $search_item->presentation .= htmlReady(get_semester($search_item->entry_id) . ". ");
         if ($date) {
             $search_item->presentation .= _("Termine") . ": " . $date;
         }
         $search_item->presentation .= "</div>";
         if ($GLOBALS['perm']->have_perm("admin")) {
             $search_item->tools[] = '<a href="' . URLHelper::getLink("dispatch.php/course/basicdata/view", array('cid' => $search_item->entry_id)) . '" title="' . _("Grunddaten bearbeiten") . '">' . Assets::img("icons/16/blue/edit.png", array('class' => "text-bottom")) . "</a>";
             $search_item->tools[] = '<a href="' . URLHelper::getLink("dispatch.php/course/study_areas/show", array('cid' => $search_item->entry_id)) . '" title="' . _("Studienbereiche festlegen") . '">' . Assets::img("icons/16/blue/grouping.png", array('class' => "text-bottom")) . "</a>";
             $search_item->tools[] = '<a href="' . URLHelper::getLink("raumzeit.php", array('cid' => $search_item->entry_id)) . '" title="' . _("Zeiten/Räume") . '">' . Assets::img("icons/16/blue/date.png", array('class' => "text-bottom")) . "</a>";
             $search_item->tools[] = '<a href="' . URLHelper::getLink("dispatch.php/course/room_requests", array('cid' => $search_item->entry_id)) . '" title="' . _("Raumanfragen") . '">' . Assets::img("icons/16/blue/room_request.png", array('class' => "text-bottom")) . "</a>";
         }
     }
 }
                <?
            }


        }

        foreach ($results as $result) {
        //while ($db->next_record()) {
            $seminar_id = $result["Seminar_id"];
            // if "show room-data" is enabled
            if (!$show_rooms_check_url) {
                $_room = "&nbsp;";
            } else {
                $sem = new Seminar($result['Seminar_id']);
                $_room = $sem->getDatesHTML(array(
                    'semester_id' => $_SESSION['links_admin_data']['search_sem'],
                    'show_room'   => true
                ));
                $_room = $_room ? $_room : "nicht angegeben";
            }
            $user_id = $auth->auth["uid"];

            $cssSw->switchClass();
            echo "<tr>";
            echo "<td align=\"center\" class=\"".$cssSw->getClass()."\">".htmlReady($result['startsem']);
            if ($result['startsem'] != $result['endsem']) echo '<br>( - '.htmlReady($result['endsem']).')';
            echo "</td>";
            echo "<td class=\"".$cssSw->getClass()."\">" . htmlReady($result["VeranstaltungsNummer"]) . "</td>";
            echo "<td class=\"".$cssSw->getClass()."\">";
            echo '<a href="' . URLHelper::getLink('dispatch.php/course/overview?cid=' . $seminar_id) . '">';
            echo htmlReady(substr($result["Name"],0,100));
            if (strlen($result["Name"]) > 100) {