| 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/ |
Upload File : |
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ManageShare.aspx.vb" Inherits="MailEnable.Clients.WebMail.Mondo.ManageShare" %>
<%@ Register TagPrefix="uc1" TagName="uscStyleHeader" Src="../../Controls/uscStyleHeader.ascx" %>
<%@ Register TagPrefix="uc2" TagName="uscPageBorder_Start" Src="../../Controls/uscPageBorder_Start.ascx" %>
<%@ Register TagPrefix="uc3" TagName="uscPageBorder_End" Src="../../Controls/uscPageBorder_End.ascx" %>
<%@ 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-ManageShare]")%></title>
<uc1:uscStyleHeader id="UscStyleHeader1" runat="server"></uc1:uscStyleHeader>
<uc1:ScriptsInclude id="ScriptsInclude" runat="server"></uc1:ScriptsInclude>
<script type="text/javascript" language="javascript">
<!--
function IsPopUp()
{
return '<%=GetContext()%>'=='1';
}
function Back()
{
if (IsPopUp()){
window.parent.oShareFolderDialog.Close();
}
else {
window.location.href = "ManageShares.aspx?SelectedIndex=<%=ParseRequestArgument("SelectedIndex") %>";
}
}
function ServerRequest(sCommand, sData, bUseCallback, sFrameName)
{
return LIBAjax_ServerRequest(sCommand, sData, bUseCallback, sFrameName);
}
function ServerPost(sCommand, sData, bUseCallback, sFrameName)
{
return LIBAjax_ServerPost(sCommand, sData, bUseCallback, sFrameName);
}
function ProcessXMLResult(responseXML)
{
var BaseNode = responseXML.getElementsByTagName("BASEELEMENT")[0];
if (BaseNode ==null)
{
alert('Server failure');
return true;
}
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 == 'GRANT-ACCESS')
{
EnableOKButton("btnGrant", function() { GrantAccess(); }, BTTN_FLOAT_RIGHT);
ProcessGrantResult(BaseNode);
}
}
return true;
}
function ProcessGrantResult(BaseNode)
{
var sResult = GetXMLValue(BaseNode.getElementsByTagName("RETURNVALUE")[0]);
var sResource = GetXMLValue(BaseNode.getElementsByTagName("RESOURCE")[0]);
if ( sResult == "1" )
{
if (getTopAppWindow().ChangeFolderShareIcon) {
getTopAppWindow().ChangeFolderShareIcon(sResource, true);
}
var slocation = window.location + '';
var re = new RegExp('&Resource=([^&]*)');
var reResult = re.exec(slocation);
if (reResult)
{
slocation = slocation.replace(reResult[1], encodeURIComponent(document.getElementById('ddlResource').value));
}
else
{
slocation = slocation + '&Resource=' + encodeURIComponent(document.getElementById('ddlResource').value);
}
re = new RegExp('Mode=([^&]*)');
reResult = re.exec(slocation);
if (reResult)
{
slocation = slocation.replace(reResult[1], 'Edit');
}
else
{
slocation = slocation + '&Mode=Edit';
}
// refresh the Access list by reloading the page
// (there's probably another better way to refresh the list)
window.location = slocation;
}
else
{
getTopAppWindow().ShowAlert(t_("[ME_TXT-Error]"), GetXMLValue(BaseNode.getElementsByTagName('ERROR_DESCRIPTION')[0]), true);
}
}
function GrantAccess()
{
var sScope;
if (document.getElementById('optACE').checked)
{
sScope = 'EVERYONE';
}
else if (document.getElementById('optACA').checked)
{
sScope= 'ANONYMOUS';
}
else
{
sScope = 'MAILBOX';
}
// disable the 'Grant Access' button
DisableOKButton("btnGrant", BTTN_FLOAT_RIGHT);
var sMailbox = document.getElementById('txtMailbox').value;
var sAccess = (document.getElementById('ddlAccess').value == 1) ? 'FULL' : 'READ';
//var data = 'Folder=<%=replace(Server.UrlEncode(ParseRequestArgument("Resource")),"'","\'")%>&ME_ACE=' + sScope + '&ME_MAILBOX_NAME=' + sMailbox + '&ME_ACCESS=' + sAccess;
var data = 'Folder=' + encodeURIComponent(document.getElementById('ddlResource').value) + '&ME_ACE=' + sScope + '&ME_MAILBOX_NAME=' + sMailbox + '&ME_ACCESS=' + sAccess + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'];
ServerRequest('GRANT-ACCESS', data, true);
}
function RemoveResourceShareIcon(Resource)
{
if (getTopAppWindow().ChangeFolderShareIcon) {
getTopAppWindow().ChangeFolderShareIcon(Resource, false);
}
}
function RemoveAccess(Account)
{
__doPostBack('lnkRemove', Account);
}
function selectMailbox()
{
document.getElementById('optMailbox').checked = true;
}
// -->
</script>
<!--[if lte IE 7]>
<style type="text/css">
.bttn_right {float:left;}
.dataTable_action {width:80px;}
.threeCol_form_table td {margin:0;padding:0;}
.threeCol_form_table input {margin:0;padding:0;}
.popupWin_foot_bttns {height:27px;margin:0;padding:0;overflow:hidden;}
</style>
<![endif]-->
</head>
<body style="background-color:Transparent;">
<form method="post" runat="server"><%WriteFormValidationField()%>
<table class="body_shell_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bodyCol_options">
<div id="options_shell_js">
<div class="options_shell_inner">
<!-- Shared Resources: Properties -->
<uc2:uscPageBorder_Start ID="SharedResourcesPropertiesFrameHeader" runat="server"></uc2:uscPageBorder_Start>
<div class="optionsPanel_body_shell">
<table class="options_form_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table class="options_form_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="options_table_minWidth"><div class="options_form_label"><h2><%=uscToken.GetText("[ME_TXT-ResourceLabel]")%>:</h2></div></td>
<td>
<asp:DropDownList id="ddlResource" runat="server" AutoPostBack="True"></asp:DropDownList>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><div class="options_form_gap"></div></td>
</tr>
<tr>
<td><%=uscToken.GetText("[ME_TXT-AccessListCaption]")%></td>
</tr>
<tr>
<td><div class="options_form_gap"></div></td>
</tr>
<tr>
<td>
<div class="dataTable2_shell">
<div class="dataTable_table_head_shell">
<table class="dataTable_table_head" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="dataTable_table_head_shell_inner" id="divHeader">
<table class="dataTable2_table_head" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dataTable_noWidth"><%=uscToken.GetText("[ME_TXT-Directory]")%></td>
<td class="dataTable_access"><%=uscToken.GetText("[ME_TXT-AccessLevelLabel]")%></td>
<td class="dataTable_action"><%=uscToken.GetText("[ME_TXT-Action]")%></td>
</tr>
</table>
</div><!-- dataTable_table_head_shell_inner -->
</td>
<td class="dataTable_table_head_right"></td>
</tr>
</table>
</div><!-- dataTable_table_head_shell -->
<div class="dataTable_body_shell short" id="table_div">
<div class="dataTable_shell_inner">
<%=GetShareAnnotation()%>
<asp:Table ID="tblAccess" runat="server" CssClass="dataTable_table" BorderWidth="0" CellPadding="0" CellSpacing="0">
</asp:Table>
</div><!-- dataTable_shell_inner -->
</div><!-- dataTable_body_shell -->
</div><!-- dataTable2_shell -->
<div class="options_shared_bottom_shell">
<div class="options_shared_bottom_left">
<h2><%=uscToken.GetText("[ME_TXT-AddNewUser]")%></h2>
<table class="threeCol_form_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="threeCol_form_table_radio"><input id="optMailbox" name="ME_ACE" type="radio" class="radio" value="MAILBOX" onclick="SetControlState('txtMailbox', true); SetFieldFocus('txtMailbox');"></td>
<td class="threeCol_form_table_label"><div class="threeCol_form_table_txt"><%=uscToken.GetText("[ME_TXT-MailboxOrUser]")%>:</div></td>
<td class="threeCol_form_table_noWidth"><input id="txtMailbox" name="ME_MAILBOX_NAME" class="textfield" type="text" style="width:80%;" onkeypress="selectMailbox();" disabled/></td>
</tr>
<tr>
<td class="threeCol_form_table_radio"><input id="optACA" name="ME_ACE" type="radio" class="radio" value="ANONYMOUS" onclick="SetControlState('txtMailbox', false)"></td>
<td class="threeCol_form_table_label"><div class="threeCol_form_table_txt"><%=uscToken.GetText("[ME_TXT-Anonymous]")%></div></td>
<td class="threeCol_form_table_noWidth"></td>
</tr>
<tr>
<td class="threeCol_form_table_radio"><input ID="optACE" name="ME_ACE" type="radio" class="radio" value="EVERYONE" onclick="SetControlState('txtMailbox', false)" checked></td>
<td class="threeCol_form_table_label"><div class="threeCol_form_table_txt"><%=uscToken.GetText("[ME_TXT-Everyone]")%></div></td>
<td class="threeCol_form_table_noWidth"></td>
</tr>
</table>
</div>
<div class="options_shared_bottom_right">
<%=uscToken.GetText("[ME_TXT-AccessLevelLabel]")%>:<br />
<select id="ddlAccess">
<option value="0"><%=uscToken.GetText("[ME_TXT-ReadOnlyAccess]")%></option>
<option value="1"><%=uscToken.GetText("[ME_TXT-FullAccess]")%></option>
</select>
</div>
</div>
<!-- Footer Bttns -->
<div class="popupWin_foot_bttns">
<div class="bttn_float_right" id="btnBack" onclick="Back()">
<div class="bttn_left" onselectstart="return false;"><div class="compose_bttn_okCancel"><%=BackButtonText()%></div></div>
<div class="bttn_right"></div>
</div>
<div class="bttn_float_right" id="btnGrant" onclick="GrantAccess()">
<div class="bttn_left" onselectstart="return false;"><div class="compose_bttn_okCancel"><%=uscToken.GetText("[ME_TXT-GrantAccess]")%></div></div>
<div class="bttn_right"></div>
</div>
</div><!-- popupWin_foot_bttns -->
</td>
</tr>
</table>
</div><!-- optionsPanel_body_shell -->
<uc3:uscPageBorder_End ID="SharedResourcesPropertiesFrameFooter" runat="server"></uc3:uscPageBorder_End>
</div>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>