/**
  * 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();
 }
示例#2
0
    function editMarkerDescription ($markers, $new_datafields = FALSE) {
        $this->css->resetClass();
        $this->css->switchClass();

        $out = "<tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 0.7em\">\n";
        $out .= '<tr' . $this->css->getFullClass() . ">\n";
        $out .= '<td><font size="2"><b>' . _("Marker") . "</b></font></td>\n";
        $out .= '<td><font size="2"><b>' . _("Beschreibung") . "</b></font></td>\n";
        $out .= "</tr>\n";
        $this->css->switchClass();
        $spacer = 0;
        $global_vars = FALSE;
        foreach ((array) $markers as $marker) {
            $mark = $marker[0];
            $description = $marker[1];
            if ($mark == '__GLOBAL__') {
                $out .= '<tr' . $this->css->getFullClass() . ">\n";
                $out .= '<td colspan="2"><strong>' . htmlReady(_("Globale Variablen")) . '</strong></td>';
                $spacer++;
                $global_vars = TRUE;
                $this->css->switchClass();
            } else if ($mark{0} == '<') {
                if ($global_vars) {
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td colspan="2">&nbsp;</td>';
                    $spacer--;
                    $global_vars = FALSE;
                    $this->css->switchClass();
                }
                if (substr($mark, 0, 8) == '<!-- END') {
                    $spacer--;
                    $this->css->switchClass();
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td colspan="2">&nbsp;</td>';
                    $this->css->switchClass();
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td nowrap="nowrap">' . str_repeat('&nbsp;', $spacer * 4);
                    $out .= htmlReady($mark) . '</td><td>' . htmlReady($description);
                    $out .= '</td>';
                } else {
                    if ($spacer > 0 && substr($mark, 0, 10) != '<!-- BEGIN') {
                        $this->css->switchClass();
                        $out .= '<tr' . $this->css->getFullClass() . ">\n";
                        $out .= '<td colspan="2">&nbsp;</td>';
                        $this->css->switchClass();
                    }
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td nowrap="nowrap">' . str_repeat('&nbsp;', $spacer * 4);
                    $out .= htmlReady($mark) . '</td><td>' . htmlReady($description);
                    $out .= '</td>';
                    $spacer++;
                    $this->css->switchClass();
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td colspan="2">&nbsp;</td>';
                    $this->css->switchClass();
                }
            } else {
                $out .= '<tr' . $this->css->getFullClass() . ">\n";
                $out .= '<td>' . str_repeat('&nbsp;', $spacer * 4);
                $out .= $mark . '</td><td>' . htmlReady($description);
                $out .= '</td>';
            }
            $out .= "</tr>\n";
        }
        if ($new_datafields) {
            $this->css->resetClass();
            $out .= '<tr' . $this->css->getFullClass() . ">\n";
            $out .= "<td colspan=\"2\">&nbsp;</td></tr>\n";
            $out .= '<tr' . $this->css->getFullClass() . ">\n";
            $out .= '<td colspan="2" align="center">' . Button::create(_('Aktualisieren')). "</td></tr>\n";
        }
        $out .= "</table></td></tr>\n";

        return $out;
    }
示例#3
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>
<?
示例#4
0
文件: index.php 项目: ratbird/hope
                            <? 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>
示例#5
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; ?>
 /**
 * 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();
 }
示例#7
0
文件: write.php 项目: ratbird/hope
                    </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"));
示例#8
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>
示例#9
0
?>
<table border="0" cellspacing=0 cellpadding=0 width = "99%">
<tr><td class="table_row_even" align="center" valign="middle" ><font size="-1">
<br>
<?php 
echo htmlReady($message);
?>
<br>
<br>
<input type="HIDDEN" name="anker_target" value="search">
<input type="HIDDEN" name="view" value="<?php 
echo htmlReady($view);
?>
">
<input type="HIDDEN" name="cms_select" value="<?php 
echo htmlReady($cms_select);
?>
">
<input name="search_key" size="30" style="vertical-align:middle;font-size:9pt;" value="<?php 
echo htmlReady($search_key);
?>
">
&nbsp;
<?php 
echo Button::create(_('Suchen'));
?>
<br>
<br>
</font>
</td></tr></table>
</form>
示例#10
0
文件: context.php 项目: ratbird/hope
                        <li>
                            <label>
                                <input type="checkbox" name="remove_inst[]" value="<?php 
echo htmlReady($assignment['range_id']);
?>
" style="display: none;">
                                <span><?php 
echo htmlReady(Institute::find($assignment['range_id'])->name);
?>
</span>
                                <?php 
echo Assets::img("icons/16/blue/trash", array('class' => "text-bottom", 'title' => _("Zuweisung zur Einrichtung aufheben.")));
?>
                            </label>
                        </li>
                    <? endif ?>
                <? endforeach ?>
            </ul>
            <?php 
echo QuickSearch::get("add_institut_id", new SeminarSearch())->render();
?>
        <? endif ?>

    </fieldset>

    <div data-dialog-button>
        <?php 
echo \Studip\Button::create(_("Speichern"), 'questionnaire_store_relations');
?>
    </div>
</form>
 function getTableRowForRootInLiteratur()
 {
     $user_lists = $this->tree->GetListsByRange($GLOBALS['auth']->auth['uid']);
     $content .= "\n<tr><td class=\"table_row_even\" align=\"left\">";
     $content .= "\n<form name=\"userlist_form\" action=\"" . URLHelper::getLink($this->getSelf("cmd=CopyUserList")) . "\" method=\"POST\">";
     $content .= CSRFProtection::tokenTag();
     $content .= "<b>" . _("Persönliche Literaturlisten:") . "</b><br><br>\n<select name=\"user_list\" style=\"vertical-align:middle;width:70%;\">";
     if (is_array($user_lists)) {
         foreach ($user_lists as $list_id => $list_name) {
             $content .= "\n<option value=\"{$list_id}\">" . htmlReady($list_name) . "</option>";
         }
     }
     $content .= "\n</select>&nbsp;&nbsp;" . Button::create(_('Kopie erstellen'), array('title' => _('Eine Kopie der ausgewähkten Liste erstellen'))) . "</form></td></tr>";
     return $content;
 }
示例#12
0
    function navigator()
    {
        global $cssSw, $view_mode;

        //match start_time & end_time for a whole week
        $dow = date ("w", $this->start_time);
        if (date ("w", $this->start_time) >1)
            $offset = 1 - date ("w", $this->start_time);
        if (date ("w", $this->start_time) <1)
            $offset = -6;
        $start_time = mktime (0, 0, 0, date("n",$this->start_time), date("j", $this->start_time)+$offset+($this->week_offset*7), date("Y", $this->start_time));
        $end_time = mktime (23, 59, 0, date("n",$start_time), date("j", $start_time)+6, date("Y", $start_time));

        ?>
        <table border=0 celpadding=2 cellspacing=0 width="99%" align="center">
            <form method="POST" action="<?echo URLHelper::getLink('?navigate=TRUE&quick_view=view_schedule&quick_view_mode='.$view_mode)?>">
            <?= CSRFProtection::tokenTag() ?>
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="96%" colspan="2"><font size=-1><b><?=_("Zeitraum:")?></b></font>
                </td>
            </tr>
            <tr>
                <td class="<? echo $cssSw->getClass() ?>" width="4%" rowspan="2">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="30%" rowspan="2" valign="middle"><font size=-1>
                    <font size=-1>Beginn:
                    <input type="text" id="startTime" name="startTime" size="8" value="<?if($start_time) : ?><?=date('j.n.Y', $start_time)?><?endif;?>">
                    <script>
                        jQuery("#startTime").datepicker();
                    </script>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<?= Button::create(_('Auswählen'), 'jump') ?>
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="66%" valign="bottom"><font size=-1>
                    <input type="text" name="schedule_length_factor" size=2 maxlength=2 / value="<? if (!$this->length_factor) echo "1"; else echo $this->length_factor; ?>">
                    &nbsp; <select name="schedule_length_unit">
                        <option <? if ($this->length_unit  == "d") echo "selected" ?> value="d"><?=_("Tag(e)")?></option>
                        <option <? if ($this->length_unit  == "w") echo "selected" ?> value="w"><?=_("Woche(n)")?></option>
                        <option <? if ($this->length_unit  == "m") echo "selected" ?> value="m"><?=_("Monat(e)")?></option>
                        <option <? if ($this->length_unit  == "y") echo "selected" ?> value="y"><?=_("Jahre(e)")?></option>
                    </select>
                    <?= Button::create(_('Als Liste ausgeben'), 'start_list') ?>
                </td>
            </tr>
            <tr>
                <td class="<? echo $cssSw->getClass() ?>" width="66%" valign="bottom">
                    <i>oder</i>
                    <?= Button::create(_('Eine Woche grafisch ausgeben'), 'start_graphical') ?>
                </td>
            </tr>
        </table>
    <?
    }
示例#13
0
                        <option value="<?php 
echo $user->id;
?>
"><?php 
echo htmlReady($user->nachname . ', ' . $user->vorname);
?>
 - <?php 
echo htmlReady($user->perms);
?>
 (<?php 
echo htmlReady($user->username);
?>
)</option>
                    <? endforeach; ?>
                </select>
                </label>
            </div><br>
        </div>
    </div>
    <br>
    <?php 
echo $additionHTML;
?>
    <?php 
echo \Studip\Button::create(_('Speichern'), 'save');
?>
    <?php 
echo \Studip\Button::create(_('Abbrechen'), 'abort');
?>
</form>
示例#14
0
 function testCreateWithInsaneArguments()
 {
     $this->assertEquals('<button type="submit" class="button" mad="&lt;S&gt;tu&quot;ff" name="m&amp;m">&gt;ok&lt;</button>', '' . Button::create('>ok<', 'm&m', array('mad' => '<S>tu"ff')));
 }
示例#15
0
?>
" <?php 
echo in_array($id, $selected_inst) ? 'selected' : '';
?>
>
                        <?php 
echo htmlReady($child['name']);
?>
                    </option>
                <? endforeach ?>
            <? endif ?>
        <? endforeach ?>
    </select>
    <p>
        <?php 
echo Button::create(_('Übernehmen'), 'save', array('title' => _('Einstellungen speichern')));
?>
        &nbsp;
        <?php 
echo LinkButton::create('<< ' . _("Zurück"), $controller->url_for('admin/plugin'), array('title' => _('Zurück zur Plugin-Verwaltung')));
?>
    </p>
</form>

<?
$infobox_content = array(
    array(
        'kategorie' => _('Aktionen:'),
        'eintrag'   => array(
            array(
                'icon' => Icon::create('schedule', 'clickable'),
示例#16
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; ?>
示例#17
0
文件: index.php 项目: ratbird/hope
            <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>
-->
示例#18
0
 /**
  * get module-links for admin
  *
  * returns links to remove or add module to object
  * @access public
  * @return string 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');
     } else {
         $output .= "&nbsp;" . Button::create(_('Hinzufügen'), 'add');
     }
     $output .= "</form>";
     return $output;
 }
示例#19
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>
示例#20
0
<?
use Studip\Button, Studip\LinkButton;

$buttons = '<span>' . Button::createAccept(_('OK'), 'save_close', array('title' => _('Speichern und schließen'))) . '</span>';
$buttons .= '<span style="padding-left:1em">'
             . LinkButton::createCancel(_('Abbrechen'), array('onClick' => 'STUDIP.RoomRequestDialog.dialog.dialog(\'close\');return false;', 'title' => _('Abbrechen und schließen')))
             . '</span>';
$buttons .= '<span style="padding-left:1em">' . Button::create(_('Übernehmen'), 'save', array('title' => _('Änderungen speichern'))) . '</span>';
?>
<form method="POST" name="room_request" onSubmit="return false;"
      action="<?php 
echo $this->controller->link_for('edit_dialog/' . $course_id, array('request_id' => $request->getId()));
?>
">
    <?php 
echo CSRFProtection::tokenTag();
?>
    <? foreach(PageLayout::getMessages() as $pm) : ?>
        <?php 
echo $pm;
?>
    <? endforeach; ?>
    <?php 
echo $this->render_partial('course/room_requests/_form.php', array('submit' => $buttons));
?>
</form>
示例#21
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>
示例#22
0
    /**
     *
     * @param $request_id
     */
    function showRequest($request_id)
    {
        global $cssSw, $perm;

        $reqObj = new RoomRequest($request_id);
        $semObj = new Seminar($reqObj->getSeminarId());
        $sem_link = $perm->have_studip_perm('tutor', $semObj->getId()) ?
            "seminar_main.php?auswahl=" . $semObj->getId() :
            "dispatch.php/course/details/?sem_id=" . $semObj->getId() . "&send_from_search=1&send_from_search_page="
            . URLHelper::getLink("resources.php?working_on_request=$request_id");
        ?>
        <form method="POST" action="<?echo URLHelper::getLink('?working_on_request=' . $request_id);?>">
        <?php 
echo CSRFProtection::tokenTag();
?>
        <input type="hidden" name="view" value="edit_request">
        <table border=0 celpadding=2 cellspacing=0 width="99%" align="center">
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" colspan="2" width="96%" valign="top">
                    <a href="<?php 
echo URLHelper::getLink($sem_link);
?>
">
                        <b><?php 
echo $semObj->seminar_number ? htmlReady($semObj->seminar_number) . ':' : '';
echo htmlReady($semObj->getName());
?>
</b>
                    </a>
                    <font size="-1">
                        <br>
                        <?
                        $names = $this->selectSemInstituteNames($semObj->getInstitutId());

                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("Art der Anfrage").": ".$reqObj->getTypeExplained()."<br>";
                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("Erstellt von").": <a href=\"".URLHelper::getLink('dispatch.php/profile?username='******'%x %H:%M', $reqObj->mkdate) . '<br>';
                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("Letzte Änderung") . ": ". strftime('%x %H:%M', $reqObj->chdate) . '<br>';
                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("Letzte Änderung von") . ": <a href=\"".URLHelper::getLink('dispatch.php/profile?username='******': ';
                        foreach ($semObj->getMembers('dozent') as $doz) {
                            if ($dozent){
                                echo ", ";
                            }
                            echo '<a href ="'. URLHelper::getLink('dispatch.php/profile?username='******'username']). '">'.HtmlReady($doz['fullname'])."</a>";
                            $dozent = true;
                        }
                        print "<br>";
                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("verantwortliche Einrichtung").": ".htmlReady($names['inst_name'])."<br>";
                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("verantwortliche Fakultät").": ".htmlReady($names['fak_name'])."<br>";
                        print "&nbsp;&nbsp;&nbsp;&nbsp;"._("aktuelle Teilnehmerzahl").": ".$semObj->getNumberOfParticipants('total').'<br>';
                        ?>
                    </font>
                </td>
            </tr>
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="35%" valign="top">
                    <font size="-1"><b><?php 
echo _("angeforderte Belegungszeiten");
?>
:</b><br><br>
                    <?
                    $dates = $semObj->getGroupedDates($reqObj->getTerminId(),$reqObj->getMetadateId());
                    if ($dates['first_event']) {
                            $i = 1;
                            if(is_array($dates['info']) && sizeof($dates['info']) > 0 ){
                                 foreach ($dates['info'] as $info) {
                                      $name = $info['name'];
                                      if ($info['weekend']) $name = '<span style="color:red">'. $info['name'] . '</span>';
                                          printf ("<font color=\"blue\"><i><b>%s</b></i></font>. %s<br>", $i, $name);
                                      $i++;
                                 }
                            }

                            if ($reqObj->getType() != 'date') {
                                echo _("regelmäßige Buchung ab").": ".strftime("%x", $dates['first_event']);
                            }
                     } else {
                            print _("nicht angegeben");
                     }
                    ?>
                    </font>
                </td>
                <td style="border-left:1px dotted black; background-color: #f3f5f8" width="51%" rowspan="4" valign="top">
                    <table cellpadding="2" cellspacing="0" border="0" width="90%">
                        <tr>
                            <td width="70%">
                                <font size="-1"><b><?php 
echo _("angeforderter Raum");
?>
:</b></font>
                            </td>
                            <?
                            unset($resObj);
                            $cols=0;
                            if (is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"]))
                                foreach ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"] as $key => $val) {
                                    $cols++;
                                    print "<td width=\"1%\" align=\"left\"><font size=\"-1\" color=\"blue\"><i><b>".$cols.".</b></i></font></td>";
                                }
                            ?>
                            <td width="29%" align="right">
                                <!--<font style="font-size:10px;color:blue;"><?//=_("Kapazität")?></font>-->
                            </td>
                        </tr>
                        <tr>
                            <td width="70%">
                            <?
                            if ($request_resource_id = $reqObj->getResourceId()) {
                                $resObj = ResourceObject::Factory($request_resource_id);
                                print $resObj->getFormattedLink($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["first_event"]);
                                print tooltipicon(_('Der ausgewählte Raum bietet folgende der wünschbaren Eigenschaften:')
                                                  . "\n" . $resObj->getPlainProperties(TRUE),
                                                  $resObj->getOwnerId() == 'global');
                                if ($resObj->getOwnerId() == 'global') {
                                    print ' [global]';
                                }
                            } else
                                print _("Es wurde kein Raum angefordert.");

                            ?>
                            </td>
                            <?
                            $i=0;
                            if(is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"]) && sizeof($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"]) > 0 )
                             foreach ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"] as $key => $val) {
                                print "<td width=\"1%\" nowrap><font size=\"-1\">";
                                if ($request_resource_id) {
                                    if ($request_resource_id == $val["resource_id"]) {
                                        print Icon::create('accept', 'accept', ['title' => _("Dieser Raum ist augenblicklich gebucht"), TRUE])->asImg();
                                        echo '<input type="radio" name="selected_resource_id['. $i .']" value="'. $request_resource_id .'" checked="checked">';
                                    } else {
                                        $overlap_status = $this->showGroupOverlapStatus($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["detected_overlaps"][$request_resource_id], $val["events_count"], $val["overlap_events_count"][$request_resource_id], $val["termin_ids"]);
                                        print $overlap_status["html"];
                                        printf ("<input type=\"radio\" name=\"selected_resource_id[%s]\" value=\"%s\" %s %s>",
                                            $i, $request_resource_id,
                                            ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["selected_resources"][$i] == $request_resource_id) ? "checked" : "",
                                            ($overlap_status["status"] == 2 || !ResourcesUserRoomsList::CheckUserResource($request_resource_id)) ? "disabled" : "");
                                    }
                                } else
                                    print "&nbsp;";
                                print "</font></td>";
                                $i++;
                             }

                            ?>
                            <td width="29%" align="right">
                                <?
                                if (is_object($resObj)) {
                                    $seats = $resObj->getSeats();
                                    $requested_seats = $reqObj->getSeats();
                                    if ((is_numeric($seats)) && (is_numeric($requested_seats))) {
                                        $percent_diff = (100 / $requested_seats) * $seats;
                                        if ($percent_diff > 0)
                                            $percent_diff = "+".$percent_diff;
                                        if ($percent_diff < 0)
                                            $percent_diff = "-".$percent_diff;
                                        print "<font style=\"font-size:10px;\">".round($percent_diff)."%</font>";
                                    }
                                }
                                ?>
                            </td>
                        </tr>
                        <?
                        if (get_config('RESOURCES_ENABLE_GROUPING')) {
                            $room_group = RoomGroups::GetInstance();
                            $group_id = $_SESSION['resources_data']['actual_room_group'];
                            ?>
                        <tr>
                            <td style="border-top:1px solid;" width="100%" colspan="<?php 
echo $cols + 2;
?>
">
                                <font size="-1"><b><?php 
echo _("Raumgruppe berücksichtigen");
?>
:</b></font>
                            </td>
                        </tr>
                        <tr>
                        <td colspan="<?php 
echo $cols;
?>
"><font size="-1">
                        <select name="request_tool_choose_group">
                        <option <?php 
echo is_null($group_id) ? 'selected' : '';
?>
 value="-"><?php 
echo _("Keine Raumgruppe anzeigen");
?>
</option>
                        <?
                        foreach($room_group->getAvailableGroups() as $gid){
                        echo '<option value="'.$gid.'" '
                            . (!is_null($group_id) && $group_id == $gid ? 'selected' : '') . '>'
                            .htmlReady(my_substr($room_group->getGroupName($gid),0,45))
                            .' ('.$room_group->getGroupCount($gid).')</option>';
                        }
                        ?>
                        </select>
                        </font>
                        </td>
                        <td colspan="2"><font size="-1">
                        <?php 
echo Button::create(_('Auswählen'), 'request_tool_group');
?>
<br>
                        </font>
                        </td>
                        </tr>
                        <?
                        if ($room_group->getGroupCount($group_id)){
                            foreach ($room_group->getGroupContent($group_id) as $key) {
                        ?>
                        <tr>
                            <td width="70%">
                                <?
                                $resObj = ResourceObject::Factory($key);
                                print $resObj->getFormattedLink($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["first_event"]);
                                print tooltipicon(_('Der ausgewählte Raum bietet folgende der wünschbaren Eigenschaften:')
                                                  . "\n" . $resObj->getPlainProperties(TRUE),
                                                  $resObj->getOwnerId() == 'global');
                                if ($resObj->getOwnerId() == 'global') {
                                    print ' [global]';
                                }
                            ?>
                            </td>
                            <?
                            $i=0;
                            if (is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"])) {
                                foreach ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"] as $key2 => $val2) {
                                    print "<td width=\"1%\" nowrap><font size=\"-1\">";
                                    if ($key == $val2["resource_id"]) {
                                        print Icon::create('accept', 'accept', ['title' => _("Dieser Raum ist augenblicklich gebucht"), TRUE])->asImg();
                                        echo '<input type="radio" name="selected_resource_id['. $i .']" value="'. $key .'" checked="checked">';
                                    } else {
                                        $overlap_status = $this->showGroupOverlapStatus($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["detected_overlaps"][$key], $val2["events_count"], $val2["overlap_events_count"][$resObj->getId()], $val2["termin_ids"]);
                                        print $overlap_status["html"];
                                        printf ("<input type=\"radio\" name=\"selected_resource_id[%s]\" value=\"%s\" %s %s>", $i, $key,
                                        ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["selected_resources"][$i] == $key) ? "checked" : "",
                                        ($overlap_status["status"] == 2 || !ResourcesUserRoomsList::CheckUserResource($key)) ? "disabled" : "");
                                    }
                                    print "</font></td>";
                                    $i++;
                                }
                            }
                            ?>
                            <td width="29%" align="right">
                                <?
                                if (is_object($resObj)) {
                                    $seats = $resObj->getSeats();
                                    $requested_seats = $reqObj->getSeats();
                                    if ((is_numeric($seats)) && (is_numeric($requested_seats))) {
                                        $percent_diff = (100 / $requested_seats) * $seats;
                                        if ($percent_diff > 0)
                                            $percent_diff = "+".$percent_diff;
                                        if ($percent_diff < 0)
                                            $percent_diff = "-".$percent_diff;
                                        print "<font style=\"font-size:10px;\">".round($percent_diff)."%</font>";
                                    }
                                }
                                ?>
                            </td>
                        </tr>
                        <?
                                }
                            }
                        }
                        ?>
                        <tr>
                            <td style="border-top:1px solid;" width="100%" colspan="<?php 
