home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
CHIPCD_3_98.iso
/
software
/
testsoft
/
exchange
/
webdata
/
usa
/
root.asp
< prev
next >
Wrap
Text File
|
1997-08-25
|
5KB
|
142 lines
<!--#include file="constant.inc"-->
<!--#include file="lib/session.inc"-->
<!--#include file="lib/getrend.inc"-->
<!--#include file="lib/pageutil.inc"-->
<%
'<!-- Microsoft Outlook Web Access-->
'<!-- Root.asp : Frameset for the Inbox window -->
'<!-- Copyright (c) Microsoft Corporation 1993-1997. All rights reserved.-->
On Error Resume Next
L_OutlookBar_FRAME_Width_Number = 75 'changes width of the Outlook Menu Bar
urlString = Request.QueryString()
if urlString <> "" then urlString="?"+urlString
CheckSession2 bstrVirtRoot + "/root.asp" + urlString
urlAcs = Request.QueryString("acs") 'acs=anon for anon login's
urlObj = Request.QueryString("obj") 'This is what we want to pass to the child frames
urlStore = Request.QueryString("store")
If urlAcs<>"anon" And Not Session(bstrAuthenticated) Then
urlAcs = "anon" 'prevents anon users from manually removing acs=anon from url
End If
bstrNavbarFile = bstrVirtRoot + "/Navbar/nbInbox.asp"
'gotta figger out what store if not told
if urlAcs="anon" Then
iStore=1 'no private store or cal for anon users
bstrNavbarFile = bstrVirtRoot + "/Navbar/nbAnon.asp"
ElseIf urlStore = "" Then 'no store on url
If urlObj="" Then 'no folder on url (first logon)
iStore = 0 'default to private store inbox folder
Else 'authenticated with folderID only (need to open the folder and get the store)
OpenAllStores
PubStoreID=Session(bstrPublicStoreID)
Set objFolder = objOMSession.GetFolder(urlObj,PubStoreID)
If objFolder Is Nothing Then
iStore=0
ElseIf IsEmpty(objFolder.ID) Then
iStore=0
Else
iStore=1
End If
End If
Else
iStore=cint(urlStore) 'authenticated 0,1 or 2=calendar
End If
bstrDefaultCalendarFolderID=objOMSession.GetDefaultFolder(0).ID
%>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
var hold_szCurPubFID="";
var hold_szCurPvtFID="";
var fInCalendar = true;
var szCurFolderID="";
var szCurYr = "";
var szCurMo = "";
var szCurDa = "";
function composePick(iSelIdx) {
iCurCompose=iSelIdx;
}
function RefreshNavbar(iStore) {
MF = self.main_fr;
if (iStore!=MF.iCurStore) { //if coming from somewhere else
MF.iCurCompose=0; //reset
if (iStore==2) { //GOING TO CALENDAR VIEWS
fInCalendar = true;
hold_szCurPubFID = MF.szCurPubFID;
hold_szCurPvtFID = MF.szCurPvtFID;
MF.iCurStore=iStore;
MF.location="<%=bstrVirtRoot%>/calendar/main_fr.asp?obj=<%=bstrDefaultCalendarFolderID%>";
}
else if (fInCalendar==true) { //LEAVING CALENDAR VIEWS
fInCalendar = false;
MF.iCurStore=iStore;
if (iStore==0) { //CAL TO PRI STORE
MF.location="<%=bstrVirtRoot%>/inbox/main_fr.asp?store=0&obj="+hold_szCurPvtFID;
}
else { //CAL TO PUB STORE
MF.location="<%=bstrVirtRoot%>/inbox/main_fr.asp?store=1&obj="+hold_szCurPubFID;
}
}
else if (iStore==0) { //PUB TO PRIVATE STORE
MF.iCurStore=iStore;
MF.command_fr.location="<%=bstrVirtRoot%>/inbox/commands.asp?store=0&command=newfolder&obj="+ MF.szCurPvtFID;
}
else { //PRI TO PUB STORE
MF.iCurStore=iStore;
MF.command_fr.location="<%=bstrVirtRoot%>/inbox/commands.asp?store=1&command=newfolder&obj="+ MF.szCurPubFID;
}
}
//repeat click - refresh to top
else {
if (iStore!=2) // GOTO TOP OF CURRENT STORE
MF.command_fr.location="<%=bstrVirtRoot%>/inbox/commands.asp?store="+iStore+"&command=newfolder";
else // REFRESH CAL
self.main_fr.location="<%=bstrVirtRoot%>/calendar/main_fr.asp?obj=<%=bstrDefaultCalendarFolderID%>";
}
}
var fRedirect = 0;
function SetRedirectFlag(bFlag) {
fRedirect=bFlag;
}
</SCRIPT>
<TITLE><%=L_MSOutlookWebAccess_StaticText%></TITLE>
</HEAD>
<FRAMESET COLS="<%=L_OutlookBar_FRAME_Width_Number%>,*" frameborder=1 border=5>
<FRAME SRC="<%=bstrNavbarFile%>" name="navbar_fr" marginheight=0 marginwidth=0 scrolling=auto>
<%If iStore=2 Then 'render calendar view%>
<FRAME SRC="<%=bstrVirtRoot%>/calendar/main_fr.asp?obj=<%=bstrDefaultCalendarFolderID%>" name="main_fr" marginheight=0 marginwidth=0>
<%Else%>
<FRAME SRC="<%=bstrVirtRoot%>/inbox/main_fr.asp?store=<%=iStore%>&obj=<%=urlObj%>&acs=<%=urlAcs%>" name="main_fr" marginheight=0 marginwidth=0>
<%End If%>
</FRAMESET>
<body text=000000>
<NOFRAMES>
Microsoft Outlook Web Access must be viewed on a browser that supports frames. <br>
To obtain such a browser, please click <a href="http://www.microsoft.com/ie/download/" target="_blank">here</a> to
download the Microsoft <a href="http://www.microsoft.com/ie/download" target="_blank"><b>Internet Explorer</a>.</b> </p>
</NOFRAMES>
</body>
</HTML>