Exemplo n.º 1
0
 /**
  * get link to create new account
  *
  * returns link to create new user-account
  * @access public
  * @return string html-code
  */
 function getNewAccountLink()
 {
     global $connected_cms, $cms_select, $current_module;
     $output .= "<form method=\"POST\" action=\"" . URLHelper::getLink() . "\">\n";
     $output .= CSRFProtection::tokenTag();
     $output .= "<input type=\"HIDDEN\" name=\"view\" value=\"" . Request::option('view') . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"ref_id\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getId()) . "\">\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=\"search_key\" value=\"" . htmlReady(Request::get('search_key')) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"cms_select\" value=\"" . htmlReady($cms_select) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"new_account_cms\" value=\"" . htmlReady($this->cms_type) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"new_account_step\" value=\"0\">\n";
     $output .= Button::createAccept(_('Starten'), 'start');
     $output .= "</form>";
     return $output;
 }
 /**
  * Creates the form for the Polskala templates
  * @param
  */
 function createTemplateFormFree(&$question)
 {
     global $evalID;
     $answer = $question->getNextChild();
     $tableA = new HTM("table");
     $tableA->attr("border", "0");
     $tableA->attr("cellpadding", "2");
     $tableA->attr("cellspacing", "0");
     $tableA->attr("width", "100%");
     $trA = new HTM("tr");
     $tdA = new HTM("td");
     $tdA->attr("class", "table_header_bold");
     $tdA->attr("align", "left");
     $tdA->html("<b>" . (strstr($this->getPageCommand(), "create") ? _("Freitextvorlage erstellen") : _("Freitextvorlage bearbeiten")) . "</b>");
     $trA->cont($tdA);
     $tableA->cont($trA);
     $trA = new HTM("tr");
     $tdA = new HTM("td");
     $form = new HTM("form");
     $form->attr("action", URLHelper::getLink("?page=edit&evalID=" . $evalID));
     $form->attr("method", "post");
     $form->html(CSRFProtection::tokenTag());
     $b = new HTM("b");
     $b->cont(_("Name") . ": ");
     $form->cont($b);
     $input = new HTMpty("input");
     $input->attr("type", "text");
     $input->attr("name", "template_name");
     $name = $question->getText();
     $input->attr("value", $question->getText());
     //    $input->attr( "value", $name );
     $input->attr("style", "vertical-align:middle;");
     $input->attr("size", 22);
     $input->attr("maxlength", 22);
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_id");
     $input->attr("value", $question->getObjectID());
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_type");
     $input->attr("value", $question->getType());
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_multiple");
     $input->attr("value", NO);
     $form->cont($input);
     $img = new HTMpty("img");
     $img->attr("src", Icon::create('info-circle', 'inactive')->asImagePath(16));
     $img->attr("class", "middle");
     $img->stri(tooltip(_("Geben Sie hier einen Namen für Ihre Vorlage ein. Ändern Sie den Namen, um eine neue Vorlage anzulegen."), FALSE, TRUE));
     $form->cont($img);
     $form->cont($this->BR);
     //$answer = $question->getNextChild();
     //$answer->toString();
     /* Anzahl Zeilen------------------------------------------------------ */
     $form->cont($this->createSubHeadline(_("Anzahl Zeilen") . ": "));
     $select = new HTM("select");
     $select->attr("name", "template_add_num_answers");
     $select->attr("size", "1");
     $select->attr("style", "vertical-align:middle;");
     for ($i = 1; $i <= 25; $i++) {
         $option = new HTM("option");
         $option->attr("value", $i);
         $option->cont($i);
         if ($i == $answer->getRows()) {
             $option->addAttr("selected", "selected");
         }
         $select->cont($option);
     }
     $form->cont($select);
     $form->cont($this->BR);
     /* uebernehmen / loeschen Button ---------------------------- */
     $input = Button::create(_('Übernehmen'), 'template_savefree_button');
     $odb = new EvaluationObjectDB();
     //if($odb->getGlobalPerm()=="root"){
     //  $myuserid = 0;
     //}
     //else{
     //   $myuserid = $user->id;
     //}
     //if($question->getParentID()==$myuserid){
     //   $loesch=1;
     if (!strstr($this->command, "create")) {
         $showDelete = YES;
         $input2 = Button::createAccept(_('Löschen'), 'template_delete_button');
     }
     $table = new HTM("table");
     $table->attr("border", "0");
     $table->attr("align", "center");
     $table->attr("cellspacing", "0");
     $table->attr("cellpadding", "3");
     $table->attr("width", "100%");
     $tr = new HTM("tr");
     $td = new HTM("td");
     $td->attr("class", "content_body");
     $td->attr("align", "center");
     $td->cont($input);
     $tr->cont($td);
     if ($showDelete) {
         $td = new HTM("td");
         $td->attr("class", "content_body");
         $td->attr("align", "center");
         $td->cont($input2);
         $tr->cont($td);
     }
     $table->cont($tr);
     $form->cont($table);
     $tdA->cont($form);
     $trA->cont($tdA);
     $tableA->cont($trA);
     return $tableA;
 }
