Example #1
0
    <? else : ?>
    <select <?=$is_locked ?> name="<?= $input['name'] ?>" <? if ($input['must']) echo 'required'; ?>>
    <? if ($input['choices']) : foreach ($input['choices'] as $choice_value => $choice_name) : ?>
        <option value="<?= htmlReady($choice_value) ?>"<?
            if ($choice_value == $input['value']) print " selected"
            ?>><?= $choice_name ?></option>
    <? endforeach; endif; ?>
    </select>
    <? endif ?>
<? endif;

if ($input['type'] === "multiselect") : ?>
    <select <?=$is_locked ?> name="<?= $input['name'] ?>" multiple size="8" <? if ($input['must']) echo 'required'; ?>>
    <? if ($input['choices']) : foreach ($input['choices'] as $choice_value => $choice_name) : ?>
        <option value="<?= htmlReady($choice_value) ?>"<?=
            in_array($choice_value, is_array($input['value']) ? $input['value'] : array($input['value']))
            ? " selected"
            : "" ?>><?= $choice_name ?></option>
    <? endforeach; endif; ?>
    </select>
<? endif;

if ($input['type'] === "datafield"):?>
    <div style="padding-right:0.5em;">
        <?=$input['locked'] ? $input['display_value'] : $input['html_value'];?>
    </div>
    <?if($input['description']):?>
        <?=tooltipIcon($input['description'])?>
    <?endif?>
<?endif?>
Example #2
0
echo _('Teilnehmerliste übernehmen');
?>
                </a>
            </th>
        </tr>
        <tr>
            <td>
                <?php 
echo _('Eingabeformat');
?>
:

                <?php 
