本文整理汇总了PHP中Studip\LinkButton类的典型用法代码示例。如果您正苦于以下问题:PHP LinkButton类的具体用法?PHP LinkButton怎么用?PHP LinkButton使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了LinkButton类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _
<?php
echo _("Dateipfad:");
?>
<br>
<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\'))'));
?>
<?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>
</div>
</td>
示例2: htmlReady
<?php
echo htmlReady($info['description']);
?>
<? else: ?>
<?php
echo _("Keine Beschreibung vorhanden.");
?>
<? endif ?>
<? endif ?>
</strong>
</div>
<!-- inhaltlöschenbutton -->
<? if ($val['type'] == 'plugin' && method_exists($plugin, 'deleteContent')) echo LinkButton::create(_('Inhalte löschen'), URLHelper::getURL("?deleteContent=true&name=" . $key), array('style' => 'float:right; z-index: 1;')); ?>
<? if ($val['type'] == 'modul' && $studip_module instanceOf StudipModule && method_exists($studip_module, 'deleteContent')) echo LinkButton::create(_('Inhalte löschen'), URLHelper::getURL("?deleteContent=true&name=" . $key), array('style' => 'float:right; z-index: 1;')); ?>
</div>
<? if ($_SESSION['plus']['View'] == 'openall' || !isset($_SESSION['plus'])) { ?>
<div class="plus_expert">
<div class="screenshot_holder">
<? if (isset($info['screenshot']) || isset($info['screenshots'])) :
if(isset($info['screenshots'])){
$title = $info['screenshots']['pictures'][0]['title'];
$source = $info['screenshots']['path'].'/'.$info['screenshots']['pictures'][0]['source'];
} else {
$fileext = end(explode(".", $info['screenshot']));
$title = str_replace("_"," ",basename($info['screenshot'], ".".$fileext));
示例3:
$problems[$problems_found] = $msgText;
$problems_found++;
}
}
if ($problems_found > 1) {
$moreProbs = " (Beachten Sie bitte die angegebene Reihenfolge!)";
}
if ($problems_found) {
?>
<table width="100%" border=0 cellpadding=0 cellspacing=0>
<tr>
<td class="blank" colspan=2>
<?= MessageBox::info(_("Das Anlegen einer Veranstaltung ist leider zu diesem Zeitpunkt noch nicht möglich,
da zunächst die folgenden Voraussetzungen geschaffen werden müssen.".$moreProbs), $problems); ?>
</td>
</tr>
<tr <? $cssSw->switchClass() ?>>
<td class="<? echo $cssSw->getClass() ?>" align="center" colspan=2>
<?= LinkButton::create(_('Aktualisieren'), URLHelper::getURL(''))?>
</td>
</tr>
<tr>
<td class="blank" colspan=2> </td>
</tr>
</table>
<?php
return false;
}
示例4: createFormNew
/**
* creates the html for the create new group options
*
* @access private
* @param string $show
* @return string the html
*/
function createFormNew($show = ARRANGMENT_BLOCK)
{
$table = new HTML("table");
$table->addAttr("width", "100%");
$table->addAttr("class", "blank");
$table->addAttr("border", "0");
$table->addAttr("cellpadding", "6");
$table->addAttr("cellspacing", "0");
$table->addAttr("div", "left");
$tr = new HTML("tr");
$td = new HTML("td");
$td->addAttr("class", "blank");
$td->addAttr("align", "center");
$td->addContent(new HTMLempty("br"));
# $tr->addContent ($td);
# $table->addContent ($tr);
$tr = new HTML("tr");
$td = new HTML("td");
$td->addAttr("class", "content_body");
# $td->addAttr ("class","steelgrau");
$td->addAttr("align", "center");
$img = new HTMLempty("img");
$img->addAttr("src", Assets::image_path("blank.gif"));
$img->addAttr("width", "30");
$img->addAttr("height", "1");
$img->addAttr("alt", "");
# $td->addContent ($img);
# $td->addContent (new HTMLempty ("br"));
$group_selection = _("Gruppierungsblock") . " " . Button::create(_('Erstellen'), 'cmd[AddGroup]', array('title' => _('Einen neuen Gruppierungsblock erstellen')));
$qgroup_selection = _("Fragenblock mit") . " " . $this->createTemplateSelection() . Button::create(_('Erstellen'), 'cmd[AddQGroup]', array('title' => _('Einen neuen Fragenblock erstellen')));
$seperator = " | ";
switch ($show) {
case ARRANGMENT_BLOCK:
$td->addHTMLContent($group_selection);
break;
case QUESTION_BLOCK:
$td->addHTMLContent($qgroup_selection);
break;
case "both":
$td->addHTMLContent($group_selection . $seperator . $qgroup_selection);
break;
}
// abort-button
$child = $this->tree->eval->getNextChild();
$number_of_childs = $this->tree->eval->getNumberChildren();
if ($number_of_childs == 1 && $this->itemID == ROOT_BLOCK && $this->tree->eval->getTitle() == _("Neue Evaluation") && $this->tree->eval->getText() == "" && $child && $child->getTitle() == _("Erster Gruppierungsblock") && $child->getChildren() == NULL && $child->getText == "") {
$cancel = $seperator . " ";
$a_content = LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL(EVAL_FILE_ADMIN . "?evalID=" . $this->tree->eval->getObjectID() . "&abort_creation_button=1"), array('title' => _("Erstellung einer Evaluation abbrechen")));
$cancel .= $a_content;
$td->addHTMLContent($cancel);
}
$tr->addContent($td);
$table->addContent($tr);
return $table->createContent();
}
示例5: _
?>
<?php
echo _("Dazu einen Kommentar schreiben");
?>
</a>
<? endif ?>
</div>
</div>
</li>
<? endforeach ?>
</ul>
<div style="text-align: center;">
<? if ($material['host_id'] || $material['user_id'] !== $GLOBALS['user']->id) : ?>
<?php
echo \Studip\LinkButton::create(_("Review schreiben"), PluginEngine::getLink($plugin, array(), 'market/review/' . $material->getId()), array('data-dialog' => 1));
?>
<? endif ?>
</div>
</div>
<?
Sidebar::Get()->setImage($plugin->getPluginURL()."/assets/sidebar-service.png");
if ($GLOBALS['perm']->have_perm("autor")) {
$actions = new ActionsWidget();
$actions->addLink(
_("Eigenes Lernmaterial hochladen"),
PluginEngine::getURL($plugin, array(), "mymaterial/edit"),
Icon::create("add", "clickable"),
示例6:
// Switching for the is_default option. Read the comment above.
if ($configuration["is_default"]) {
echo '<a href="' . URLHelper::getLink('?com=unset_default&config_id=' . $configuration['id']) . '#anker">';
echo Icon::create('checkbox-checked', 'clickable')->asImg(['class' => 'text-top', 'title' => _("Standard entziehen")]);
} else {
echo '<a href="' . URLHelper::getLink('?com=set_default&config_id=' . $configuration['id']) . '#anker">';
echo Icon::create('checkbox-unchecked', 'clickable')->asImg(['class' => 'text-top', 'title' => _("Standard zuweisen")]);
}
echo "</a>\n</td>\n";
echo "<td" . $css_switcher_2->getFullClass() . " align=\"center\" width=\"5%\">\n";
echo '<a href="' . URLHelper::getLink('?com=delete_sec&config_id=' . $configuration['id']) . '#anker">';
echo Icon::create('trash', 'clickable')->asImg(['class' => 'text-top', 'title' => _("Konfiguration löschen")]) . "</a>\n</td>\n";
echo "<td" . $css_switcher_2->getFullClass() . " align=\"right\" width=\"20%\" ";
echo ">\n";
echo LinkButton::create(_("Konfiguration bearbeiten"), URLHelper::getURL('?com=edit&mod=' . $module_type['module'] . '&config_id=' . $configuration['id']));
echo "</td></tr>\n";
if (Request::option('com') == 'upload_config' && Request::option('config_id') == $configuration['id']) {
$template = $GLOBALS['template_factory']->open('extern/upload_form');
$template->set_attribute('class', $css_switcher_2->getFullClass());
$template->set_attribute('module', $module_type['module']);
$template->set_attribute('config_id', $configuration['id']);
$template->set_attribute('max_filesize', 1024 * 100); // currently 100kb
echo $template->render();
}
}
$css_switcher_2->resetClass();
echo "</table>\n";
示例7: array
echo $className;
?>
"/>
<span <?php
echo $disabled ? 'style="text-decoration:line-through"' : '';
?>
><?php
echo $classDetail['name'];
?>
</span>
<?php
echo Icon::create('question-circle', 'clickable', ['title' => $classDetail['description']])->asImg();
?>
</label>
</div>
<br/>
<?php
}
?>
<div class="submit_wrapper" data-dialog-button>
<?php
echo CSRFProtection::tokenTag();
?>
<?php
echo Button::create(_('Weiter >>'), 'configure', array('onclick' => "return \$('input[name=ruletype]:checked').val() ? STUDIP.Admission.configureRule(\$('input[name=ruletype]:checked').val(), '" . $controller->url_for('admission/rule/configure') . "') : false"));
?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admission/courseset/configure'), array('onclick' => "STUDIP.Admission.closeDialog('configurerule'); return false;"));
?>
</div>
</form>
示例8: getEditItemContent
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> ";
$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> \n <input type=\"radio\" name=\"edit_visibility\" value=\"1\" style=\"vertical-align:bottom\" " . ($this->tree->tree_data[$this->edit_item_id]['visibility'] ? "checked" : "") . ">" . _("Ja") . " <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\"> </td></tr><tr><td class=\"table_row_even\" align=\"center\">" . Button::createAccept(_('Speichern'), array('title' => _("Einstellungen speichern"))) . " " . 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;
}
示例9: printf
echo "<tr><td" . $css_switcher->getFullClass() . ">\n";
echo "<blockquote>\n<font size=\"2\"><br>";
echo _("Der unten aufgeführte Textblock ermöglicht Ihnen den Zugriff auf die Stud.IP-Remote-Include-Schnittstelle (SRI).");
echo "</font><blockquote>\n<b><pre>" . $info["sri"] . "</pre></b></blockquote>\n<font size=\"2\">";
echo _("Kopieren Sie dieses Code-Schnipsel in eine beliebige Stelle im HTML-Quelltext einer Seite Ihrer Website.");
echo "\n<br>";
echo _("Durch eine spezielle Art des Seitenaufrufs, wird an dieser Stelle die Ausgabe des Moduls eingefügt.");
echo "<br></font></blockquote>\n</td></tr>\n";
echo "<tr><td" . $css_switcher->getFullClass() . "> </td></tr>\n";
echo "<tr><td class=\"" . $css_switcher->getHeaderClass() . "\" height=\"20\" valign=\"bottom\">\n";
echo "<font size=\"2\"><b> " . _("Link zur SRI-Schnittstelle") . "</b></font></td></tr>\n";
echo "<tr><td" . $css_switcher->getFullClass() . ">\n";
echo "<blockquote>\n<font size=\"2\"><br>";
echo _("Über diesen Link erreichen Sie die SRI-Schnittstelle:");
echo "<blockquote><b>" . $info["link_sri"] . "</b></blockquote>\n";
printf (_("Ersetzen Sie %s durch die URL der Seite, in die Sie die Ausgabe des Moduls einfügen wollen. Diese Seite muss obigen Code-Schnipsel enthalten."),
_("URL_DER_INCLUDE_SEITE"));
echo "<br></font></blockquote>\n</td></tr>\n";
}
}
$css_switcher->resetClass();
$css_switcher->switchClass();
echo "<tr><td" . $css_switcher->getFullClass() . " align=\"center\"> <br>\n";
echo LinkButton::create('<< ' . _('Zurück'), URLHelper::getURL('', array('list' => TRUE)));
echo "</a><br> </td></tr>\n";
?>
示例10: createReportButton
function createReportButton($eval)
{
return LinkButton::create(_('Auswertung'), URLHelper::getURL("eval_summary.php?eval_id=" . $eval->getObjectID()), array('title' => _('Auswertung')));
}
示例11: showScheduleList
function showScheduleList($print_view = false) {
global $cssSw, $view_mode;
//select view to jump from the schedule
if ($this->used_view == "openobject_schedule")
$view = "openobject_assign";
else
$view = "edit_object_assign";
?>
<table border=0 celpadding=2 cellspacing=0 width="99%" align="center">
<tr>
<td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">
</td>
<td class="<? echo $cssSw->getClass() ?>" width="96%" align="center">
<b>
<?
if ($print_view){
$room = ResourceObject::Factory($this->resource_id);
echo htmlReady($room->getName().' - ' .$this->semester['name']);
} else {
if ($this->semester){
printf(_("Anzeige des Semesters: %s"), htmlReady($this->semester['name']));
} else {
echo _("Anzeige des Zeitraums:");
}
}
echo '<br>' . date ("d.m.Y", $this->start_time), " - ", date ("d.m.Y", $this->end_time);
?>
</b>
</td>
</tr>
<tr>
<td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">
</td>
<td class="<? echo $cssSw->getClass() ?>" width="96%">
<?
$assign_events=new AssignEventList ($this->start_time, $this->end_time, $this->resource_id, '', '', TRUE);
echo "<br><font size=-1>"._("Anzahl der Belegungen in diesem Zeitraum:")." ", $assign_events->numberOfEvents()."</font>";
echo "<br><br>";
$num = 1;
while ($event = $assign_events->nextEvent()) {
$add_info = '';
if ($event->getOwnerType() == 'date') {
$sem_obj = Seminar::GetInstance(Seminar::GetSemIdByDateId($event->getAssignUserId()));
$date = new SingleDate($event->getAssignUserId());
$dozenten = array_intersect_key($sem_obj->getMembers('dozent'), array_flip($date->getRelatedPersons()));
$sem_doz_names = array_map(create_function('$a', 'return $a["Nachname"];'), array_slice($dozenten,0,3, true));
$add_info = '(' . join(', ', $sem_doz_names) . ')';
}
if (!$print_view){
echo LinkButton::create(_('Eigenschaften'), URLHelper::getURL('?quick_view='
. $view . '&quick_view_mode=' . $quick_view_mode . '&edit_assign_object=' . $event->getAssignId()));
} else {
echo '<font size=-1>' . sprintf("%02d", $num++) . '.';
}
printf (" "
._("Belegung ist von <b>%s</b> bis <b>%s</b>, belegt von <b>%s</b>")
."</font><br>", strftime("%A, %d.%m.%Y %H:%M", $event->getBegin())
, strftime("%A, %d.%m.%Y %H:%M", $event->getEnd())
, $event->getName(get_config('RESOURCES_SCHEDULE_EXPLAIN_USER_NAME')) . $add_info);
}
?>
</td>
</tr>
</table>
</form>
<br><br>
<?
}
示例12: htmlReady
>
<?php
echo htmlReady($child['name']);
?>
</option>
<? endforeach ?>
<? endif ?>
<? endforeach ?>
</select>
<p>
<?php
echo Button::create(_('Übernehmen'), 'save', array('title' => _('Einstellungen speichern')));
?>
<?php
echo LinkButton::create('<< ' . _("Zurück"), $controller->url_for('admin/plugin'), array('title' => _('Zurück zur Plugin-Verwaltung')));
?>
</p>
</form>
<?
$infobox_content = array(
array(
'kategorie' => _('Aktionen:'),
'eintrag' => array(
array(
'icon' => Icon::create('schedule', 'clickable'),
'text' => '<a href="'.$controller->url_for('admin/plugin').'">'._('Verwaltung von Plugins').'</a>'
)
)
), array(
示例13: _
<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; ?>
示例14: testCreateWithInsaneArguments
function testCreateWithInsaneArguments()
{
$this->assertEquals('<a class="button" href="http://example.net?m=&m=" mad="<S>tu"ff" tabindex="0">>ok<</a>', '' . LinkButton::create('>ok<', 'http://example.net?m=&m=', array('mad' => '<S>tu"ff')));
}
示例15: showListObject
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));
//.........这里部分代码省略.........