1 |
<?php |
<?php |
2 |
$foo = getdate(); |
$foo = getdate(); |
3 |
$tpl->assign("year", $foo["year"]); |
$tpl->assign("year", $foo["year"]); |
4 |
$tpl->assign("ME", $PHP_SELF.HTMLSpecialChars("?section=$section§ion_menu=$section_menu")); |
$tpl->assign("ME", HTMLSpecialChars("?section=$section§ion_menu=$section_menu")); |
5 |
$godine = array(); |
$godine = array(); |
6 |
for ($i = $foo["year"] - 1; $i <= $foo["year"] + 1; $i++) array_push($godine, $i); |
for ($i = $foo["year"] - 1; $i <= $foo["year"] + 1; $i++) array_push($godine, $i); |
7 |
$tpl->assign("godine", $godine); |
$tpl->assign("godine", $godine); |
61 |
array_push($kal, $tmp); |
array_push($kal, $tmp); |
62 |
} |
} |
63 |
$tp = new Smarty(); |
$tp = new Smarty(); |
64 |
|
$tp->assign("section", $section); |
65 |
|
$tp->assign("section_menu", $section_menu); |
66 |
|
$tp->assign("section_menu2", $section_menu2); |
67 |
|
$tp->assign("dan", $dan); |
68 |
|
$tp->assign("mjesec", $mjesec); |
69 |
|
$tp->assign("godina", $godina); |
70 |
|
$tp->assign("trajanje", $trajanje); |
71 |
$tp->assign("ime", $ime); |
$tp->assign("ime", $ime); |
72 |
|
$tp->assign("ime2", urlencode($ime)); |
73 |
$tp->assign("kal", $kal); |
$tp->assign("kal", $kal); |
74 |
$table = $tp->fetch("kalendar".($print?"-print":"").".tpl"); |
$table = $tp->fetch("kalendar".($print?"-print":"").".tpl"); |
75 |
$tpl->assign("CONTENT", $table); |
$tpl->assign("CONTENT", $table); |
76 |
if (!$print) { |
if (!$print) { |
77 |
include_once("print.php"); |
include_once("print.php"); |
78 |
$tpl->assign("PRINT", GetPrint(array("dan", "mjesec", "godina", "trajanje"))); |
$tpl->assign("PRINT", GetPrint(array("dan", "mjesec", "godina", "trajanje", "ime"), false)); |
79 |
} else $main_template = "wrapper.tpl"; |
} else $main_template = "wrapper.tpl"; |
80 |
} |
} |
81 |
if (!$ns4) { |
if (!$ns4) { |