Exemplo n.º 3
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'));
Exemplo n.º 4
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>
Exemplo n.º 5
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>
Exemplo n.º 6
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>
Exemplo n.º 7
0
echo parse_msg($msg);
echo "</td></tr>";

if ($EXTERN_SRI_ENABLE_BY_ROOT && $perm->have_perm('root')) {
    echo "<tr><td class=\"blank\">\n";
    echo '<form method="post" action="' . URLHelper::getLink('?com=enable_sri') . '">';
    echo CSRFProtection::tokenTag();
    echo '<blockquote><font size="2">';
    echo _("SRI-Schnittstelle freigeben");
    echo ' <input type="checkbox" name="sri_enable" value="1"';
    if (sri_is_enabled($range_id)) {
        echo ' checked="checked"';
    }
    echo '>';

    echo Button::createAccept();

    echo "</font></blockquote></form>\n</td></tr>\n";
} else {
    echo "<tr><td class=\"blank\">&nbsp;</td></tr>\n";
}
echo "<tr><td class=\"blank\">\n";

$configurations = ExternConfig::GetAllConfigurations($range_id);
$module_types_ordered = ExternModule::GetOrderedModuleTypes();

$choose_module_form = '';
// remove global configuration
array_shift($module_types_ordered);
foreach ($module_types_ordered as $i) {
    if ((sizeof($configurations[$GLOBALS['EXTERN_MODULE_TYPES'][$i]['module']]) < $EXTERN_MAX_CONFIGURATIONS)
Exemplo n.º 8
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>
Exemplo n.º 9
0
    <label for="content"><?php 
echo _('Seiteninhalt');
?>
</label><br>
    <textarea style="width: 90%;height: 15em;" name="content" id="content" class="add_toolbar wysiwyg"><?php 
echo htmlReady($content);
?>
</textarea><br>

    <input type="hidden" name="detail_id" value="<?php 
echo $currentdetail;
?>
">
<? endif; ?>

    <div data-dialog-button>
        <?php 
echo Studip\Button::createAccept(_('Abschicken'));
?>
        <?php 
echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('siteinfo/show/' . $currentrubric . '/' . $currentdetail));
?>
    </div>
</form>

 <? if (!$edit_rubric): ?>
    <?php 
echo $this->render_partial('siteinfo/help.php');
?>
<? endif; ?>
Exemplo n.º 10
0
echo _("1. Klicken Sie auf <b>'Durchsuchen...'</b>, um eine Datei auszuwählen.");
?>
                </div>
                &nbsp;<?php 
echo _("Dateipfad:");
?>
<br>
                &nbsp;<input name="the_file" type="file"  style="width: 70%"><br>

                <div width="100%" class="content_seperator" style="padding : 2px; margin: 10px 0px 10px 0px">
                    <?php 
echo _("2. Klicken Sie auf <b>'absenden'</b>, um die Datei hochzuladen.");
?>
                </div>
                <?php 
echo Button::createAccept(_('Absenden'), array('onClick' => 'return STUDIP.OldUpload.upload_start(jQuery(this).closest(\'form\'))'));
?>
                &nbsp;<?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('?cancel_x=true'));
?>

                <input type="hidden" name="com" value="do_upload_config">
                <input type="hidden" name="check_module" value="<?php 
echo $module;
?>
">
                <input type="hidden" name="config_id" value="<?php 
echo $config_id;
?>
">
            </form>
Exemplo n.º 11
0
                        <? endif?>
                        <option value="<?php 