echo $cols + 2;
?>
">
                                <font size="-1"><b><?php 
echo _("weitere passende Räume");
?>
:</b>
                                </font>
                            </td>
                        </tr>
                        <?
                        if (is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["considered_resources"]))
                            foreach ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["considered_resources"] as $key=>$val) {
                                if ($val["type"] == "matching")
                                    $matching_rooms[$key] = TRUE;
                                if ($val["type"] == "clipped")
                                    $clipped_rooms[$key] = TRUE;
                                if ($val["type"] == "grouped")
                                    $grouped_rooms[$key] = TRUE;
                            }

                        if (sizeof($matching_rooms)) {
                            // filter list to [search_limit_low]...[search_limit_high]
                            $search_limit_low = $_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["search_limit_low"];
                            $search_limit_high = $_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["search_limit_high"];
                            $matching_rooms = array_slice($matching_rooms, $search_limit_low, $search_limit_high - $search_limit_low);
                            foreach ($matching_rooms as $key=>$val) {
                            ?>
                        <tr>
                            <td width="70%">
                                <?
                                $resObj = ResourceObject::Factory($key);
                                print $resObj->getFormattedLink($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["first_event"]);
                                print tooltipicon(_('Der ausgewählte Raum bietet folgende der wünschbaren Eigenschaften:')
                                                  . "\n" . $resObj->getPlainProperties(TRUE),
                                                  $resObj->getOwnerId() == 'global');
                                if ($resObj->getOwnerId() == 'global') {
                                    print ' [global]';
                                }
                            ?>
                            </td>
                            <?
                            $i=0;
                            if (is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"])) {
                                foreach ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"] as $key2 => $val2) {
                                    print "<td width=\"1%\" nowrap><font size=\"-1\">";
                                    if ($key == $val2["resource_id"]) {
                                        print Icon::create('accept', 'accept', ['title' => _("Dieser Raum ist augenblicklich gebucht"), TRUE])->asImg();
                                        echo '<input type="radio" name="selected_resource_id['. $i .']" value="'. $key .'" checked="checked">';
                                    } else {
                                        $overlap_status = $this->showGroupOverlapStatus($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["detected_overlaps"][$key], $val2["events_count"], $val2["overlap_events_count"][$resObj->getId()], $val2["termin_ids"]);
                                        print $overlap_status["html"];
                                        printf ("<input type=\"radio\" name=\"selected_resource_id[%s]\" value=\"%s\" %s %s>",
                                        $i, $key, ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["selected_resources"][$i] == $key) ? "checked" : "",
                                        ($overlap_status["status"] == 2 || !ResourcesUserRoomsList::CheckUserResource($key)) ? "disabled" : "");
                                    }
                                    print "</font></td>";
                                    $i++;
                                }
                            }
                            ?>
                            <td width="29%" align="right">
                                <?
                                if (is_object($resObj)) {
                                    $seats = $resObj->getSeats();
                                    $requested_seats = $reqObj->getSeats();
                                    if ((is_numeric($seats)) && (is_numeric($requested_seats))) {
                                        $percent_diff = (100 / $requested_seats) * $seats;
                                        if ($percent_diff > 0)
                                            $percent_diff = "+".$percent_diff;
                                        if ($percent_diff < 0)
                                            $percent_diff = "-".$percent_diff;
                                        print "<font style=\"font-size:10px;\">".round($percent_diff)."%</font>";
                                    }
                                }
                                ?>
                            </td>
                        </tr>
                            <?
                            }
                            ?>
                        <tr>
                            <td colspan="<?php 
