Esempio n. 1
0
 /**
  * get admin module links
  *
  * returns links add or remove a module from course
  * @access public
  * @return string returns html-code
  */
 function getAdminModuleLinks()
 {
     global $connected_cms, $view, $search_key, $cms_select, $current_module;
     $output .= "<form method=\"POST\" action=\"" . URLHelper::getLink() . "\">\n";
     $output .= CSRFProtection::tokenTag();
     $output .= "<input type=\"HIDDEN\" name=\"view\" value=\"" . htmlReady($view) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"search_key\" value=\"" . htmlReady($search_key) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"cms_select\" value=\"" . htmlReady($cms_select) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_type\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getModuleType()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_id\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getId()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_system_type\" value=\"" . htmlReady($this->cms_type) . "\">\n";
     if ($connected_cms[$this->cms_type]->content_module[$current_module]->isConnected()) {
         $output .= "&nbsp;" . Button::create(_('Entfernen'), 'remove');
     } elseif ($connected_cms[$this->cms_type]->content_module[$current_module]->isAllowed(OPERATION_WRITE)) {
         $output .= "<div align=\"left\"><input type=\"CHECKBOX\" value=\"1\" name=\"write_permission\" style=\"vertical-align:middle\">";
         $output .= _("Mit Schreibrechten für alle Dozenten/Tutoren dieser Veranstaltung") . "<br>";
         $output .= "<input type=\"CHECKBOX\" value=\"1\" style=\"vertical-align:middle\" name=\"write_permission_autor\">";
         $output .= _("Mit Schreibrechten für alle Teilnehmer dieser Veranstaltung") . "</div>";
         $output .= Button::create(_('Hinzufügen'), 'add') . "<br>";
     } else {
         $output .= "&nbsp;" . Button::create(_('Hinzufügen'), 'add');
     }
     $output .= "</form>";
     return $output;
     //      $output .= parent::getAdminModuleLinks();
 }
Esempio n. 2
0
?>
            <? else : ?>
                <font size="-1">
                <b><?php 
echo _('Loginname:');
?>
</b> <?php 
echo $login;
?>
                </font>
            <? endif ?>
        </font></td>
        <td align="right">
            <input type="HIDDEN" name="new_account_step" value="1">
            <input type="HIDDEN" name="new_account_cms" value="<?php 
echo htmlReady($my_account_cms);
?>
">
        <? if ($is_connected) : ?>
            <?php 
echo Button::create(_('Bearbeiten'), 'change');
?>
        <? else : ?>
            <?php 
echo Button::create(_('Erstellen'), 'create');
?>
        <? endif?>
        </td>
    </tr>
</table>
</form>
Esempio n. 3
0
    <fieldset>
        <legend><?php 
echo _("Parameter für den Marktplatz");
?>
</legend>
        <label>
            <?php 
echo _("URL ihres Stud.IP für das automatische Update");
?>
            <input type="url" name="url" value="<?php 
echo htmlReady($following['url']);
?>
">
        </label>

        <label>
            <?php 
echo _("Sicherheitstoken (optional)");
?>
            <input type="text" name="security_token" value="<?php 
echo htmlReady($following['security_token']);
?>
">
        </label>
    </fieldset>
    <div data-dialog-button>
        <?php 
echo \Studip\Button::create(_("speichern"));
?>
    </div>
</form>
Esempio n. 4
0
            <option value="<?php 
echo $plugin['id'];
?>
" <?php 
echo $plugin['id'] == $pluginid ? 'selected' : '';
?>
>
                <?php 
echo htmlReady($plugin['name']);
?>
            </option>
        <? endforeach ?>
    </select>

    <?php 
echo Button::create(_('Auswählen'), 'select', array('title' => _('Plugin auswählen')));
?>
</form>

<? if ($pluginid): ?>
    <form action="<?php 
echo $controller->url_for('admin/role/save_plugin_role', $pluginid);
?>
" method="POST">
        <?php 
echo CSRFProtection::tokenTag();
?>
        <input type="hidden" name="ticket" value="<?php 
echo get_ticket();
?>
">
Esempio n. 5
0
echo TextHelper::cycle('table_row_even', 'table_row_odd');
?>
">
  <td><?php 
echo _('IP Adresse');
?>
</td>
  <td><input type="text" name="test_ip" size="50" required value="<?php 
echo htmlReady(Request::get("test_ip"));
?>
"></td>
  </tr>
  <tr>
  <td style="text-align:center" colspan="2">
  <?php 
echo Button::createAccept(_('Abschicken'), 'ok', array('title' => _('Test starten')));
?>
  <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/webservice_access'), array('title' => _('Test abbrechen')));