echo $csv_found['username'];
?>
"><?php 
echo htmlReady(my_substr($csv_found['fullname'], 0, 50));
?>
 (<?php 
echo $csv_found['username'];
?>
) - <?php 
echo $csv_found['perms'];
?>
</option>
                    <? endforeach ?>
                </select>
            </td>
        </tr>
        <? endforeach ?>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="2" class="printhead" style="text-align: center">
                <?php 
echo Button::createAccept(_('Eintragen'));
?>
            </td>
        </tr>
    </tfoot>
</table>
</form>
Exemplo n.º 12
0
        </td>
    </tr>
</table>

<br>

<!-- Title -->
<table class="default">
    <tr>
        <th colspan="2"> <b><?= _("Nutzungsbedingugen") ?></b> </th>
    </tr>
    <tr>
        <td colspan="2">
        <?= _("Geben Sie hier Nutzungsbedingungen für die Studiengruppen ein. ".
                "Diese müssen akzeptiert werden, bevor eine Studiengruppe angelegt werden kann.") ?>
        </td>
    </tr>
    <tr>
        <td colspan="2" class="blank">
        <br>
        <textarea name="terms" style="width: 90%" rows="10" style='align:middle;'><?= htmlReady($terms) ?></textarea>
        <br>
        </td>
    </tr>
</table>
<p style="text-align: center">
    <br>
    <?= Button::createAccept(_("Speichern"), 'speichern') ?>
</p>
</form>
Exemplo n.º 13
0
                    </td>
                </tr>
            </tbody>
            </table>
        </div>
    </div>
    <br>
</div>
<div class="news_dialog_buttons">
<?  if ($news["mkdate"]) : ?>
    <?php 
echo Button::createAccept(_('Änderungen speichern'), 'save_news');
?>
<? else : ?>
    <?php 
echo Button::createAccept(_('Ankündigung erstellen'), 'save_news');
?>
<? endif ?>
<? if (Request::isXhr()) : ?>
    <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL(''), array('rel' => 'close_dialog'));
?>
<? endif ?>
</div>
</form>
<script>
    jQuery('.news_prevent_submit').keydown(function(event) {
        if (event.which === 13) {
            event.preventDefault();
        }
    });
Exemplo n.º 14
0
</option>
                    <option value="activate"><?php 
echo _('Aktivieren');
?>
</option>
                    <option value="deactivate"><?php 
echo _('Deaktivieren');
?>
</option>
                    <option value="delete"><?php 
echo _('Löschen');
?>
</option>
                </select>
                <?php 
echo Button::createAccept(_('Ausführen'), 'bulk');
?>
            </td>
            <td colspan="3" class="printhead" style="text-align: right; vertical-align: middle;">
            <?
                $pagination = $GLOBALS['template_factory']->open('shared/pagechooser');
                $pagination->set_attributes(array(
                    'perPage'      => $max_per_page,
                    'num_postings' => $total,
                    'page'         => $page,
                    'pagelink'     => $controller->url_for('admin/cronjobs/tasks/index/%u')
                ));
                echo $pagination->render();
            ?>
            </td>
        </tr>
Exemplo n.º 15
0
                <input type="checkbox" name="active" value="1" <? if ($config['API_ENABLED']) echo 'checked'; ?>>
            <?php 
echo _('REST-API aktiviert');
?>
</label>
        </div>
        
        <label class="caption" for="auth"><?php 
echo _('Standard-Authentifizierung beim Login');
?>
            <select name="auth" id="auth">
            <? foreach ($GLOBALS['STUDIP_AUTH_PLUGIN'] as $plugin): ?>
                <option <? if ($config['API_OAUTH_AUTH_PLUGIN'] === $plugin) echo 'selected'; ?>>
                    <?php 
echo $plugin;
?>
                </option>
            <? endforeach; ?>
            </select>
        </label>
    </fieldset>
    <div class="submit_wrapper">
        <?php 
echo Button::createAccept(_('Speichern'));
?>
        <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/api'));
?>
    </div>
</form>
Exemplo n.º 16
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>
Exemplo n.º 17
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>
        <?
    }
