named filters year
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<?if ($category == 'gazeta'):?>
|
||||
<div>
|
||||
фильтр: <select id="year_filter" onchange="changeyear()">
|
||||
<option value="all"<?=$selected?>>все</option>
|
||||
<option value="all"<?=$selected?>>все года</option>
|
||||
<?for ($y = date('Y'); $y >= 2006; $y--):?>
|
||||
<?$selected = ($filter == $y) ? ' selected' : ''?>
|
||||
<option value="<?=$y?>"<?=$selected?>><?=$y?> год</option>
|
||||
|
||||
Reference in New Issue
Block a user