?>
     
  </a>
  </td>
  </tr>
</table>
</form>
<?
$sidebar = Sidebar::Get();
$sidebar->setImage('sidebar/admin-sidebar.png');
$sidebar->setTitle(_('Webservices'));
Esempio n. 6
0
echo htmlReady($category->content);
?>
</textarea>
                </td>
            </tr>
        </tbody>
    <? $last = $category; 
       endforeach; ?>
    <? if ($hidden_count > 0): ?>
        <tbody>
            <tr>
                <td colspan="4">
                    <?php 
echo sprintf(ngettext('Es existiert zusätzlich eine Kategorie, die Sie nicht einsehen und bearbeiten können.', 'Es existiereren zusätzlich %s Kategorien, die Sie nicht einsehen und bearbeiten können.', $hidden_count), $hidden_count);
?>
                </td>
            </tr>
        </tbody>
    <? endif; ?>
        <tfoot>
            <tr>
                <td colspan="4">
                    <?php 
echo Button::create(_('Übernehmen'), 'store');
?>
                </td>
        </tfoot>
    </table>
</form>
<? endif; ?>
Esempio n. 7
0
echo _('Einrichtung nicht auf der Profilseite:');
?>
                            </label>
                            <dfn>
                                <?php 
echo _('Die Angaben zu dieser Einrichtung werden nicht ' . 'auf Ihrer Profilseite und in Adressbüchern ausgegeben.');
?>
                            </dfn>
                        </td>
                        <td>
                            <input type="checkbox" name="invisible" id="invisible" value="1"
                                   <? if ($institute['visible'] != 1) echo 'checked'; ?>>
                        </td>
                    </tr>
                </tbody>
                <tfoot style="text-align: center;">
                    <tr>
                        <td colspan="2">
                            <?php 
echo Button::createAccept(_('Änderungen speichern'), 'speichern');
?>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
        <br>

    </td>
