mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-01-26 14:48:39 +00:00
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
?>
|
|
<label for="<?= $this->id; ?>-sort-<?= $this->counter; ?>-up">
|
|
<input
|
|
id="<?= $this->id; ?>-sort-<?= $this->counter; ?>-up"
|
|
type="radio"
|
|
name="<?= $this->id; ?>-sort"
|
|
<?= $this->id === $this->request->getData('element')
|
|
&& $this->request->getData('sort_order') === 'ASC'
|
|
&& $data[1] === ($this->request->getData('sort_by') ?? '')
|
|
? ' checked' : '';
|
|
?>>
|
|
<i class="sort-asc lni lni-chevron-up"></i>
|
|
</label>
|
|
|
|
<label for="<?= $this->id; ?>-sort-<?= $this->counter; ?>-down">
|
|
<input
|
|
id="<?= $this->id; ?>-sort-<?= $this->counter; ?>-down"
|
|
type="radio"
|
|
name="<?= $this->id; ?>-sort"
|
|
<?= $this->id === $this->request->getData('element')
|
|
&& $this->request->getData('sort_order') === 'DESC'
|
|
&& $data[1] === ($this->request->getData('sort_by') ?? '')
|
|
? ' checked' : '';
|
|
?>>
|
|
<i class="sort-desc lni lni-chevron-down"></i>
|
|
</label>
|