Exemplo n.º 18
0
 /**
  * createEvaluationFooter: generate the foot of an evaluation (buttons etc.)
  * @param   the evaluation
  * @returns a table row
  */
 function createEvaluationFooter($eval, $voted, $isPreview)
 {
     global $auth;
     if ($isPreview) {
         $voted = YES;
     }
     $br = new HTMpty("br");
     $tr = new HTM("tr");
     $td = new HTM("td");
     $td->attr("class", "content_body");
     $td->attr("align", "center");
     $td->attr("data-dialog-button", "");
     $td->cont($br);
     /* vote button */
     if (!$voted) {
         $button = Button::createAccept(_('Abschicken'), 'voteButton', array('title' => _('Senden Sie Ihre Antworten hiermit ab.'), 'data-dialog' => ''));
         $td->cont($button);
     }
     /* close button */
     if (!Request::isXHR()) {
         $button = new HTM("p");
         $button->cont(_("Sie können dieses Fenster jetzt schließen."));
         $td->cont($button);
     }
     /* reload button */
     if ($isPreview) {
         $button = LinkButton::create(_('Aktualisieren'), URLHelper::getURL('show_evaluation.php?evalID=' . $eval->getObjectID() . '&isPreview=1'), array('title' => _('Vorschau aktualisieren.')));
         $td->cont($button);
     }
     $td->cont($br);
     $td->cont($br);
     $tr->cont($td);
     return $tr;
 }
Exemplo n.º 19
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>
Exemplo n.º 20
0
 function testCreateAccept()
 {
     $this->assertEquals('<button type="submit" class="accept button" name="accept">Übernehmen</button>', '' . Button::createAccept());
 }
Exemplo n.º 21
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>
Exemplo n.º 22
0
 function getEditItemContent()
 {
     $content .= "\n<form name=\"item_form\" action=\"" . URLHelper::getLink($this->getSelf("cmd=InsertItem&item_id={$this->edit_item_id}")) . "\" method=\"POST\">";
     $content .= CSRFProtection::tokenTag();
     $content .= "\n<input type=\"HIDDEN\" name=\"parent_id\" value=\"{$this->tree->tree_data[$this->edit_item_id]['parent_id']}\">";
     if ($this->tree->isElement($this->edit_item_id)) {
         $content .= "\n<tr><td class=\"table_row_odd\"style=\"border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;\" ><b>" . _("Anmerkung zu einem Eintrag bearbeiten:") . "</b></td></tr>";
         $edit_name = "note";
         $rows = 5;
         $content .= "<tr><td class=\"table_row_even\" style=\"border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;\"><textarea name=\"edit_{$edit_name}\" style=\"width:99%\" rows=\"{$rows}\">" . htmlReady($this->tree->tree_data[$this->edit_item_id][$edit_name]) . "</textarea></td></tr>";
     } else {
         $content .= "\n<tr><td class=\"table_row_odd\" style=\"border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;\" ><b>" . _("Name der Liste bearbeiten:") . "</b></td></tr>";
         $content .= "<tr><td class=\"table_row_even\" align=\"center\" style=\"border-left: 1px solid black;border-right: 1px solid black;\"><input type=\"text\" name=\"edit_name\" style=\"width:99%\" value=\"" . htmlReady($this->tree->tree_data[$this->edit_item_id]['name']) . "\"></td></tr>";
         $edit_name = "format";
         $rows = 2;
         $content .= "\n<tr><td class=\"table_row_odd\" style=\"border-left: 1px solid black;border-right: 1px solid black;\" ><b>" . _("Formatierung der Liste bearbeiten:") . "</b>&nbsp;";
         $content .= Icon::create('info-circle', 'inactive', ['title' => $this->format_info])->asImg(['class' => 'text-top']);
         $content .= "</td></tr>";
         $content .= "<tr><td class=\"table_row_even\" align=\"center\" style=\"border-left: 1px solid black;border-right: 1px solid black;\"><textarea name=\"edit_{$edit_name}\" style=\"width:99%\" rows=\"{$rows}\">" . htmlReady($this->tree->tree_data[$this->edit_item_id][$edit_name]) . "</textarea></td></tr>";
         $content .= "\n<tr><td class=\"table_row_odd\" style=\"border-bottom: 1px solid black;;border-left: 1px solid black;border-right: 1px solid black;\" >\n            <b>" . _("Sichtbarkeit der Liste:") . "</b>&nbsp;&nbsp;&nbsp;\n            <input type=\"radio\" name=\"edit_visibility\" value=\"1\" style=\"vertical-align:bottom\" " . ($this->tree->tree_data[$this->edit_item_id]['visibility'] ? "checked" : "") . ">" . _("Ja") . "&nbsp;<input type=\"radio\" name=\"edit_visibility\" value=\"0\" style=\"vertical-align:bottom\" " . (!$this->tree->tree_data[$this->edit_item_id]['visibility'] ? "checked" : "") . ">" . _("Nein") . "</td></tr>";
     }
     $content .= "<tr><td class=\"table_row_even\">&nbsp;</td></tr><tr><td class=\"table_row_even\" align=\"center\">" . Button::createAccept(_('Speichern'), array('title' => _("Einstellungen speichern"))) . "&nbsp;" . LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL($this->getSelf("cmd=Cancel&item_id=" . $this->edit_item_id)), array('Aktion abbrechen' => _('Aktion abbrechen'))) . '</td></tr>';
     $content .= "\n</form>";
     return $content;
 }