</tr>
 /**
 * creates the html for the question-input
 *
 * @access   private
 * @return   string the html
 */
 function createQuestionForm()
 {
     $qgroup =& $this->tree->getGroupObject($this->itemID);
     $questions = $qgroup->getChildren();
     $templateID = $qgroup->getTemplateID();
     $table = new HTML("table");
     $table->addAttr("border", "0");
     $table->addAttr("align", "center");
     $table->addAttr("cellspacing", "0");
     $table->addAttr("cellpadding", "2");
     $table->addAttr("width", "98%");
     $tr = new HTML("tr");
     $td = new HTML("td");
     $td->addAttr("align", "center");
     $table2 = new HTML("table");
     $table2->addAttr("border", "0");
     $table2->addAttr("class", "blank");
     $table2->addAttr("cellspacing", "0");
     $table2->addAttr("cellpadding", "0");
     $table2->addAttr("width", "100%");
     // captions
     $tr2 = new HTML("tr");
     $showclass = "table_row_odd";
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     $td2->addAttr("align", "center");
     $td2->addAttr("width", "15");
     $b = new HTML("b");
     $b->addContent("#");
     $td2->addContent($b);
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     $b = new HTML("b");
     $b->addContent(_("Frage"));
     $td2->addContent($b);
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     if (count($questions) > 1) {
         $b = new HTML("b");
         $b->addContent(_("Position"));
         $td2->addContent($b);
     } else {
         $td2->addContent("");
     }
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     $b = new HTML("b");
     $b->addContent(_("Löschen"));
     $td2->addContent($b);
     $tr2->addContent($td2);
     // only if template is NO_TEMPLATE_GROUP
     if ($templateID == NULL) {
         $td2 = new HTML("td");
         $td2->addAttr("class", $showclass);
         $b = new HTML("b");
         $b->addContent(_("Antworten"));
         $td2->addContent($b);
         $tr2->addContent($td2);
     }
     $table2->addContent($tr2);
     $i = 0;
     foreach ($questions as $question) {
         $tr2 = new HTML("tr");
         // brrr :)
         // extract the questionID from the command
         foreach ($_REQUEST as $key => $value) {
             if (preg_match("/template_(.*)_button?/", $key, $command)) {
                 break;
             }
         }
         if (preg_match("/(.*)_#(.*)/", $command[1], $command_parts)) {
             $questionID = $command_parts[2];
         } else {
             $questionID = Request::submitted('template_save2_button') ? "" : Request::get("template_id");
         }
         if ($question->getObjectID() == $questionID) {
             $tr2->addAttr("class", "eval_highlight");
         } else {
             $tr2->addAttr("class", $i % 2 == 1 ? "table_row_odd" : "table_row_even");
         }
         $td2 = new HTML("td");
         $td2->addAttr("align", "center");
         $font = new HTML("font");
         $font->addAttr("size", "-1");
         $font->addContent($i + 1 . ".");
         $td2->addContent($font);
         $tr2->addContent($td2);
         $td2 = new HTML("td");
         $td2->addAttr("align", "left");
         $input = new HTMLempty("input");
         $input->addAttr("type", "tex");
         $input->addAttr("size", "70");
         $input->addAttr("name", "questions[{$i}][text]");
         $input->addAttr("value", $question->getText());
         $input->addAttr("tabindex", 3 + $i);
         $td2->addContent($input);
         #   $td2->addHTMLContent ("POST: -".$question->getPosition()."-!");
         $input = new HTMLempty("input");
         $input->addAttr("type", "hidden");
         $input->addAttr("name", "questions[{$i}][questionID]");
         $input->addAttr("value", $question->getObjectID());
         $td2->addContent($input);
         $input = new HTMLempty("input");
         $input->addAttr("type", "hidden");
         $input->addAttr("name", "questions[{$i}][position]");
         $input->addAttr("value", $question->getPosition());
         $td2->addContent($input);
         $input = new HTMLempty("input");
         $input->addAttr("type", "hidden");
         $input->addAttr("name", "questions[{$i}][counter]");
         $input->addAttr("value", $question->getPosition());
         $td2->addContent($input);
         $tr2->addContent($td2);
         // move-up/down arrows and counter
         if (count($questions) > 1) {
             $numberchildren = $qgroup->getNumberChildren();
             if ($question->getPosition() == 0) {
                 $tooltipup = _("Diese Frage mit der letzten Frage vertauschen.");
             } else {
                 $tooltipup = _("Diese Frage eine Position nach oben verschieben.");
             }
             if ($question->getPosition() == $numberchildren - 1) {
                 $tooltipdown = _("Diese Frage mit der ersten Frage vertauschen.");
             } else {
                 $tooltipdown = _("Diese Frage eine Position nach unten verschieben.");
             }
             $td2 = new HTML("td");
             $td2->addAttr("align", "center");
             $button = new HTMLempty("input");
             $button->addAttr("type", "image");
             $button->addAttr("name", "cmd_MoveQuestionUp_#" . $question->getObjectID() . "_§" . $question->getPosition() . "_button");
             $button->addAttr("style", "vertical-align:middle;");
             $button->addAttr("border", "0");
             $button->addAttr("src", EVAL_PIC_MOVE_UP);
             $button->addString(Tooltip($tooltipup));
             $td2->addContent($button);
             $button = new HTMLempty("input");
             $button->addAttr("type", "image");
             $button->addAttr("name", "cmd_MoveQuestionDown_#" . $question->getObjectID() . "_§" . $question->getPosition() . "_button");
             $button->addAttr("style", "vertical-align:middle;");
             $button->addAttr("border", "0");
             $button->addAttr("src", EVAL_PIC_MOVE_DOWN);
             $button->addString(Tooltip($tooltipdown));
             $td2->addContent($button);
         } else {
             $td2 = new HTML("td");
             $td2->addAttr("align", "center");
             $td2->addContent(" ");
         }
         $tr2->addContent($td2);
         $td2 = new HTML("td");
         $td2->addAttr("align", "center");
         $input = new HTMLempty("input");
         $input->addAttr("type", "checkbox");
         $input->addAttr("id", "deleteCheckboxes");
         $input->addAttr("name", "DeleteQuestions[" . $question->getPosition() . "]");
         $td2->addContent($input);
         $tr2->addContent($td2);
         // if template is NO_TEMPLATE_GROUP
         if ($templateID == NULL) {
             // hat noch keine antworten
             if ($question->getChildren() == NULL) {
                 $image = EVAL_PIC_CREATE_ANSWERS;
                 $text = _("Dieser Frage wurden noch keine Antwortenmöglichkeiten zugewiesen. Drücken Sie auf den Doppelfpeil, um dies jetzt zu tun.");
                 $tooltip = tooltip(_("Dieser Frage Antwortenmöglichkeiten zuweisen."));
             } else {
                 $image = EVAL_PIC_EDIT_ANSWERS;
                 $text = _("Dieser Frage wurden bereits folgende Antwortenmöglichkeiten zugewiesen:") . " ";
                 $tooltip = tooltip(_("Die zugewiesenen Antwortenmöglichkeiten bearbeiten."));
                 $text .= "\n";
                 while ($answer = $question->getNextChild()) {
                     $text .= "\"" . $answer->getText() . "\"\n ";
                 }
                 $text .= "";
             }
             $td2 = new HTML("td");
             $td2->addAttr("align", "center");
             $td2->addAttr("valign", "middle");
             $td2->addHTMLContent($this->createImage(EVAL_PIC_HELP, $text));
             $questionID = $question->getObjectID();
             $button = new HTMLempty("input");
             $button->addAttr("type", "image");
             $button->addAttr("name", "template_create_question_answers_#" . $questionID . "_button");
             $button->addAttr("style", "vertical-align:middle;");
             $button->addAttr("border", "0");
             $button->addAttr("src", $image);
             $button->addString($tooltip);
             $td2->addContent($button);
             $tr2->addContent($td2);
         }
         $table2->addContent($tr2);
         $i++;
     }
     if (sizeof($questions) == 0) {
         $tr2 = new HTML("tr");
         $td2->addAttr("class", "table_row_even");
         $td2 = new HTML("td");
         $td2->addAttr("align", "center");
         $td2->addContent(" ");
         $tr2->addContent($td2);
         $td2 = new HTML("td");
         $td2->addContent(_("Dieser Block besitzt keine Fragen."));
         $tr2->addContent($td2);
         $td2 = new HTML("td");
         $td2->addContent(" ");
         $tr2->addContent($td2);
         $td2 = new HTML("td");
         $td2->addContent(" ");
         $tr2->addContent($td2);
         $table2->addContent($tr2);
     }
     $td->addContent($table2);
     // the new questions und delete questions buttons
     $table2 = new HTML("table");
     $table2->addAttr("width", "100%");
     $table2->addAttr("border", "0");
     $table2->addAttr("class", $i % 2 == 6 ? "content_body" : "content_body");
     $table2->addAttr("cellspacing", "0");
     $table2->addAttr("cellpadding", "2");
     // buttons
     $tr2 = new HTML("tr");
     $td2 = new HTML("td");
     $td2->addAttr("align", "left");
     $select = new HTML("select");
     $select->addAttr("style", "vertical-align:middle;");
     $select->addAttr("name", "newQuestionFields");
     $select->addAttr("size", "1");
     for ($i = 1; $i <= 10; $i++) {
         $option = new HTML("option");
         $option->addAttr("value", $i);
         $option->addContent($i);
         $select->addContent($option);
     }
     $td2->addContent($select);
     $td2->addContent(_("Frage/en"));
     $td2->addContent(" ");
     $td2->addHTMLContent(Button::create(_('Hinzufügen'), 'cmd[AddQuestions]', array('title' => _('Fragen hinzufügen'))));
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("align", "right");
     $font = new HTML("font");
     $font->addAttr("size", "-1");
     $font->addContent(_("markierte Fragen "));
     $td2->addContent($font);
     $td2->addHTMLContent(Button::create(_('Löschen'), 'cmd[DeleteQuestions]', array('title' => _('Markierte Fragen löschen'))));
     $tr2->addContent($td2);
     $table2->addContent($tr2);
     $td->addContent($table2);
     $tr->addContent($td);
     $table->addContent($tr);
     return $table->createContent();
 }
