$pm = $m - 1; if ($nm > 12) { $nm = 1; $ny = $y + 1; } else { $ny = $y; } if ($pm < 1) { $pm = 12; $py = $y - 1; } else { $py = $y; } $today = date("d"); $calobj = new calendar(); $cal = $calobj->getCal($m, $y, $id); $weeks = $cal->calendar; // print_r($weeks); $mstring = strtolower(date('F', mktime(0, 0, 0, $m, 1, $y))); $mstring = $langfile[$mstring]; $template->assign("mstring", $mstring); $template->assign("m", $m); $template->assign("y", $y); $template->assign("thism", $thism); $template->assign("thisd", $thisd); $template->assign("thisy", $thisy); $template->assign("nm", $nm); $template->assign("pm", $pm); $template->assign("ny", $ny); $template->assign("py", $py); $template->assign("weeks", $weeks);
$pm = $m - 1; if ($nm > 12) { $nm = 1; $ny = $y + 1; } else { $ny = $y; } if ($pm < 1) { $pm = 12; $py = $y - 1; } else { $py = $y; } $today = date("d"); $calobj = new calendar(); $cal = $calobj->getCal($m, $y); $weeks = $cal->calendar; // print_r($weeks); $mstring = strtolower(date('F', mktime(0, 0, 0, $m, 1, $y))); $mstring = $langfile[$mstring]; $template->assign("mstring", $mstring); $template->assign("m", $m); $template->assign("y", $y); $template->assign("thism", $thism); $template->assign("thisd", $thisd); $template->assign("thisy", $thisy); $template->assign("nm", $nm); $template->assign("pm", $pm); $template->assign("ny", $ny); $template->assign("py", $py); $template->assign("weeks", $weeks);