There are two types of calendar - Pop-Up (edit) and Stand Alone. Stand Alone
calendar has two confederations - Normal and Event.
The following is an example of a Normal calendar with a Poster. Scroll the
months to see the poster and select a date to be placed in the Box.
Normal Calendar with Poster
|
<!--T_Calendar_1.aspx--> <script
language="vb" runat="server">
Sub Page_Load(Source as Object, E as EventArgs)
Dim Rm As New Tornado.Z()
Rm.dbQP="U=1| S=aspdbzen| Th=Tit=Stand Alone Normal Calendar"
Rm.dbCalendar3="ID=cal| codebase='ccalendar' MAYSCRIPT| ar=/tornado/Jars/aspdbcalendar.jar|
wi=260| he=350| fieldname=MYDATE| formname=F| format=m/d/y| color_fond=ccccff|
color_case=FFC0C0| color_Comment=FFAAAA| color_empty=FF9090|posterimages=1.jpg; 2.jpg; 3.jpg; 4.jpg; 5.jpg; 6.jpg; 7.jpg; 8.jpg; 9.jpg; 10.jpg; 11.jpg; 12.jpg|
report=n| day2=Mon| day3=Tue| day4=Wed| day5=Thu| day6=Fri| day7=Sat| Day1=Sun"
response.write(Rm.ASPdbCalendar())
response.write("<P><FORM NAME=F>Date Selected: <INPUT TYPE='TEXT'
NAME='MYDATE' SIZE=23></FORM>")
End Sub
</script>
|
Event Calendar
A event calendar is one that you can place text (event) in the day boxes. You can generate these events and schedules (lockouts) data for the calendar via
program code or text file. You can also define hyperlinks to link your daily
event to an URL. If there is no default event and schedule file, then the
existing ones will be used every year. Otherwise, you can specify a different
one for each user. You have full control of international formats and color. Essentially, all you
need is one line of code (dbCalendar3). Very flexible and very simple.
|
<!--T_Calendar_2.aspx--> <script
language='vb' runat='server'>
Sub Page_Load(Source as Object, E as EventArgs)
Dim country as string
if not isnothing(request.querystring("UK")) and
request.querystring("UK")<>"" then country="UK" else country="US"
Dim T As New Tornado.Z()
T.dbQP="U=3| S=aspdbzen| Th=Tit=" & country & " Stand Alone Event
Calendar"
T.dbCalendar3="Type=Event| Width=600| Height=500| dateformat=m.d.y|
eventfileurl=/tornado/DB/Calendar/2003-" & country & ".evt"
response.write("<Center>" & T.ASPdbCalendar() & "</Center>")
response.write("<FORM>")
response.write("<INPUT TYPE='Submit' NAME='US' VALUE='US Calendar'>
")
response.write("<INPUT TYPE='Submit' NAME='UK' VALUE='UK
Calendar'>")
response.write("</FORM>")
End Sub
</Script>
|