Esempio n. 9
0
        <label class="file-upload">
            Lebenslauf (Datei)
            <input type="file">
        </label>

    </fieldset>

    <fieldset>
        <label>
            Einrichtung
            <input type="text" class="size-l">
        </label>

        <label>
            Lebenslauf
            <textarea class="size-l"></textarea>
        </label>

    </fieldset>

    <footer>
        <?php 
echo \Studip\Button::createAccept(_("Speichern"));
?>
        <?php 
echo \Studip\Button::createCancel(_("Abbrechen"));
?>
    </footer>
</form>
Esempio n. 10
0
</option>
                    <? endfor; ?>
                    </select>
                </p>

                <p>
                    <?php 
echo _('Wenn Sie einen Studiengang wieder austragen möchten, ' . 'markieren Sie die entsprechenden Felder in der oberen Tabelle.');
?>
                    <?php 
echo _('Mit einem Klick auf <b>Übernehmen</b> werden die gewählten Änderungen durchgeführt.');
?>
<br>
                    <br>
                    <?php 
echo Button::create(_('Übernehmen'), 'store_sg', array('title' => _('Änderungen übernehmen')));
?>
                </p>
            <? else: ?>
                <?php 
echo _('Die Informationen zu Ihrem Studiengang werden vom System verwaltet, ' . 'und können daher von Ihnen nicht geändert werden.');
?>
            <? endif; ?>
            </td>
        </tr>
    </tfoot>