echo $cols + 2;
?>
" align="center">
                                <font size="-1">
                                    <?php 
echo _("zeige Räume");
?>
                                    <a href="<?php 
echo URLHelper::getLink('?dec_limit_low=1');
?>
">-</a>
                                    <input type="text" name="search_rooms_limit_low" size="1" value="<?php 
echo $_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["search_limit_low"] + 1;
?>
">
                                    <a href="<?php 
echo URLHelper::getLink('?inc_limit_low=1');
?>
">+</a>

                                    bis
                                    <a href="<?php 
echo URLHelper::getLink('?dec_limit_high=1');
?>
">-</a>
                                    <input type="text" name="search_rooms_limit_high" size="1" value="<?php 
echo $_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["search_limit_high"];
?>
">
                                    <a href="<?php 
echo URLHelper::getLink('?inc_limit_high=1');
?>
">+</a>

                                    <?php 
echo Icon::create('arr_2up', 'sort', ['title' => 'ausgewählten Bereich anzeigen'])->asInput(array('name' => 'matching_rooms_limit_submit'));
?>
                                </font>
                            </td>
                        </tr>
                            <?
                        } else
                            print "<tr><td width=\"100%\" colspan=\"".($cols+1)."\"><font size=\"-1\">"._("keine gefunden")."</font></td></tr>";

                        //Clipped Rooms
                        if (sizeof($clipped_rooms)) {
                        ?>
                        <tr>
                            <td style="border-top:1px solid;" width="100%" colspan="<?php 
echo $cols + 2;
?>
">
                                <font size="-1"><b><?php 
echo _("Räume aus der Merkliste");
?>
:</b></font>
                            </td>
                        </tr>
                        <?
                            foreach ($clipped_rooms as $key=>$val) {
                        ?>
                        <tr>
                            <td width="70%">
                                <?
                                $resObj = ResourceObject::Factory($key);
                                print $resObj->getFormattedLink($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["first_event"]);
                                print tooltipicon(_('Der ausgewählte Raum bietet folgende der wünschbaren Eigenschaften:')
                                                  . "\n" . $resObj->getPlainProperties(TRUE),
                                                  $resObj->getOwnerId() == 'global');
                                if ($resObj->getOwnerId() == 'global') {
                                    print ' [global]';
                                }
                            ?>
                            </td>
                            <?
                            $i=0;
                            if (is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"])) {
                                foreach ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"] as $key2 => $val2) {
                                    print "<td width=\"1%\" nowrap><font size=\"-1\">";
                                    if ($key == $val2["resource_id"]) {
                                        print Icon::create('accept', 'clickable', ['title' => _('Dieser Raum ist augenblicklich gebucht'), TRUE])->asImg();
                                    } else {
                                        $overlap_status = $this->showGroupOverlapStatus($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["detected_overlaps"][$key], $val2["events_count"], $val2["overlap_events_count"][$resObj->getId()], $val2["termin_ids"]);
                                        print $overlap_status["html"];
                                        printf ("<input type=\"radio\" name=\"selected_resource_id[%s]\" value=\"%s\" %s %s>",
                                        $i, $key,
                                        ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["selected_resources"][$i] == $key) ? "checked" : "",
                                        ($overlap_status["status"] == 2 || !ResourcesUserRoomsList::CheckUserResource($key)) ? "disabled" : "");
                                    }
                                    print "</font></td>";
                                    $i++;
                                }
                            }
                            ?>
                            <td width="29%" align="right">
                                <?
                                if (is_object($resObj)) {
                                    $seats = $resObj->getSeats();
                                    $requested_seats = $reqObj->getSeats();
                                    if ((is_numeric($seats)) && (is_numeric($requested_seats))) {
                                        $percent_diff = (100 / $requested_seats) * $seats;
                                        if ($percent_diff > 0)
                                            $percent_diff = "+".$percent_diff;
                                        if ($percent_diff < 0)
                                            $percent_diff = "-".$percent_diff;
                                        print "<font style=\"font-size:10px;\">".round($percent_diff)."%</font>";
                                    }
                                }
                                ?>
                            </td>
                        </font></td>
                        </tr>
                        <?
                            }
                        }
                        ?>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="35%" valign="top">
                    <font size="-1"><b><?php 
