function print_js_import () { //displays the templates for upload windows now //for upload code see application.js : STUDIP.OldUpload ?> <div id="upload_window_template" style="display: none"> <?php echo htmlReady("<html><head><title>Datei Upload</title></head>" . '<body bgcolor="#ffffff"><center><p>' . Assets::img('alienupload.gif', array('size' => '165@125')) . '</p>' . "<p><font face='arial, helvetica, sans-serif'><b> :file_only</b><br> " . _("wird hochgeladen.") . "<br> " . _("Bitte haben Sie etwas Geduld!") . "<br></font></p></body></html>"); ?> </div> <div id="upload_error_message_wrong_type" style="display: none;"><?php echo _("Dieser Dateityp ist nicht zugelassen!"); ?> </div> <div id="upload_select_file_message" style="display: none;"><?php echo _("Bitte wählen Sie eine Datei aus!"); ?> </div> <div id="upload_file_types" style="display: none;"><?php echo json_encode($UPLOAD_TYPES[$SessSemName["art_num"]] ? array('allow' => $UPLOAD_TYPES[$SessSemName["art_num"]]["type"] === "allow" ? 0 : 1, 'types' => $UPLOAD_TYPES[$SessSemName["art_num"]]["file_types"]) : array('allow' => $UPLOAD_TYPES["default"]["type"] === "allow" ? 0 : 1, 'types' => $UPLOAD_TYPES["default"]["file_types"])); ?> </div> <? }
<? endif ?> </td> <td style="text-align: left; white-space: nowrap"> <? if (Config::get()->ALLOW_SELFASSIGN_INSTITUTE && $values['perms'] == 'user') : ?> <a href="<?php echo $controller->url_for('my_institutes/decline_inst/' . $instid); ?> "> <?php echo Icon::create('door-leave', 'inactive', ['title' => _("aus der Einrichtung austragen")])->asImg(20); ?> </a> <? else : ?> <?php echo Assets::img('blank.gif', array('size' => '20')); ?> <? endif ?> </td> </tr> <? endforeach ?> </tbody> </table> <? endif ?> <?php $sidebar = Sidebar::Get(); $sidebar->setImage('sidebar/institute-sidebar.png'); $sidebar->setTitle(_('Meine Einrichtungen')); $links = new ActionsWidget();
<? # Lifter010: TODO ?> <table class="infobox" align="center" width="250" border="0" cellpadding="0" cellspacing="0"> <!-- Bild --> <tr> <td class="infobox-img"> <?php echo Assets::img('sidebar/group-sidebar.png'); ?> </td> </tr> <tr> <td class="infoboxrahmen" width="100%"> <table align="center" width="99%" border="0" cellpadding="4" cellspacing="0"> <!-- Aktionen --> <tr> <td width="100%" colspan="2"> <b><?php echo _("Aktionen"); ?> :</b> <br> </td> </tr>
function toStringPreview () { $time = time(); // preview data $data[] = array("dokument_id" => 1, "description" => _("Das ist eine Text-Datei."), "filename" => "text_file.txt", "mkdate" => ($time - 100000), "chdate" => ($time - 50000), "filesize" => 26378, "Vorname" => "Julius", "Nachname" => "Rodman"); $data[] = array("dokument_id" => 2, "description" => _("Das ist eine Powerpoint-Datei."), "filename" => "powerpoint_file.ppt", "mkdate" => ($time - 200000), "chdate" => ($time - 150000), "filesize" => 263784, "Vorname" => "William", "Nachname" => "Wilson"); $data[] = array("dokument_id" => 3, "description" => _("Das ist eine ZIP-Datei."), "filename" => "zip_file.zip", "mkdate" => ($time - 300000), "chdate" => ($time - 250000), "filesize" => 63784, "Vorname" => "August", "Nachname" => "Bedloe"); $data[] = array("dokument_id" => 4, "description" => _("Das ist eine Excel-Datei."), "filename" => "excel_file.txt", "mkdate" => ($time - 400000), "chdate" => ($time - 350000), "filesize" => 23784, "Vorname" => "Ernst", "Nachname" => "Waldemar"); $data[] = array("dokument_id" => 5, "description" => _("Das ist eine Bild-Datei."), "filename" => "bild_jpeg_file.jpg", "mkdate" => ($time - 500000), "chdate" => ($time - 450000), "filesize" => 53784, "Vorname" => "Absalom", "Nachname" => "Hicks"); $data[] = array("dokument_id" => 6, "description" => _("Das ist ein Dokument im Microsoft Rich-Text-Format."), "filename" => "microsoft_rtf_file.rtf", "mkdate" => ($time - 600000), "chdate" => ($time - 550000), "filesize" => 563784, "Vorname" => "Dirk", "Nachname" => "Peters"); $data[] = array("dokument_id" => 7, "description" => _("Das ist ein Adobe PDF-Dokument."), "filename" => "adobe_pdf_file.pdf", "mkdate" => ($time - 700000), "chdate" => ($time - 650000), "filesize" => 13784, "Vorname" => "Augustus", "Nachname" => "Barnard"); $data[] = array("dokument_id" => 8, "description" => _("Und noch ein ZIP-Archiv."), "filename" => "gnu_zip_file.tar.gz", "mkdate" => ($time - 800000), "chdate" => ($time - 750000), "filesize" => 2684, "Vorname" => "Gordon", "Nachname" => "Pym"); $data[] = array("dokument_id" => 9, "description" => _("Eine weitere Text-Datei."), "filename" => "text2_file.txt", "mkdate" => ($time - 900000), "chdate" => ($time - 850000), "filesize" => 123784, "Vorname" => "Hans", "Nachname" => "Pfaal"); $data[] = array("dokument_id" => 10, "description" => _("Ein Bild im PNG-Format."), "filename" => "picture_png_file.png", "mkdate" => ($time - 1000000), "chdate" => ($time - 950000), "filesize" => 813784, "Vorname" => "John", "Nachname" => "Greely"); $data[] = array("dokument_id" => 11, "description" => _("Eine anderes Format."), "filename" => "good_music.mp3", "mkdate" => ($time - 1150000), "chdate" => ($time - 653900), "filesize" => 934651, "Vorname" => "Augustus", "Nachname" => "Barnard"); $table_row_data["data_fields"] = $this->data_fields; $out = $this->elements["TableHeadrow"]->toString(); foreach ($data as $db) { preg_match("/^.+\.([a-z1-9_-]+)$/i", $db["filename"], $file_suffix); // choose the icon for the given file format $icon = ""; switch ($file_suffix[1]) { case "txt" : if (!$picture_file = $this->config->getValue("Main", "icontxt")) $icon = Icon::create("file-text", "clickable"); break; case "xls" : if (!$picture_file = $this->config->getValue("Main", "iconxls")) $icon = Icon::create("file-xls", "clickable"); break; case "ppt" : if (!$picture_file = $this->config->getValue("Main", "iconppt")) $icon = Icon::create("file-presentation", "clickable"); break; case "rtf" : if (!$picture_file = $this->config->getValue("Main", "iconrtf")) $icon = Icon::create("file-text", "clickable"); break; case "zip" : case "tgz" : case "gz" : if (!$picture_file = $this->config->getValue("Main", "iconzip")) $icon = Icon::create("file-archive", "clickable"); break; case "jpg" : case "png" : case "gif" : case "jpeg" : case "tif" : if (!$picture_file = $this->config->getValue("Main", "iconpic")) $icon = Icon::create("file-image", "clickable"); break; case "pdf" : if (!$picture_file = $this->config->getValue("Main", "iconpdf")) $icon = Icon::create("file-pdf", "clickable"); break; default : if (!$picture_file = $this->config->getValue("Main", "icondefault")) $icon = Icon::create("file-generic", "clickable"); } if ($icon) $picture_file = $icon; // Aufbereiten der Daten $table_row_data["content"] = array( "icon" => $this->elements["Link"]->toString( [ "content" => is_string($picture_file) ? Assets::img($picture_file) : $picture_file->asImg(), "link" => ""]), "filename" => $this->elements["Link"]->toString(array("content" => htmlReady($db["filename"]), "link" => "")), "description" => htmlReady(mila_extern($db["description"], $this->config->getValue("Main", "lengthdesc"))), "mkdate" => strftime($this->config->getValue("Main", "dateformat"), $db["mkdate"]), "filesize" => $db["filesize"] > 1048576 ? round($db["filesize"] / 1048576, 1) . " MB" : round($db["filesize"] / 1024, 1) . " kB", "fullname" => $this->elements["LinkIntern"]->toString( array("content" => htmlReady($db["Vorname"]." ".$db["Nachname"]))) ); $out .= $this->elements["TableRow"]->toString($table_row_data); } return $this->elements["TableHeader"]->toString(array("content" => $out)); }
/** * prints out one item * * @access private * @param string $item_id the items id * @return string one item (html) */ function createTreeItemOutput($item_id) { $html = " <td class=\"printhead\" nowrap align=\"left\" " . "valign=\"bottom\">\n" . $this->getItemHeadPics($item_id) . "\n" . " </td>\n" . " <td class=\"printhead\" nowrap width=\"1\" valign=\"middle\">\n"; if ($this->anchor == $item_id) { $html .= "<a name=\"anchor\">"; } $html .= Assets::img('forumleer.gif'); if ($this->anchor == $item_id) { $html .= "</a>"; } $html .= "\n" . " </td>\n" . " <td class=\"printhead\" align=\"left\" width=\"99%\" " . "nowrap valign=\"bottom\">" . $this->getItemHead($item_id) . " </td>\n" . " </tr>\n" . "</table>\n"; if ($this->itemID == $item_id) { $html .= $this->createTreeItemDetails($item_id); } return $html; }
<? endif; ?></ul> <? if ($commentable) : ?> <div class="writer"> <textarea placeholder="<?php echo _("Kommentiere dies"); ?> " aria-label="<?php echo _("Kommentiere dies"); ?> " id="writer_<?php echo md5(uniqid()); ?> "></textarea> <label title="<?php echo _("Datei hochladen"); ?> " class="uploader"> <input type="file" style="display: none;" multiple> <?php echo Assets::img('ajax-indicator-black.svg', array('class' => "text-bottom uploading", 'width' => "16px", 'height' => "16px")); ?> <?php echo Icon::create('upload', 'clickable')->asImg(['class' => "text-bottom upload"]); ?> </label> </div> <? endif ?> </li>
?> <tr> <? for($i = 0; $i < $indent - 1; $i++) : ?> <td class="blank" width="1%" align="right" nowrap><?php echo $followers[$i + 1] ? Assets::img('forumstrich.gif') : ''; ?> </td> <? endfor; ?> <? if ($indent > 0) : ?> <td class="blank" width="1%" align="right" nowrap><? if (sizeof($roles) == $pos) : echo Assets::img('forumstrich2.gif'); elseif ($pos < sizeof($roles)) : echo Assets::img('forumstrich3.gif'); endif; ?></td> <? endif; ?> <td class="printhead" valign="bottom" colspan="<?php echo 19 - $indent; ?> " height="22" nowrap style="padding-left: 3px" width="<?php echo 99 - $indent; ?> %"> <a name="<?php echo $id; ?> ">
</label> </div> <fieldset class="release_zip_upload"<?php echo $release['repository_download_url'] ? ' style="display: none;"' : ""; ?> > <legend> <?php echo _("ZIP auswählen"); ?> </legend> <label> <a style="cursor: pointer"> <?php echo Assets::img("icons/20/blue/upload"); ?> <input type="file" name="release_file"> </a> </label> </fieldset> <fieldset class="release_internet_repository"<?php echo $release->isNew() || !$release['repository_download_url'] ? ' style="display: none;"' : ""; ?> > <legend> <?php echo _("Git-Branch"); ?> </legend>
<? if ($content_for_layout != ''): ?> <? if (!isset($admin_title)) $admin_title = _('Administration') ?> <section class="contentbox"> <header> <h1> <? if (isset($icon_url)): ?> <?php echo Assets::img($icon_url); ?> <? endif ?> <?php echo htmlReady($title); ?> </h1> </header> <section> <?php echo $content_for_layout; ?> </section> </section> <? endif;
<fieldset data-id="base"> <legend> <?= Assets::img('icons/16/black/home.png', array('class' => 'text-top')) ?> Grunddaten </legend> <div class="text"> <label for="pluginname"> <span title="Manifest: pluginname">Name</span> <dfn> Der Name des Plugins. </dfn> </label> <input required="required" type="text" name="pluginname" id="pluginname" value="<?= $plugin['pluginname'] ?>"> </div> <div class="text"> <label for="author"> Autor <dfn> Der Autor des Plugins. Dieser Wert wird in das Manifest des Plugins übernommen. </dfn> </label> <input type="text" name="author" id="author" value="<?= $plugin['author'] ?>" placeholder="John Doe <*****@*****.**>"> </div> <div class="text">
</a> <? endif ?> <br> <?php echo _("Fügen Sie einzelne Personen mittels @Nutzernamen im Text der Nachricht oder der Kommentare hinzu."); ?> </td> </tr> <tr> <td colspan="2"><hr></td> </tr> <tr onMousedown="$('#context_type').val('course'); $(this).parent().find('.selected').removeClass('selected'); $(this).addClass('selected'); "> <td style="text-align: center;"> <label> <?php echo Assets::img("icons/16/black/seminar", array('class' => "text-bottom")); ?> <br> <?php echo _("Veranstaltung"); ?> </label> </td> <td> <?php echo _("Im Kurs"); ?> <select name="context"> <? foreach (ForumPosting::getMyBlubberCourses() as $course_id) : ?> <? $seminar = new Seminar($course_id) ?> <option value="<?php
<td class="table_row_odd" align="left" width="40%"> <font size="-1"><b> <?php echo $title; ?> </b></font> </td> <td class="table_row_odd" align="left" width="40%"> <? if ($all_open) : ?> <a href="<?php echo URLHelper::getURL('?close_all=1&view=' . $view . '&cms_select=' . $cms_select . '&search_key=' . $search_key); ?> "> <?php echo Assets::img('close_all.png', tooltip2(_('Alle Module schließen'))); ?> </a> <? else : ?> <a href="<?php echo URLHelper::getLink('?open_all=1&view=' . $view . '&cms_select=' . $cms_select . '&search_key=' . $search_key); ?> "> <?php echo Assets::img('open_all.png', tooltip2(_('Alle Module öffnen'))); ?> </a> <? endif?> </td> </tr> </table>
function assets_img($path = null, $tag = false, $properties = null) { return Assets::img($path, $tag, $properties); }
function showThreadLevel ($root_id, $level=0, $lines='') { global $edit_structure_object, $RELATIVE_PATH_RESOURCES, $ActualObjectPerms; // Prepare statement that obtains all children of a given resource $query = "SELECT resource_id FROM resources_objects WHERE parent_id = ? ORDER BY name"; $children_statement = DBManager::get()->prepare($query); //Daten des Objects holen $query = "SELECT resource_id FROM resources_objects WHERE resource_id = ?"; $statement = DBManager::get()->prepare($query); $statement->execute(array($root_id)); $resource_ids = $statement->fetchAll(PDO::FETCH_COLUMN); foreach ($resource_ids as $resource_id) { //Untergeordnete Objekte laden $children_statement->execute(array($resource_id)); $children = $children_statement->fetchAll(PDO::FETCH_COLUMN); $children_statement->closeCursor(); //Struktur merken $weitere = count($children); $this->lines[$level + 1] = $weitere; //Object erstellen $resObject = ResourceObject::Factory($resource_id); //Daten vorbereiten if (!$resObject->getCategoryIconnr()) $icon = Icon::create('folder-full', 'inactive')->asImg(['class' => 'text-top']); else $icon = Assets::img('cont_res' . $resObject->getCategoryIconnr() . '.gif'); if ($_SESSION['resources_data']["move_object"]) { $temp = " <a href=\"".URLHelper::getLink('?target_object='.$resObject->id)."#a\">"; $temp .= Icon::create('arr_2right', 'sort', ['title' => _('Objekt in diese Ebene verschieben')])->asImg(); $temp .= "</a>"; $icon = $temp . $icon; } if ($_SESSION['resources_data']["structure_opens"][$resObject->id]) { $link = URLHelper::getLink('?structure_close=' . $resObject->id . '#a'); $open = 'open'; if ($_SESSION['resources_data']["actual_object"] == $resObject->id) echo '<a name="a"></a>'; } else { $link = URLHelper::getLink('?structure_open=' . $resObject->id . '#a'); $open = 'close'; } if ($resObject->getCategoryName()) $titel=$resObject->getCategoryName().": "; if ($edit_structure_object==$resObject->id) { echo "<a name=\"a\"></a>"; $titel.="<input style=\"font-size: 8pt; width: 100%;\" type=\"text\" size=20 maxlength=255 name=\"change_name\" value=\"".htmlReady($resObject->getName())."\">"; } else { $titel.=htmlReady($resObject->getName()); } //create a link on the titel, too if (($link) && ($edit_structure_object != $resObject->id)) $titel = "<a href=\"$link\" class=\"tree\" >$titel</a>"; if ($resObject->getOwnerLink()) $zusatz=sprintf (_("verantwortlich:") . " <a href=\"%s\"><font color=\"#333399\">%s</font></a>", $resObject->getOwnerLink(), htmlReady($resObject->getOwnerName())); else $zusatz=sprintf (_("verantwortlich:") . " %s", htmlReady($resObject->getOwnerName())); $new = true; $edit .= '<div style="text-align: center"><div class="button-group">'; if ($open == 'open') { //load the perms if (($ActualObjectPerms) && ($ActualObjectPerms->getId() == $resObject->getId())) { $perms = $ActualObjectPerms->getUserPerm(); } else { $ThisObjectPerms = ResourceObjectPerms::Factory($resObject->getId()); $perms = $ThisObjectPerms->getUserPerm(); } if ($edit_structure_object==$resObject->id) { $content.= "<br><textarea name=\"change_description\" rows=3 cols=40>".htmlReady($resObject->getDescription())."</textarea><br>"; $content .= Button::create(_('Übernehmen'), 'send', array('value' => _('Änderungen speichern'))); $content .= LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('?cancel_edit=' . $resObject->id)); $content.= "<input type=\"hidden\" name=\"change_structure_object\" value=\"".$resObject->getId()."\">"; $open="open"; } else { $content=htmlReady($resObject->getDescription()); } if ($_SESSION['resources_data']["move_object"] == $resObject->id) { $content .= '<br>'; $content .= sprintf(_('Dieses Objekt wurde zum Verschieben markiert. ' .'Bitte wählen Sie das Einfügen-Symbol %s, um es in die gewünschte Ebene zu verschieben.'), Icon::create('arr_2right', 'sort', ['title' => _('Klicken Sie auf dieses Symbol, um dieses Objekt in eine andere Ebene zu verschieben')])->asImg(16)); } if ($resObject->getCategoryId()) { $edit .= LinkButton::create(_('Belegung'), URLHelper::getURL('?view=view_schedule&show_object=' . $resObject->id)); } $edit .= LinkButton::create(_('Eigenschaften'), URLHelper::getURL('?view=view_details&show_object=' . $resObject->id)); if ($perms == "admin") { if ($resObject->isRoom()) { $edit .= LinkButton::create(_('Benachrichtigung'), UrlHelper::getScriptURL('dispatch.php/resources/helpers/resource_message/' . $resObject->id), array('data-dialog' => '')); } $edit .= " "; $edit .= LinkButton::create(_('Neues Objekt'), URLHelper::getURL('?create_object=' . $resObject->id)); $edit .= LinkButton::create(_('Neue Ebene'), URLHelper::getURL('?create_hierachie_level=' . $resObject->id)); } $edit.= " "; if ($weitere) { $edit .= LinkButton::create(_('Liste öffnen'), URLHelper::getURL('?open_list=' . $resObject->id)); } if ($_SESSION['resources_data']["move_object"] == $resObject->id) { $edit .= LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('?cancel_move=TRUE')); } else if ($perms == "admin") { $edit .= LinkButton::create(_('Verschieben'), URLHelper::getURL('?pre_move_object=' . $resObject->id)); } if (!$weitere && $perms == "admin" && $resObject->isDeletable()) { $edit .= LinkButton::create(_('Löschen'), '?kill_object=' . $resObject->id); } } $edit .= '</div></div>'; //Daten an Ausgabemodul senden (aus resourcesVisual) $this->showRow($icon, $link, $titel, $zusatz, $level, $lines, $weitere, $new, $open, $content, $edit); //in weitere Ebene abtauchen foreach ($children as $child_id) { if ($_SESSION['resources_data']['structure_opens'][$resource_id]) $this->showThreadLevel($child_id, $level + 1, $lines); } } }
<fieldset data-id="icon"> <legend> <?php echo Assets::img('icons/16/black/plus', array('class' => 'text-top')); ?> <?php echo _('Icon hinzufügen'); ?> </legend> <div class="text"> <label for="icon"><?php echo _('Icon-Datei'); ?> </label> <input type="file" name="file" id="file" accept="image/*"> </div> <div class="checkbox"> <label for="sprite"> <?php echo _('Sprite erzeugen '); ?> <dfn> <?php echo _('TODO: Beschreiben'); ?> </dfn> </label> <input type="checkbox" name="sprite" id="sprite" value="1" <? if ($plugin['sprite']) echo 'checked'; ?>>
<? foreach (MyRealmModel::array_rtrim($group['navigation']) as $key => $nav) : ?> <? if (isset($nav) && $nav->isVisible(true)) : ?> <a href="<?php echo UrlHelper::getLink('seminar_main.php', array('auswahl' => $group['seminar_id'], 'redirect_to' => strtr($nav->getURL(), '?', '&'))); ?> " <?php echo $nav->hasBadgeNumber() ? 'class="badge" data-badge-number="' . intval($nav->getBadgeNumber()) . '"' : ''; ?> > <?php echo $nav->getImage()->asImg(20, $nav->getLinkAttributes()); ?> </a> <? elseif (is_string($key)) : ?> <?php echo Assets::img('blank.gif', array('width' => 20, 'height' => 20)); ?> <? endif ?> <? echo ' ' ?> <? endforeach ?> <? endif ?> </td> <td style="text-align: right"> <? if (in_array($group["user_status"], array("dozent", "tutor"))) : ?> <? $adminmodule = $group["sem_class"]->getModule("admin"); ?> <? if ($adminmodule) : ?> <? $adminnavigation = $adminmodule->getIconNavigation($group['seminar_id'], 0, $GLOBALS['user']->id); ?> <? endif ?> <? if ($adminnavigation) : ?> <a href="<?php echo URLHelper::getLink($adminnavigation->getURL(), array('cid' => $group['seminar_id']));
/** * Get the decorated StudIP-Kings information * @return String */ function getKingsInformations() { $is_king = StudipKing::is_king($this->current_user->user_id, TRUE); $result = ''; foreach ($is_king as $type => $text) { $type = str_replace('_', '-', $type); $result .= Assets::img("crowns/crown-{$type}.png", array('alt' => $text, 'title' => $text)); } return $result ?: null; }
<div id="schedule_icons_<?php echo $element_id; ?> " class="schedule_icons"> <? if (is_array($entry['icons'])) foreach ($entry['icons'] as $icon) : ?> <? if($icon['url']) : ?> <a href="<?php echo $icon['url']; ?> " <?php echo $icon['onClick'] ? 'onClick="STUDIP.Calendar.clickEngine(' . $icon['onClick'] . ', this, event); return false;"' : ''; ?> > <?php echo Assets::img($icon['image'], array('title' => htmlReady($icon['title']), 'alt' => htmlReady($icon['title']))); ?> </a> <? else : ?> <?php echo Assets::img($icon['image'], array('title' => htmlReady($icon['title']))); ?> <? endif; ?> <? endforeach ?> </div>
<br>become visible</a></td> </tr> </table> </td> <td> <table style="background:#ffdddd; border:1px solid black;" cellpadding=4> <tr> <td width="50%" valign="top"> <p><b>I want to be invisible and put up with using restrictions. </b> <p>I note that my personal data - as described and well-founded in the <a href="<?php echo URLHelper::getLink('datenschutz.php'); ?> " class="link-intern" target="_blank">explanation of data protection</a> - is nevertheless accessible for administrators and partly for lecturers of my courses. </tr> <tr> <td width=50% align=center valign=top><a href="<?php echo URLHelper::getLink('?vis_state=no&vis_cmd=apply'); ?> "><?php echo Assets::img('aus.png'); ?> <br>become invisible</a></td> </tr> </table> </td></tr> <tr><td colspan="2"> <p>You are able to change this decision at any time if you look into your personal details. </td></tr> </table>
</h3> <ul class="clean instituteselector"> <? foreach ($this->questionnaire->assignments as $assignment) : ?> <? if ($assignment['range_type'] === "institute") : ?> <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
function info_icons(&$event) { $out = ''; if ($event->havePermission(Event::PERMISSION_READABLE) && (strtolower(get_class($event)) == 'seminarcalendarevent' || strtolower(get_class($event)) == 'seminarevent')) { $out .= Assets::img('images/projectevent-icon.gif', tooltip2(_('Veranstaltungstermin') . ' - ' . $event->getSemName())); } if ($event->getType() == 'PUBLIC') { $out .= Icon::create('visibility-visible', 'clickable', ['title' => $event->toStringAccessibility()])->asImg(16, ["alt" => $event->toStringAccessibility(), "border" => "0"]); } else if ($event->getType() == 'CONFIDENTIAL') { $out .= Icon::create('visibility-invisible', 'clickable', ['title' => $event->toStringAccessibility()])->asImg(16, ["alt" => $event->toStringAccessibility(), "border" => "0"]); } if ($event->getRepeat('rtype') != 'SINGLE') { $out .= Icon::create('refresh', 'clickable', ['title' => $event->toStringRecurrence()])->asImg(16, ["alt" => $event->toStringRecurrence(), "border" => "0"]); } if ($out != '') { $out = "<div align=\"right\">" . $out . "</div>"; } return $out; }
function test_img_should_respect_other_attributes() { $expected = '<img a="1" alt="Logo" b="2" src="' . STATIC_ASSETS_URL . 'images/logo.png">'; $this->assertEquals($expected, Assets::img('logo.png', array('a' => '1', 'b' => 2))); }
</label> </div> </li> <?php } ?> </ol> <script> jQuery(function() { jQuery("#galery_edit").sortable(); }); </script> <div id="new_image_container"> <div> <label> <?php echo Assets::img("icons/20/blue/upload", array('class' => "text-bottom", 'style' => "cursor: pointer;")); ?> <input type="file" name="new_images[]"> </label> <a href="#" onClick="if (jQuery('#new_image_container > div').length > 1) jQuery(this).closest('div').remove(); else jQuery(this).closest('div').find('input[type=file]').val(''); return false;"><?php echo Assets::img("icons/20/blue/trash"); ?> </a> </div> </div> <?php echo \Studip\LinkButton::create(_("Weiteres Bild"), "#", array('onClick' => "jQuery('#new_image_container > div').first().clone().appendTo('#new_image_container').find('input[type=file]').val(''); return false;")); ?> </fieldset>
echo version_compare($GLOBALS['SOFTWARE_VERSION'], "3.4", ">=") ? Icon::create("exclaim", "info")->asImg(20, array('class' => "text-bottom", 'title' => _("Es gibt Veränderungen in diesem Feld."))) : Assets::img("icons/20/black/exclaim", array('class' => "text-bottom", 'title' => _("Es gibt Veränderungen in diesem Feld."))); ?> <? endif ?> </td> <? endif ?> <td style="font-family: MONOSPACE;"> <?php echo htmlReady($field); ?> </td> <? if (!$object->isNew()) : ?> <td><?php echo htmlReady($object[$field]); ?> </td> <? endif ?> <td> <? if (!$overwrite) : ?> <?php echo version_compare($GLOBALS['SOFTWARE_VERSION'], "3.4", ">=") ? Icon::create("decline", "inactive")->asImg(16, array('title' => _("Wert wird nicht überschrieben."))) : Assets::img("icons/16/grey/decline", array('title' => _("Wert wird nicht überschrieben."))); ?> <? else : ?> <?php echo htmlReady($data[$field]); ?> <? endif ?> </td> </tr> <? endforeach ?> </tbody> </table>
<? endif ?> </td> </tr> </noscript> <? endif ?> <? else : ?> <tr> <td colspan="7" style="text-align: center"><?php echo _("Keine Nachrichten"); ?> </td> </tr> <? endif ?> <tr id="reloader" class="more"> <td colspan="7"><?php echo Assets::img("ajax_indicator_small.gif"); ?> </td> </tr> </tbody> </table> </form> <div style="display: none; background-color: rgba(255,255,255, 0.3); padding: 3px; border-radius: 5px; border: thin solid black;" id="move_handle"> <?php echo Icon::create('mail', 'clickable')->asImg(20, ['class' => "text-bottom"]); ?> <span class="title"></span> </div>
?> " method="post"> <?php echo CSRFProtection::tokenTag(); ?> <table class="default scm nohover"> <colgroup> <col> <col width="25%"> </colgroup> <thead class="content_title"> <tr> <td> <?php echo Assets::img('icons/16/grey/infopage.png', array('class' => 'text-top')); ?> <input id="tab_name" type="text" name="tab_name" value="<?php echo htmlReady($scm->tab_name); ?> " placeholder="<?php echo _('Titel der Informationsseite'); ?> " maxlength="20" data-length-hint> <?php echo _('oder wählen Sie hier einen Namen aus:'); ?> <select name="tab_name_template" data-copy-to="input[name=tab_name]">
<br /> <?endif?> <? if(!empty($skype_name)) : ?> <b><?php echo _("Skype:"); ?> </b> <? if($skype_status) : ?> <img src="http://mystatus.skype.com/smallicon/<?php echo htmlReady($skype_name); ?> " style="vertical-align:middle;" width="16" height="16" alt="My status"> <? else :?> <?php echo Assets::img('icon_small_skype.gif', array('style' => 'vertical-align:middle;')); ?> <?endif?> <?php echo htmlReady($skype_name); ?> <br /> <?endif?> <? if(!empty($privadr)) : ?> <b><?php echo _("Adresse (privat):"); ?> </b> <?php echo htmlReady($privadr);
<fieldset data-id="assets"> <legend> <?php echo Assets::img('icons/16/black/files.png', array('class' => 'text-top')); ?> Zusätzliche Dateien </legend> <div class="text"> <label for="migration"> Name der 1. Migration <dfn> Wird dieses Feld ausgefüllt, so wird eine Migration mit dem angegebenen Namen im <em>migrations</em>-Ordner erstellt. </dfn> </label> <input type="text" name="migration" id="migration" value="<?php echo $plugin['migration']; ?> "> </div> <div class="select"> <label for="environment"> Umgebung <dfn> Je nach Umgebung werden andere Einstellungen im Plugin vorgenommen und andere Dateien eingebunden.<br> <span class="light"> <strong>TODO</strong>: Hier könnte durchaus noch viel mehr Text hin.
function testAssetsImgWithClassAndTitleAttribute() { $this->assertEquals('<img title="Datei hochladen" class="text-bottom icon-role-clickable icon-shape-upload" width="20" height="20" src="images/icons/blue/upload.svg" alt="Datei hochladen">', Assets::img('icons/20/blue/upload', array('title' => _("Datei hochladen"), 'class' => "text-bottom"))); }
function showListObject ($resource_id, $admin_buttons=FALSE) { global $edit_structure_object, $RELATIVE_PATH_RESOURCES, $ActualObjectPerms, $SessSemName, $user, $perm, $clipObj, $view_mode, $view; //Object erstellen $resObject = ResourceObject::Factory($resource_id); if (!$resObject->getId()) return FALSE; //link add for special view mode (own window) if ($view_mode == "no_nav") $link_add = "&quick_view=".$view."&quick_view_mode=".$view_mode; if ($this->simple_list){ //create a simple list intead of printhead/printcontent-design $return="<li><a href=\"".URLHelper::getLink('?view=view_details&actual_object='.$resObject->getId().$link_add)."\">".htmlReady($resObject->getName())."</a></li>\n"; print $return; } else { //Daten vorbereiten if (!$resObject->getCategoryIconnr()) $icon = Icon::create('folder-full', 'inactive')->asImg(['class' => 'text-top']); else $icon = Assets::img('cont_res' . $resObject->getCategoryIconnr() . '.gif'); if ($_SESSION['resources_data']["structure_opens"][$resObject->id]) { $link = URLHelper::getLink('?structure_close=' . $resObject->id . $link_add . '#a'); $open = 'open'; if ($_SESSION['resources_data']["actual_object"] == $resObject->id) echo '<a name="a"></a>'; } else { $link = URLHelper::getLink('?structure_open=' . $resObject->id . $link_add . '#a'); $open = 'close'; } $titel=''; if ($resObject->getCategoryName()) $titel=$resObject->getCategoryName().": "; if ($edit_structure_object == $resObject->id) { echo "<a name=\"a\"></a>"; $titel.="<input style=\"font-size: 8pt; width: 100%;\" type=\"text\" size=20 maxlength=255 name=\"change_name\" value=\"".htmlReady($resObject->getName())."\">"; } else { $titel.=htmlReady($resObject->getName()); } //create a link on the titel, too if (($link) && ($edit_structure_object != $resObject->id)) $titel = "<a href=\"$link\" class=\"tree\" >$titel</a>"; if ($resObject->getOwnerLink()) $zusatz=sprintf (_("verantwortlich:")." <a href=\"%s\"><font color=\"#333399\">%s</font></a>", $resObject->getOwnerLink(), htmlReady($resObject->getOwnerName())); else $zusatz=sprintf (_("verantwortlich:")." %s", htmlReady($resObject->getOwnerName())); if ($perm->have_perm('root') || getGlobalPerms($user->id) == "admin"){ $simple_perms = 'admin'; } elseif (ResourcesUserRoomsList::CheckUserResource($resObject->getId())){ $simple_perms = 'tutor'; } else { $simple_perms = false; } //clipboard in/out if ((is_object($clipObj)) && $simple_perms && $resObject->getCategoryId()) if ($clipObj->isInClipboard($resObject->getId())) $zusatz .= " <a href=\"".URLHelper::getLink('?clip_out='.$resObject->getId().$link_add)."\">" . Icon::create('resources+remove', 'clickable', ['title' => _("Aus der Merkliste entfernen")])->asImg(16, ["alt" => _("Aus der Merkliste entfernen")]) . "</a>"; else $zusatz .= " <a href=\"".URLHelper::getLink('?clip_in='.$resObject->getId().$link_add)."\">" . Icon::create('resources+add', 'clickable', ['title' => _("In Merkliste aufnehmen")])->asImg(16, ["alt" => _("In Merkliste aufnehmen")]) . "</a>"; $new=TRUE; $edit .= '<div style="text-align: center"><div class="button-group">'; if ($open == 'open') { // check if the edit buttons for admins shell be shown if ($admin_buttons && ($simple_perms == "admin")) { $edit .= LinkButton::create(_('Neues Objekt'), URLHelper::getURL('?create_object=' . $resObject->id)); if ($resObject->isDeletable()) { $edit .= LinkButton::create(_('Löschen'), URLHelper::getURL('?kill_object=' . $resObject->id)); } } if ($resObject->getCategoryId()) { if (ResourceObject::isScheduleViewAllowed($resObject->getId())) { if ($view_mode == 'no_nav') { $edit .= LinkButton::create(_('Belegung'), URLHelper::getURL('?show_object=' . $resObject->id . '&quick_view=view_schedule&quick_view_mode=' . $view_mode)); } else { $edit .= LinkButton::create(_('Belegung'), URLHelper::getURL('?show_object=' . $resObject->id . '&view=view_schedule')); } } } if ($simple_perms && $resObject->isRoom()) { $edit .= LinkButton::create(_('Benachrichtigung'), UrlHelper::getScriptURL('dispatch.php/resources/helpers/resource_message/' . $resObject->id), array('data-dialog' => '')); } if ($view_mode == 'no_nav') { $edit .= LinkButton::create(_('Eigenschaften'), URLHelper::getURL('?show_object=' . $resObject->id . '&quick_view=view_details&quick_view_mode=' . $view_mode)); } else { $edit .= LinkButton::create(_('Eigenschaften'), URLHelper::getURL('?show_object=' . $resObject->id . '&view=view_details')); } //clipboard in/out if (is_object($clipObj) && $simple_perms && $resObject->getCategoryId()) if ($clipObj->isInClipboard($resObject->getId())) { $edit .= LinkButton::create(_('Aus Merkliste entfernen'), URLHelper::getURL('?clip_out=' .$resObject->getId() . $link_add)); } else { $edit .= LinkButton::create(_('In Merkliste aufnehmen') . ' >', URLHelper::getURL('?clip_in=' .$resObject->getId() . $link_add)); } } $edit .= '</div></div>'; $content = $resObject->getDescription(); //Daten an Ausgabemodul senden $this->showRow($icon, $link, $titel, $zusatz, 0, 0, 0, $new, $open, $content, $edit); } return TRUE; }