//while ($db->next_record()) { $seminar_id = $result["Seminar_id"]; // if "show room-data" is enabled if (!$show_rooms_check_url) { $_room = " "; } 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) { echo "(...)"; } if ($result["visible"]==0) { echo " ". _("(versteckt)"); }
echo _("Sie haben bereits für alle Module die maximale Anzahl von Konfigurationen angelegt. Um eine neue Konfiguration anzulegen, müssen Sie erst eine bestehende im gewünschten Modul löschen."); echo "</font></blockquote>\n"; } echo "</td></tr>\n"; if (!$have_config) { echo "<tr><td class=\"blank\">\n<blockquote>\n<font size=\"2\">"; echo _("Es wurden noch keine Konfigurationen angelegt."); echo "</font>\n</blockquote>\n</td></tr>\n"; } else { echo "<tr><td height=\"20\" class=\"". $css_switcher->getHeaderClass() . "\" valign=\"bottom\">\n"; echo "<font size=\"2\"><b> "; echo _("Angelegte Konfigurationen"); echo "</b></font>\n</td></tr>\n"; $css_switcher->switchClass(); echo "<tr><td" . $css_switcher->getFullClass() . "> </td></tr>\n"; echo "<tr><td" . $css_switcher->getFullClass() . " valign=\"top\">\n"; echo "<table width=\"90%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"; echo "<tr><td" . $css_switcher->getFullClass(); echo "> </td>\n"; echo "<td" . $css_switcher->getFullClass() . ">\n"; $css_switcher_2 = new CssClassSwitcher("", "table_header_bold"); foreach ($module_types_ordered as $order) { $module_type = $GLOBALS['EXTERN_MODULE_TYPES'][$order]; if (isset($configurations[$module_type["module"]])) { $css_switcher_2->switchClass(); echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"; echo "<tr>\n<td class=\"" . $css_switcher_2->getHeaderClass() . "\">";
function display_roles_recursive($roles, $level = 0, $pred = '') { if (is_array($roles)) foreach ($roles as $role_id => $data) { $css_rec = new cssClassSwitcher(); if ($level > 0) { $title = $pred.' > '. $data['name']; } else { $title = $data['name']; } echo '<tr><td colspan="2" class="content_seperator"><b>'.$title.'</b></td></tr>'; if ($persons = getPersonsForRole($role_id)) { $z = 1; if (is_array($persons)) foreach ($persons as $p) { $css_rec->switchClass(); $class = 'class="'.$css_rec->getClass().'"'; //echo '<tr><td '.$class.' width="20" align="center">'.$p['position'].'</td>'; echo '<tr><td '.$class.' width="20" align="center">'.$z.' </td>'; echo '<td '.$class.'><a href="'.URLHelper::getLink('dispatch.php/profile?username='******'username']).'">'.$p['fullname'].'</a></td>'; $z++; } } echo '<tr><td colspan="2" class="blank"> </td></tr>'; echo '</tr>'; if ($data['child']) { if ($level > 0) { $zw = $pred . ' > '.$data['name']; } else { $pred = $data['name']; $zw = $pred; } display_roles_recursive($data['child'], $level+1, $zw); } } }