Files
anpdf/app/views/allbooks.phtml
2020-05-16 17:43:02 +03:00

41 lines
1.1 KiB
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 id="menu_category">
<a href="<?=SITE?>mybooks/gazeta/all/1">Газета</a> / <a href="<?=SITE?>mybooks/books/all/1">Книги</a>
</div>
<?if ($category == 'gazeta'):?>
<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>
<?endif?>
<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'?>