</table>
<? if ($allow_change['sg']): ?>
</form>
<? endif; ?>
Esempio n. 11
0
?>
                    <?php 
echo Icon::create('checkbox-checked', 'info')->asImg(['class' => "check text-bottom"]);
?>
                </div>
                <input type="checkbox" name="filter_nohashtags_check" id="filter_nohashtags_check" onChange="jQuery(this).closest('td').toggleClass('selected');" value="1"<?php 
echo $stream['filter_nohashtags'] ? " checked" : "";
?>
>
            </td>
        </tr>
    </tbody>
</table>
    
<?php 
echo \Studip\Button::createAccept(_("Speichern"), array());
?>

</form>

<?php 
$sidebar = Sidebar::get();
$sidebar->setImage("sidebar/blubber-sidebar.png");
$streamAvatar = StreamAvatar::getAvatar($stream->getId());
if ($streamAvatar->is_customized()) {
    $sidebar->setContextAvatar($streamAvatar);
}
$actions = new ActionsWidget();
if (!$stream->isNew()) {
    $actions->addLink(_("Diesen Stream löschen"), PluginEngine::getURL($plugin, array(), 'streams/delete/' . $stream->getId()), Icon::create("trash", "clickable"), array('onclick' => "return window.confirm('" . _("Wirklich löschen?") . "');"));
}
Esempio n. 12
0
                <td>
                    <select id="priority" name="priority">
                    <? foreach ($priorities as $key => $label): ?>
                        <option value="<?php 
echo $key;
?>
" <? if ($banner['priority'] == $key) echo 'selected'; ?>>
                            <?php 
echo $label;
?>
                        </option>
                    <? endforeach; ?>
                    </select>
                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="4" align="center">
                    <label for = "update">
                        <?php 
echo Button::create(_('Aktualisieren'), 'speichern', array('title' => _('Banner editieren')));
?>
                    </label>
                </td>
            </tr>
        </tfoot>
    </table>
</form>

