本文整理汇总了PHP中Assets::img方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::img方法的具体用法?PHP Assets::img怎么用?PHP Assets::img使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::img方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_js_import
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>
<?
}
示例2: if
<? 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();
示例3: _
<?
# 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>
示例4: toStringPreview
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" => "")),
//.........这里部分代码省略.........
示例5: createTreeItemOutput
/**
* 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;
}
示例6: if
<? 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>
示例7: for
?>
<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;
?>
">
示例8: _
</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>
示例9: if
<? 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;
示例10: array
<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 <john.doe@example.org>">
</div>
<div class="text">
示例11: _
</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
示例12: if
<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>
示例13: assets_img
function assets_img($path = null, $tag = false, $properties = null)
{
return Assets::img($path, $tag, $properties);
}
示例14: showThreadLevel
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));
//.........这里部分代码省略.........
示例15: array
<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'; ?>>