My goal is to have wider cells on Sat & Sun so that the cells are not so long when lots of events are posted.
thanks.
For healthy eating, fitness, & self-acceptance, check out http://www.kellybliss.com
and WIDTH=<%=(($currSpan == 1 | $currSpan == 7 )?"20":"12")%>%
and after <%/FOREACH%>, add<% $currSpan=0; %>
Thanks for the tip and getting me started!
which is this long line:-------------print "\n <td class=\"thinborder\" valign=\"TOP\" WIDTH=";print (($currSpan == 1 | $currSpan == 2 | $currSpan == 3 | $currSpan == 4 | $currSpan == 5 | $currSpan == 6 | $currSpan == 7 )?"5":"18":"18":"18":"18":"18":"5");print "% bgcolor=\"";if ($DAY->{'selected'}) {print "";print $_GRID_CELL_SELECTED_BGCOLOR;print "";}else{print "";print $_GRID_CELL_BGCOLOR;print "";}print "\">\n ";----------------
Please, what error did I make?
------------------
Thank you very much. I am so grateful for your dedication. I used the following and it did exactly what I wanted.
<%FOREACH GRID COLUMN%><% $currSpan=0; %><% $i=0; %><% $currSpan++; %><td class="thinborder" valign="TOP" WIDTH=<%=(($COL == 0 | | $COL == 6 )?"5":"18")%>%
I guess someday I need to study some book on PERL
Dick R
That would only be needed if you were using the $currSpan variable from my original code suggestion in the conditional (which as I said, was actually from a different template I must have been looking at at the time my bad).
JFYI
Dan O.
if $COL is equal to 0 OR 6, use "5"if not, use "18"
** I guess someday I need to study some book on PERL **
You can find a couple of the better written ones linked from the Unofficial CalendarScript - Mods and Plugins site. The 'Perl Cookbook' has lots of examples with explanations too!