Esempio n. 13
0
                if (is_array($configurations_copy[$GLOBALS['EXTERN_MODULE_TYPES'][$module_type]['module']])) {
                    foreach ($configurations_copy[$GLOBALS['EXTERN_MODULE_TYPES'][$module_type]['module']] as $config_id_copy => $config_data_copy) {
                        if ($print_module_name) {
                            $choose_module_select .= '<option value="" style="font-weight: bold;">' . htmlReady($GLOBALS['EXTERN_MODULE_TYPES'][$module_type]['name']) . '</option>';
                        }
                        $choose_module_select .= '<option value="' . $config_id_copy . '">&nbsp;&nbsp;' . htmlReady($config_data_copy['name']) . '</option>';
                        $print_module_name = FALSE;
                    }
                }
            }

            echo '<form method="post" action="' . URLHelper::getLink('?com=copyconfig') . '">';
            echo CSRFProtection::tokenTag();
            echo "<blockquote><font size=\"2\">";
            printf(_("Konfiguration %s aus Einrichtung kopieren."), $choose_module_select . '</select>');
            echo Button::create(_("Kopieren"));
            echo LinkButton::create("<< " . _("Zurück"), URLHelper::getURL('?list=TRUE&view=extern_inst'));
            echo "</font></blockquote>\n";
            echo "<input type=\"hidden\" name=\"copyinstid\" value=\"" . htmlReady(Request::quoted('copychooseinst')) . "\">\n";
            echo "</form>\n";

        }
    }
}
else {
    echo "<blockquote><font size=\"2\">";
    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";
Esempio n. 14
0
                    <? endforeach; ?>
            </select>
            <? if ($plugin_name) : ?>
                <br>
                <?php 
echo strlen($plugin["description"]) > 0 ? Icon::create('info-circle', 'inactive')->asImg() : '';
?>
                <?php 
echo formatReady($plugin["description"]);
?>
<br>
                <br>
                <?php 
echo _("1. Wählen Sie mit <b>Durchsuchen</b> eine Datei von Ihrer Festplatte aus.");
?>
<br>
                <input name="xmlfile" type="file" style="width:250px" accept="text/xml" maxlength="8000000"><br>
                <br>
                <?php 
echo _("2. Klicken Sie auf <b>Absenden</b>, um die Datei hochzuladen.");
?>
<br>
                <br>
                <?php 
echo Button::createAccept(_('Absenden'));
?>
            <? endif; ?>
        </fieldset>
    </form>
</p>
Esempio n. 15
0
 &crarr;</option>
                        <? endforeach?>
                    <? endif ?>
                </select>
            </td>
        </tr>
        
        <tr>
            <td style="width: 30%"><?php 
echo sprintf(_('<strong>%s</strong> in die Veranstaltung eintragen'), htmlReady($decoratedStatusGroups['autor']));
?>
</td>
            <td style="width: 50%">
                <textarea name="csv_import" rows="6" cols="50"></textarea>
            </td>
            <td style="width: 20%; text-align: right">
                <?php 
echo Button::createAccept(_('Eintragen'), 'add_member_list', array('title' => sprintf(_("als %s eintragen"), htmlReady($decoratedStatusGroups['autor']))));
?>
            </td>
        </tr>
    </tbody>
</table>
</form>

<div style="text-align: right">
    <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index'));
?>
</div>
Esempio n. 16
0
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="preview" style="display: none;">
        <h4><?php 
echo _("Vorschau");
?>
</h4>
        <p class="message_body"></p>
    </div>

    <div style="text-align: center;" data-dialog-button>
        <?php 
echo \Studip\Button::create(_('Abschicken'), null, array('onclick' => "STUDIP.Messages.checkAdressee();"));
?>
    </div>

</form>

<br>

<?php 
$sidebar = Sidebar::get();
$sidebar->setImage('sidebar/mail-sidebar.png');
if (false && count($tags)) {
    $folderwidget = new LinksWidget();
    $folderwidget->setTitle(_("Verwendete Tags"));
    foreach ($tags as $tag) {
        $folderwidget->addLink(ucfirst($tag), URLHelper::getURL("?", array('tag' => $tag)), null, array('class' => "tag"));
Esempio n. 17
0
<form action="<?php 
echo PluginEngine::getLink($plugin, array(), "mymaterial/add_tags");
?>
" method="post" class="default">
    <input type="text" name="tag" placeholder="<?php 
echo _("Thema oder Schlagwort ...");
?>
">
    <input type="hidden" name="material_id" value="<?php 
echo $this->material->getId();
?>
">

    <div data-dialog-button>
        <?php 
echo \Studip\Button::create(_("Hinzufügen"));
?>
    </div>
</form>
Esempio n. 18
0
echo _("Name des Studienfaches:");
?>
 </td>
            <td><input type="text" name="professionname" size="60" maxlength="254" value="<?php 
echo htmlReady($edit['name']);
?>
"></td>
        </tr>
        <tr class="table_row_even">
            <td><?php 
echo _("Beschreibung:");
?>
 </td>
            <td><textarea cols="57" rows="5" name="description"><?php 
echo htmlReady($edit['beschreibung']);
?>
</textarea></td>
        </tr>
        <tr class="table_footer">
            <td></td>
            <td>
                 <?php 
echo Button::createAccept(_('Übernehmen'), 'uebernehmen', array('title' => _('Änderungen übernehmen')));
?>
                 <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/studycourse/profession'), array('title' => _('Zurück zur Übersicht')));
?>
            </td>
        </tr>
    </table>
</form>
Esempio n. 19
0
            </tr>
            <tr>
                <td colspan="3">
                    <label>
                        <?php 
echo _('Klicken Sie auf "Durchsuchen", um eine Datei auszuwählen');
?>
                        <input type="file" name="importfile">
                    </label>
                </td>
            </tr>
    </table>
    <?php 
echo CSRFProtection::tokenTag();
?>
    <input type="hidden" name="studip_ticket" value="<?php 
echo get_ticket();
?>
">
    <div style="text-align: center; clear: both" data-dialog-button>
        <?php 
echo Button::createAccept(_('Termine importieren'), 'import', array('title' => _('Termine importieren')));
?>
        <? if (!Request::isXhr()) : ?>
        <?php 
echo LinkButton::create(_('Abbrechen'), $controller->url_for('calendar/single/' . $last_view));
?>
        <? endif; ?>
    </div>
</form>
Esempio n. 20
0
echo _("Möglichkeit zum Spenden einblenden");
?>
            <input type="checkbox" name="data[donationsaccepted]" value="1"<?php 
echo $marketplugin->isNew() || $marketplugin['donationsaccepted'] ? " checked" : "";
?>
>
        </label>


    </fieldset>

    <?php 
echo $this->render_partial("myplugins/_edit_images.php", compact("marketplugin"));
?>

    <?php 
if ($marketplugin->isNew()) {
    ?>
    <?php 
    echo $this->render_partial("myplugins/_edit_release.php", array('release' => new MarketRelease()));
    ?>
    <?php 
}
?>

    <div data-dialog-button>
        <?php 
echo \Studip\Button::createAccept(_('Speichern'));
?>
    </div>
</form>
Esempio n. 21
0
echo _("Was heißt das?");
?>
    </a>
</div>

<div style="text-align: center;">
    <? if (!$material['host_id'] && $material['user_id'] === $GLOBALS['user']->id) : ?>
        <?php 
echo \Studip\LinkButton::create(_("Bearbeiten"), PluginEngine::getURL($plugin, array(), "mymaterial/edit/" . $material->getId()), array('data-dialog' => "1"));
?>
        <form action="<?php 
echo PluginEngine::getLink($plugin, array(), "mymaterial/edit/" . $material->getId());
?>
" method="post" style="display: inline;">
            <?php 
echo \Studip\Button::create(_("Löschen"), "delete", array('value' => 1, 'onclick' => "return window.confirm('" . _("Wirklich löschen?") . "');"));
?>
        </form>
    <? endif ?>
</div>


<h2><?php 
echo _("Reviews");
?>
</h2>
<div>
    <div style="text-align: center;">
        <? if ($material['rating'] === null) : ?>
            <? if ($material['host_id'] || $material['user_id'] !== $GLOBALS['user']->id) : ?>
                <a style="opacity: 0.3;" title="<?php 
Esempio n. 22
0
            <br/><br/>
            <?php 
    echo _('Ihre gewohnte Ansicht können Sie auf dieser ' . 'Seite wieder einstellen.');
    ?>
        <?php 
} else {
    ?>
            <?php 
    echo _('Veranstaltung wieder auf die normale Ansicht für zurücksetzen:');
    ?>
            <input type="hidden" name="cid" value="<?php 
    echo Request::get('cid');
    ?>
"/>
            <?php 
    echo Button::create(_('Übernehmen'), 'set_seminar_view');
    ?>
            <br/><br/>
            <?php 
    echo _('Durch Klick auf "übernehmen" sehen Sie die Veranstaltung wieder aus Lehrendensicht.');
    ?>
        <?php 
}
?>
        </form>
        </div>
        <br style="clear: both;">
    </div>
</div>
-->
Esempio n. 23
0
$export_pagecontent .= "</select><br><br><br><br>";

$export_pagecontent .="<b>". _("Aus welchem Semester sollen die Daten exportiert werden (für Veranstaltungsexport): ") .  "</b><br>";
if (!isset($ex_sem)) {
    $ex_sem = (Semester::findCurrent() ? Semester::findCurrent()->getId() : null);
}
$export_pagecontent .= SemesterData::GetSemesterSelector(array('name' => 'ex_sem'), $ex_sem, 'semester_id', true);
$export_pagecontent .= "<br><br>";

$export_pagecontent .="<b>". _("Welche Arten von Veranstaltungen sollen exportiert werden? ") .  "</b><br>";

if (!count($ex_sem_class)) {
    $ex_sem_class[1] = 1;
}

foreach (SeminarCategories::getAll() as $sem_class) {
    if(!$sem_class->studygroup_mode){
        $export_pagecontent .= "<input type=\"checkbox\" name=\"ex_sem_class[$sem_class->id]\" value=\"1\"";
        if (isset($ex_sem_class[$sem_class->id])) $export_pagecontent .= " checked";
        $export_pagecontent .= ">&nbsp;" . htmlready($sem_class->name) . "&nbsp;&nbsp;";
    }
}

$export_pagecontent .= "<input type=\"hidden\" name=\"o_mode\" value=\"choose\">";
$export_pagecontent .= "<input type=\"hidden\" name=\"xslt_filename\" value=\"" . htmlReady($xslt_filename) . "\">";
$export_pagecontent .= "<input type=\"hidden\" name=\"choose\" value=\"" . htmlReady($choose) . "\">";
$export_pagecontent .= "<input type=\"hidden\" name=\"format\" value=\"" . htmlReady($format) . "\">";

$export_weiter_button = "<center>" . Button::create(_('Weiter') . ' >>' ) . "</center></form>";
Esempio n. 24
0
?>
>3 <?php 
echo _("Sterne");
?>
</option>
        <option value="4"<?php 
echo $review['rating'] == 4 ? " selected" : "";
?>
>4 <?php 
echo _("Sterne");
?>
</option>
        <option value="5"<?php 
echo $review['rating'] == 5 ? " selected" : "";
?>
>5 <?php 
echo _("Sterne");
?>
</option>
    </select>

    <textarea name="review"><?php 
echo htmlReady($review['review']);
?>
</textarea>
    <div data-dialog-button>
        <?php 
echo \Studip\Button::create(_("Absenden"));
?>
    </div>
</form>
Esempio n. 25
0
                            <? endif ?>

                            <!-- helplink -->
                            <? if (isset($info['helplink'])) : ?>
                                <a class="helplink" href=" <?php 
echo htmlReady($info['helplink']);
?>
 ">...mehr</a>
                            <? endif ?>

                        </div>
                    </div>
                <? } ?>
            </td>
        </tr>
    <?
    }
} ?>
</tbody>
<tfoot>
<tr>
    <td align="center" colspan="3">
        <?php 