echo _("gewünschte Raumeigenschaften");
?>
:</b><br><br>
                    <?
                    $properties = $reqObj->getProperties();
                    if (sizeof($properties)) {
                    ?>
                        <table width="99%" cellspacing="0" cellpadding="2" border="0">
                        <?

                        foreach ($properties as $key=>$val) {
                            ?>
                            <tr>
                                <td width="70%">
                                    <li><font size="-1"><?php 
echo htmlReady($val["name"]);
?>
</font></li>
                                </td>
                                <td width="30%"><font size="-1">
                                <?
                                switch ($val["type"]) {
                                    case "bool":
                                        /*printf ("%s", ($val["state"]) ?  htmlReady($val["options"]) : " - ");*/
                                    break;
                                    case "num":
                                    case "text":
                                        print htmlReady($val["state"]);
                                    break;
                                    case "select":
                                        $options=explode (";",$val["options"]);
                                        foreach ($options as $a) {
                                            if ($val["state"] == $a)
                                                print htmlReady($a);
                                        }
                                    break;
                                }
                                ?></font>
                                </td>
                            </tr>
                            <?
                        }
                        ?>
                        </table>
                        <?
                    } else
                        print _("Es wurden keine Raumeigenschaften gewünscht.");
                    ?>
                    </font>
                </td>
            </tr>
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="35%" valign="top">
                    <font size="-1"><b><?php 
