1 |
<?php |
2 |
$date = getdate(); |
3 |
if (!isset($type)) $type = 1; |
4 |
$tpl->assign("type", $type); |
5 |
if (!isset($month)) $month = $date["mon"]; |
6 |
$tpl->assign("month", $month); |
7 |
if (!isset($year)) $year = $date["year"]; |
8 |
$tpl->assign("year", $year); |
9 |
if (!isset($sort)) $sort = 2; |
10 |
$tpl->assign("sort", $sort); |
11 |
$tpl->assign("kreni", $kreni); |
12 |
$godine = array(); |
13 |
for ($i = $date["year"] - 2; $i < $date["year"] + 3; $i++) array_push($godine, $i); |
14 |
$tpl->assign("godine", $godine); |
15 |
if ($kreni) { |
16 |
// ... |
17 |
} |
18 |
?> |