<? if ($cms_data['show_account_form'] AND $cms_data['user']) : ?> <?php echo ELearningUtils::getMyAccountForm('', $cms_index); ?> <? elseif ($cms_data['show_account_form']) : ?> <?php echo ELearningUtils::getMyAccountForm(sprintf(_("Sie haben im System %s bisher keinen Benutzer-Account."), htmlReady($cms_data['name'])), $cms_index); ?> <? endif ?> <? if ($cms_data['user'] AND $cms_data['start_link']) : ?> <div class="messagebox messagebox_info" style="background-image: none; padding-left: 15px"> <?php echo _('Hier gelangen Sie direkt zur Startseite im angebundenen System:'); ?> <a href="<?php echo URLHelper::getScriptLink($cms_data['start_link']); ?> " target="_blank"><?php echo htmlReady($cms_data['name']); ?> </a> </div> <br> <? endif ?> <?php echo ELearningUtils::getHeader(_('Meine Lernmodule')); ?> <? if (count($cms_data['modules'])) : ?> <? foreach ($cms_data['modules'] as $module_html) : ?> <?php echo $module_html;
public function index_action() { $this->prelim_discussion = vorbesprechung($this->course->id); $this->title = $this->course->getFullname(); $this->course_domains = UserDomain::getUserDomainsForSeminar($this->course->id); $this->sem = new Seminar($this->course); if ($studienmodulmanagement = PluginEngine::getPlugin('StudienmodulManagement')) { foreach ($this->course->study_areas->filter(function ($m) { return $m->isModule(); }) as $module) { $this->studymodules[] = array('nav' => $studienmodulmanagement->getModuleInfoNavigation($module->id, $this->course->start_semester->id), 'title' => $studienmodulmanagement->getModuleTitle($module->id, $this->course->start_semester->id)); } } // Retrive display of sem_tree if (Config::get()->COURSE_SEM_TREE_DISPLAY) { $this->studyAreaTree = StudipStudyArea::backwards($this->course->study_areas); } else { $this->study_areas = $this->course->study_areas->filter(function ($m) { return !$m->isModule(); }); } if (Request::isXhr()) { $this->set_layout(null); $this->response->add_header('Content-Type', 'text/html;charset=Windows-1252'); header('X-Title: ' . $this->title); } else { PageLayout::setHelpKeyword("Basis.InVeranstaltungDetails"); PageLayout::setTitle($this->title . " - " . _("Details")); PageLayout::addSqueezePackage('admission'); PageLayout::addSqueezePackage('enrolment'); if ($GLOBALS['SessionSeminar'] == $this->course->id) { Navigation::activateItem('/course/main/details'); SkipLinks::addIndex(Navigation::getItem('/course/main/details')->getTitle(), 'main_content', 100); } else { $sidebarlink = true; $enrolment_info = $this->sem->getEnrolmentInfo($GLOBALS['user']->id); } $sidebar = Sidebar::Get(); if ($sidebarlink) { $sidebar->setContextAvatar(CourseAvatar::getAvatar($this->course->id)); } $sidebar->setTitle(_('Details')); $links = new ActionsWidget(); $links->addLink(_("Drucken"), URLHelper::getScriptLink("dispatch.php/course/details/index/" . $this->course->id), Icon::create('print', 'clickable'), array('class' => 'print_action', 'target' => '_blank')); if ($enrolment_info['enrolment_allowed'] && $sidebarlink) { if (in_array($enrolment_info['cause'], words('member root courseadmin'))) { $abo_msg = _("direkt zur Veranstaltung"); } else { $abo_msg = _("Zugang zur Veranstaltung"); } $links->addLink($abo_msg, URLHelper::getScriptLink("dispatch.php/course/enrolment/apply/" . $this->course->id), Icon::create('door-enter', 'clickable'), array('data-dialog' => '')); } if (Config::get()->SCHEDULE_ENABLE && !$GLOBALS['perm']->have_studip_perm("user", $this->course->id) && !$GLOBALS['perm']->have_perm('admin') && $this->sem->getMetaDateCount()) { $query = "SELECT COUNT(*) FROM schedule_seminare WHERE seminar_id = ? AND user_id = ?"; if (!DBManager::Get()->fetchColumn($query, array($this->course->id, $GLOBALS['user']->id))) { $links->addLink(_("Nur im Stundenplan vormerken"), URLHelper::getLink("dispatch.php/calendar/schedule/addvirtual/" . $this->course->id), Icon::create('info', 'clickable')); } } if ($this->send_from_search_page) { $links->addLink(_("Zurück zur letzten Auswahl"), URLHelper::getLink($this->send_from_search_page), Icon::create('link-intern', 'clickable')); } if ($links->hasElements()) { $sidebar->addWidget($links); } $sidebar->setImage('sidebar/seminar-sidebar.png'); $sidebar->setContextAvatar(CourseAvatar::getAvatar($this->course->id)); $sidebar = Sidebar::Get(); $sidebar->setImage('sidebar/seminar-sidebar.png'); $sidebar->setContextAvatar(CourseAvatar::getAvatar($this->course->id)); if ($enrolment_info['description']) { PageLayout::postMessage(MessageBox::info($enrolment_info['description'])); } } }
<? $is_new = ($evaluation->chdate >= object_get_visit($evaluation->id, 'eval', false, false)) && ($evaluation->author_id != $GLOBALS['user']->id); ?> <article class="<?php echo ContentBoxHelper::classes($evaluation->id, $is_new); ?> " id="<?php echo $evaluation->id; ?> " data-visiturl="<?php echo URLHelper::getScriptLink('dispatch.php/vote/visit'); ?> "> <header> <h1> <a href="<?php echo ContentBoxHelper::switchhref($evaluation->id, array('contentbox_type' => 'eval')); ?> "> <?php echo htmlReady($evaluation->title); ?> </a> </h1> <nav> <a href="<?php echo $evaluation->author ? URLHelper::getLink('dispatch.php/profile', array('username' => $evaluation->author->username)) : ''; ?> "> <?php echo $evaluation->author ? htmlReady($evaluation->author->getFullName()) : ''; ?>
<?php echo _('Veranstaltungen'); ?> </h1> </header> <section> <? foreach ($seminare as $semester => $seminar) :?> <b><?php echo htmlReady($semester); ?> </b><br> <? foreach ($seminar as $one) :?> <a href="<?php echo URLHelper::getScriptLink('dispatch.php/course/details', array('sem_id' => $one->id)); ?> "> <?php echo htmlReady($one->getFullname('number-name')); ?> <? if ($one->start_semester !== $one->end_semester) : ?> (<?php echo htmlReady($one->getFullname('sem-duration-name')); ?> ) <? endif ?> </a><br> <?endforeach?> <?endforeach?> </section>
<? endif ?> <? if ($study_areas && count($study_areas) > 0) : ?> <section class="contentbox"> <header> <h1><?php echo _('Studienbereiche'); ?> </h1> </header> <section> <ul class="list-unstyled"> <? foreach ($study_areas as $area) : ?> <li> <a href="<?php echo URLHelper::getScriptLink('show_bereich.php?level=sbb&id=' . $area->id); ?> "> <?php echo htmlReady($area->getPath(' > ')); ?> </a> </li> <? endforeach ?> </ul> </section> </section> <? endif ?> <? if ($course->beschreibung) : ?> <section class="contentbox">
/** * Displays accounts and elearning modules for active user */ public function my_accounts_action() { global $connected_cms, $current_module, $messages; Navigation::activateItem('/tools/my_elearning'); PageLayout::setTitle(_("Meine Lernmodule und Benutzer-Accounts")); if ($this->new_account_cms != "") { $this->new_account_form = ELearningUtils::getNewAccountForm($this->new_account_cms); } foreach ($GLOBALS['ELEARNING_INTERFACE_MODULES'] as $cms => $cms_preferences) { if (ELearningUtils::isCMSActive($cms)) { ELearningUtils::loadClass($cms); if ($cms_preferences["auth_necessary"] == true) { $this->new_module_form[$cms] = ELearningUtils::getNewModuleForm($cms); } $connection_status = $connected_cms[$cms]->getConnectionStatus($cms); foreach ($connection_status as $type => $msg) { if ($msg["error"] != "") { PageLayout::postMessage(MessageBox::error(_("Es traten Probleme bei der Anbindung einzelner Lermodule auf. Bitte wenden Sie sich an Ihren Systemadministrator."), array($cms . ': ' . $msg["error"]))); $GLOBALS["ELEARNING_INTERFACE_" . $cms . "_ACTIVE"] = false; } } } } $connected_cms = array(); // prepare cms list foreach ($GLOBALS['ELEARNING_INTERFACE_MODULES'] as $cms => $cms_preferences) { if (ELearningUtils::isCMSActive($cms) and $cms_preferences["auth_necessary"]) { ELearningUtils::loadClass($cms); $this->cms_list[$cms] = $cms_preferences; $this->cms_list[$cms]['name'] = $connected_cms[$cms]->getName(); $this->cms_list[$cms]['logo'] = $connected_cms[$cms]->getLogo(); $this->cms_list[$cms]['modules'] = array(); if ($this->new_account_cms != $cms) { $this->cms_list[$cms]['show_account_form'] = $cms_preferences; } if ($GLOBALS["module_type_" . $cms] != "") { $this->cms_list[$cms]['cms_anker_target'] = true; } if ($connected_cms[$cms]->user->isConnected()) { $this->cms_list[$cms]['start_link'] = $connected_cms[$cms]->link->getStartpageLink(); } if ($this->new_account_cms != $cms) { if ($connected_cms[$cms]->user->isConnected()) { $this->cms_list[$cms]['user'] = $connected_cms[$cms]->user->getUsername(); $connected_cms[$cms]->soap_client->setCachingStatus(false); $this->user_content_modules = $connected_cms[$cms]->getUserContentModules(); $connected_cms[$cms]->soap_client->setCachingStatus(true); if (!($this->user_content_modules == false)) { foreach ($this->user_content_modules as $key => $connection) { $connected_cms[$cms]->setContentModule($connection, false); $this->cms_list[$cms]['modules'][] = $connected_cms[$cms]->content_module[$current_module]->view->show(); } } $this->cms_list[$cms]['new_module_form'] = $this->new_module_form[$cms]; } } else { $this->cms_list[$cms]['account_form'] = $this->new_account_form; } } } $sidebar = Sidebar::get(); $sidebar->setImage('sidebar/learnmodule-sidebar.png'); $widget = new ActionsWidget(); if ($GLOBALS['perm']->have_perm('autor') and count($this->cms_list)) { foreach ($this->cms_list as $cms_key => $cms_data) { if ($connected_cms[$cms_key]->user->isConnected()) { $widget->addLink(sprintf(_('Zur %s Startseite'), $cms_data['name']), URLHelper::getScriptLink($cms_data['start_link']), Icon::create('link-extern', 'clickable'), array('target' => '_blank')); $link_count++; } } } if ($link_count) { $sidebar->addWidget($widget); } // terminate objects if (is_array($connected_cms)) { foreach ($connected_cms as $system) { $system->terminate(); } } if (is_array($messages)) { foreach ($messages as $mtype => $mtext) { PageLayout::postMessage(MessageBox::$mtype($mtext)); } } }
<?php if ($rule->getStartTime() && $rule->getEndTime()) { echo sprintf(_('Diese Regel gilt von %s bis %s.'), strftime('%d.%m.%Y %H:%M', $rule->getStartTime()), strftime('%d.%m.%Y %H:%M', $rule->getEndTime())) . '<br/>'; } else { if ($rule->getStartTime() && !$rule->getEndTime()) { echo sprintf(_('Diese Regel gilt ab %s.'), strftime('%d.%m.%Y %H:%M', $rule->getStartTime())) . '<br/>'; } else { if (!$rule->getStartTime() && $rule->getEndTime()) { echo sprintf(_('Diese Regel gilt bis %s.'), strftime('%d.%m.%Y %H:%M', $rule->getEndTime())) . '<br/>'; } } } $course = Course::find($rule->mandatory_course_id); if ($course) { echo sprintf(!$rule->modus ? _('Die Anmeldung ist nur Teilnehmern der Veranstaltung: <b>%s</b> %s erlaubt.') : _('Die Anmeldung ist für Teilnehmer der Veranstaltung: <b>%s</b> %s verboten.'), $course->getFullname('number-name-semester'), '<a href="' . URLHelper::getScriptLink('dispatch.php/course/details/index/' . $course->id) . '" data-dialog>' . Icon::create('info-circle', 'inactive', ['title' => _('Veranstaltungsdetails aufrufen')])->asImg() . '</a>'); }
<meta charset="WINDOWS-1252"> <title> <?php echo htmlReady(PageLayout::getTitle() . ' - ' . $GLOBALS['UNI_NAME_CLEAN']); ?> </title> <?php // needs to be included in lib/include/html_head.inc.php as well include 'app/views/WysiwygHtmlHeadBeforeJS.php'; ?> <?php echo PageLayout::getHeadElements(); ?> <script src="<?php echo URLHelper::getScriptLink('dispatch.php/localizations/' . $_SESSION['_language']); ?> "></script> <script> STUDIP.ABSOLUTE_URI_STUDIP = "<?php echo $GLOBALS['ABSOLUTE_URI_STUDIP']; ?> "; STUDIP.ASSETS_URL = "<?php echo $GLOBALS['ASSETS_URL']; ?> "; STUDIP.STUDIP_SHORT_NAME = "<?php echo Config::get()->STUDIP_SHORT_NAME; ?>
<label for="<?php echo $course['seminar_id']; ?> "> <?php echo htmlReady($course['VeranstaltungsNummer']); ?> </label> </td> <td> <label for="<?php echo $course['seminar_id']; ?> "> <a href="<?php echo URLHelper::getScriptLink('dispatch.php/course/details/index/' . $course['seminar_id']); ?> " data-dialog> <?php echo Icon::create('info-circle', 'inactive', ['title' => _('Veranstaltungsdetails aufrufen')])->asImg(); ?> </a> <?php echo htmlReady($title); ?> <? if ($course['admission_type']) : ?> <? $typename = call_user_func($course['admission_type'] . '::getName') ?> <?php echo Icon::create('exclaim-circle', 'attention', ['title' => sprintf(_("vorhandene Anmelderegel: %s"), $typename)])->asImg(); ?> <? endif ?>
printf("<td align=\"left\"><font size=\"-1\">%s</font></td>\n", $value); } } if (sizeof($dview) == 0) { if ($structure['raum']) echo '<td>'. htmlReady($member['raum']) .'</td>'; if ($structure['sprechzeiten']) echo '<td>'. htmlReady($member['sprechzeiten']) .'</td>'; if ($structure['telefon']) echo '<td>'. htmlReady($member['Telefon']) .'</td>'; if ($structure['email']) echo '<td>'. htmlReady($member['Email']) .'</td>'; if ($structure['homepage']) echo '<td>'. htmlReady($member['Home']) .'</td>'; } if ($structure["nachricht"]) { print "<td align=\"left\" width=\"1%%\"".(($admin_view) ? "" : " colspan=\"2\""). " nowrap>\n"; printf("<a href=\"%s\" data-dialog>", URLHelper::getScriptLink("dispatch.php/messages/write?rec_uname=".$member['username'])); print Icon::create('mail', 'clickable', ['title' => _('Nachricht an Benutzer verschicken')])->asImg(['valign' => 'baseline']); print '</a>'; print '</td>'; if ($admin_view && !LockRules::Check($range_id, 'participants') && ($member['inst_perms'] != 'admin' || ($GLOBALS['perm']->get_profile_perm($member['user_id']) == 'admin' && $member['user_id'] != $GLOBALS['user']->id))) { echo '<td width="1%" nowrap>'; if ($member['statusgruppe_id']) { // if we are in a view grouping by statusgroups echo ' <a href="'.URLHelper::getLink('?cmd=removeFromGroup&username='******'username'].'&role_id='. $member['statusgruppe_id']).'">'; } else { echo ' <a href="'.URLHelper::getLink('?cmd=removeFromInstitute&username='******'username']).'">'; } echo Icon::create('trash', 'clickable')->asImg(['class' => 'text-top']);
<input type="hidden" name="mandatory_course_id_old" value="<?php echo $mandatory_course->id; ?> "> <label class="caption"> <?php echo _('Mitgliedschaft in folgender Veranstaltung überprüfen'); ?> : </label> <p> <?php echo htmlReady($mandatory_course->getFullName('number-name-semester')); ?> <a href="<?php echo URLHelper::getScriptLink('dispatch.php/course/details/index/' . $mandatory_course->id); ?> " data-dialog> <?php echo Icon::create('info-circle', 'inactive', ['title' => _('Veranstaltungsdetails aufrufen')])->asImg(); ?> </a> </p> <? endif ?> <label class="caption"> <?php echo _('Modus'); ?> : </label>