| = _('Dateityp') ?> | = $controller->renderSortLInk('materialien/files/', _('Kategorie'), 'category') ?> = $controller->renderSortLink('materialien/files/', _('Zuordnungen'), 'count_relations') ?>= _('Aktionen') ?> | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| = htmlReady($mvv_file->getDisplayName()) ?> | if ($mvv_file->getFiletypes()[0] === 'Link'): ?> = Icon::create('link-extern')->asImg(['class' => 'text-bottom']) ?> = htmlReady($mvv_file->getFilenames()[0]); ?> else: ?> = htmlReady($mvv_file->getFilenames()[0]); ?> endif; ?> | = Icon::create( $mvv_file->extern_visible?'visibility-visible':'visibility-invisible', Icon::ROLE_INFO )->asImg([ 'class' => 'text-bottom', 'title' => $mvv_file->extern_visible?_('sichtbar'):_('unsichtbar') ]) ?> | foreach ($mvv_file->file_refs as $fileref) : ?> = Assets::img('languages/lang_' . mb_strtolower($fileref->file_language) . '.gif') ?> endforeach; ?> | = htmlReady($GLOBALS['MVV_DOCUMENTS']['TYPE']['values'][$mvv_file->type]['name']) ?> | = strftime('%x', $mvv_file->mkdate) ?> | = htmlReady($mvv_file->getFiletypes()[0]) ?> | = htmlReady($GLOBALS['MVV_DOCUMENTS']['CATEGORY']['values'][$mvv_file->category]['name']) ?> | = htmlReady($mvv_file->count_relations) ?> | $actions = ActionMenu::get(); $actions->addLink( $controller->url_for('materialien/files/add_dokument', 'index', $mvv_file->getRangeType()?:0, 0, $mvv_file->mvvfile_id), _('Dokument bearbeiten'), Icon::create('edit'), ['data-dialog' => 'size=auto'] ); $actions->addLink( $controller->url_for('materialien/files/add_ranges_to_file',$mvv_file->mvvfile_id), _('Dokument zuordnen'), Icon::create('file+add'), ['data-dialog' => 'size=auto'] ); foreach ($mvv_file->file_refs as $fileref) { $actions->addLink( $fileref->file_ref->getDownloadURL('force_download'), _('Datei herunterladen') . ' (' . $fileref->file_language . ')', Icon::create('download'), ['target' => '_blank'] ); } $actions->addLink( $controller->url_for("materialien/files/delete_all_dokument/{$mvv_file->mvvfile_id}"), _('Dokument löschen'), Icon::create('trash'), [ 'data-confirm' => _('Wollen Sie das Dokument wirklich entfernen?'), 'data-dialog' => 'size=auto' ] ); echo $actions->render(); ?> |
| $pagination = $GLOBALS['template_factory']->open('shared/pagechooser'); $pagination->clear_attributes(); $pagination->set_attribute('perPage', MVVController::$items_per_page); $pagination->set_attribute('num_postings', $count); $pagination->set_attribute('page', $page); // ARGH! $page_link = reset(explode('?', $controller->url_for('/index'))) . '?page_files=%s'; $pagination->set_attribute('pagelink', $page_link); echo $pagination->render("shared/pagechooser"); ?> | |||||||||