| 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/scripts/ |
Upload File : |
var gPreviousSelectedIndex = -1; // The previous selected row index of the list.
var LIST_ROW_STYLE_SELECTED = 'MsgList_SelectedRow';
var LIST_ROW_STYLE_1 = 'ME_MessageList0';
var LIST_ROW_STYLE_2 = 'ME_MessageList1';
var LIST_ID = 'MEMessageList';
var LIST_CONTAINER = 'msgList_shell_js';
var LIST_CONTAINER_INNER = 'msgList_container_js';
var gTotalItems;
var gNumLookupItemsPrev = 0;
var gNumLookupItemsNext = 0;
var gNumItemsThisPage;
var gItemsPerPage;
var gUnitScrollLength=24;
var gItemsArraySize;
var gListFirstLoad = true;
var gNumDataColumns = 0;
var gListMethod = 'LIST-SMS';
var gListParams = '';
function EditListItem(ID)
{
ShowWindow('SMSDetails.aspx?DIALOGSET=Dialog_UserDetails&CurrentProperty=0&DialogCmd=Edit&Cmd=Edit&ID=' + encodeURIComponent(ID) + '&ME_VALIDATIONTOKEN=' + g_opt['ME_VALIDATIONTOKEN'], 'MailEnable', 'resizable:1;center:yes;dialogWidth:510px;dialogHeight:500px');
}
function ViewListItem(ID)
{
ShowWindow('SMSDetails.aspx?DIALOGSET=Dialog_UserDetails&CurrentProperty=0&DialogCmd=View&Cmd=View&ID=' + encodeURIComponent(ID) + '&ME_VALIDATIONTOKEN=' + g_opt['ME_VALIDATIONTOKEN'], 'MailEnable', 'resizable:1;center:yes;dialogWidth:510px;dialogHeight:500px');
}
function RemoveListItem(ID)
{
ShowWindow('SMSDetails.aspx?DIALOGSET=Dialog_UserDetails&CurrentProperty=0&DialogCmd=Delete&Cmd=Delete&ID=' + encodeURIComponent(ID) + '&ME_VALIDATIONTOKEN=' + g_opt['ME_VALIDATIONTOKEN'], 'MailEnable', 'resizable:1;center:yes;dialogWidth:510px;dialogHeight:500px');
}
function fnEditItem(e)
{
if (e == undefined) {
e = window.event;
}
var element = (e.target != undefined) ? e.target : e.srcElement;
var sID = element.ID;
sID = sID.replace('btnID_', '');
EditListItem(sID)
}
function fnViewItem(e)
{
if (e == undefined) {
e = window.event;
}
var element = (e.target != undefined) ? e.target : e.srcElement;
var sID = element.ID;
sID = sID.replace('btnID_', '');
ViewListItem(sID);
}
function fnRemoveItem(e)
{
if (e == undefined) {
e = window.event;
}
var element = (e.target != undefined) ? e.target : e.srcElement;
var sID = element.ID;
sID = sID.replace('btnID_', '');
RemoveListItem(sID);
}
function fnAlert(e)
{
if (e == undefined) {
e = window.event;
}
var element = (e.target != undefined) ? e.target : e.srcElement;
var sAlert = element.ID;
sAlert = sAlert.replace('btnID_', '');
alert(sAlert);
}
function ExtractData(oMailboxAttributes,XMLNode) {
var XMLNodeAttributes;
var Address, Number, ID;
XMLNodeAttributes = XMLNode.attributes;
ID = GetXMLValue(XMLNodeAttributes.getNamedItem('ID'));
Address = GetXMLValue(XMLNode.getElementsByTagName("ADDRESS")[0]);
Number = GetXMLValue(XMLNode.getElementsByTagName("NUMBER")[0]);
// the number is the ID
oMailboxAttributes['MessageID'] = ID;
oMailboxAttributes['Address'] = Address;
oMailboxAttributes['Number'] = Number;
// oMailboxAttributes['Username_Full'] = Username;
// oMailboxAttributes['Status'] = Status;
// oMailboxAttributes['Rights'] = Rights;
// oMailboxAttributes['Rights_Full'] = Rights;
oMailboxAttributes['Graphic_Status'] = 'icon_phone.gif';
// oMailboxAttributes['Label_Username'] = Username;
// oMailboxAttributes['Title_Username'] = Username;
var oButtonsArray = new Array();
var index=0;
var oActionNode = XMLNode.getElementsByTagName("ACTION")[index];
while (oActionNode != null)
{
var sActionType = GetXMLValue(oActionNode.attributes.getNamedItem('TYPE'));
var sActionLabel = GetXMLValue(oActionNode.getElementsByTagName('LABEL')[0]);
var sID = GetXMLValue(oActionNode.getElementsByTagName('ID')[0]);
if (sActionType.toUpperCase() == "EDIT")
{
//fAction = new Function("Param", "ShowWindow(Param, 'MailEnable', 'resizable:1;center:yes;dialogWidth:510px;dialogHeight:500px');");
//oButtonsArray[index] = {Label:sActionLabel, Action:fAction(sActionParam)};
//fAction = function () { ShowWindow('sActionParam', 'MailEnable', 'resizable:1;center:yes;dialogWidth:510px;dialogHeight:500px'); };
//oButtonsArray[index] = {Label:sActionLabel, Action:fAction};
oButtonsArray[index] = { Label:sActionLabel, Action:fnEditItem, ActionID:sID };
}
else if (sActionType.toUpperCase() == "VIEW")
{
oButtonsArray[index] = { Label:sActionLabel, Action:fnViewItem, ActionID:sID };
}
else if (sActionType.toUpperCase() == "REMOVE")
{
oButtonsArray[index] = { Label:sActionLabel, Action:fnRemoveItem, ActionID:sID };
}
else if (sActionType.toUpperCase() == "ALERT")
{
var sAlert = GetXMLValue(oActionNode.getElementsByTagName('ALERT')[0]);
//oButtonsArray[index] = { Label:sActionLabel, Action:alert(sAlert), ActionID:sID };
oButtonsArray[index] = { Label:sActionLabel, Action:fnAlert, ActionID:sAlert };
}
index++;
oActionNode = XMLNode.getElementsByTagName("ACTION")[index];
}
oMailboxAttributes['ButtonsArray'] = oButtonsArray;
}