add filter years
This commit is contained in:
@@ -4,6 +4,19 @@
|
||||
<!--<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):?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user