echo Button::create(_('An- / Ausschalten'), 'uebernehmen');
?>
    </td>
</tr>
</tfoot>
</table>
</form>
Esempio n. 26
0
                        <a class="helplink" href=" <?php 
echo htmlReady($info['helplink']);
?>
 ">...mehr</a>
                        <? endif ?>

                    </div>
                </div>
                <? } ?>
            </td>
        </tr>
    <? }
    } ?>





        </tbody>
        <tfoot>
            <tr>
                <td colspan="3">
                    <?php 
echo Studip\Button::createAccept(_('Übernehmen'), 'submit');
?>
                </td>
            </tr>
        </tfoot>
    </table>
</form>
Esempio n. 27
0
echo _('Die Ressource darf mehrfach zur gleichen Zeit belegt werden - <br>Überschneidungschecks finden <u>nicht</u> statt!');
?>
                </label>
            </td>
            <td>
                <input type="checkbox" id="change_multiple_assign" name="change_multiple_assign" value="1"
                       <? if ($resObject->getMultipleAssign()) echo 'checked'; ?>>
            </td>
        </tr>
    <? endif; ?>
        <tr>
            <td>&nbsp;</td>
            <td colspan="2" align="center">
                <br>
                <?php 
echo Button::create(_('Übernehmen'));
?>
                <? if ($resObject->isUnchanged()) : ?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getLink('?cancel_edit=' . $resObject->id));
