Hiii,
We have a signup form where doctors can check off their availability ( AM and/or PM) for any day this month plus the next 3 months.
I am using the expression engine calendar to show months. See below:
{exp:weblog:calendar month="01" year="2010"}
<h3>{date format="%F %Y"}</h3>
<p> <table class="cal"><br />
<tr><br />
{calendar_heading}<br />
<td>{lang:weekday_long}</td><br />
{/calendar_heading}<br />
</tr><br />
{calendar_rows }<br />
{row_start}<tr>{/row_start}<br />
{if not_entries}<br />
<td><br />
<span class='cal-date'>{day_number}</span></p>
<p> <span class='cal-top'><br />
<input type='checkbox' name="{day_number}_day" value='yes'> (AM) Day</p>
<p> </span><br />
<span class='cal-bot'><br />
<input type='checkbox' name="{day_number}_night" value='yes'> (PM) Night<br />
</span><br />
</td><br />
{/if}<br />
{if blank}<br />
<td></td><br />
{/if}<br />
{row_end}</tr>{/row_end}<br />
{/calendar_rows}<br />
</table><br />
{/exp:weblog:calendar}I have that, 4 times on the page. As you can see I am using the month=”” and year=”” so I would have to go in there every 4 months and change those numbers out (which i don’t want to do)
HERE’S MY PROBLEM: I ended up making PHP variables on the top of the template, $currentmonth, $nextmonth, $thirdmonth & $fourthmonth and they work perfectly. I want to put them as month=”$currentmonth”, etc but that doesn’t work.
Does anyone know a work around for this? Hopefully you can understand what I’m saying, haha. Thanks!