本文整理汇总了PHP中Studip\LinkButton::create方法的典型用法代码示例。如果您正苦于以下问题:PHP LinkButton::create方法的具体用法?PHP LinkButton::create怎么用?PHP LinkButton::create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Studip\LinkButton
的用法示例。
在下文中一共展示了LinkButton::create方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _
</li>
<? endforeach ?>
</ul>
<? else : ?>
<?php
echo _("alle Teilnehmer");
?>
<? endif ?>
</td>
</tr>
</tbody>
</table>
<div style="text-align: center;" data-dialog-button>
<div class="button-group">
<? if (!$dates_locked && $GLOBALS['perm']->have_studip_perm("tutor", $_SESSION['SessionSeminar'])) : ?>
<?php
echo \Studip\LinkButton::create(_("Termin bearbeiten"), URLHelper::getUrl('dispatch.php/course/timesrooms', array('contentbox_open' => $date['metadate_id'], 'singleDateID' => $date->getId())));
?>
<? endif ?>
<? if (!$cancelled_dates_locked && $GLOBALS['perm']->have_studip_perm("tutor", $_SESSION['SessionSeminar'])) : ?>
<?php
echo \Studip\LinkButton::create(_("Ausfallen lassen"), URLHelper::getURL("dispatch.php/course/cancel_dates", array('termin_id' => $date->getId())), array('data-dialog' => ''));
?>
<? endif ?>
</div>
</div>
<?php
$sidebar = Sidebar::get();
$sidebar->setImage('sidebar/date-sidebar.png');
示例2: _
?>
<?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"),
示例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: 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));
//.........这里部分代码省略.........
示例5: jQuery
</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>
示例6: 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";
?>
示例7: getNewModuleLink
/**
* get new module link
*
* returns link to create a new module if allowed
* @access public
* @return string returns html-code or false
*/
function getNewModuleLink()
{
global $connected_cms, $auth;
$output = "\n";
// echo "NML.";
if (Request::get("module_type_" . $this->cms_type) != "") {
// echo "TYPE.";
if ($connected_cms[$this->cms_type]->user->category == "") {
// echo "NoCat.";
$connected_cms[$this->cms_type]->user->newUserCategory();
if ($connected_cms[$this->cms_type]->user->category == false) {
return $output;
}
}
$output = " " . LinkButton::create(_('Neu anlegen'), URLHelper::getURL($this->cms_link . "?" . "client_id=" . $connected_cms[$this->cms_type]->getClientId() . "&cms_select=" . $this->cms_type . "&ref_id=" . $connected_cms[$this->cms_type]->user->category . $auth_data . "&type=" . Request::option("module_type_" . $this->cms_type) . "&target=new"), array('target' => '_blank'));
// echo $output . ".";
}
$user_crs_role = $connected_cms[$this->cms_type]->crs_roles[$auth->auth["perm"]];
if ($user_crs_role == "admin") {
return $output;
} else {
return false;
}
}
示例8: array
?>
<? endif; ?>
</table>
<div style="text-align: center;" data-dialog-button>
<?php
echo Button::create(_('Speichern'), 'store', array('title' => _('Termin speichern')));
?>
<? if (!$event->isNew()) : ?>
<? if ($event->getRecurrence('rtype') != 'SINGLE') : ?>
<?php
echo LinkButton::create(_('Aus Serie löschen'), $controller->url_for('calendar/single/delete_recurrence/' . implode('/', $event->getId()) . '/' . $atime));
?>
<? endif; ?>
<?php
echo LinkButton::create(_('Löschen'), $controller->url_for('calendar/single/delete/' . implode('/', $event->getId())));
?>
<? endif; ?>
<? if (!Request::isXhr()) : ?>
<?php
echo LinkButton::create(_('Abbrechen'), $controller->url_for('calendar/single/' . $last_view, array($event->getStart())));
?>
<? endif; ?>
</div>
</form>
<script>
jQuery('#start-date').datepicker();
jQuery('#end-date').datepicker();
jQuery('#exp-date').datepicker();
jQuery('#exc-date').datepicker();
</script>
示例9: htmlReady
echo htmlReady($seminar->getName());
?>
</a>
</td>
<td width="40%" class="schedule-adminbind">
<? $cycles = CalendarScheduleModel::getSeminarCycleId($seminar, $start, $end, $day) ?>
<? foreach ($cycles as $cycle) : ?>
<span><?php
echo $cycle->toString();
?>
</span>
<? $visible = CalendarScheduleModel::isSeminarVisible($seminar->getId(), $cycle->getMetadateId()) ?>
<?php
echo LinkButton::create(_('Ausblenden'), $controller->url_for('calendar/schedule/adminbind/' . $seminar->getId() . '/' . $cycle->getMetadateId() . '/0'), array('id' => $seminar->getId() . '_' . $cycle->getMetadateId() . '_hide', 'onclick' => "STUDIP.Schedule.instSemUnbind('" . $seminar->getId() . "','" . $cycle->getMetadateId() . "'); return false;", 'style' => $visible ? '' : 'display: none'));
?>
<?php
echo LinkButton::create(_('Einblenden'), $controller->url_for('calendar/schedule/adminbind/' . $seminar->getId() . '/' . $cycle->getMetadateId() . '/1'), array('id' => $seminar->getId() . '_' . $cycle->getMetadateId() . '_show', 'onclick' => "STUDIP.Schedule.instSemBind('" . $seminar->getId() . "','" . $cycle->getMetadateId() . "'); return false;", 'style' => $visible ? 'display: none' : ''));
?>
<br>
<? endforeach ?>
</td>
</tr>
<? endforeach ?>
</tbody>
</table>
<br>
示例10: array
<div id="tour_buttons">
<table cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: center">
<div id="tour_editor" style="display: none">
<?php
echo LinkButton::create(_('Neuer Schritt'), '', array('id' => 'tour_new_step', 'data-dialog' => 'size=auto;reload-on-close'));
?>
<?php
echo LinkButton::create(_('Schritt bearbeiten'), '', array('id' => 'tour_edit', 'data-dialog' => 'size=auto;reload-on-close'));
?>
<?php
echo Button::create(_('Schritt löschen'), 'tour_delete_step', array('id' => 'tour_delete_step'));
?>
<?php
echo LinkButton::create(_('Seitenwechsel'), '', array('id' => 'tour_new_page', 'data-dialog' => 'size=auto'));
?>
<br>
<?php
echo Button::create(_('Klick setzen (weiter)'), 'tour_select_action_next', array('id' => 'tour_select_action_next'));
?>
<?php
echo Button::create(_('Klick setzen (zurück)'), 'tour_select_action_prev', array('id' => 'tour_select_action_prev'));
?>
<?php
echo Button::create(_('Position wählen'), 'tour_select_css', array('id' => 'tour_select_css'));
?>
<?php
echo Button::create(_('Keine Position'), 'tour_no_css', array('id' => 'tour_no_css'));
?>
</div>
示例11: _
<?php
echo CSRFProtection::tokenTag();
?>
<div class="search_box" align="center">
<input name="searchtext" aria-label="<?php
echo _("Geben Sie einen Suchbegriff für Studiengruppen ein.");
?>
" type="text" size="45" style="vertical-align: middle;" value="<?php
echo htmlReady($search);
?>
" />
<?php
echo Button::create(_('Suchen'));
?>
<?php
echo LinkButton::create(_('Zurücksetzen'), URLHelper::getURL('', array('action' => 'deny')), array('title' => _('Suche zurücksetzen')));
?>
</div>
</form>
<br>
<?php
echo $this->render_partial("course/studygroup/_feedback");
?>
<? if ($anzahl >= 1):?>
<?php
echo $this->render_partial("studygroup/_overview", array('base_url' => $base_url, 'link' => $link));
?>
<? endif;?>
示例12: _
echo _("Veranstaltung") . '<br>',
LinkButton::create(_("Bearbeiten"), $this->url_for('course/basicdata/view/' . $seminar_id));
} elseif ($this instanceof Course_RoomRequestsController){
echo _("Raumanfragen") . '<br>',
LinkButton::create(_("Bearbeiten"), $this->url_for('index/' . $seminar_id));
} elseif ($this instanceof Course_PlusController){
echo _("Inhaltselemente") . '<br>',
LinkButton::create(_("Bearbeiten"), $this->url_for('course/plus/index/' . $seminar_id));
} elseif ($this instanceof Course_AdmissionController){
echo _("Zugangsberechtigungen") . '<br>',
LinkButton::create(_("Bearbeiten"), $this->url_for('course/admission/index/' . $seminar_id));
}
break;
default:
echo _(PageLayout::getTitle())."<br>";
echo LinkButton::create(_("Bearbeiten"), URLHelper::getLink('', array("range_id" => $seminar_id)));
}
echo "</tr>";
}
//more Options for visibility changing
if ($i_page == "admin_visibility.php" || $i_page == "admin_aux.php" || $i_page == "admin_lock.php") {
?>
<tr class="table_footer">
<td colspan="<?php
echo $show_rooms_check == 'on' ? 7 : 6;
?>
" align="right">
<?php
echo _("Änderungen");
示例13: _
<?php
echo CSRFProtection::tokenTag();
?>
<?php
echo _('Suche nach Plugins:');
?>
<input name="search" type="text" size="20" value="<?php
echo htmlReady($search);
?>
">
<?php
echo Button::create(_('Suchen'), 'suchen', array('title' => _('Suche starten')));
?>
<?php
echo LinkButton::create(_('Zurücksetzen'), $controller->url_for('admin/plugin/search'), array('title' => _('Suche zurücksetzen')));
?>
</form>
<h3>
<? if ($search === NULL): ?>
<?php
echo _('Empfohlene Plugins');
?>
<? else: ?>
<?php
echo _('Suchergebnisse');
?>
<? endif ?>
</h3>
示例14: display_folder_body
/**
* Displays the body of a folder including the description, changeform, subfolder and files
*
*/
function display_folder_body($folder_id, $open, $change, $move, $upload, $refresh=FALSE, $filelink="", $anchor_id, $level = 0) {
global $_fullname_sql, $SessionSeminar, $SemUserStatus, $SessSemName, $user, $perm, $rechte, $countfolder;
$db = DBManager::get();
//Einbinden einer Klasse, die Informationen über den ganzen Baum enthält
$folder_tree = TreeAbstract::GetInstance('StudipDocumentTree', array('range_id' => $SessionSeminar));
//Hole alle Informationen, die es über $folder_id gibt
$query = "SELECT ". $_fullname_sql['full'] ." AS fullname , username, folder_id, a.range_id, a.user_id, name, a.description, a.mkdate, a.chdate FROM folder a LEFT JOIN auth_user_md5 USING (user_id) LEFT JOIN user_info USING (user_id) WHERE a.folder_id = '$folder_id' ORDER BY a.name, a.chdate";
$result = $db->query($query)->fetch();
$document_count = doc_count($folder_id);
$super_folder = $folder_tree->getNextSuperFolder($folder_id);
$is_issue_folder = ((count($folder_tree->getParents($folder_id)) > 1) && IssueDB::isIssue($result["range_id"]));
if ($is_issue_folder) {
$dates_for_issue = IssueDB::getDatesforIssue($result['range_id']);
}
print "<table cellpadding=0 border=0 cellspacing=0 width=\"100%\">";
//Ausgabe der Optionen zu dem Ordner mit Beschreibung, Knöpfen und PiPaPo
print "<tr>";
if ((($document_count > 0) || ($folder_tree->hasKids($folder_id))) && ($folder_tree->isReadable($folder_id))) {
print "<td style=\"background-image: url(".Assets::image_path('datatree_grau.gif') . "); background-repeat: repeat-y;\">";
print Assets::img('datatree_grau.gif');
print "</td>";
} else {
print "<td class=\"printcontent\"> </td>";
}
print "<td width=100% class=\"printcontent\" style=\"font-align: center\">";
$content='';
if ($super_folder){
$content .= Icon::create('lock-locked', 'inactive')->asImg(['class' => 'texttop']) . ' '
. sprintf(_("Dieser Ordner ist nicht zugänglich, da der übergeordnete Ordner \"%s\" nicht lesbar oder nicht sichtbar ist!"), htmlReady($folder_tree->getValue($super_folder,'name')))
. '<hr>';
}
if ($folder_tree->isExerciseFolder($folder_id)){
$content .= Icon::create('edit', 'inactive')->asImg(['class' => 'texttop']) . ' '
. _("Dieser Ordner ist ein Hausaufgabenordner. Es können nur Dateien eingestellt werden.")
. (!$rechte ? _("Sie selbst haben folgende Dateien in diesen Ordner eingestellt:")
. '<br><b>' . htmlReady(join('; ', get_user_documents_in_folder($folder_id, $GLOBALS['user']->id))).'</b>' : '')
. '<hr>';
}
if ($is_issue_folder) {
$dates = array();
foreach ($dates_for_issue as $date) {
$dates[] = strftime("%x", $date['date']);
}
$content .= _("Dieser Ordner ist ein themenbezogener Dateiordner.");
if(count($dates)){
$content .= ' ' ._("Folgende Termine sind diesem Thema zugeordnet:")
. '<br><b>' . htmlReady(join('; ', $dates)).'</b>';
}
$content .= '<hr>';
}
$is_group_folder = $folder_tree->isGroupFolder($folder_id);
if ($is_group_folder){
$content .= sprintf(
_('Dieser Ordner gehört der Gruppe <b>%s</b>. Nur Mitglieder dieser Gruppe können diesen Ordner sehen.'
. ' Dieser Ordner kann nicht verschoben oder kopiert werden.'),
htmlReady(GetStatusgruppeName($result["range_id"]))
) . '<hr>';
}
//Contentbereich erstellen
if ($change == $folder_id) { //Aenderungsmodus, zweiter Teil
$content .= '<textarea name="change_description"'
. ' style="width:98%" class="add_toolbar wysiwyg"'
. ' aria-label="Beschreibung des Ordners eingeben"'
. ' rows="3">'
. formatReady($result["description"])
. '</textarea>';
if($rechte){
$content .= '<div>';
if ($folder_tree->permissions_activated){
$content.= "\n<label><input style=\"vertical-align:middle\" type=\"checkbox\" value=\"1\" ".($folder_tree->isReadable($folder_id) ? "CHECKED" : "" ) . " name=\"perm_read\"> ";
$content.= '<b>r</b> - ' . _("Lesen (Dateien können heruntergeladen werden)");
$content.= "</label>\n<br><label><input style=\"vertical-align:middle\" type=\"checkbox\" value=\"1\" ".($folder_tree->isWritable($folder_id) ? "CHECKED" : "" ) . " name=\"perm_write\"> ";
$content.= '<b>w</b> - ' . _("Schreiben (Dateien können heraufgeladen werden)");
$content.= "</label>\n<br><label><input style=\"vertical-align:middle\" type=\"checkbox\" value=\"1\" ".($folder_tree->isExecutable($folder_id) ? "CHECKED" : "" ) . " name=\"perm_exec\"> ";
$content.= '<b>x</b> - ' . _("Sichtbarkeit (Ordner wird angezeigt)") . '</label>';
}
if($level == 0 && $folder_tree->entity_type == 'sem'){
$content .= "\n<br><label><input style=\"vertical-align:middle\" type=\"checkbox\" value=\"1\" ".($folder_tree->checkCreateFolder($folder_id) ? "CHECKED" : "" ) . " name=\"perm_folder\"> ";
$content .= '<b>f</b> - ' . _("Ordner erstellen (Alle Nutzer können Ordner erstellen)") . '</label>';
}
$content .= '</div>';
}
$content .= '<div class="button-group">';
$content .= Button::createAccept(_("Übernehmen"));
$content .= Button::createCancel(_("Abbrechen"), "cancel");
$content .= '</div>';
$content.= "\n<input type=\"hidden\" name=\"open\" value=\"".$folder_id."_sc_\">";
$content.="\n<input type=\"hidden\" name=\"type\" value=\"1\">";
//.........这里部分代码省略.........
示例15: 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>
<?
}