echo _("Kommentar des Anfragenden");
?>
:</b><br><br>
                    <?
                    if ($comment = $reqObj->getComment())
                        print $comment;
                    else
                        print _("Es wurde kein Kommentar eingegeben");
                    ?>
                    </font>
                </td>

            </tr>
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="35%" valign="top">

                    <?
                    $user_status_mkdate = $reqObj->getUserStatus($GLOBALS['user']->id);
                    ?>
                    <b><?php 
echo "Benachrichtigungen";
?>
:</b><br>
                    <input type="radio" onChange="jQuery(this).closest('form').submit()" name="reply_recipients" id="reply_recipients_requester" value="requester" checked>
                    <label for="reply_recipients_requester">
                    <?php 
echo _("Ersteller");
?>
                    </label>
                    <input type="radio" onChange="jQuery(this).closest('form').submit()" name="reply_recipients" id="reply_recipients_lecturer" value="lecturer" <?php 
echo $reqObj->reply_recipients == 'lecturer' ? 'checked' : '';
?>
>
                    <label for="reply_recipients_lecturer">
                    <?php 
echo _("Ersteller und alle Lehrenden");
?>
                    </label>
                    <br>
                    <b><?php 
echo "Anfrage markieren";
?>
:</b><br>
                    <input type="radio" onChange="jQuery(this).closest('form').submit()" name="request_user_status" id="request_user_status_0" value="0" checked>
                    <label for="request_user_status_0">
                    <?php 
