ciao ciao...
sto andando in palla per un calendario....
praticamente non riesco a passare dalla settimana inglese (che inizia di domenica) alla nostra...
codice:<table width="<%=tablewidth%>" border="0" cellspacing="0" cellpadding="0" bgcolor="<%=bg%>" height="<%=cell_height1%>"> <tr> <td width="14%"><center>Lunedì</center></td> <td width="14%"><center>Martedì</center></td> <td width="14%"><center>Mercoledì</center></td> <td width="14%"><center>Giovedì</center></td> <td width="14%"><center>Venerdì</center></td> <td width="14%"><center>Sabato</center></td> <td width="14%"><center>Domenica</center></td> </tr> </table> <table width="100%"> <tr> <% currentDay = 1 - weekday(dateserial(curYear,curMonth,1))+1 lastDay = day(dateserial(curYear,curMonth+1,1-1)) if currentDay = -4 AND lastDay > 30 then maxRows = 5 elseif currentDay = -5 AND lastDay >= 30 then maxRows = 5 else maxRows = 4 end If num = 1 for x = 0 to maxRows %><tr nowrap height="50" bgcolor=<%=nodaycell%>><% for xx = 0 to 6 if currentDay > 0 AND currentDay <= lastDay then today = currentDay&"/"&curMonth&"/"&curYear if cstr(today) = cstr(day(now())&"/"&month(now())&"/"&year(now())) then bgcolour = todayCell else bgcolour = bg end if %> <td height="<%=cell_height2%>" width="14%" align="left" valign="top" bgcolor="<%=bgcolour%>"><font color="black"><%=currentDay%></font> <% ' DEBUG 'response.write "day:" & day(today) & " " 'response.write "month:" & month(today) & " " 'response.write "year:" & year(today) & " "
in sostanza se sposto (come ho fatto qua sopra ) la domenica in fondo alla settimana....poi sono sballato coi giorni....come faccio a sistemare?
in sostanza la data di oggi in questo modo me la fa vedere sotto la colonna del martedì...

Rispondi quotando
