| 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 : /Program Files (x86)/Mail Enable/Bin/NETWebMail/Mondo/lang/sys/Forms/MAI/ |
Upload File : |
<%@ Register TagPrefix="uc1" TagName="uscStyleHeader" Src="../../../Controls/uscStyleHeader.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Uploader.aspx.vb" Inherits="MailEnable.Clients.WebMail.Mondo.Uploader" %>
<%@ Register TagPrefix="uc1" TagName="ScriptsInclude" Src="../../../Controls/ScriptsInclude.ascx" %>
<%@ Register TagPrefix="uc2" TagName="uscLanguageTokenMondo" Src="../../../Controls/uscLanguageToken.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><%=uscToken.GetText("[ME_TXT-Uploader]")%></title>
<uc1:uscStyleHeader id="UscStyleHeader1" runat="server"></uc1:uscStyleHeader>
<uc1:ScriptsInclude id="ScriptsInclude" runat="server"></uc1:ScriptsInclude>
<script type="text/javascript" language="Javascript">
<!--
var oAlertDialog = null;
var SkinRoot = '<%=Session("skin")%>';
var oFileDialog;
var oWaitDialog = new ProgressDialog("WaitDialog", SkinImage("progress-bar.gif"));
var gBrowserType = GetBrowserType();
// this is necessary for the FileChooserDialog
function ProcessXMLResult(responseXML, FrameName)
{
if (responseXML == undefined)
{
alert('responseXML == undefined');
return false;
}
var BaseNode = responseXML.getElementsByTagName("BASEELEMENT")[0];
if (BaseNode == null)
{
ShowAlert("Server failure!");
return false;
}
var sDestination = GetXMLValue(BaseNode.attributes.getNamedItem('RESULT_DEST'));
if( sDestination == 'DIALOG' )
{
return oFileDialog.ProcessXMLResult( BaseNode );
}
return true;
}
function ServerRequest(sCommand, sData, bUseCallback, sFrameName)
{
return LIBAjax_ServerRequest(sCommand, sData, bUseCallback, sFrameName);
}
function SubmitAttachment()
{
var oFile = document.getElementById("FileUploader");
var oFrmUpload = document.getElementById("frmUpload");
if (oFile.value == 0)
{
// We don't want to use our dialog here
// because this page (iframe) can be very small in dimensions;
// so we'll just popup a browser alert instead.
alert(t_("[ME_TXT-Youmustselectafilebeforeattemptinganupload]"));
}
else if (oFrmUpload)
{
document.getElementById("FileSource").value = "LocalStorage";
ShowProgressWait();
window.setTimeout(function() { oFrmUpload.submit(); }, 2000);
}
}
function ShowAlert(Title, Message)
{
if (oAlertDialog != null) {
oAlertDialog.Alert(Title, Message);
}
else {
alert(Message);
}
}
function ShowProgressWait()
{
window.parent.ShowUploadProgress();
}
function HideProgressWait()
{
window.parent.HideUploadProgress();
}
function ChooseFromStorage()
{
oFileDialog = new FileChooserDialog("FileAttach");
oFileDialog.Prompt( t_("[ME_TXT-ChooseFileFromStorage]") + "...", "", true, false,
function(sPath, sAttachmentName)
{
document.getElementById("StoragePath").value = sPath;
document.getElementById("FileSource").value = "FileStorage";
document.getElementById("AttachmentName").value = sAttachmentName;
var oFrmUpload = document.getElementById("frmUpload");
if (oFrmUpload)
{
ShowProgressWait();
window.setTimeout(function() { oFrmUpload.submit(); }, 2000);
}
}
);
}
function SetControls()
{
if (getTopAppWindow().GetOption)
{
<% If gFileStoreEnabled Then %>
if (getTopAppWindow().g_opt['FileStoreEnabled'])
{
window.document.getElementById('btnStorage').style.display='';
}
<% Else %>
window.document.getElementById('btnStorage').style.display='none';
<% End If %>
}
return true;
}
function PageLoad()
{
oAlertDialog = new MessageDialog("UploadAlertDialog");
SetControls();
return true;
}
// -->
</script>
</head>
<body onload="PageLoad();" style="background-color:Transparent">
<form id="frmUpload" runat="server" enctype="multipart/form-data" method="post"><%WriteFormValidationField()%>
<% If Not IsTouchClient() Then%>
<div style="float:left;width:120px;padding:2px 5px 0px 0px"><%=uscToken.GetText("[ME_TXT-FileName]")%>:</div>
<input type="file" id="FileUploader" name="FileUploader" runat="server" style="float:left;width:350px !important;height:21px;margin-right:5px;">
<input type="button" class="nostyle" id="btnAttach" value="<%=uscToken.GetText("[ME_TXT-Attach]")%>" style="float:right;" onclick="SubmitAttachment();"/>
<br /><br />
<% End If %>
<div class="clear_div"></div>
<input type="button" class="nostyle" id="btnStorage" value="<%=uscToken.GetText("[ME_TXT-AttachFromStorage]")%>" style="float:left;height:22px;margin-left:125px;" onclick="ChooseFromStorage();"/>
<input id="StoragePath" type="hidden" runat="server" />
<input id="AttachmentName" type="hidden" runat="server" />
<input id="FileSource" type="hidden" runat="server" />
</form>
</body>
</html>