{assign var="pgLayout" value="00Null00"}
<html>
<head><title>Calendar</title></head>
<body style="margin:0px;">
{assign var="currentYear" value=$smarty.now|date_format2:"Y"}
{assign var="currentMonth" value=$smarty.now|date_format2:"m"}
{assign var="currentDay" value=$smarty.now|date_format2:"j"}
{assign var="url_format" value=$blah|cat:"?year=%Y&month=%m&day=%d"|cat:"&pg=`$page.name`"}
{assign var="year" value=$smarty.request.year|default:$currentYear}
{assign var="month" value=$smarty.request.month|default:$currentMonth}
{assign var="day" value=$smarty.request.day|default:$currentDay}
<table width="100%" height="100%">
<tr><td align="center" valign="top">{calendar 
	url_format=$url_format
	year=$year
	month=$month
	day=$day}{include file="file:./layouts/calendar.tpl"}</td>
</tr>
</table>
</body>
</html>