home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
CHIPCD_3_98.iso
/
software
/
testsoft
/
exchange
/
webdata
/
usa
/
calendar
/
main_fr.asp
< prev
next >
Wrap
Text File
|
1997-08-25
|
4KB
|
129 lines
<!--#include file="../constant.inc"-->
<!--#include file="../lib/session.inc"-->
<!--#include file="../lib/getrend.inc"-->
<!--#include file="../lib/pageutil.inc"-->
<!--#include file="../lib/jsroot.inc"-->
<!--#include file="../lib/jsutil.inc"-->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
<HTML>
<%
On Error Resume Next
urlFull = Request.QueryString()
x = CheckSession3(bstrVirtRoot+"/calendar/main_fr.asp?"+urlFull,"self",1)
dtStart = Now
fNew = False
' Get the cached rendering object.
Set objRenderer = GetFirstCalendarRenderer(fNew)
szObj=Request.QueryString("obj") 'Pass this to the child frame
' Get the data source for the renderer.
' Only the default calendar folder is currently supported.
Set objCal = objRenderer.DataSource
If objCal Is Nothing Then
Set objCalFolder = objOMSession.GetDefaultFolder(0) ' ActMsgDefaultFolderCalendar
Set objCal = objCalFolder.Messages
objRenderer.DataSource = objCal
End If
' NOTE!! The standard formats include named properties, so they cannot
' be initialized until there is a data source.
If fNew Then
SetCalendarRendererFormats(objRenderer)
End If
' Get the requested start date (defaults to today)
szYear = Request.QueryString("y")
szMonth = Request.QueryString("m")
szDay = Request.QueryString("d")
If szYear <> "" And szMonth <> "" And szDay <> "" Then
Err.Clear
dtStart = DateSerial(CInt(szYear), CInt(szMonth), CInt(szDay))
End If
iView=1 'Default to daily since applet ALWAYS inititates to daily when it's loaded
objRenderer.CurrentView = iView 'Set session to default in case it was changed
' Set up the Denali session variables for calendar.
' The renderer is already stored in Session(bstrCalendarRenderer).
Session(CURRENT_DATE) = dtStart
Function isGoodVM
If (GetVersion < 4) Then
If isNav() Then
isGoodVM = False
Else
isGoodVM = True
End If
Else
isGoodVM = True
End If
End Function
%>
<script language="Javascript">
var javaEnabled = false;
var done = false;
var iCurStore=2; //needed for navbar
var iCurCompose = 0;
//these are for the HTML date picker to track the current date
//they are set in events.asp, and passed only when the Java is disabled
//Prevents resetting of the date when changing the calendar views.
var currentMonth="";
var currentYear="";
var currentDay="";
function MarkPage() {
parent.location="<%=bstrVirtRoot%>/root.asp?obj=<%=szObj%>";
}
function composeNew(iCurSel) {
iCurCompose=iCurSel;
if (iCurSel==1) openNewWindow("<%=bstrVirtRoot%>/forms/ipm/schedule/meeting/request/frmroot.asp?command=new&type=1","newMessageWindow",640,500);
else if (iCurSel==0) openNewWindow("<%=bstrVirtRoot%>/forms/ipm/schedule/meeting/request/frmroot.asp?command=new&type=0","newMessageWindow",640,500);
else openNewWindow("<%=bstrVirtRoot%>/forms/ipm/note/frmroot.asp?command=new","newMessageWindow",640,500);
}
function updateCalView(selection)
{
<% If isGoodVM Then %>
//does the Java applet exist?
if (self.pick_fr.document.Calendar != null)
{
if (done == true)
{
if (selection == 1)
self.pick_fr.document.Calendar.changeToDailySelection()
else
self.pick_fr.document.Calendar.changeToWeeklySelection()
}
}
else
{
<% End If %>
self.msg_fr.location = "appts.asp?view=" + selection+ "#start&m="+currentMonth+"&d="+currentDay+"&y="+currentYear;
self.event_fr.location = "events.asp?view=" + selection+"&m="+currentMonth+"&d="+currentDay+"&y="+currentYear;
<% If isGoodVM Then %>
}
<% End If %>
}
</script>
<FRAMESET ROWS="80,*" frameborder=1 border=5 >
<FRAME SRC="../calendar/title.asp?session=1&obj=<%=szObj%>" name="title_fr" noresize scrolling="no" marginheight=2 marginwidth=0>
<FRAMESET COLS="*,200" frameborder=1 border=5>
<FRAMESET ROWS="70,*" frameborder=0 border=1>
<FRAME SRC="../calendar/events.asp?session=1&caller=main_fr" name="event_fr" frameborder=0 marginheight=0 marginwidth=0 scrolling="auto">
<FRAME SRC="../calendar/appts.asp?session=1#start" name="msg_fr" frameborder=0 marginheight=0 marginwidth=0 scrolling="auto">
</FRAMESET>
<FRAME SRC="../calendar/pick.asp?session=1" name="pick_fr" scrolling="no" marginheight=0 marginwidth=0>
</FRAMESET>
</FRAMESET>
</HTML>