/** * Entry point of the controller that displays the start page of Stud.IP * * @param string $action * @param string $widgetId * * @return void */ function index_action($action = false, $widgetId = null) { $this->left = WidgetHelper::getUserWidgets($GLOBALS['user']->id, 0); $this->right = WidgetHelper::getUserWidgets($GLOBALS['user']->id, 1); if (!(count($this->left) + count($this->right))) { WidgetHelper::setInitialPositions(); $this->left = WidgetHelper::getUserWidgets($GLOBALS['user']->id, 0); $this->right = WidgetHelper::getUserWidgets($GLOBALS['user']->id, 1); } WidgetHelper::setActiveWidget(Request::get('activeWidget')); $sidebar = Sidebar::get(); $sidebar->setImage('sidebar/home-sidebar.png'); $sidebar->setTitle(_("Meine Startseite")); $nav = new NavigationWidget(); $nav->setTitle(_('Sprungmarken')); foreach (array_merge($this->left, $this->right) as $widget) { $nav->addLink($widget->getPluginName(), $this->url_for('start#widget-' . $widget->widget_id)); } $sidebar->addWidget($nav); // Show action to add widget only if not all widgets have already been added. $actions = new ActionsWidget(); if (WidgetHelper::getAvailableWidgets($GLOBALS['user']->id)) { $actions->addLink(_('Neues Widget hinzufügen'), $this->url_for('start/add'), Icon::create('add', 'clickable'))->asDialog(); } $actions->addLink(_('Standard wiederherstellen'), $this->url_for('start/reset'), Icon::create('accept', 'clickable')); $sidebar->addWidget($actions); // Root may set initial positions if ($GLOBALS['perm']->have_perm('root')) { $settings = new ActionsWidget(); $settings->setTitle(_('Einstellungen')); $settings->addElement(new WidgetElement(_('Standard-Startseite bearbeiten:'))); foreach ($GLOBALS['perm']->permissions as $permission => $useless) { $settings->addElement(new LinkElement(ucfirst($permission), $this->url_for('start/edit_defaults/' . $permission), Icon::create('link-intern', 'clickable'), array('data-dialog' => ''))); } $sidebar->addWidget($settings); } if ($GLOBALS['perm']->get_perm() == 'user') { PageLayout::postMessage(MessageBox::info(_('Sie haben noch nicht auf Ihre Bestätigungsmail geantwortet.'), array(_('Bitte holen Sie dies nach, um Stud.IP Funktionen wie das Belegen von Veranstaltungen nutzen zu können.'), sprintf(_('Bei Problemen wenden Sie sich an: %s'), '<a href="mailto:' . $GLOBALS['UNI_CONTACT'] . '">' . $GLOBALS['UNI_CONTACT'] . '</a>')))); PageLayout::postMessage(MessageBox::info(sprintf(_('Haben Sie die Bestätigungsmail an Ihre Adresse "%s" nicht erhalten?'), htmlReady($GLOBALS['user']->Email)), array(Studip\LinkButton::create(_('Bestätigungsmail erneut verschicken'), $this->url_for('start/resend_validation_mail')) . ' ' . Studip\LinkButton::create(_('Email-Adresse ändern'), $this->url_for('start/edit_mail_address'), array('data-dialog' => "size=auto", 'title' => _('Email-Adresse')))))); } }
<div> (<?php echo sprintf(_("max. Teilnehmeranzahl: %s / Anzahl der Anmeldungen: %s"), $priocourses->admission_turnout, $num_claiming); ?> ) </div> <? endif ?> <div data-dialog-button> <?php echo Studip\Button::createCancel(_("Schließen"), 'cancel'); ?> </div> <?php echo CSRFProtection::tokenTag(); ?> </form> <? endif ?> <? if (!$priocourses && !$admission_form) :?> <div data-dialog-button> <? if ($enrol_user) : ?> <?php echo Studip\LinkButton::createAccept(_('Zur Veranstaltung'), URLHelper::getScriptURL('seminar_main.php', array('auswahl' => $course_id))); ?> <? else : ?> <?php echo Studip\LinkButton::createAccept(_('OK'), URLHelper::getScriptURL('dispatch.php/course/details/', array('sem_id' => $course_id))); ?> <? endif ?> </div> <? endif ?> <script>STUDIP.enrollment();</script>
echo $id; ?> " class="horizontal" style="font-weight: normal"> <input <?php echo !is_array($request['block_appointments_day']) ? '' : (in_array('everyday', $request['block_appointments_days']) ? 'checked ' : ''); ?> class="block_appointments_days" name="block_appointments_days[]" id="block_appointments_days_<?php echo $id; ?> " type="checkbox" value="<?php echo $d + 1; ?> "> <?php echo strftime('%A', strtotime("+{$d} day", $start_ts)); ?> </label> <? endforeach ?> </fieldset> <footer data-dialog-button> <?php echo Studip\Button::createAccept(_('Speichern'), 'save'); ?> <?php echo Studip\LinkButton::create(_('Zurück zur Übersicht'), $controller->url_for('course/timesrooms/index'), array('data-dialog' => 'size=big')); ?> </footer> </form>
<form method="post" action="<?php echo $controller->url_for("admin/statusgroups/deleteGroup/{$group->id}"); ?> "> <?php echo CSRFProtection::tokenTag(); ?> <?php echo sprintf(_('Gruppe %s wirklich löschen?'), $group->name); ?> <br> <div data-dialog-button> <?php echo Studip\Button::createAccept(_('Löschen'), 'confirm', array('data-dialog-button' => '')); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/statusgroups/index'), array('data-dialog-button' => '', 'data-dialog' => 'close')); ?> </div> </form>
echo _("Mehrfachteilnahmen:"); ?> <?php echo $count_multi_members; ?> <? if ($count_multi_members) : ?> <a href="<?php echo $controller->link_for('admission/courseset/configure_courses/' . $set_id . '/download_multi_members'); ?> " title="<?php echo _("Download"); ?> "> <?php echo Icon::create('file-office', 'clickable')->asImg(); ?> </a> <? endif ?> </div> <div data-dialog-button> <?php echo Studip\Button::create(_("Speichern"), 'configure_courses_save'); echo Studip\LinkButton::create(_("Download"), $controller->url_for('admission/courseset/configure_courses/' . $set_id . '/csv')); ?> </div> <?php echo CSRFProtection::tokenTag(); ?> </form> <?
?> <? endforeach; ?> </select> </fieldset> <fieldset> <label for="top_folder_name"><?php echo _('Neuer Name:'); ?> </label> <input type="text" name="top_folder_name" id="top_folder_name" size="40" autofocus placeholder="<?php echo _('Name für neuen Ordner eingeben'); ?> " aria-label="<?php echo _('Name für neuen Ordner eingeben'); ?> "> </fieldset> </fieldset> <div data-dialog-button> <?php echo Studip\Button::createAccept(_('Anlegen'), 'anlegen'); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), URLHelper::getLink('folder.php?cid=' . $id . '&cmd=tree')); ?> </div> </form>
<li><?php echo _("und vieles mehr."); ?> </li></blockquote><br> </ul> <?php echo _("Mit der Anmeldung werden die nachfolgenden Nutzungsbedingungen akzeptiert:"); ?> <br><br> <? include("locale/$_language_path/LC_HELP/pages/nutzung.html"); ?> <div style="text-align: center"> <div class="button-group"> <?php echo Studip\LinkButton::create(_('Ich erkenne die Nutzungsbedingungen an'), URLHelper::getLink('register2.php')); ?> <?php echo Studip\LinkButton::create(_('Registrierung abbrechen'), URLHelper::getLink('index.php')); ?> </div> </div> </td></tr> <tr><td class="blank"> </td></tr> </table> <?php } include 'lib/include/html_end.inc.php'; page_close();
<li class="file-directory"> <input type="radio" name="folder_id" id="folder-<?php echo $context_id; ?> " value="<?php echo $context_id; ?> " <? if ($context_id === $parent_file_id) echo 'checked'; ?>> <label for="folder-<?php echo $context_id; ?> "><?php echo _('Hauptverzeichnis'); ?> </label> <?php echo $this->render_partial('document/dir-tree.php', array('children' => $dir_tree)); ?> </li> </ul> <div data-dialog-button> <?php echo Studip\Button::createAccept(_('Kopieren'), 'copy'); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('document/files/index/' . $parent_id)); ?> </div> </form>
?> </dt> </dl> <div class="buttons"> <div class="button-group"> <?php echo Studip\Button::createAccept(_('Beitrag erstellen'), array('tabindex' => '3')); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), '', array('onClick' => "return STUDIP.Forum.cancelNewEntry();", 'tabindex' => '4')); ?> <?php echo Studip\LinkButton::create(_('Vorschau'), "javascript:STUDIP.Forum.preview('new_entry', 'new_entry_preview');", array('tabindex' => '5', 'class' => 'js')); ?> <? if (Config::get()->FORUM_ANONYMOUS_POSTINGS): ?> <div style="float: left; margin-top: 14px; margin-left: 14px;"> <label><?php echo _('Anonym'); ?> <input type="checkbox" name="anonymous" value="1"> </label> </div> <? endif; ?> </div> </div> </div> <?php
<? $js = "STUDIP.Forum.loadAction('#abolink', '" . (ForumAbo::has($constraint['topic_id']) ? 'remove_' : '') . 'abo/'. $constraint['topic_id'] ."'); return false;"; $url = PluginEngine::getUrl('coreforum/index/' . (ForumAbo::has($constraint['topic_id']) ? 'remove_' : '') . 'abo/'. $constraint['topic_id']); ?> <? $text = $constraint['area'] ? _('Diesen Bereich abonnieren') : _('Dieses Thema abonnieren') ?> <? if ($constraint['depth'] == 0) : $text = _('Komplettes Forum abonnieren'); endif ?> <? if (!ForumAbo::has($constraint['topic_id'])) : ?> <?php echo Studip\LinkButton::create($text, $url, array('title' => _('Wenn sie diesen Bereich abonnieren, erhalten Sie eine ' . 'Stud.IP-interne Nachricht sobald in diesem Bereich ' . 'ein neuer Beitrag erstellt wurde.'), 'onClick' => $js)); ?> <? else : ?> <?php echo Studip\LinkButton::create(_('Nicht mehr abonnieren'), $url, array('onClick' => $js)); ?> <? endif; ?>
echo Studip\LinkButton::create(_('Thema öffnen'), PluginEngine::getLink('coreforum/index/open_thread/' . $topic_id . '/' . $topic_id . '/' . ForumHelpers::getPage()), array('onClick' => 'STUDIP.Forum.openThreadFromThread("' . $topic_id . '"); return false;', 'class' => 'closeButtons')); ?> <? endif ?> <? endif ?> <? if ($constraint['depth'] > 0 && ForumPerm::has('abo', $seminar_id)) : ?> <span id="abolink"> <?php echo $this->render_partial('index/_abo_link', compact('constraint')); ?> </span> <? endif ?> <? if (ForumPerm::has('pdfexport', $seminar_id)) : ?> <?php echo Studip\LinkButton::create(_('Beiträge als PDF exportieren'), PluginEngine::getLink('coreforum/index/pdfexport/' . $topic_id), array('target' => '_blank')); ?> <? endif ?> </div> </div> </div> <? endif ?> <? endif ?> <? if (ForumPerm::has('add_entry', $seminar_id)): ?> <?php echo $this->render_partial('index/_new_entry'); ?> <? endif ?>
<td class="areaentry"></td> <td class="areaentry"> <form class="add_area_form"> <?php echo CSRFProtection::tokenTag(); ?> <input type="hidden" name="category_id" value="<%- category_id %>"> <input type="text" name="name" size="50" maxlength="255" style="width: 99%;" placeholder="<?php echo _('Name des neuen Bereiches'); ?> " required><br> <textarea name="content" style="height: 3em; width: 99%;" placeholder="<?php echo _('Optionale Beschreibung des neuen Bereiches'); ?> "></textarea> <?php echo Studip\LinkButton::create(_('Bereich hinzufügen'), "javascript:STUDIP.Forum.doAddArea();"); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), "javascript:STUDIP.Forum.cancelAddArea();"); ?> </form> </td> <td class="postings">0</td> <td class="answer" colspan="2"><br><?php echo _('keine Antworten'); ?> </td> </tr> </script>
?> <? endif ?> <? if ($show['regular']) : ?> <!--Regelmäßige Termine--> <?php echo $this->render_partial('course/timesrooms/_regularEvents.php'); ?> <? endif; ?> <? if ($show['irregular']) : ?> <!--Unregelmäßige Termine--> <?php echo $this->render_partial('course/timesrooms/_irregularEvents'); ?> <? endif; ?> <? if ($show['roomRequest']) : ?> <!--Raumanfrage--> <?php echo $this->render_partial('course/timesrooms/_roomRequest.php'); ?> <? endif; ?> <? if (Request::isXhr()): ?> <div data-dialog-button> <?php echo Studip\LinkButton::create(_('Raumanfrage erstellen'), $controller->url_for('course/room_requests/edit/' . $course->id, array('cid' => $course->id, 'new_room_request_type' => 'course', 'origin' => 'admin_courses')), array('data-dialog' => 'size=big')); ?> </div> <? endif; ?>
<?php $open_requests = $course->room_requests->filter(function (RoomRequest $request) { return $request->closed < 2; }); ?> <? if (count($open_requests) > 0): ?> <?php echo MessageBox::info(sprintf(ngettext('Für diese Veranstaltung liegt eine offene Raumanfrage vor.', 'Für diese Veranstaltung liegen %u offene Raumanfragen vor', count($open_requests)), count($open_requests)) . '<br>' . Studip\LinkButton::create(_('Raumanfragen anzeigen'), URLHelper::getURL('dispatch.php/course/room_requests/index/' . $course->getId()))); ?> <? endif; ?>
<br> <?php echo sprintf(_('<b>Dateigröße:</b> %u kB '), round($document['filesize'] / 1024)); ?> <?php echo sprintf(_('<b>Dateiname:</b> %s '), $document['filename']); ?> <? if ($document['protected']): ?> <?php echo MessageBox::info(_('Diese Datei ist urheberrechtlich geschützt'), array(_('Sie darf nur im Rahmen dieser Veranstaltung verwendet werden, jede weitere ' . 'Verbreitung ist strafbar!'))); ?> <? endif; ?> <div style="text-align: center;"> <div class="button-group"> <?php echo Studip\LinkButton::create(_('Herunterladen'), GetDownloadLink($document['dokument_id'], $document['filename'], $document['type'], 'force')); ?> <? if ($type != 6 && !in_array($document['extension'], words('bz2 gzip tgz zip'))): ?> <?php echo Studip\LinkButton::create(_('Als ZIP herunterladen'), GetDownloadLink($document['dokument_id'], $document['filename'], $document['type'], 'zip')); ?> <? endif; ?> </div> </div> </td> </tr> <? endif; ?> </table> <? endforeach; ?>
?> </label> <? endforeach; ?> </fieldset> <footer> <? if ($i_view != 'new' && !$institute->isNew()): ?> <input type="hidden" name="i_id" value="<?php echo $institute->id; ?> "> <?php echo Studip\Button::createAccept(_('Übernehmen'), 'i_edit'); ?> <?php echo Studip\LinkButton::create(_('Löschen'), $controller->url_for('institute/basicdata/index/' . $i_view, array('i_trykill' => 1)), !$may_delete ? array('disabled' => '') : array()); ?> <? if (!$may_delete && strlen($reason_txt) > 0): ?> <?php echo tooltipIcon($reason_txt, true); ?> <? endif; ?> <? else: ?> <?php echo Studip\Button::create(_('Anlegen'), 'create'); ?> <? endif; ?> <input type="hidden" name="i_view" value="<?php echo $i_view; ?> ">
?> <input type="hidden" name="wiki" value="<?php echo htmlReady($keyword); ?> "> <input type="hidden" name="version" value="<?php echo htmlReady($version); ?> "> <input type="hidden" name="submit" value="true"> <input type="hidden" name="cmd" value="show"> <textarea name="body" class="wiki-editor add_toolbar wysiwyg resizable"><?php echo htmlready($body); ?> </textarea> <br><br> <div class="button-group"> <?php echo Studip\Button::createAccept(_('Speichern')); ?> <?php echo Studip\Button::create(_('Speichern und weiter bearbeiten'), 'submit-and-edit'); ?> </div> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('?cmd=abortedit' . $lastpage, compact('keyword'))); ?> </form>
<form method="post" action="<?php echo PluginEngine::getLink('coreforum/index/edit_category/' . $category_id); ?> "> <input type="text" required name="name" size="40" maxlength="255" value="<?php echo htmlReady($categories[$category_id]); ?> "> <?php echo Studip\Button::createAccept(_('Kategorie speichern'), '', array('onClick' => "javascript:STUDIP.Forum.saveCategoryName('" . $category_id . "'); return false;")); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), PluginEngine::getLink('coreforum/index/index#cat_' . $category_id), array('onClick' => "STUDIP.Forum.cancelEditCategoryName('" . $category_id . "'); return false;")); ?> </form>
</thead> <tbody> <? if (empty($holidays)): ?> <tr> <td colspan="4" style="text-align: center;"> <? if ($filter): ?> <?php echo _('In der gewählten Ansicht gibt es keine Einträge.'); ?> <? else: ?> <?php echo _('Es wurden noch keine Ferien angelegt.'); ?> <br> <?php echo Studip\LinkButton::create(_('Neue Ferien anlegen'), $controller->url_for('admin/holidays/edit'), array('data-dialog' => 'size=auto')); ?> <? endif; ?> </td> </tr> <? else: ?> <? foreach ($holidays as $holiday): ?> <tr <? if ($holiday->current) echo 'style="font-weight: bold;"'; ?>> <td> <input type="checkbox" name="ids[]" value="<?php echo $holiday->id; ?> "> </td> <td title="<?php echo htmlReady($holiday->description);
echo Studip\LinkButton::create(_("Anmeldung gesperrt"), $controller->url_for('/instant_course_set', array('type' => 'LockedAdmission')), array('data-dialog' => '')); ?> <? endif ?> <? if (isset($activated_admission_rules['TimedAdmission'])) : ?> <?php echo Studip\LinkButton::create(_("Zeitgesteuerte Anmeldung"), $controller->url_for('/instant_course_set', array('type' => 'TimedAdmission')), array('data-dialog' => '')); ?> <? endif ?> <br> <? if (isset($activated_admission_rules['ParticipantRestrictedAdmission'])) : ?> <?php echo Studip\LinkButton::create(_("Teilnahmebeschränkte Anmeldung"), $controller->url_for('/instant_course_set', array('type' => 'ParticipantRestrictedAdmission')), array('data-dialog' => '')); ?> <? if (isset($activated_admission_rules['TimedAdmission'])) : ?> <?php echo Studip\LinkButton::create(_("Zeitgesteuerte und Teilnahmebeschränkte Anmeldung"), $controller->url_for('/instant_course_set', array('type' => 'ParticipantRestrictedAdmission_TimedAdmission')), array('data-dialog' => '')); ?> <? endif ?> <? endif ?> <? endif ?> </div> <? if (!$is_locked['admission_type'] && count($available_coursesets)) : ?> <table class="default nohover collapsable"> <tbody class="collapsed"> <tr class="header-row"> <td> <label class="caption toggler"> <span style="cursor:pointer" title="<?php echo _("Klicken um Zuordnungsmöglichkeiten zu öffnen"); ?> ">
<p> <?php echo sprintf(_('Die Applikation <strong>%s</strong> möchte auf Ihre Daten zugreifen.'), htmlReady($rs['application_title'])); ?> </p> <form action="<?php echo $controller->url_for('oauth/authorize?oauth_token=' . $rs['token']); ?> " method="post"> <p> <?php echo Studip\Button::createAccept('erlauben', 'allow'); ?> <?php echo Studip\LinkButton::createCancel('verweigern', $rs['callback_url']); ?> </p> </form> <p> <?php echo Avatar::getAvatar($GLOBALS['user']->id)->getImageTag(Avatar::SMALL); ?> <?php echo sprintf(_('Angemeldet als <strong>%s</strong> (%s)'), $name = get_fullname(), $GLOBALS['user']->username); ?> <br> <small> <?php
<table class="default"> <thead> <tr> <? foreach ($captions as $cap) :?> <th><?php echo $cap; ?> </th> <? endforeach ?> </tr> </thead> <tbody> <? foreach ($data as $row ) : ?> <tr> <? foreach ($row as $value ) : ?> <td><?php echo htmlReady($value); ?> </td> <? endforeach ?> </tr> <? endforeach ?> </tbody> </table> <div data-dialog-button> <?php echo Studip\LinkButton::create(_("Download"), $controller->url_for('admission/courseset/applications_list/' . $set_id . '/csv')); ?> </div>
</textarea> </label> </fieldset> <?/* <fieldset> <label> <input type="radio" name="restricted" value="0" <? if (!$entry->file->restricted) echo 'checked'; ?>> <?php echo _('Ja, dieses Dokument ist frei von Rechten Dritter.'); ?> </label> <label> <input type="radio" name="restricted" value="1" <? if ($entry->file->restricted) echo 'checked'; ?>> <?php echo _('Nein, dieses Dokument ist <u>nicht</u> frei von Rechten Dritter.'); ?> </label> </fieldset> */?> </fieldset> <div data-dialog-button> <?php echo Studip\Button::createAccept(_('Speichern')); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for_parent_directory($entry)); ?> </div> </form>
?> </td> <td class="actions"> <a title="<?php echo _('Benutzer entfernen'); ?> " onClick="STUDIP.CalendarDialog.removeUser(this);" href="<?php echo $controller->url_for('calendar/single/remove_user/' . $calendar->getRangeId() . $filter, array('user_id' => $user->user_id)); ?> "> <?php echo Icon::create('person+remove', 'clickable')->asImg(); ?> </a> </td> </tr> <? endforeach; ?> <? endforeach; ?> </tbody> </table> <div style="text-align: center;" data-dialog-button> <?php echo Studip\Button::create(_('Speichern'), 'store'); ?> <? if (!Request::isXhr()) : ?> <?php echo Studip\LinkButton::create(_('Abbrechen'), $controller->url_for('calendar/single/' . $last_view)); ?> <? endif; ?> </div> </form>
<td class="areaentry"> <form class="add_area_form" method="post" action="<?php echo PluginEngine::getLink('coreforum/area/add/' . $category_id); ?> "> <?php echo CSRFProtection::tokenTag(); ?> <input type="text" name="name" size="50" maxlength="255" style="width: 99%;" placeholder="<?php echo _('Name des neuen Bereiches'); ?> " required><br> <textarea name="content" style="height: 3em; width: 99%;" placeholder="<?php echo _('Optionale Beschreibung des neuen Bereiches'); ?> "></textarea> <?php echo Studip\Button::create(_('Bereich hinzufügen')); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), PluginEngine::getLink('coreforum/index/index#cat_' . $category_id)); ?> </form> </td> <td class="postings">0</td> <td class="answer" colspan="2"><br><?php echo _('keine Antworten'); ?> </td> </tr>
</label> </noscript> <label class="caption"> <?php echo _('Einordnen unter'); ?> <select name="range_id"> <option value="<?php echo htmlReady($_SESSION['SessionSeminar']); ?> "> - <?php echo _('Hauptebene'); ?> - </option> <?php echo $this->render_partial("admin/statusgroups/_edit_subgroupselect.php", array('groups' => $groups, 'selected' => $group, 'level' => 0)); ?> </select> </label> <div data-dialog-button> <?php echo Studip\Button::createAccept(_('Speichern'), 'save'); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/statusgroups')); ?> </div> </form>
<?php echo htmlReady($one['name']); ?> </option> <? endforeach ?> </select> </section> <div class="text-center" data-dialog-button> </div> <? else : ?> <?php echo MessageBox::info(_("In dieser Veranstaltung können keine weiteren Raumanfragen gestellt werden.")); ?> <? endif ?> <div data-dialog-button> <? if (count($options)) : ?> <?php echo Studip\Button::create(_('Erstellen')); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->link_for('index/' . $course_id)); ?> <? else : ?> <?php echo Studip\LinkButton::create(_('Zurück zur Übersicht'), $controller->link_for('index/' . $course_id), array('data-dialog' => 'size=big')); ?> <? endif ?> </div> </form>
<? endif ?> </form> </td> </tr> </tbody> </table> <div id="sem_type_delete_question_title" style="display: none;"><?php echo _("Sicherheitsabfrage"); ?> </div> <div id="sem_type_delete_question" style="display: none;"> <p class="info"><?php echo _("Wirklich den Veranstaltungstyp löschen?"); ?> </p> <input type="hidden" id="sem_type_for_deletion"> <?php echo Studip\LinkButton::create(_("Löschen"), array('onclick' => "STUDIP.admin_sem_class.delete_sem_type(); return false;")); ?> <?php echo Studip\LinkButton::create(_("Abbrechen"), array('onclick' => "jQuery(this).closest('#sem_type_delete_question').dialog('close'); return false;")); ?> </div> <? $sidebar = Sidebar::Get(); $sidebar->setTitle(PageLayout::getTitle()); $sidebar->setImage('sidebar/plugin-sidebar.png');
<fieldset> <legend><?php echo _('Datenfeld konfigurieren'); ?> </legend> <label> <?php echo _('Inhalte'); ?> <textarea name="typeparam"><?php echo htmlReady($struct->getTypeParam()); ?> </textarea> </label> </fieldset> <footer data-dialog-button> <?php echo Studip\Button::createAccept(_('Speichern'), 'store'); ?> <?php echo Studip\Button::create(_('Vorschau'), 'preview', ['data-dialog' => 'size=auto']); ?> <?php echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/datafields/index/' . $struct->getObjectType() . '#' . $struct->getObjectType())); ?> </footer> </form>
<?php echo Studip\Button::create(_('Abstimmen'), 'vote', array('value' => $vote->id)); ?> <? endif ?> <?php echo Studip\LinkButton::create(_('Ergebnisse'), ContentBoxHelper::href($vote->id, array('preview[]' => $vote->id))); ?> <? else: ?> <?php echo Studip\LinkButton::create(_('Ergebnisse ausblenden'), ContentBoxHelper::href($vote->id, array('preview' => 0))); ?> <?php echo Request::get('sort') ? Studip\LinkButton::create(_('Nicht sortieren'), ContentBoxHelper::href($vote->id, array('preview[]' => $vote->id, 'sort' => 0))) : Studip\LinkButton::create(_('Sortieren'), ContentBoxHelper::href($vote->id, array('preview[]' => $vote->id, 'sort' => 1))); ?> <? if ($vote->changeable && $vote->state == 'active' && !$nobody): ?> <?php echo Studip\LinkButton::create(_('Antwort ändern'), ContentBoxHelper::href($vote->id, array('change' => 1))); ?> <? endif; ?> <? if (!$vote->anonymous && ($admin || $vote->namesvisibility)): ?> <? if (Request::get('revealNames') === $vote->id) : ?> <?php echo Studip\LinkButton::create(_('Namen ausblenden'), ContentBoxHelper::href($vote->id, array('revealNames' => null))); ?> <? else : ?> <?php echo Studip\LinkButton::create(_('Namen zeigen'), ContentBoxHelper::href($vote->id, array('revealNames' => $vote->id))); ?> <? endif; ?> <? endif; ?> <? endif; ?>