| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Mail Enable/Bin/NETWebMail/Mondo/lang/sys/Forms/MAI/ |
Upload File : |
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="read.aspx.vb" Inherits="MailEnable.Clients.WebMail.Mondo.Read" %>
<%@ Register TagPrefix="uc1" TagName="uscStyleHeader" Src="../../../Controls/uscStyleHeader.ascx" %>
<%@ Register TagPrefix="uc1" TagName="uscAccess" Src="../../../Controls/uscAccess.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ScriptsInclude" Src="../../../Controls/ScriptsInclude.ascx" %>
<%@ Register TagPrefix="uc2" TagName="uscLanguageTokenMondo" Src="../../../Controls/uscLanguageToken.ascx" %>
<%@ Register TagPrefix="uc6" TagName="uscScriptTranslationsArray" Src="../../../Controls/ScriptTranslationsArray.ascx" %>
<uc2:uscLanguageTokenMondo id="uscToken" runat="server"></uc2:uscLanguageTokenMondo>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><asp:Literal id="liWindowTitle" runat="server"></asp:Literal></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<uc1:uscStyleHeader id="UscStyleHeader1" runat="server"></uc1:uscStyleHeader>
<uc1:ScriptsInclude id="ScriptsInclude" runat="server" Flags="EXPIRE"></uc1:ScriptsInclude>
<script type="text/javascript" language="Javascript">
<!--
var bIsNewWindow = false; // indicates whether this page is being viewed in a new window
var gSourceURI = "";
var gDebugMode = false;
var gContactsEnabled = true;
var gWhitelistEnabled = true;
var gBlacklistEnabled = true;
var oAlertDialog = null;
var SkinRoot = '<%=Session("skin")%>';
var oParent = null;
var gImagesBlocked = <%=mbBlockImages.ToString.ToLowerInvariant()%>;
//var ICON_BTN_WIDTH = 26;
var CHARSET_DD_WIDTH = 185;
var gBrowserType = GetBrowserType();
window.onresize=function(e)
{
ResizeBody();
SetToolbarBtnSizes();
MoveToolbarIcons();
}
if (document.all && !document.getElementById)
{
document.getElementById = function(id) {
return document.all[id];
}
}
function FetchBody(docwindow, ev) {
try {
if (ev) {
ev.preventDefault();
}
var sURL = "<%=GetJSMsgBodyURL()%>";
sURL += '&BlockImages=' + '0';
gImagesBlocked = false;
var ifPrev = docwindow.document.getElementById('MessageArea');
if (ifPrev) {
if (confirm(t_("[ME_TXT-DownloadRemoteImages]")) == true) {
ifPrev.src = sURL;
}
}
$("#BlockImages",docwindow.document).val("0");
}
catch (e) {
alert(e.message);
}
return false;
}
function ResizeBody()
{
var BodyHeight = document.body.offsetHeight - document.getElementById('MessageArea').offsetTop;
BodyHeight -= 5;
if (BodyHeight > 0)
{
document.getElementById('bodyCol_msg_shell_js').style.height = BodyHeight + "px";
}
resizeMsgHeaderSubject();
}
function SetToolbarBtnSizes()
{
//var ICON_BTN_WIDTH = document.getElementById("btnReturn").clientWidth;
var ICON_BTN_WIDTH = $("#btnReturn").outerWidth(true);
var DROPDOWN_BTN_WIDTH = $('#btnMore').outerWidth() + 5;
try
{
document.getElementById("td_more_js").style.width = DROPDOWN_BTN_WIDTH + "px";
document.getElementById("td_return_js").style.width = (ICON_BTN_WIDTH * 3) + "px"; // 3 buttons (previous, next and return)
document.getElementById("td_charset").style.width = CHARSET_DD_WIDTH + ICON_BTN_WIDTH + "px"; //select box + charSet bttn width
} catch(ex) { }
}
function PageLoad()
{
<%If bIsNewWindow Then%>
bIsNewWindow = true;
<%Else%>
bIsNewWindow = false;
<%End If%>
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
if (oParent)
{
oAlertDialog = oParent.CreateMessageDialog("AlertDialog", {Document: document});
}
if (oParent.GetOptionValue != undefined)
{
gContactsEnabled = oParent.GetOptionValue('Contacts Enabled');
gWhitelistEnabled = oParent.GetOptionValue('Whitelist');
gBlacklistEnabled = oParent.GetOptionValue('Blacklist');
}
dropDown_addIconOption("dropDown_more", 'viewHeaders', t_("[ME_TXT-ViewHeaders]"), "dropDown_icon_viewHeaders", function() { dropDown_hide("dropDown_more"); ViewHeaders(); });
dropDown_addIconOption("dropDown_more", 'downloadSource', t_("[ME_TXT-DownloadSource]"), "dropDown_icon_download", function() { dropDown_hide("dropDown_more"); DownloadSource(); });
$('#dropDown_more_viewHeaders').addClass('bttn_viewHeaders');
$('#dropDown_more_downloadSource').addClass('bttn_downloadSource');
<% If Not IsSMS Then %>
if (!gContactsEnabled)
{
// hide the 'Add to Contacts' & 'Add to Whitelist' buttons
document.getElementById("btnAddToContacts").style.display = "none";
document.getElementById("btnAddToWhitelist").style.display = "none";
document.getElementById("btnAddToBlacklist").style.display = "none";
}
else
{
if (!gWhitelistEnabled) {
document.getElementById("btnAddToWhitelist").style.display = "none";
}
if (!gBlacklistEnabled) {
document.getElementById("btnAddToBlacklist").style.display = "none";
}
}
<% End If %>
ResizeBody();
SetToolbarBtnSizes();
if (document.getElementById("MessageArea"))
{
<% If IsTouchClient() Then%>
Ajax_LoadPage(document.getElementById("MessageArea"), "<%= GetJSMsgBodyURL() %>");
<% else %>
document.getElementById("MessageArea").src = "<%= GetJSMsgBodyURL() %>";
<% End If %>
}
// setup the links for the toolbar action buttons
SetToolbarButtonActions();
// set the previous/next button enabled status
<%If AllowPrevNext() Then %>
SetNextPrevButtonStatus();
<%Else %>
DisableToolbarButton("btnNext", BTTN_FLOAT_RIGHT);
DisableToolbarButton("btnPrev", BTTN_FLOAT_RIGHT);
HideById("btnNext");
HideById("btnPrev");
HideById("btnReturn");
<%End If%>
SetAttachmentsLink();
<%If Not bIsNewWindow Then%>
getTopAppWindow().HideWait();
<%End If%>
var ReceiptTo = '<%=EscapeJS(DispositionNotificationTo)%>';
if (ReceiptTo && ReceiptTo.length > 0)
{
getTopAppWindow().PromptForReceiptDispatch('<%= EscapeJS(MessageID)%>', '<%= EscapeJS(RelativeFolderPath)%>', '<%= EscapeJS(FromEmail) %>', '<%= EscapeJS(SubjectForReadReceipt) %>');
}
MoveToolbarIcons();
}
function ShowAlert(Title, Message, IsWarning)
{
if (oAlertDialog != null) {
oAlertDialog.Alert(Title, Message, IsWarning);
}
else {
alert(Message);
}
}
function ProcessAddWhitelistResult(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1")
{
ShowNotification(t_('[ME_TXT-SenderAddedToWhitelist]'));
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-Failedtoaddsendertowhitelist]"), true);
}
}
function ProcessAddBlacklistResult(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1")
{
ShowNotification(t_('[ME_TXT-SenderAddedToBlacklist]'));
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-FailedToAddSenderToBlackList]"), true);
}
}
function ServerRequest(sCommand, sData, bUseCallback, sFrameName)
{
if (gSourceURI && gSourceURI.length > 0)
{
sData = sData + "&URI=" + encodeURIComponent(gSourceURI);
}
if (gDebugMode)
{
var iTS = (new Date()).getTime();
window.status = t_('[ME_TXT-Pleasewait]') + '...[' + sCommand + '(' +iTS + '):' + sData + ']';
}
else
{
window.status = t_('[ME_TXT-Pleasewait]') + '...';
}
var oResult = LIBAjax_ServerRequest(sCommand, sData, bUseCallback, sFrameName);
window.status = 'Done';
return oResult;
}
function ProcessXMLResult(responseXML, FrameName)
{
if (responseXML == undefined)
{
alert('responseXML == undefined');
return false;
}
var BaseNode = responseXML.getElementsByTagName("BASEELEMENT")[0];
if (BaseNode == null)
{
alert('Server failure');
return false;
}
var oSchema = BaseNode.attributes.getNamedItem('SCHEMA');
var oMethod = BaseNode.attributes.getNamedItem('METHOD');
var sSchema;
var sMethod;
if (oSchema)
{
sSchema = GetXMLValue(oSchema);
}
if (oMethod)
{
sMethod = GetXMLValue(oMethod);
}
if (sSchema == 'RESULT')
{
if (sMethod == 'APPOINTMENT-ACCEPT')
{
ProcessAppointmentAccept(BaseNode);
}
if (sMethod == 'APPOINTMENT-TENTATIVE')
{
ProcessAppointmentTentative(BaseNode);
}
if (sMethod == 'APPOINTMENT-DECLINE')
{
ProcessAppointmentDecline(BaseNode);
}
if (sMethod == 'APPOINTMENT-UPDATE-ATTENDEE-STATUS')
{
ProcessAppointmentUpdate(BaseNode);
}
if (sMethod == 'APPOINTMENT-UPDATE')
{
ProcessAppointmentUpdate(BaseNode);
}
if (sMethod == 'APPOINTMENT-CANCEL')
{
ProcessAppointmentCancel(BaseNode);
}
if (sMethod == 'ADD-WHITELIST')
{
ProcessAddWhitelistResult(BaseNode);
}
if (sMethod == 'ADD-BLACKLIST')
{
ProcessAddBlacklistResult(BaseNode);
}
}
return true;
}
function ShowNotification(Message)
{
var oParent;
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
if (oParent.ShowNotification)
{
oParent.ShowNotification(Message);
}
}
function ProcessAppointmentUpdate(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1")
{
ShowNotification(t_('[ME_TXT-AppointmentDetailsUpdatedSuccessfully!]'));
}
else
{
var sErrorDesc = GetXMLValue(BaseNode.getElementsByTagName("ERROR_DESCRIPTION")[0]);
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-Error]") + ": " + sErrorDesc, true);
}
}
function ProcessAppointmentCancel(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1")
{
ShowNotification(t_('[ME_TXT-AppointmentDeleted]!'));
}
else
{
var sErrorDesc = GetXMLValue(BaseNode.getElementsByTagName("ERROR_DESCRIPTION")[0]);
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-Error]") + ": " + sErrorDesc, true);
}
}
function ProcessAppointmentAccept(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1" || sResult == "2")
{
ShowNotification(t_('[ME_TXT-NotificationSentToOrganizerOfMeeting!]'));
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-FailedToCreateAppointment]"), true);
}
}
function ProcessAppointmentTentative(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1")
{
ShowNotification(t_('[ME_TXT-NotificationSentToOrganizerOfMeeting!]'));
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-FailedToCreateAppointment]"), true);
}
}
function ProcessAppointmentDecline(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
if (sResult == "1")
{
ShowNotification(t_('[ME_TXT-NotificationSentToOrganizerOfMeeting!]'));
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_("[ME_TXT-FailedToCreateAppointment]"), true);
}
}
function SetAttachmentsLink()
{
var oTDAttachments = document.getElementById("tdPreviewAttachmentList");
if (!oTDAttachments) return false;
oTDAttachments.innerHTML = "<%= gAttachmentLinks %>";
}
function SetToolbarButtonActions()
{
try
{
<%
Dim sComposeURL As String
Dim satgURI As String = ""
If Not String.IsNullOrEmpty(gURI) Then
satgURI = "&" & EscapeJS(gURI)
End If
sComposeURL = "&Folder=" & EscapeJS(Server.UrlEncode(RelativeFolderPath)) & "&Page=" & gPage & "&WindowContext=" & GetRequestItem("WindowContext") & "&ME_VALIDATIONTOKEN=" & Session.Item("ME_VALIDATIONTOKEN") & satgURI
If (Not IsSMS) Or AllowSMSConversations() Then %>
$("#read_reply").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), GetTarget(), GetEditorPage() & "?Mode=Reply&ID=" & MessageID & sComposeURL) %> } );
$("#read_replyAll").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), GetTarget(), GetEditorPage() & "?Mode=ReplyAll&ID=" & MessageID & sComposeURL) %> } );
<% End If %>
$("#read_forward").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), GetTarget(), GetEditorPage() & "?Mode=Forward&ID=" & MessageID & sComposeURL) %> } );
<% If bAllowNewWindows Then %>
$("#read_delete").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), 3, "read.aspx?Cmd=Delete&NewWindow=" & GetNewWindowStatusCode() & "&ID=" & MessageID & "&Folder=" & EscapeJS(Server.UrlEncode(RelativeFolderPath)) & "&WindowContext=" & GetRequestItem("WindowContext") & "&ME_VALIDATIONTOKEN=" & Session.Item("ME_VALIDATIONTOKEN") & "&ME_SID=" & Session.Item("ME_SID") & satgURI) %> } );
$("#read_print").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), 2, "PrintPreview.aspx?ID=" & MessageID & "&Folder=" & EscapeJS(Server.UrlEncode(RelativeFolderPath)) & "&Page=" & gPage & "&BlockImages=' + (gImagesBlocked?1:0) + '&ME_VALIDATIONTOKEN=" & Session.Item("ME_VALIDATIONTOKEN") & satgURI) %> } );
$(".bttn_newMsg ").hide();
$(".toolbar_primary_table").addClass("popupWin");
<% Else %>
$("#read_delete").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), 1, "read.aspx?Cmd=Delete&NewWindow=" & GetNewWindowStatusCode() & "&ID=" & MessageID & "&Folder=" & EscapeJS(Server.UrlEncode(RelativeFolderPath)) & "&WindowContext=" & GetRequestItem("WindowContext") & "&ME_VALIDATIONTOKEN=" & Session.Item("ME_VALIDATIONTOKEN") & "&ME_SID=" & Session.Item("ME_SID") & satgURI) %> } );
$("#read_print").on("click", function() { <%= GetComposeAction((ParseRequestArgument("State") = "Preview"), 1, "PrintPreview.aspx?ID=" & MessageID & "&Folder=" & EscapeJS(Server.UrlEncode(RelativeFolderPath)) & "&Page=" & gPage & "&NewWindow=" & GetNewWindowStatusCode() & "&BlockImages=' + (gImagesBlocked?1:0) + '&ME_VALIDATIONTOKEN=" & Session.Item("ME_VALIDATIONTOKEN") & satgURI) %> } );
<% End If %>
} catch(ex) {}
}
function OpenNewWindow(URL,width,height)
{
<%If bAllowNewWindows Then%>
Features = new String("left="+(window.screen.availWidth/2 - width/2)+",top="+(window.screen.availHeight/2 - height/2) + ",height="+height+",width="+width+", status=1,location=0,directories=0,toolbar=no,menubar=0,scrollbars=1,resizable=1");
window.open(URL,'_blank',Features,true);
<%Else%>
window.open(URL,'Messages','',true);
<%End If%>
}
function ReturnToMessageList()
{
if (bIsNewWindow)
{
self.close();
}
else
{
if (window.parent.SetPageContextMode)
{
window.parent.SetPageContextMode(window.parent.gCurrentFolderContext);
// ensure that the parent window is resized and the preview pane is refreshed
window.parent.BrowserResize();
}
}
}
function MessageDeleted(MessageID, IsNewWindow)
{
var oParent;
if (IsNewWindow != undefined) {
bIsNewWindow = (IsNewWindow == 1)? true: false;
}
if (bIsNewWindow)
{
oParent = window.opener;
}
else
{
oParent = window.parent;
}
if (MessageID)
{
try
{
// remove the message from the list
oParent.RemoveMessageFromList(MessageID);
oParent.UpdateListForBatchResults();
// just hide the frame
oParent.document.getElementById('frmRead').style.visibility = 'hidden';
oParent.document.getElementById('divRead').style.display = 'none';
}
catch (e) {
}
}
ReturnToMessageList();
}
function AddToContacts()
{
var oParent = null;
<% If Not bIsNewWindow Then %>
// this is not in a new window
oParent = getTopAppWindow();
<% Else %>
oParent = window.opener;
<%End If%>
var sID, sEmail, sFullName, sNickname = "";
sEmail = '<%= EscapeJS(UnencodedFromEmail) %>';
sID = sEmail + ".VCF";
sFullName = UnEscapeJSBackslash("<%= EscapeJS(UnencodedFromAlias) %>");
sNickname = sFullName;
try
{
oParent.AddContact(sID, sFullName, sEmail, sNickname);
} catch(ex) { }
}
function getSenderEMailAddress()
{
return '<%= EscapeJS(FromEmail) %>';
}
function parseEMailSenderAddress(sFromAddress)
{
var sFromEmail = null;
var sFromFull = sFromAddress.replace('%40','@');
var re = new RegExp('<?([^@]+@[^.@][^@]*\.[A-Za-z]{2,})>?');
var reResult = re.exec(sFromFull);
if (reResult)
{
sFromEmail = reResult[1];
}
return sFromEmail;
}
function AddToWhitelist()
{
if (!gAllowPageActions) return false;
var sFromEmail = parseEMailSenderAddress(HTMLDecode(getSenderEMailAddress()));
if (sFromEmail)
{
ServerRequest('ADD-WHITELIST', 'Address=' + encodeURIComponent(sFromEmail), true);
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_('[ME_TXT-Failedtoaddsendertowhitelist]') + ': ' + getSenderEMailAddress(), true);
}
}
function AddToBlacklist()
{
if (!gAllowPageActions) return false;
var sFromEmail = parseEMailSenderAddress(HTMLDecode(getSenderEMailAddress()));
if (sFromEmail)
{
ServerRequest('ADD-BLACKLIST', 'Address=' + encodeURIComponent(sFromEmail), true);
}
else
{
ShowAlert(t_("[ME_TXT-Error]"), t_('[ME_TXT-FailedToAddSenderToBlackList]') + ': ' + getSenderEMailAddress(), true);
}
}
function DownloadSource()
{
var oParent = null;
<% If Not bIsNewWindow Then %>
oParent = getTopAppWindow();
<% Else %>
// this is page has been opened in a new window
oParent = window.opener;
<%End If%>
if (oParent.DownloadSource)
{
<% If ParseRequestArgument("URI") <> "" Then %>
oParent.DownloadSource('<%= MessageID %>', oParent.VIEW_SHARES);
<% Else %>
oParent.DownloadSource('<%= MessageID %>', oParent.VIEW_PERSONAL);
<%End If%>
}
}
function ReportAsSpam()
{
var oParent = null;
<% If Not bIsNewWindow Then %>
oParent = getTopAppWindow();
<% Else %>
// this is page has been opened in a new window
oParent = window.opener;
<%End If%>
if (oParent.ReportSelectedMessagesAsSpam)
{
oParent.ReportSelectedMessagesAsSpam("<%= MessageID %>", "<%= RelativeFolderPath %>");
ReturnToMessageList();
}
}
function ViewHeaders()
{
<%= GetViewHeadersJSAction %>
}
function ViewAttachments()
{
<%= GetViewAttachmentsJSAction %>
}
function ShowCharset()
{
var oCharset = document.getElementById('tdCharset');
if (oCharset)
{
if (oCharset.style.display=='none')
{
oCharset.style.display='';
}
else
{
oCharset.style.display='none';
}
}
}
function WaitToShowPrevMsg()
{
var oParent;
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
if ( oParent.gMessagesRetrieved && (oParent.gMessagesRetrieved == false) )
{
setTimeout(function () { WaitToShowPrevMsg(); }, 1000);
}
else
{
ShowPrevMsg();
}
}
function ShowPrevMsg()
{
// we need to get the message ID of the previous message in the list
// (relative to the currently selected message)
var oParent;
var sMsgID = "";
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
if (oParent.GetPrevMsgID)
{
sMsgID = oParent.GetPrevMsgID('<%= MessageID %>');
if (sMsgID == 0)
{
// we're already at the top of the list
return 1;
}
if (sMsgID == -1)
{
// gone to server to retrieve next batch of messages;
// so we need to wait for them to come back before retrying
WaitToShowPrevMsg();
}
else
{
if (sMsgID.length > 0)
{
var oCurMsgID = document.getElementById("hCurMsgID");
if (oCurMsgID)
{
oCurMsgID.value = sMsgID;
document.getElementById("nextprev").value = "1";
<%= gPostbackEventRef %>;
}
}
}
}
}
function WaitToShowNextMsg()
{
var oParent;
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
if ( oParent.gMessagesRetrieved && (oParent.gMessagesRetrieved == false) )
{
setTimeout(function () { WaitToShowNextMsg(); }, 1000);
}
else
{
ShowNextMsg();
}
}
function ShowNextMsg()
{
// we need to get the message ID of the next message in the list
// (relative to the currently selected message)
var oParent;
var sMsgID = "";
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
if (oParent.GetNextMsgID)
{
sMsgID = oParent.GetNextMsgID('<%= MessageID %>');
if (sMsgID == 0)
{
// we're already at the bottom of the list
return 1;
}
if (sMsgID == -1)
{
// gone to server to retrieve next batch of messages;
// so we need to wait for them to come back before retrying
WaitToShowNextMsg();
}
else
{
if (sMsgID.length > 0)
{
var oCurMsgID = document.getElementById("hCurMsgID");
if (oCurMsgID)
{
oCurMsgID.value = sMsgID;
document.getElementById("nextprev").value = "1";
<%= gPostbackEventRef %>;
}
}
}
}
}
function SetNextPrevButtonStatus()
{
var oParent;
var sMsgID = "";
<% If bAllowNewWindows Or bIsNewWindow Then %>
oParent = window.opener;
<% Else %>
oParent = window.parent;
<% End If %>
// can we get the next message ID??
if (oParent.GetNextMsgID)
{
sMsgID = oParent.GetNextMsgID('<%= MessageID %>');
if (sMsgID == 0)
{
// we're already at the bottom of the list
DisableToolbarButton("btnNext", BTTN_FLOAT_RIGHT);
}
else
{
// there are more messages to follow
EnableToolbarButton("btnNext", function() { ShowNextMsg(); }, BTTN_FLOAT_RIGHT);
}
}
// can we get the previous message ID??
if (oParent.GetPrevMsgID)
{
sMsgID = oParent.GetPrevMsgID('<%= MessageID %>');
if (sMsgID == 0)
{
// we're already at the top of the list
DisableToolbarButton("btnPrev", BTTN_FLOAT_RIGHT);
}
else
{
// there are more messages previously
EnableToolbarButton("btnPrev", function() { ShowPrevMsg(); }, BTTN_FLOAT_RIGHT);
}
}
}
function resizeMsgHeaderSubject() {
window.setTimeout(function() {
$('#tdPreviewSubject').width(0);
$('#tdPreviewAttachmentList').width(0);
var msgHeader_to = $('#divPreviewTo').width();
$('#tdPreviewSubject').width(msgHeader_to);
$('#tdPreviewAttachmentList').width(msgHeader_to);
}, 1000);
}
$(document).ready(function() {
window.onload = PageLoad;
});
// -->
</script>
<!--[if IE 6]>
<style type="text/css">
#btnReturn .bttn_toolbar_primary_left {padding:0;}
#btnNext .bttn_toolbar_primary_left {padding:0;}
#btnPrev .bttn_toolbar_primary_left {padding:0;}
#charSet_table_js {position:relative;}
#dlCharSet {position:absolute;top:60px;right:26px;}
.toolbar_icon_charSet {position:absolute;top:62px;right:5px;}
#dropDown_more {position:absolute;right:0;}
</style>
<![endif]-->
<!--[if lte IE 7]>
<style type="text/css">
.bttn_toolbar_primary_shell_right {float:right;}
.bttn_toolbar_primary_left {float:left;}
.bttn_toolbar_primary_right {float:left;}
.bttn_dropDown_right {float:left;}
#charSet_table_js {margin-top:5px !important;}
#td_more_js {width:220px;}
</style>
<![endif]-->
</head>
<body id="Body" onLoad="PageLoad();" style="background-color:Transparent;">
<uc1:uscAccess id="uscAccess" runat="server" EnableViewState="False"></uc1:uscAccess>
<form id="PreviewForm" runat="server"><%WriteFormValidationField()%>
<table class="body_shell_table pane-iframe" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="tdCompose" class="bodyCol_message" style="width:100%">
<div class="toolbar_primary">
<table class="toolbar_primary_table item_toolbar iframe read" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="toolbar_primary_table_left">
<div class="toolbar_primary_bttns_td_shell" onselectstart="return false;">
<% If (Not IsSMS) Or AllowSMSConversations() Then %>
<!-- Bttn New Message -->
<div class="bttn_toolbar_primary_shell bttn_newMsg blue" id="read_newMsg" title="<%=uscToken.GetText("[ME_TXT-ComposeNewMsg]")%>" onclick="getTopAppWindow().DoCompose<%=IIf(IsSMS,"SMS","")%>();">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_newMsg"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-Compose]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<!-- Bttn Reply -->
<div class="bttn_toolbar_primary_shell bttn_reply" id="read_reply" title="<%=uscToken.GetText("[ME_TXT-ReplytoSender]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_reply"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-Reply]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<!-- Bttn Reply to All -->
<div class="bttn_toolbar_primary_shell bttn_replyAll" id="read_replyAll" title="<%=uscToken.GetText("[ME_TXT-ReplytoAll]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_replyAll"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-ReplyAll]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<% End If %>
<!-- Bttn Forward-->
<div class="bttn_toolbar_primary_shell bttn_forward" id="read_forward" title="<%=uscToken.GetText("[ME_TXT-Forwardthismessage]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_forward"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-Forward]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<!-- Bttn Delete -->
<div class="bttn_toolbar_primary_shell bttn_delete" id="read_delete" title="<%=uscToken.GetText("[ME_TXT-Deletethismessage]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_delete"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-Delete]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<% If (MailEnable.Administration.Licensing.GrantedLicense(MailEnable.Administration.Licensing.gcMME_SERVICE_WEBMAIL_REPORTASSPAM) <> 0) And bMailboxMessageReportAsSpam Then%>
<!-- Bttn Spam -->
<div class="bttn_toolbar_primary_shell bttn_spam" id="read_spam" title="<%=uscToken.GetText("[ME_TXT-ReportAsSpam]")%>" onclick="ReportAsSpam();">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_junk"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-Spam]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<% End If %>
<!-- Bttn Print -->
<div class="bttn_toolbar_primary_shell bttn_print" id="read_print" title="<%=uscToken.GetText("[ME_TXT-Print]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_print"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-Print]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<!-- Bttn View Headers -->
<div class="bttn_toolbar_primary_shell bttn_viewHeaders" id="read_viewHeaders" title="<%=uscToken.GetText("[ME_TXT-ViewHeaders]")%>" onclick="ViewHeaders();">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_viewHeaders"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-ViewHeaders]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
<!-- Bttn Download Source -->
<div class="bttn_toolbar_primary_shell bttn_downloadSource" id="read_downloadSource" title="<%=uscToken.GetText("[ME_TXT-downloadSource]")%>" onclick="DownloadSource();">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_downloadSource"></div>
<div class="bttn_toolbar_primary_text"><%=uscToken.GetText("[ME_TXT-downloadSource]")%></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<div class="bttn_toolbar_primary_divider"></div>
</div><!-- toolbar_primary_bttns_td_shell -->
</td>
<td class="toolbar_more_td" id="td_more_js">
<!-- Bttn MORE ... -->
<div class="bttn_toolbar_primary_divider" style="float:right;"></div>
<div class="bttn_dropDown_float_right" id="btnMore" onclick="dropDown_toggleDisplay('dropDown_more');" <%= MailEnable.Clients.WebMail.Mondo.Request.CheckForRTL(Session("lang"))%>>
<div class="bttn_dropDown_left"><%=uscToken.GetText("[ME_TXT-More]")%></div>
<div class="bttn_dropDown_right"></div>
</div>
<div class="bttn_toolbar_primary_divider" style="float:right;"></div>
<div class="clear_div"></div>
<!-- Drop down menu: MORE... -->
<div class="dropDown_shell_right read dropDown_more_shell" id="dropDown_more" onmouseover="dropDown_over('dropDown_more')" onmouseout="dropDown_out(event, 'dropDown_more')" <%= MailEnable.Clients.WebMail.Mondo.Request.CheckForRTL(Session("lang"))%>>
<ul>
<div id="read_dropDown_newMsg" class="dropDown_item bttn_newMsg" onclick="dropDown_hide('dropDown_more');getTopAppWindow().DoCompose();">
<li class="dropDown_icon_newMsg"><%=uscToken.GetText("[ME_TXT-New]")%></li></div>
<div id="read_dropDown_reply" class="dropDown_item bttn_reply" onclick="dropDown_hide('dropDown_more');ProcessComposeCmd('Reply', SELECTED_LIST_ITEM);">
<li class="dropDown_icon_reply"><%=uscToken.GetText("[ME_TXT-Reply]")%></li></div>
<div id="read_dropDown_replyAll" class="dropDown_item bttn_replyAll" onclick="dropDown_hide('dropDown_more');ProcessComposeCmd('ReplyAll', SELECTED_LIST_ITEM);">
<li class="dropDown_icon_replyAll"><%=uscToken.GetText("[ME_TXT-ReplyAll]")%></li></div>
<div id="read_dropDown_forward" class="dropDown_item bttn_forward" onclick="dropDown_hide('dropDown_more');ProcessComposeCmd('Forward', SELECTED_LIST_ITEM);">
<li class="dropDown_icon_forward"><%=uscToken.GetText("[ME_TXT-Forward]")%></li></div>
<div id="read_dropDown_delete" class="dropDown_item bttn_delete" onclick="dropDown_hide('dropDown_more');DeleteCurrentMessage();">
<li class="dropDown_icon_delete"><%=uscToken.GetText("[ME_TXT-Delete]")%></li></div>
<% If (MailEnable.Administration.Licensing.GrantedLicense(MailEnable.Administration.Licensing.gcMME_SERVICE_WEBMAIL_REPORTASSPAM) <> 0) And bMailboxMessageReportAsSpam Then%>
<div id="read_dropDown_spam" class="dropDown_item bttn_spam" onclick="dropDown_hide('dropDown_more');ReportAsSpam();">
<li class="dropDown_icon_junk"><%=uscToken.GetText("[ME_TXT-Spam]")%></li></div>
<% End If%>
<div id="read_dropDown_print" class="dropDown_item bttn_print" onclick="dropDown_hide('dropDown_more');ME_Print();">
<li class="dropDown_icon_print"><%=uscToken.GetText("[ME_TXT-Print]")%></li></div>
</ul>
<div class="dropDown_shell_pointer"></div>
</div>
</td>
<td id="td_return_js">
<!-- Bttn Return -->
<div class="bttn_toolbar_primary_shell_right" id="btnReturn" onclick="ReturnToMessageList()" title="<%=uscToken.GetText("[ME_TXT-ReturnToMessagesList]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_return"></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<!-- Bttn Next Message -->
<div class="bttn_toolbar_primary_shell_right" id="btnNext" onclick="ShowNextMsg()" title="<%=uscToken.GetText("[ME_TXT-NextMessage]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_next"></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
<!-- Bttn Previous Message -->
<div class="bttn_toolbar_primary_shell_right" id="btnPrev" onclick="ShowPrevMsg()" title="<%=uscToken.GetText("[ME_TXT-PreviousMessage]")%>">
<div class="bttn_toolbar_primary_left">
<div class="toolbar_icon_previous"></div>
</div>
<div class="bttn_toolbar_primary_right"></div>
</div>
</td>
<td class="toolbar_primary_dummy_td read"></td>
</tr>
</table><!--toolbar_primary_table -->
</div><!-- toolbar_primary -->
<div class="clear_div"></div>
<!-- Message Header -->
<div class="msgHeader_shell" id="msgHeader_shell_js" <%= MailEnable.Clients.WebMail.Mondo.Request.CheckForRTL(Session("lang"))%>>
<table class="msgHeader_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><%=uscToken.GetText("[ME_TXT-From]")%>:</div></td>
<td class="msgHeader_table_right">
<table class="topNav_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:0;"><div class="msgHeader_from_txt"><%=GetFromText()%></div></td>
<% If Not IsSMS Then %>
<td style="padding:0;width:85px;padding-right:5px;">
<div class="toolbar_icon_blacklist" id="btnAddToBlacklist" title="<%=uscToken.GetText("[ME_TXT-AddToBlackList]")%>" onclick="AddToBlacklist()" style="margin-right:5px;"></div>
<div class="toolbar_icon_whitelist" id="btnAddToWhitelist" title="<%=uscToken.GetText("[ME_TXT-AddToWhiteList]")%>" onclick="AddToWhitelist()"></div>
<div class="toolbar_icon_addContact" id="btnAddToContacts" title="<%=uscToken.GetText("[ME_TXT-AddToContacts]")%>" onclick="AddToContacts()"></div>
</td>
<% End If %>
</tr>
</table>
</td>
<td class="msgHeader_table_right" id="td_charset" style="margin:0;padding:0;">
<table class="options_form_table" id="charSet_table_js" border="0" cellspacing="0" cellpadding="0" style="margin:0;padding:0;">
<tr>
<td id="tdCharset" style="text-align:right;margin:0;padding:0;display:block;">
<asp:dropdownlist id="dlCharSet" Runat="server" AutoPostBack="true" style="width:auto;height:auto;font-size:11px;margin:0;padding:0;"></asp:dropdownlist>
</td>
<td style="width:21px;margin:0;padding:0;">
<div class="toolbar_icon_charSet" title="<%=uscToken.GetText("[ME_TXT-Charset]")%>" onclick="ShowCharset()"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><%=uscToken.GetText("[ME_TXT-To]")%>:</div></td>
<td class="msgHeader_table_right" colspan="2"><div class="msgHeader_recip_txt" id="divPreviewTo" style="height:expression(this.scrollHeight>54?'54px':'auto')"><%=ToRecipients%></div></td>
</tr>
<% If Len(Trim(CCRecipients)) > 0 Then%>
<tr>
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><%=uscToken.GetText("[ME_TXT-CC]")%>:</div></td>
<td class="msgHeader_table_right" colspan="2"><div class="msgHeader_recip_txt" style="height:expression(this.scrollHeight>54?'54px':'auto')"><%=CCRecipients%></div></td>
</tr>
<% End If%>
<% If Len(Trim(BCCRecipients)) > 0 Then%>
<tr>
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><%=uscToken.GetText("[ME_TXT-Bcc]")%>:</div></td>
<td class="msgHeader_table_right" colspan="2"><div class="msgHeader_recip_txt" style="height:expression(this.scrollHeight>54?'54px':'auto')"><%=BCCRecipients%></div></td>
</tr>
<% End If%>
<tr>
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><%=uscToken.GetText("[ME_TXT-Date]")%>:</div></td>
<td class="msgHeader_table_right" colspan="2"><%=FixDate(Received)%></td>
</tr>
<tr>
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><%=uscToken.GetText("[ME_TXT-Subject]")%>:</div></td>
<td class="msgHeader_table_right" colspan="2"><div class="msgHeader_subject_txt" id="tdPreviewSubject"><%=Subject%></div></td>
</tr>
<% If Attachments Then%>
<tr id="trPreviewAttachments">
<td class="msgHeader_table_left"><div class="msgHeader_table_label"><a id="lnkAttachments" title="<%=uscToken.GetText("[ME_TXT-ViewAttachments]")%>" onclick="ViewAttachments()"><%=uscToken.GetText("[ME_TXT-Attachments]")%>:</a></div></td>
<td class="msgHeader_table_right" colspan="2"><div class="msgHeader_att_txt" id="tdPreviewAttachmentList"></div></td>
</tr>
<% End If%>
<% If bShowCalHeader Then%>
<tr>
<td colspan="3">
<table class="msgHeader_appt_table">
<tr>
<td id="tdVCalPrompt"></td>
</tr>
</table>
</td>
</tr>
<% End If%>
</table>
</div><!-- msgHeader_shell -->
</td>
</tr>
</table>
<div class="msgHeader_shell">
<% If IsTouchClient() Then%>
<div class="bodyCol_msg_shell" id="bodyCol_msg_shell_js">
<div id="MessageArea"></div>
</div>
<% Else %>
<div class="bodyCol_msg_shell" id="bodyCol_msg_shell_js" style="overflow:hidden;">
<iframe id="MessageArea" frameborder="no" class="ME_Message" allowTransparency="true" width="100%" height="100%" style="width:100%;height:100%;background-color:transparent;"></iframe>
</div>
<% End If%>
</div>
<input type="hidden" name="Page" id="Page" value="<%=gPage%>" />
<input type="hidden" id="hCurMsgID" name="hCurMsgID" runat="server" />
<input type="hidden" name="nextprev" id="nextprev" value="" />
<input type="hidden" name="BlockImages" id="BlockImages" value="<%=IIf(mbBlockImages, "1", "0")%>" />
</form>
</body>
</html>