Exemplo n.º 23
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>
Exemplo n.º 24
0
    function editSubmit ($module_name, $config_id, $element_name = "", $hidden = NULL) {
        $this->css->resetClass();
        $this->css->switchClass();

        $out = "<tr><td align=\"center\" colspan=\"2\" nowrap=\"nowrap\"";
        $out .= $this->css->getFullClass() . ">&nbsp;";
        $out .= Button::createAccept(_("Übernehmen"), "submit"); 
        $out .= "&nbsp; &nbsp; &nbsp;";
        $out .= LinkButton::createCancel(_("Abbrechen"), URLHelper::getURL('?list=TRUE'));
        $out .= "<input type=\"hidden\" name=\"config_id\" value=\"$config_id\">";
        $out .= "<input type=\"hidden\" name=\"mod\" value=\"$module_name\">";
        if ($element_name) {
            $out .= "<input type=\"hidden\" name=\"edit\" value=\"$element_name\">";
        }
        if (!is_null($hidden)) {
            foreach ($hidden as $name => $value) {
                $out .= "<input type=\"hidden\" name=\"$name\" value=\"$value\">";
            }
        }
        $out .= "</td></tr>";

        return $out;
    }
Exemplo n.º 25
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>';
}
Exemplo n.º 26
0
                <th colspan="2"><?php 
echo sprintf(_('%s suchen'), htmlReady($decoratedStatusGroups['tutor']));
?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?php 
echo QuickSearch::get('new_tutor', $search)->withButton(array('reset_button_name' => 'reset_tutor', 'search_button_name' => 'search_tutor'))->render();
?>
  
                    <input type="hidden" name="seminar_id" value="<?php 
echo $course_id;
?>
">
                </td>
                <td>
                <?php 
echo Button::createAccept(_('Eintragen'), 'add_tutor', array('title' => sprintf(_('als %s eintragen'), htmlReady($decoratedStatusGroups['tutor']))));
?>
                <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index'));
?>
                </td>
            </tr>
        </tbody>
    </table>
</form>
Exemplo n.º 27
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>
Exemplo n.º 28
0
        </thead>
        <tbody class="content_body">
            <tr>
                <td colspan="2">
                    <textarea class="add_toolbar" name="content" data-secure="true"><?php 
echo htmlReady($scm->content);
?>
</textarea>
                </td>
            </tr>
        </tbody>
        <tfoot class="table_footer">
            <tr>
                <td colspan="2" data-dialog-button>
                    <?php 
echo Button::createAccept(_('Speichern'), 'submit');
?>
                <? if ($first_entry): ?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getLink('seminar_main.php'));
?>
                <? else: ?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('show/edit' . $scm->id));
?>
                <? endif; ?>
                </td>
            </tr>
        </tfoot>

    </table>
Exemplo 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 ?>
Exemplo n.º 30
0
                <tr valign=top align=left>
                    <td><?php 
echo _("E-Mail:");
?>
 </td>
                    <td>
                        <input type="email" name="email" value="<?php 
echo htmlReady($email);
?>
" size="20" maxlength="63">
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <?php 
echo Button::createAccept(_('Abschicken'));
?>
                        <?php 
echo LinkButton::createCancel(_('Abbrechen'), 'index.php?cancel_login=1');
?>
                        <br>
                    </td>
                </tr>
            </table>
        </form>
        <?else:?>
        </div>
        <?endif;?>
    </div>
    </td>
</tr>