small display improvements

This commit is contained in:
Dennis Eichhorn 2022-03-29 21:30:17 +02:00
parent 01ba242489
commit ae4b0ae8a6
3 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ use phpOMS\Utils\IO\Csv\CsvSettings;
<div class="tab-content">
<input type="radio" id="media-c-tab-1" name="tabular-1" checked>
<div class="tab">
<div class="slider">
<table class="default">
<?php
$f = \fopen(($this->media->isAbsolute ? '' : __DIR__ . '/../../../../../../') . $this->media->getPath(), 'r');
@ -40,6 +41,7 @@ use phpOMS\Utils\IO\Csv\CsvSettings;
\fclose($f);
?>
</table>
</div>
</div>
<input type="radio" id="media-c-tab-2" name="tabular-1">
<div class="tab">

View File

@ -26,6 +26,7 @@ $next = empty($this->media)
?>
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media', 'Media'); ?><i class="fa fa-download floatRight download btn"></i></div>
<div class="slider">
<table class="default">
<thead>
<td>
@ -56,6 +57,7 @@ $next = empty($this->media)
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
<div class="portlet-foot">
<a tabindex="0" class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
<a tabindex="0" class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>

View File

@ -49,6 +49,7 @@ Autoloader::addPath(__DIR__ . '/../../../../../../Resources/');
$data = \ob_get_clean();
$csv = \explode("\n", \trim($data, "\n"));
?>
<div class="slider">
<table class="default">
<?php
foreach ($csv as $line) {
@ -68,6 +69,7 @@ Autoloader::addPath(__DIR__ . '/../../../../../../Resources/');
}
?>
</table>
</div>
</div>
</div>
</div>