Hi there
I'm trying to create a page that displays a schedule of work done graphically (one shift per day). Everything works like a charm but I can only show the days that are actually in the xml document itself so if someone doesn't do a shift on monday for example monday is not shown. basically I want to do the following
for i = 1 to 7
if daynumber = i then
....
else
....
end for
its the for i=... bit that I can't figure out how to do as I can't use a variable which would be my normal first step (variables that don't vary at 4:30 am is NOT a nice thing
). I understand that there is the posibility of using functions but cannot think of a way of doing this either. Is it possible to use some sort of array? Is there any other way I can do this.
All help will be appreciated.
I'm trying to create a page that displays a schedule of work done graphically (one shift per day). Everything works like a charm but I can only show the days that are actually in the xml document itself so if someone doesn't do a shift on monday for example monday is not shown. basically I want to do the following
for i = 1 to 7
if daynumber = i then
....
else
....
end for
its the for i=... bit that I can't figure out how to do as I can't use a variable which would be my normal first step (variables that don't vary at 4:30 am is NOT a nice thing
All help will be appreciated.