?>
                <? endif; ?>
                <br>&nbsp;
            </td>
        </tr>
    </tbody>
</table>

</form>
<br><br>
<?
Esempio n. 28
0
    echo $className;
    ?>
"/>
            <span <?php 
    echo $disabled ? 'style="text-decoration:line-through"' : '';
    ?>
><?php 
    echo $classDetail['name'];
    ?>
</span>
            <?php 
    echo Icon::create('question-circle', 'clickable', ['title' => $classDetail['description']])->asImg();
    ?>
        </label>
    </div>
    <br/>
<?php 
}
?>
    <div class="submit_wrapper" data-dialog-button>
        <?php 
echo CSRFProtection::tokenTag();
?>
        <?php 
echo Button::create(_('Weiter >>'), 'configure', array('onclick' => "return \$('input[name=ruletype]:checked').val() ? STUDIP.Admission.configureRule(\$('input[name=ruletype]:checked').val(), '" . $controller->url_for('admission/rule/configure') . "') : false"));
?>
        <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admission/courseset/configure'), array('onclick' => "STUDIP.Admission.closeDialog('configurerule'); return false;"));
?>
    </div>
</form>
Esempio n. 29
0
}
?>
        <? endif ?>
        <? endif ?>
        <label for="infotext" class="caption">
            <?php 
echo _('Weitere Hinweise für die Teilnehmenden:');
?>
        </label>
        <textarea cols="60" rows="3" name="infotext"><?php 
echo $courseset ? htmlReady($courseset->getInfoText()) : '';
?>
</textarea>
    </fieldset>
        <div class="submit_wrapper" data-dialog-button>
            <?php 
echo CSRFProtection::tokenTag();
?>
            <?php 
echo Button::createAccept(_('Speichern'), 'submit', $instant_course_set_view ? array('data-dialog' => '') : array());
?>
            <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admission/courseset'));
?>
        </div>

</form>
<? if (Request::get('is_copy')) :?>
    <script>STUDIP.Admission.toggleNotSavedAlert();</script>
<? endif ?>
Esempio n. 30
0
function mail_explain()
{
    echo _('Sie haben Ihre E-Mail-Adresse geändert. Um diese frei zu schalten müssen Sie den Ihnen an Ihre neue Adresse zugeschickten Aktivierungs Schlüssel im unten stehenden Eingabefeld eintragen.');
    echo '<br><form action="' . URLHelper::getLink() . '" method="post">' . CSRFProtection::tokenTag() . '<input type="text" name="key"><input name="uid" type="hidden" value="' . htmlReady(Request::option('uid')) . '"><br>' . Button::createAccept() . '</form><br><br>';
}