echo tooltipIcon(sprintf(_('In das Textfeld <strong>Teilnehmerliste übernehmen</strong> können Sie eine Liste mit Namen von %s eingeben,
                    die in die Veranstaltung aufgenommen werden sollen. Wählen Sie in der Auswahlbox das gewünschte Format, in dem Sie die Namen eingeben möchten.<br />
                    <strong>Eingabeformat</strong><br/>
                    <strong>Nachname, Vorname &crarr;</strong><br />Geben Sie dazu in jede Zeile den Nachnamen und (optional) den Vornamen getrennt durch ein Komma oder ein Tabulatorzeichen ein.<br />
                    <strong>Nutzername &crarr;</strong><br />Geben Sie dazu in jede Zeile den Stud.IP Nutzernamen ein.'), $status_groups['autor']), false, true);
?>
            </td>
            <td colspan="2">
                <select name="csv_import_format">
                    <option value="realname"><?php 
echo _("Nachname, Vorname");
?>
 &crarr;</option>
                    <option value="username"><?php 
echo _("Nutzername");
?>
 &crarr;</option>
                    <? if(!empty($accessible_df)) : ?>
Example #3
0
            <input type="checkbox" name="personal_notifications_activated"
                   aria-describedby="personal_notifications_activated_description" value="1"
                <? if (PersonalNotifications::isActivated($user->user_id)) echo 'checked'; ?>>
            <?php 
echo _('Benachrichtigungen über Javascript');
?>
            <?php 
echo tooltipIcon(_('Hiermit wird in der Kopfzeile dargestellt, wenn es Benachrichtigungen für ' . 'Sie gibt. Die Benachrichtigungen werden auch angezeigt, wenn Sie nicht die ' . 'Seite neuladen.'));
?>
        </label>

        <label>
            <input type="checkbox" name="personal_notifications_audio_activated"
                   aria-describedby="personal_notifications_audio_activated_description" value="1"
                <? if (PersonalNotifications::isAudioActivated($user->user_id)) echo 'checked'; ?>>
            <?php 
echo _('Audio-Feedback zu Benachrichtigungen');
?>
            <?php 
echo tooltipIcon(_('Wenn eine neue Benachrichtigung für Sie reinkommt, ' . 'werden Sie mittels eines kleinen Plopps darüber in Kenntnis gesetzt ' . '- auch wenn Sie gerade einen anderen Browsertab anschauen. Der Plopp ist ' . 'nur zu hören, wenn Sie die Benachrichtigungen über Javascript aktiviert haben.'));
?>
        </label>
    </fieldset>

    <footer>
        <?php 
echo \Studip\Button::create(_("Speichern"));
?>
    </footer>
</form>
Example #4
0
    function editSelectSubjectAreas ($selector) {
        $info = _("Wählen Sie die Studienbereiche aus, deren Veranstaltungen angezeigt werden sollen.");
        $info2 = _("Sie können beliebig viele Studienbereiche auswählen.");
        $this->css->resetClass();
        $this->css->switchClass();
        $form_name = $this->element_name . "_" . 'subjectareasselected';

        if ($this->faulty_values[$form_name][0]) {
            $error_sign = $this->error_sign;
        } else {
            $error_sign = '';
        }

        $selected = $this->config->getValue($this->element_name, 'subjectareasselected');
        $selector->selected = array();
        $selector->sem_tree_ranges = array();
        $selector->sem_tree_ids = array();
        if (is_array($selected) && count($selected)) {
            foreach ($selected as $selected_id) {
                $selector->selected[$selected_id] = TRUE;
                $selector->sem_tree_ranges[$selector->tree->tree_data[$selected_id]['parent_id']][] = $selected_id;
                $selector->sem_tree_ids[] = $selected_id;
            }
        }

        $form_name_tmp = $selector->form_name;
        $selector->form_name = 'SelectSubjectAreas';
        $selector->doSearch();
        $out = '<tr' . $this->css->getFullClass() . '><td>';
        $out .= "<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";
        $out .= '<tr><td align="left" style="font-size: smaller;" width="100%" nowrap="nowrap" colspan="2">' . _("Suche") . ': ';
        $out .= $selector->getSearchField(array('size' => 30 ,'style' => 'vertical-align:middle;'));
        $out .= $selector->getSearchButton(array('style' => 'vertical-align:middle;'));
        $out .= '<br><span style="font-size: 0.9em;"> (' . sprintf(_("Geben Sie '%s' ein, um alle Studienbereiche zu finden."), '%%%') . ')</span>';
        if ($selector->num_search_result !== false){
            $out .= "<br><span style=\"font-size:smaller;\"><a name=\"anker\">&nbsp;&nbsp;</a>"
                    . sprintf(_("Ihre Suche ergab %s Treffer."),$selector->num_search_result)
                    . (($selector->num_search_result) ? _(" (Suchergebnisse werden blau angezeigt)") : '')
                    . '</span>';
        }
        $out .= '</td></tr>';
        $selector->form_name = $form_name_tmp;
        $out .= '<td nowrap="nowrap" width="80%">';
        $out .= $selector->getChooserField(array('style' => 'width:98%;','size' => 15),
                70, 'subjectareasselected');
        $out .= '</td><td width="20%" style="vertical-align: top;">';
        $out .= tooltipIcon($info);
        $out .= "<span style=\"vertical-align:top;\">$error_sign</span>";
        $out .= "</td></tr></table>\n</td></tr>\n";

        return $out;
    }
Example #5
0
echo sprintf('(%s)', htmlReady($freeTextRoom));
?>
    <? else : ?>
        <?php 
echo _('Keine Raumangabe');
?>
        <?php 
echo $room_holiday ?: '';
?>
    <? endif ?>

    <? $room_request = RoomRequest::find(RoomRequest::existsByDate($termin->id, true))?>
    <? if (isset($room_request)) : ?>
        <? $msg_info = _('Für diesen Termin existiert eine Raumanfrage: ') . $room_request->getInfo() ?>
        <?php 
echo tooltipIcon($msg_info);
?>
    <? endif ?>
    </td>
    <td class="actions">
    <? if ($is_exTermin): ?>
        <a class="load-in-new-row"
           href="<?php 
echo $controller->url_for('course/timesrooms/cancel/' . $termin->termin_id . ($termin->metadate_id ? '/' . $termin->metadate_id : ''), $editParams);
?>
">
            <?php 
echo Icon::create('edit', 'inactive', ['title' => _('Kommentar für diesen Termin bearbeiten')])->asImg();
?>
        </a>
Example #6
0
            </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");
?>
">
                                    <?php 
echo _("Zuordnung zu einem bestehenden Anmeldeset");
?>
                                    <?php 
echo tooltipIcon(_("Wenn die Veranstaltung die Anmelderegeln eines Anmeldesets übernehmen soll, klicken Sie hier und wählen das entsprechende Anmeldeset aus."));
?>
                                </span>
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <select name="course_set_assign" style="display: inline-block;"
                                    onChange="$('#course_set_assign_explain').load('<?php 
echo $controller->link_for('/explain_course_set');
?>
&set_id=' + $(this).val());">
                                <option></option>
                                <? $my_own_sets = $available_coursesets->findBy('my_own', true); ?>
                                <? $other_sets = $available_coursesets->findBy('my_own', false); ?>
Example #7
0
echo htmlReady(sprintf('%s %s (%s)', $user['Vorname'], $user['Nachname'], $user['username']));
?>
                    </a>
                </td>
                <td><?php 
echo $user['perms'];
?>
</td>
                <td>
                <? $institutes = join(', ', $user['institutes']); ?>
                    <?php 
echo htmlReady(substr($institutes, 0, 60));
?>
                    <? if (strlen($institutes) > 60): ?>
                    ...<?php 
echo tooltipIcon(join("\n", $user['institutes']));
?>
                    <? endif ?>
                </td>
                <td class="actions">
                    <?php 
echo Icon::create('trash', 'clickable', ['title' => _('Rolle entziehen')])->asInput(["data-confirm" => _('Soll dieser Person wirklich die Rolle entzogen werden?'), "formaction" => $controller->url_for('admin/role/remove_user/' . $roleid . '/' . $user['user_id'])]);
?>
                </td>
            </tr>
        <? endforeach; ?>
    <? endif; ?>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="6">
Example #8
0
File: new.php Project: ratbird/hope
            <? foreach (array_keys($controller->user_status) as $perm): ?>
                <option><?php 
echo $perm;
?>
</option>
            <? endforeach; ?>
            </select>
        </label>

    <? if ($object_typ === 'user') :?>
        <label>
            <?php 
echo _('Systemfeld');
?>
            <?php 
echo tooltipIcon(_('Nur für die Person selbst sichtbar, wenn der ' . 'benötigte Status zum Bearbeiten oder die ' . 'Sichtbarkeit ausreichend ist'));
?>

            <input type="hidden" name="system" value="0">
            <input type="checkbox" name="system" value="1"
                   <? if ($this->flash['request']['system']) echo 'checked'; ?>>
        </label>
    <? endif; ?>

        <label>
            <?php 
echo _('Position');
?>

            <input type="text" name="priority"
                   maxlength="10" size="2"
Example #9
0
File: new.php Project: ratbird/hope
            // load metadata of plugin
            $plugin = $sem_class->getModule($key);
            $info = $plugin->getMetadata();
            ?>
            <label>
                <input name="groupplugin[<?php 
echo $key;
?>
]" type="checkbox" <?php 
echo $this->flash['request']['groupplugin'][$key] ? 'checked="checked"' : '';
?>
> <?php 
echo htmlReady($name);
?>
                <?php 
echo isset($info['description']) ? tooltipIcon(kill_format($info['description'])) : "";
?>
            </label><br>
        <? endif ?>
    <? endforeach; ?>
  </td>
</tr>

<tr>
  <td style='text-align:right;'></td>
</tr>

<tr>
  <td style='text-align:right;'><label for="groupaccess"><?php 
echo _("Zugang:");
?>
Example #10
0
        <p><?php 
echo _("verantwortlich:");
?>
            <a href="<?php 
echo $resObject->getOwnerLink();
?>
"><?php 
echo htmlReady($resObject->getOwnerName());
?>
</a>
            <?php 
echo Icon::create('trash', 'clickable', ['title' => _('den ausgewählten Raum löschen')])->asInput(["type" => "image", "style" => "vertical-align:middle", "name" => "reset_resource_id"]);
?>
            <?php 
echo tooltipIcon(_('Der ausgewählte Raum bietet folgende der wünschbaren Eigenschaften:') . " \n" . $resObject->getPlainProperties(true));
?>
        </p>
        <input type="hidden" name="selected_room" value="<?php 
echo htmlready($request_resource_id);
?>
">
    </section>
<? endif ?>


<section class="times-rooms-grid ">
    <section>
        <h2>
            <?php 
echo _("Raumeigenschaften angeben:");
Example #11
0
">
    <caption class="handle">
        <? if (ForumPerm::has('sort_category', $seminar_id)) : ?>
            <?php 
echo Icon::create('arr_2down', 'sort')->asImg();
?>
            <?php 
echo Icon::create('arr_2up', 'sort')->asImg();
?>
        <? endif ?>

        <? if (ForumPerm::has('edit_category', $seminar_id) || ForumPerm::has('remove_category', $seminar_id)) : ?>
        <span class="actions" id="tutorCategoryIcons">
            <? if ($category_id == $seminar_id) : ?>
            <?php 
echo tooltipIcon(_('Diese vordefinierte Kategorie kann nicht bearbeitet oder gelöscht werden.' . ' Für Autor/innen taucht sie allerdings nur auf, wenn sie Bereiche enthält.'));
?>
            <? else : ?>
                <? if (ForumPerm::has('edit_category', $seminar_id)) : ?>
                <a href="<?php 
echo PluginEngine::getLink('coreforum/index/?edit_category=' . $category_id);
?>
"
                    onClick="javascript:STUDIP.Forum.editCategoryName('<?php 
echo $category_id;
?>
'); return false;">
                    <?php 
echo Icon::create('edit', 'clickable', ['title' => 'Name der Kategorie ändern'])->asImg();
?>
                </a>
Example #12
0
echo Icon::create('arr_2right', 'clickable')->asImg(['hspace' => 3]);
?>
            </a>
        <? endif ?>
    </p>
    <? for ($i = $search->start_result; $i <= $end_result; ++$i) : ?>
        <? $element = $search->getSearchResult($i); ?>
        <? if ($element) : ?>
            <section class="contentbox">
                <header>
                    <h1>
                        <? $link = URLHelper::getLink('', array('cmd'        => 'add_to_clipboard',
                                                                'catalog_id' => $element->getValue("catalog_id")
                        )); ?>
                        <? if ($clipboard->isInClipboard($element->getValue("catalog_id"))) : ?>
                            <? $addon = tooltipIcon(_('Dieser Eintrag ist bereits in Ihrer Merkliste'), true); ?>
                        <? else : ?>
                            <? $addon = "<a href=\"$link\">"; ?>
                            <? $addon .= Icon::create('exclaim', 'clickable', ['title' => _('Eintrag in Merkliste aufnehmen')])->asImg(); ?>
                            <? $addon .= "</a>"; ?>
                        <? endif ?>
                        <?php 
echo htmlReady(my_substr($element->getShortName(), 0, 85));
?>
                    </h1>
                    <span class="actions">
                        <?php 
echo $addon;
?>
                    </span>
                </header>
Example #13
0
?>
"><?php 
echo htmlReady(($course['course_number'] ? $course['course_number'] . '|' : '') . $course['course_name']);
?>
</a></td>
                <td><?php 
echo htmlReady($course['admission_turnout']);
?>
</td>
                <td><?php 
echo htmlReady($course['count_teilnehmer'] + $course['count_prelim']);
?>
                <? if ($course['admission_prelim'] && $course['count_prelim']) : ?>
                <? $text = _("vorläufige Teilnahme: ") . $course['count_prelim']; ?>
                    <?php 
echo tooltipIcon($text);
?>
                <? endif ?>
                <td><?php 
echo htmlReady(isset($course['count_claiming']) ? $course['count_claiming'] : '-');
?>
</td>
                <td><?php 
echo htmlReady(isset($course['count_waiting']) ? $course['count_waiting'] : '-');
?>
</td>
                <td style="white-space:nowrap" data-timestamp="<?php 
echo (int) $course['distribution_time'];
?>
"><?php 
echo htmlReady($course['distribution_time'] ? strftime('%x %R', $course['distribution_time']) : '-');
Example #14
0
                <header class="<?php 
echo $course->getCycleColorClass($metadate_id);
?>
">
                    <h1>
                    <? if ($info = $course->getBookedRoomsTooltip($metadate_id)) : ?>
                        <?php 
echo tooltipIcon($info);
?>
                    <? elseif ($course->getCycleColorClass($metadate_id) === 'red'): ?>
                        <?php 
echo tooltipIcon(_('Keine Raumbuchungen vorhanden'));
?>
                    <? else: ?>
                        <?php 
echo tooltipIcon(_('Keine offenen Raumbuchungen'));
?>
                    <? endif; ?>
                        <a href="<?php 
echo ContentBoxHelper::href($metadate_id);
?>
">
                            <?php 
echo htmlReady($cycle['cycle']->toString('long'));
?>
                        </a>
                    </h1>
                    <nav>
                        <span>
                            <?php 
echo _('Raum');
Example #15
0
                <? endif; ?>
            </div>
        </label>

        <? if (($global_visibility == 'yes' || $global_visibility == 'global' ||
            ($global_visibility == 'unknown' && get_config('USER_VISIBILITY_UNKNOWN')) ||
            ($user_perm == 'dozent' && get_config('DOZENT_ALWAYS_VISIBLE'))) &&
        (!$NOT_HIDEABLE_FIELDS[$user_perm]['online'] ||
            !$NOT_HIDEABLE_FIELDS[$user_perm]['search'] ||
            !$NOT_HIDEABLE_FIELDS[$user_perm]['email'])) : ?>
            <div>
                <?php 
echo _('Erweiterte Einstellungen');
?>
                <?php 
echo tooltipIcon(_('Stellen Sie hier ein, in welchen Bereichen des Systems Sie erscheinen wollen.') . (!$NOT_HIDEABLE_FIELDS[$user_perm]['email'] ? _('Wenn Sie hier Ihre E-Mail-Adresse verstecken, wird stattdessen die E-Mail-Adresse Ihrer (Standard-)Einrichtung angezeigt.') : ""));
?>

                <? if (!$NOT_HIDEABLE_FIELDS[$user_perm]['online']): ?>
                    <label>
                        <input type="checkbox" name="online" value="1"
                            <? if ($online_visibility) echo 'checked'; ?>>
                        <?php 
echo _('sichtbar in "Wer ist online"');
?>
                    </label>
                <? endif; ?>
                <? if (!$NOT_HIDEABLE_FIELDS[$user_perm]['search']): ?>
                    <label>
                        <input type="checkbox" name="search" value="1"
                            <? if ($search_visibility) echo 'checked'; ?>>
Example #16
0
">
                <? if (strcmp($group_field, 'sem_tree_id') === 0 && strcmp($title, '') === 0) : ?>
                    <? $title = "keine Zuordnung"; ?>
                <? endif ?>

                <? if (strcmp($this->group_field, 'gruppe') === 0) : ?>
                    <? $title = _('Gruppe') . " " . $index ?>
                <? endif ?>

                <?php 
echo htmlReady($title);
?>
</a>
        </th>
        <th></th>
        <th colspan="2">
            <? if ($last_modified) : ?>
                <?php 
echo tooltipIcon(_('Letzte Änderung') . ': ' . strftime('%x, %H:%M', $last_modified), true);
?>
            <? endif ?>
        </th>
    </tr>
    <?php 
echo $this->render_partial("my_courses/_course", compact('course_collection'));
?>
    </tbody>
    <? $index++ ?>
<? endforeach ?>

Example #17
0
<ol class="clean options" data-optiontemplate="<?php 
echo htmlReady($this->render_partial("questionnaire/question_types/test/_option.php", array('vote' => $vote, 'option' => "")));
?>
"><?
    if (isset($vote['questiondata']['options'])) {
        foreach ($vote['questiondata']['options'] as $index => $option) {
            echo $this->render_partial("questionnaire/question_types/test/_option.php", array('vote' => $vote, 'option' => $option, 'index' => $index));
        }
    }
    echo $this->render_partial("questionnaire/question_types/test/_option.php", array('vote' => $vote, 'option' => "", 'index' => $index + 1, 'forcecorrect' => (!isset($vote['questiondata']['options']) || (count($vote['questiondata']['options']) === 0))));
?></ol>

<div style="padding-left: 13px; margin-bottom: 20px;">
    <?php 
echo tooltipIcon(_("Wählen Sie über die Auswahlboxen aus, welche Antwortmöglichkeit korrekt ist."));
?>
</div>

<label>
    <input type="checkbox" name="questions[<?php 
echo $vote->getId();
?>
][questiondata][multiplechoice]" value="1"<?php 
echo $vote->isNew() || $vote['questiondata']['multiplechoice'] ? " checked" : "";
?>
>
    <?php 
echo _("Mehrere Antworten sind erlaubt.");
?>
</label>
Example #18
0
    /**
    * Prints out a form for entering the vertikal alignment of a html-element (e.g. &lt;td&gt;, &lt;table&gt;).
    *
    * @access   public
    * @param    string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
    * @return   string A complete table row includes a closed table with the form.
    */
    function editValign ($attribute) {
        $info = _("Wählen Sie aus der Auswahlliste die Art der vertikalen Ausrichtung.");
        $form_name = $this->element_name . "_" . $attribute;
        $value = $this->getValue($attribute);

        $valign_types = array(
            "" => _("keine Auswahl"),
            "top" => _("obenbündig"),
            "bottom" => _("untenbündig"),
          "center" => _("zentriert")
        );
        if ($this->faulty_values[$form_name][0])
            $error_sign = $this->error_sign;
        else
            $error_sign = "";

        $out = "<tr><td><table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";
        $out .= "<tr" . $this->css->getFullClass() . "><td{$this->width_1}><font size=\"2\">";
        $out .= _("vertikale Ausrichtung:");
        $out .= "</font></td>\n";
        $out .= "<td{$this->width_2} nowrap=\"nowrap\"><select name=\"$form_name\" size=\"1\">\n";
        foreach ($valign_types as $valign_type => $valign_name) {
            if ($value == $valign_type)
                $out .= "<option selected=\"selected\" ";
            else
                $out .= "<option ";
            $out .= "value=\"$valign_type\">";
            $out .= $valign_name . "</option>";
        }
        $out .= "</select>\n";
        $out .= tooltipIcon($info);
        $out .= "$error_sign</td></tr>\n</table>\n</td></tr>\n";
        $this->css->switchClass();

        return $out;
    }
Example #19
0
?>
                    </td>
                </tr>
            <? endif; ?>
            </tbody>
            <tfoot>
            <tr>
                <td colspan="2"></td>
                <td colspan="3">
                    <label>
                        <input type="checkbox" name="change_lockable" <? if ($resObject->isLockable()) echo 'checked'; ?>>
                        <?php 
echo _('Blockierung');
?>
                        <?php 
echo tooltipIcon(_('Diesen Raum bei globaler Blockierung gegen eine Bearbeitung durch lokale Administratoren und andere Personen sperren'));
?>
                    </label>
                    <strong><?php 
echo _('Aktueller Zustand');
?>
</strong>:
                    <? if ($resObject->isLockable()): ?>
                        <?php 
echo _('Raum <span style="text-decoration: underline">kann</span> blockiert werden');
?>
                    <? else: ?>
                        <?php 
echo _('Raum kann <span style="text-decoration: underline">nicht</span> blockiert werden');
?>
                    <? endif; ?>
Example #20
0
    /**
    * Prints out a Form with an option-list.
    *
    * @param string attribute The name of the attribute (Syntax: [tag-name]_[attribute_name])
    * @param string title The title of this option-list.
    * @param string info The info text.
    * @param array radio_values The values of the options.
    * @param array radio_names The names of the options.
    * @param int length The visible size of the option-list (default 1, pull-down).
    * @param boolean multiple Set this TRUE, if you want a multiple option-list (default FALSE)
    */
    function editOptionGeneric ($attribute, $title, $info, $option_values, $option_names,
            $size = 1, $multiple = FALSE) {

        $form_name = $this->element_name . "_" . $attribute;
        $value = $this->getValue($attribute);

        if ($title == "") {
            $title = "&nbsp;";
            $width_1 = " width=\"1%\"";
            $width_2 = " width=\"99%\"";
        }
        else {
            $width_1 = $this->width_1;
            $width_2 = $this->width_2;
        }

        if ($this->faulty_values[$form_name][0])
            $error_sign = $this->error_sign;
        else
            $error_sign = "";

        $out = "<tr><td><table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";
        $out .= "<tr" . $this->css->getFullClass() . "><td$width_1 nowrap=\"nowrap\"><font size=\"2\">";
        $out .= "$title</font></td>\n";
        $out .= "<td$width_2 nowrap=\"nowrap\">";
        if ($multiple)
            $out .= "<select name=\"{$form_name}[]\" size=\"$size\" multiple>";
        else
            $out .= "<select name=\"$form_name\" size=\"$size\">";

        for ($i = 0; $i < sizeof($option_values); $i++) {
            $out .= "<option value=\"{$option_values[$i]}\"";
            if ($multiple) {
                if ($option_values[$i] && in_array($option_values[$i], (array) $value)) {
                    $out .= " selected";
                }
            } else {
                if ($value == $option_values[$i] && $option_values[$i]) {
                    $out .= " selected";
                }
            }
            $out .= ">{$option_names[$i]}</option>\n";
        }

        $out .= "</select>\n";
        $out .= tooltipIcon($info);
        $out .= "$error_sign</td></tr>\n</table>\n</td></tr>\n";
        $this->css->switchClass();

        return $out;
    }
Example #21
0
            <th><?php 
echo _('Pflichtfeld');
?>
</th>
            <th><?php 
echo _('Beschreibung');
?>
</th>
            <th colspan="3"></th>
        <? elseif ($key === 'user'): ?>
            <th style="white-space: nowrap;">
                <?php 
echo _('System');
?>
                <?php 
echo tooltipIcon(_('Für die Person nur sichtbar, wenn der Status zum Bearbeiten ' . ' oder für die Sichtbarkeit ausreichend ist'));
?>
            </th>
            <th><?php 
echo _('Anmelderegel');
?>
</th>
            <th colspan="3"></th>
        <? endif; ?>
        </tr>
    <? foreach ($data as $input => $val): ?>
        <tr>
            <td>
                <a name="item_<?php 
echo $val->id;
?>
Example #22
0
echo $controller->url_for(sprintf('profile?username=%s', $dozent['username']));
?>
">
                    <?php 
echo Avatar::getAvatar($dozent['user_id'], $dozent['username'])->getImageTag(Avatar::SMALL, array('style' => 'margin-right: 5px', 'title' => htmlReady($fullname)));
?>
                    <?php 
echo $dozent['mkdate'] >= $last_visitdate ? Assets::img('red_star', array('style' => 'position: absolute; margin: 0px 0px 0px -15px')) : '';
?>
                    <?php 
echo htmlReady($fullname);
?>
                </a>
                <? if ($is_tutor && $dozent['comment'] != '') : ?>
                    <?php 
echo tooltipIcon(sprintf('<strong>%s</strong><br>%s', _('Bemerkung'), htmlReady($dozent['comment'])), false, true);
?>
                <? endif ?>
            </td>
            <td style="text-align: right">
                <? if ($is_tutor) : ?>
                    <a data-dialog title='<?php 
echo _('Bemerkung hinzufügen');
?>
' href="<?php 
echo $controller->url_for('course/members/add_comment', $dozent['user_id']);
?>
">
                        <?php 
echo Icon::create('comment', 'clickable')->asImg();
?>
Example #23
0
    <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;
?>
">
    </footer>
</form>

<?php 
Example #24
0
echo htmlReady($user['Nachname']);
?>
"
                               <? if ($restricted || !$controller->shallChange('auth_user_md5.Nachname', 'name')) echo 'disabled'; ?>>
                    </label>
                </td>
            </tr>
            <tr>
                <td>
                    <label <? if (!$restricted) echo 'class="required"'; ?>>
                        <?php 
echo _('E-Mail:');
?>
                        <? if ($restricted) : ?>
                            <?php 
echo tooltipIcon('Dieses Feld dürfen Sie nicht ändern, Adminzugriff ist hier nicht erlaubt!');
?>
                        <? endif ?>                        
                    </label>
                </td>
                <td>
                    <label>
                        <?php 
echo _('E-Mail:');
?>
<br>
                        <input required type="email" name="email1" id="email1"
                               value="<?php 
echo htmlReady($user['Email']);
?>
"
Example #25
0
?>
">
    <td data-timestamp="<?php 
echo htmlReady($date['date']);
?>
" class="date_name">
        <? $icon = 'date+' . ($date['chdate'] > $last_visitdate ? 'new/' : '');?>
        <? if (is_a($date, "CourseExDate")) : ?>
            <?php 
echo Icon::create($icon, 'info')->asImg(['class' => "text-bottom"]);
?>
            <?php 
echo htmlReady($date->getFullname());
?>
            <?php 
echo tooltipIcon($date->content);
?>
        <? else : ?>
            <a href="<?php 
echo URLHelper::getLink('dispatch.php/course/dates/details/' . $date->getId());
?>
" data-dialog>
                <?php 
echo Icon::create($icon, 'clickable')->asImg(['class' => "text-bottom"]);
?>
                <?php 
echo htmlReady($date->getFullname());
?>
            </a>
        <? endif ?>
        <? if (count($date->dozenten) && count($date->dozenten) != $lecturer_count) : ?>
Example #26
0
 function getFormFieldInfo($name)
 {
     return tooltipIcon($this->form_fields[$name]['info']);
 }
Example #27
0
    <label>
        Mittlere Eingabe
        <input type="text" class="size-m">
    </label>


    <label>
        Längere Eingabe
        <input type="text" class="size-l">
    </label>

    <label>
        <span class="required">Hausnummer</span>
        <?php 
echo tooltipIcon(_('Bitte geben Sie hier nur eine Zahl ein'));
?>
        <input type="number">
    </label>

    <!-- alternativ -->
    <label for="house" class="required">Hausnummer</label>
    <input type="number" id="house" required>

    <label>
        Beschreibung für die Liste der Checkboxen
    </label>

    <label>
        <input type="checkbox">
        Ich habe die allgemeinen Geschäftsbedingungen gelesen
Example #28
0
<? foreach ($userfields as $entry) : ?>
    <? if ($entry->isVisible()) : ?>
        <tr>
            <td>
                <label for="datafields_<?php 
echo $entry->getID();
?>
">
                    <?php 
echo htmlReady($entry->getName());
?>
:
                </label>
            <? if (!$entry->isVisible($user['perms'])): ?>
                <?php 
echo tooltipIcon(_('Systemfeld (für die Person selbst nicht sichtbar)'), true);
?>
            <? endif; ?>
            </td>
            <td colspan="2">
            <? if ($entry->isEditable() && !LockRules::Check($user['user_id'], $entry->getId())) : ?>
                <?php 
echo $entry->getHTML("datafields");
?>
            <? else : ?>
                <?php 
echo $entry->getDisplayValue();
?>
            <? endif ?>
        </td>
    </tr>
Example #29
0
echo htmlReady($study_courses[$i]['abschluss']);
?>
            (<?php 
echo htmlReady($study_courses[$i]['semester']);
?>
)
        <? endfor ?>
    <? else : ?>
        <?php 
echo htmlReady($study_courses[0]['fach']);
?>
        <?php 
echo htmlReady($study_courses[0]['abschluss']);
?>
        (<?php 
echo htmlReady($study_courses[0]['semester']);
?>
)
        [...]
        <? foreach($study_courses as $course) : ?>
            <? $course_res .= sprintf('- %s (%s)<br>',
                                      htmlReady(trim($course['fach'] . ' ' . $course['abschluss'])),
                                      htmlReady($course['semester'])) ?>
        <? endforeach ?>
        <?php 
echo tooltipIcon('<strong>' . _('Weitere Studiengänge') . '</strong><br>' . $course_res, false, true);
?>
        <? unset($course_res); ?>
    <? endif ?>
<? endif ?>
Example #30
0
$global_requests = $course->room_requests->filter(function (RoomRequest $request) {
    return $request->closed < 2 && !$request->termin_id;
});
?>
<section class="contentbox">
    <header>
        <h1>
            <?php 
echo _('Raumanfrage für die gesamte Veranstaltung');
?>
        </h1>

        <nav>
            <?php 
echo tooltipIcon(_('Hier können Sie für die gesamte Veranstaltung, also für alle regelmäßigen und unregelmäßigen Termine, ' . 'eine Raumanfrage erstellen.'));
?>
            <a class="link-add" href="<?php 
echo $controller->url_for('course/room_requests/edit/' . $course->id, array('cid' => $course->id, 'new_room_request_type' => 'course', 'origin' => 'course_timesrooms'));
?>
"
               data-dialog="size=big"
               title="<?php 
echo _('Neue Raumanfrage für die Veranstaltung erstellen');
?>
">
                <?php 
echo _('Neue Raumanfrage');
?>
            </a>
        </nav>