echo _("unbearbeitet");
?>
                    </label>
                    <input type="radio" onChange="jQuery(this).closest('form').submit()" name="request_user_status" id="request_user_status_1" value="1" <?php 
echo $user_status_mkdate ? 'checked' : '';
?>
>
                    <label for="request_user_status_1">
                    <?php 
echo _("bearbeitet");
?>
                    </label>
                    <br><br>
                    <b><?php 
echo _("Kommentar zur Belegung (intern)");
?>
:</b><br><br>
                    <textarea name="comment_internal" style="width: 90%" rows="2"></textarea>
                </td>
            </tr>

            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" colspan="2" width="96%" valign="top" align="center">
                    <div class="button-group">
                <?
                // can we dec?
                if ($_SESSION['resources_data']["requests_working_pos"] > 0) {
                    $d = -1;
                    if ($_SESSION['resources_data']["skip_closed_requests"])
                        while ((!$_SESSION['resources_data']["requests_open"][$_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"] + $d]["request_id"]]) && ($_SESSION['resources_data']["requests_working_pos"] + $d > 0))
                            $d--;
                    if ((sizeof($_SESSION['resources_data']["requests_open"]) > 1) && (($_SESSION['resources_data']["requests_open"][$_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"] + $d]["request_id"]]) || (!$_SESSION['resources_data']["skip_closed_requests"])))
                        $inc_possible = TRUE;
                }


                if ($inc_possible) {
                    echo Button::create('<< ' . _('Zurück'), 'dec_request');
                }


                echo Button::createCancel(_('Abbrechen'), 'cancel_edit_request');
                echo Button::create(_('Löschen'), 'delete_request');

                if ((($reqObj->getResourceId()) || (sizeof($matching_rooms)) || (sizeof($clipped_rooms)) || (sizeof($grouped_rooms))) &&
                    ((is_array($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["groups"])) || ($_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"]]["assign_objects"]))) {
                    echo Button::createAccept(_('Speichern'), 'save_state');
                    echo Button::createCancel(_('Ablehnen'), 'suppose_decline_request');
                }

                // can we inc?
                if ($_SESSION['resources_data']["requests_working_pos"] < sizeof($_SESSION['resources_data']["requests_working_on"])-1) {
                    $i = 1;
                    if ($_SESSION['resources_data']["skip_closed_requests"])
                        while ((!$_SESSION['resources_data']["requests_open"][$_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"] + $i]["request_id"]]) && ($_SESSION['resources_data']["requests_working_pos"] + $i < sizeof($_SESSION['resources_data']["requests_working_on"])-1))
                            $i++;
                    if ((sizeof($_SESSION['resources_data']["requests_open"]) > 1) && (($_SESSION['resources_data']["requests_open"][$_SESSION['resources_data']["requests_working_on"][$_SESSION['resources_data']["requests_working_pos"] + $i]["request_id"]]) || (!$_SESSION['resources_data']["skip_closed_requests"])))
                        $dec_possible = TRUE;
                }

                if ($dec_possible) {
                    echo Button::create(_('Weiter') . ' >>', 'inc_request');
                }
                ?>
                    </div>

                <?
                if (sizeof($_SESSION['resources_data']["requests_open"]) > 1)
                    printf ("<br><font size=\"-1\">" . _("<b>%s</b> von <b>%s</b> Anfragen in der Bearbeitung wurden noch nicht aufgelöst.") . "</font>", sizeof($_SESSION['resources_data']["requests_open"]), sizeof($_SESSION['resources_data']["requests_working_on"]));
                    printf ("<br><font size=\"-1\">" . _("Aktueller Request: ")."<b>%s</b></font>", $_SESSION['resources_data']["requests_working_pos"]+1);
                ?>
                </td>
            </tr>
        </table>
        </form>
        <br><br>
        <?
    }
示例#23
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 
示例#24
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>
示例#25
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>";
示例#26
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";
示例#27
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();
?>
">
示例#28
0
文件: edit.php 项目: ratbird/hope
                <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>

示例#29
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>
示例#30
0
?>
            <? endif; ?>
            </td>
        </tr>
    </tbody>
<? if ($priviledged): ?>
    <tfoot class="table_footer">
        <tr>
            <td colspan="2">
                <?php 
echo LinkButton::create(_('Bearbeiten'), PluginEngine::getLink($this->plugin, array(), 'show/edit/' . $scm->id), array('data-dialog' => ''));
?>
        <? if (count($scms) > 1): ?>
            <? if ($scm->position == 0): ?>
                <?php 
echo Button::create(_('Nach vorne'), array('disabled' => 'disabled'));
?>
            <? else: ?>
            <? endif; ?>
                <?php 
echo LinkButton::create(_('Löschen'), $controller->url_for('show/' . $scm->id . '?verify=delete'), array('title' => _('Diese Seite löschen')));
?>
        <? endif; ?>
            </td>
        </tr>
    </tfoot>
<? endif; ?>
</table>

<?php 
$sidebar = Sidebar::get();