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", "ime"))); |
$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) { |
83 |
if (!$godina) $godina = $foo["year"]; |
if (!$godina) $godina = $foo["year"]; |
84 |
$before = $godina - $foo["year"] + 1; |
$before = $godina - $foo["year"] + 1; |
85 |
$after = $foo["year"] - $godina + 1; |
$after = $foo["year"] - $godina + 1; |
86 |
$onload .= "DS = new DateSelector(document.forms[1], $date, $before, $after);"; |
$onload .= "DS = new DateSelector(document.forms[".($kalendar?2:1)."], $date, $before, $after);"; |
87 |
} |
} |
88 |
?> |
?> |