Files
anpdf/app/views/allbooks.phtml
Andrey Kuvshinov 9fcca9efbe add filter years
2020-05-16 14:53:38 +03:00

34 lines
884 B
PHTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?if ($items['subscript'] == true):?>
<p>Вам доступен весь архив</p>
<?else:?>
<!--<p>Всего покупок: <?=$items['count']?></p>-->
<?endif?>
<div>
фильтр: <select id="year_filter" onchange="changeyear()">
<option value="all"<?=$selected?>>все</option>
<?for ($y = date('Y'); $y >= 2006; $y--):?>
<?$selected = ($filter == $y) ? ' selected' : ''?>
<option value="<?=$y?>"<?=$selected?>><?=$y?> год</option>
<?endfor?>
</select>
</div>
<div class="lib_container">
<?foreach ($items['books'] as $book):?>
<div class="book_mini">
<a href="<?=$book['link']?>">
<img src="<?=$book['pic']?>">
<p class="book_mini_title"><?=$book['pricename']?></p>
</a>
</div>
<?endforeach?>
</div>
<?include 'blocks/pagenav.phtml'?>