| 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/NETWebAdmin/Mondo/lang/sys/Forms/ |
Upload File : |
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MessageTracker.aspx.vb" Inherits="MailEnable.Clients.WebAdmin.MessageTracker" %>
<%@ Register TagPrefix="uc2" TagName="uscLanguageTokenMondo" Src="../Controls/uscLanguageToken.ascx" %>
<%@ Register TagPrefix="uc1" TagName="uscStyleHeader" Src="../Controls/uscStyleHeader.ascx" %>
<%@ Register TagPrefix="ucScriptsInclude" TagName="ScriptsInclude" Src="../Controls/ScriptsInclude.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>MailEnable - <%=uscToken.GetText("[ME_TXT-TrackMessages]")%></title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<uc1:uscstyleheader id="UscStyleHeader1" runat="server"></uc1:uscstyleheader>
<ucScriptsInclude:ScriptsInclude id="ScriptsInclude1" runat="server"></ucScriptsInclude:ScriptsInclude>
<script type="text/javascript" language="javascript" src="../Scripts/LIBJQLayout.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/LIBCore.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/LIBCommon.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/LIBDialogs.js"></script>
<script type="text/javascript" language="javascript" src="../Scripts/LIBJQList.js"></script>
<meta content="JavaScript" name="vs_defaultClientScript"/>
<base target="_self"/>
<style type="text/css">
.sysListTable_shell {overflow:hidden;}
.sysListTableHeader {padding-top:3px; border:0;border-spacing:0;border-collapse:collapse;background:#ddd}
.sysListTableData {border:0;border-spacing:0;border-collapse:collapse}
.sysListTable td {padding:5px;font-size:13px}
.sysListTable_tr td {font-size:11px !important;font-weight:normal;color:#666}
.sysListTable_tr_unselected {}
.sysListTableHeader td {padding-top:5px !important; padding-bottom:3px !important}
.sysListTableHeader tr {border-top:solid 1px #C8C8C8;border-bottom:solid 1px #C8C8C8;border-collapse:collapse}
.td_Icon { padding: 2px 5px 2px 26px !important;cursor: pointer}
.td_DateTime {width:100px; text-align:right}
.td_Numeric{ width:40px; text-align:right}
.sysListTableData tr:hover {cursor:hand; background-color: #FFF9D0}
.sysListTable_shell tr { cursor:pointer }
.sysListTable_shell tr.selected { background-color:#E6F3FF;}
.sysListTable_shell td {padding: 5px;}
.sysListTable_shell div.tableContainer {clear: both; border: 1px solid #963}
.sysListTable_scrollContent {display: block; overflow-y: auto; overflow-x: hidden; width: 100%}
</style>
<script type="text/javascript">
var MsgDlg = null;
var g_opt={}; g_opt['ME_VALIDATIONTOKEN'] = '<%=Session.Item("ME_VALIDATIONTOKEN")%>'; //could be moved to masterpage
var Dlg = null;
<%=jList.GetJSONList()%>
$(document).ready(function()
{
MsgDlg = new MessageDialog("AlertDialog");
Dlg = new Dialog('ReportDialog', t_('[ME_TXT-MessageTrace]'), $('#ReportDialogContent'), { Width: 700 });
Dlg.AddCloseAction();
jsonList_Init(<%=jList.Id%>);
});
var isIE7 = false;
function browserResize() {
var html_h = document.body.offsetHeight;
var foot_h = document.getElementById('popupWin_content_foot_js').clientHeight;
var tab_head_h = document.getElementById('popupWin_tab_head_js').clientHeight;
var top_h = document.getElementById('content_top_js').clientHeight;
var shell_w = document.getElementById('trackMessage_shell').clientWidth;
if (isIE7 == true) {
var padding = 40 + 20;
var address_padding = 350;
} else {
var padding = 35;
var address_padding = 110;
}
var resize_h = html_h - foot_h - tab_head_h - padding;
var address_h = resize_h - top_h - address_padding;
document.getElementById('popupWin_content_scroll_js').style.height = resize_h + "px";
document.getElementById('ResultsList').style.height = resize_h - top_h - 55 + "px";
document.getElementById('ResultsList').style.width = shell_w - 40 + "px";
}
window.onresize = function() {
browserResize();
}
function PerformSearch()
{
var parameters = {
Date: $('#DateInput').val(),
Sender: $('#sender').val(),
Recipient: $('#recipient').val(),
Backtrace: $('#backtrace').is(':checked') ? 1 : 0
};
if (!parameters.Date)
{
MsgDlg.Alert(t_('[ME_TXT-InvalidInput]'), t_('[ME_TXT-DateSelectionRequired]'));
}
else
{
if (!parameters.Sender && !parameters.Recipient)
{
MsgDlg.Alert(t_('[ME_TXT-InvalidInput]'), t_('[ME_TXT-SenderOrRecipientRequired]'));
}
else
{
getTopAppWindow().ShowWait(t_("[ME_TXT-Pleasewait]") + "...");
$.ajax({
url: getAppServletURL() + "?Cmd=TRACK-MESSAGES&ts=" + (new Date()).getTime() + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'],
data: parameters,
dataType: 'json',
error: function()
{
getTopAppWindow().HideWait();
MsgDlg.Alert(t_('[ME_TXT-Error]'), t_('[ME_TXT-CommunicationError]'));
},
success: function(results)
{
getTopAppWindow().HideWait();
jsonList_Bind(jsonList,results);
jsonList_ShowData(jsonList,false);
if ((!results.length) || (results.length == 0))
{
MsgDlg.Alert(t_('[ME_TXT-NoMatchingMessagesCaption]'), t_('[ME_TXT-NoMatchingMessages]'));
}
}
});
}
}
}
function ShowSelectedMessageReport(Command)
{
var SelectedMessageID = '';
if (jsonList.selectedIndex != -1)
{
SelectedMessageID = jsonList.Items[jsonList.selectedIndex].MessageID;
}
var parameters = {
Date: $('#DateInput').val(),
MessageID: SelectedMessageID
};
if (!parameters.Date)
{
MsgDlg.Alert(t_('[ME_TXT-InvalidInput]'), t_('[ME_TXT-DateSelectionRequired]'));
}
else if (!parameters.MessageID)
{
MsgDlg.Alert(t_('[ME_TXT-InvalidInput]'), t_('[ME_TXT-MessageSelectionRequired]'));
}
else
{
getTopAppWindow().ShowWait(t_("[ME_TXT-Pleasewait]") + "...");
$.ajax({
url: getAppServletURL() + "?Cmd=" + Command + "&ts=" + (new Date()).getTime() + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'],
data: parameters,
dataType: 'text',
error: function()
{
getTopAppWindow().HideWait();
MsgDlg.Alert(t_('[ME_TXT-Error]'), t_('[ME_TXT-CommunicationError]'));
},
success: function(report)
{
getTopAppWindow().HideWait();
var reportHtml = report.replace(/\r?\n/g, '<br/>');
$('#ReportDialogContent').html(reportHtml);
Dlg.Show();
}
});
}
}
function tracker_ItemSelected(jsonList)
{
//fires when we select an item in the list (allowing us to enable buttons for follow on actions)
if (jsonList.Items)
{
var oItem = jsonList.Items[jsonList.selectedIndex];
}
}
function ShowSelectedTransaction()
{
ShowSelectedMessageReport('GET-MESSAGE-TRANSACTION');
}
function TraceSelectedMessage()
{
ShowSelectedMessageReport('TRACE-MESSAGE');
}
</script>
<!--[if lte IE 7]>
<script type="text/javascript">
var isIE7 = true;
</script>
<![endif]-->
</head>
<body class="popupWin_body_bg" onload="browserResize()">
<div class="popupWin_content_body">
<div class="popupWin_content_body_inner">
<div class="popupWin_content_shell" id="trackMessage_shell">
<form id="FrmMailboxDetails" runat="server"><%MailEnable.Utilities.WriteFormValidationField(Response, Session.SessionID, Session.Item("ME_VALIDATIONTOKEN"))%>
<div class="popupWin_tab_body_shell">
<div id="popupWin_tab_head_js">
<asp:literal id="litTabBar" Runat="server"></asp:literal>
</div>
<div class="popupWin_content_scroll_tab trackMessage" id="popupWin_content_scroll_js">
<div class="popupWin_content_scroll_tab_inner">
<div id="content_top_js">
<table class="options_form_table" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<div class="options_form_description">
<%=uscToken.GetText("[ME_TXT-TrackMessageDescription]")%>
</div>
</td>
</tr>
<tr>
<td colspan="2"><div class="options_form_gap"></div></td>
</tr>
<tr>
<td class="options_form_table_minWidth top"><div class="options_form_label"><%=uscToken.GetText("[ME_TXT-Date]")%>:</div></td>
<td>
<asp:DropDownList ID="DateInput" Runat="server" CssClass="ME_Input"></asp:DropDownList><br />
<div class="options_form_note"><%=uscToken.GetText("[ME_TXT-MessageTrackingDateInstructions]")%></div>
</td>
</tr>
<tr>
<td class="options_form_table_minWidth top"><div class="options_form_label"><%=uscToken.GetText("[ME_TXT-Sender]")%>:</div></td>
<td>
<asp:textbox class="textfield" id="sender" Runat="server"></asp:textbox>
<div class="options_form_note"><%=uscToken.GetText("[ME_TXT-MessageTrackingSenderInstructions]")%></div>
</td>
</tr>
<tr>
<td class="options_form_table_minWidth top"><div class="options_form_label"><%=uscToken.GetText("[ME_TXT-Recipient]")%>:</div></td>
<td>
<asp:textbox class="textfield" id="recipient" Runat="server"></asp:textbox>
<div class="options_form_note"><%=uscToken.GetText("[ME_TXT-MessageTrackingRecipientInstructions]")%></div>
</td>
</tr>
<tr>
<td colspan="2"><div class="options_form_gap"></div></td>
</tr>
<tr>
<td class="options_form_table_minWidth"><div class="options_form_label"></div></td>
<td><label><input class="checkbox" type="checkbox" ID="backtrace" value="backtrace"/><%=uscToken.GetText("[ME_TXT-Backtrace]")%></label></td>
</tr>
</table>
<div class="popupWin_tab_foot" style="padding:0">
<input type="button" id="SearchButton" value="<%=uscToken.GetText("[ME_TXT-Search]")%>" name="Search" onclick="PerformSearch();" class="ME_Button" style="width:80px;cursor:pointer"></input>
</div>
</div><!-- END of content_top_js -->
<table class="options_form_table" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><h2><%=uscToken.GetText("[ME_TXT-MessageTrackingResultsListCaption]")%>:</h2></td>
</tr>
<tr>
<td><div id="ResultsList" class="sysListTable_shell trackMessage" style="border:solid 1px #C8C8C8"></div></td>
</tr>
</table>
</div><!-- popupWIn_content_scroll_tab_inner -->
</div><!-- popupWIn_content_scroll_tab -->
<div class="popupWin_tab_foot" id="popupWin_content_foot_js">
<input type="button" id="ShowTransactionButton" value="<%=uscToken.GetText("[ME_TXT-ShowTransaction]")%>..." name="ShowTransaction" onclick="ShowSelectedTransaction();" class="ME_Button" style="width:160px;cursor:pointer"></input> <input type="button" id="TraceMessageButton" value="<%=uscToken.GetText("[ME_TXT-TraceMessage]")%>..." name="TraceMessage" onclick="TraceSelectedMessage();" class="ME_Button" style="width:160px;cursor:pointer"></input>
</div>
</div><!-- popupWin_tab_body_shell -->
</form>
</div><!-- popupWin_content_shell -->
</div><!-- popupWin_content_body_inner -->
</div><!-- popupWin_content_body -->
<div id="ReportDialogContent" style="max-height:400px;width:100%;overflow-y:auto;overflow-x:hidden;white-space:normal;"></div>
</body>
</html>