Merge
This commit is contained in:
commit
1fbacb828c
101 changed files with 2617 additions and 1781 deletions
|
@ -5593,10 +5593,32 @@
|
|||
<data name="Error.RDS_CREATE_COLLECTION_RDSSERVER_REQUAIRED" xml:space="preserve">
|
||||
<value>Error creating rds collection. You need to add at least 1 rds server to collection</value>
|
||||
</data>
|
||||
<data name="Quota.Exchange2013.ResourceMailboxes" xml:space="preserve">
|
||||
<value>Resource Mailboxes per Organization</value>
|
||||
</data>
|
||||
<data name="Quota.Exchange2013.SharedMailboxes" xml:space="preserve">
|
||||
<value>Shared Mailboxes per Organization</value>
|
||||
</data>
|
||||
<data name="RoomMailbox.Text" xml:space="preserve">
|
||||
<value> (room mailbox)</value>
|
||||
</data>
|
||||
<data name="SharedMailbox.Text" xml:space="preserve">
|
||||
<value> (shared mailbox)</value>
|
||||
</data>
|
||||
<data name="EquipmentMailbox.Text" xml:space="preserve">
|
||||
<value> (equipment mailbox)</value>
|
||||
</data>
|
||||
<data name="Success.DOMAIN_UPDATE_DOMAIN" xml:space="preserve">
|
||||
<value>Domain information has been successfully updated.</value>
|
||||
</data>
|
||||
<data name="Success.WEB_UPDATE_SITE" xml:space="preserve">
|
||||
<value>Web site has been successfully updated.</value>
|
||||
</data>
|
||||
<data name="SchedulerTask.SCHEDULE_TASK_DOMAIN_LOOKUP" xml:space="preserve">
|
||||
<value>Check MX and NS on DNS servers</value>
|
||||
</data>
|
||||
<data name="SchedulerTask.SCHEDULE_TASK_DOMAIN_EXPIRATION" xml:space="preserve">
|
||||
<value>Check domain expiration date</value>
|
||||
</data>
|
||||
|
||||
</root>
|
Binary file not shown.
After Width: | Height: | Size: 226 B |
|
@ -237,6 +237,7 @@ A.Black {color: Black !important; text-decoration: none !important;}
|
|||
.RedStatus {background-image: url(error_bkg.gif); background-repeat: repeat-x;font-size: 8pt; font-weight: bold; color: White; background-color: #ff3300; text-align: center; padding: 6px;}
|
||||
.MessageBox SPAN.description {font-weight: normal !important;}
|
||||
.MessageBox .TechnicalDetails {padding-top: 4px; font-weight: normal !important;}
|
||||
.TechnicalDetailsTable {background-color: #FFFFFF; color: #222; }
|
||||
.MessageBoxSection {font-size: 8pt; font-weight: bold;}
|
||||
.popupHint {border: 2px solid #C4D6BB;padding: 3px; background-color: #F1F1FF;}
|
||||
.popupComments {border: 2px solid #C4D6BB;font-size: 9px; padding: 3px; background-color: #F1F1FF;}
|
||||
|
@ -291,4 +292,5 @@ UL.ActionButtons LI {margin-bottom: 12px;}
|
|||
.enabled {width:20px; height:20px; background: transparent url(../Icons/ok.png) left center no-repeat; border:medium none;}
|
||||
p.warningText {font-size:14px; color:Red; text-align:center;}
|
||||
.Hidden {display: none;}
|
||||
.LinkText {color:#428bca;}
|
||||
.LinkText {color:#428bca;}
|
||||
.WrapText { white-space: normal;}
|
|
@ -112,24 +112,18 @@
|
|||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save</value>
|
||||
</data>
|
||||
<data name="btnCancel.Text" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
</data>
|
||||
<data name="btnDelete.Text" xml:space="preserve">
|
||||
<value>Delete</value>
|
||||
</data>
|
||||
<data name="btnDelete.OnClientClick" xml:space="preserve">
|
||||
<value>if(!confirm('Do you really want to delete this domain?')) return false;ShowProgressDialog('Deleting domain...');</value>
|
||||
</data>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<data name="buttonPanel.OnSaveClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating Domain...');</value>
|
||||
</data>
|
||||
<data name="AllowSubDomains.Text" xml:space="preserve">
|
||||
|
|
|
@ -132,9 +132,6 @@
|
|||
<data name="btnAddVirtualDirectory.Text" xml:space="preserve">
|
||||
<value>Create Directory</value>
|
||||
</data>
|
||||
<data name="btnCancel.Text" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
</data>
|
||||
<data name="btnChangeFrontPagePassword.Text" xml:space="preserve">
|
||||
<value>Change Password</value>
|
||||
</data>
|
||||
|
@ -150,12 +147,9 @@
|
|||
<data name="btnUninstallFrontPage.Text" xml:space="preserve">
|
||||
<value>Uninstall</value>
|
||||
</data>
|
||||
<data name="btnUpdate.OnClientClick" xml:space="preserve">
|
||||
<data name="buttonPanel.OnSaveClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating web site...');</value>
|
||||
</data>
|
||||
<data name="btnUpdate.Text" xml:space="preserve">
|
||||
<value>Update</value>
|
||||
</data>
|
||||
<data name="cmdContinue.AlternateText" xml:space="preserve">
|
||||
<value>Continue Web Site</value>
|
||||
</data>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DomainsEditDomain.ascx.cs" Inherits="WebsitePanel.Portal.DomainsEditDomain" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagPrefix="wsp" TagName="CollapsiblePanel" %>
|
||||
<%@ Register Src="UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
||||
|
||||
|
@ -119,9 +120,8 @@
|
|||
</fieldset>
|
||||
</div>
|
||||
<div class="FormFooter">
|
||||
<asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" CssClass="Button1" Text="Save" OnClick="btnSave_Click" OnClientClick = "ShowProgressDialog('Updating Domain...');"/>
|
||||
<asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" CssClass="Button1" CausesValidation="false"
|
||||
Text="Cancel" OnClick="btnCancel_Click" />
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" OnSaveClientClick="ShowProgressDialog('Updating Domain...');" />
|
||||
<asp:Button ID="btnDelete" runat="server" meta:resourcekey="btnDelete" CssClass="Button1" CausesValidation="false"
|
||||
Text="Delete" OnClick="btnDelete_Click" />
|
||||
</div>
|
|
@ -48,6 +48,9 @@ namespace WebsitePanel.Portal
|
|||
if (!IsPostBack)
|
||||
{
|
||||
BindDomain();
|
||||
|
||||
if (GetLocalizedString("buttonPanel.OnSaveClientClick") != null)
|
||||
buttonPanel.OnSaveClientClick = GetLocalizedString("buttonPanel.OnSaveClientClick");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -194,15 +197,13 @@ namespace WebsitePanel.Portal
|
|||
ShowResultMessage(result);
|
||||
return;
|
||||
}
|
||||
ShowSuccessMessage("DOMAIN_UPDATE_DOMAIN");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowErrorMessage("DOMAIN_UPDATE_DOMAIN", ex);
|
||||
return;
|
||||
}
|
||||
|
||||
// return
|
||||
RedirectSpaceHomePage();
|
||||
}
|
||||
|
||||
private void DeleteDomain()
|
||||
|
@ -232,8 +233,10 @@ namespace WebsitePanel.Portal
|
|||
SaveDomain();
|
||||
}
|
||||
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
protected void btnSaveExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveDomain();
|
||||
|
||||
// return
|
||||
RedirectSpaceHomePage();
|
||||
}
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
@ -428,22 +427,13 @@ namespace WebsitePanel.Portal {
|
|||
protected global::System.Web.UI.WebControls.Localize DescribeAllowSubDomains;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCancel;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete control.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DomainsSelectDomainControl.ascx.cs" Inherits="WebsitePanel.Portal.DomainsSelectDomainControl" %>
|
||||
<asp:DropDownList id="ddlDomains" runat="server" CssClass="NormalTextBox" DataTextField="DomainName" DataValueField="DomainID" style="vertical-align:middle;"></asp:DropDownList>
|
||||
<asp:DropDownList id="ddlDomains" runat="server" CssClass="TextBox200" DataTextField="DomainName" DataValueField="DomainID" style="vertical-align:middle;"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator id="valRequireDomain" runat="server" ErrorMessage="Select domain"
|
||||
ControlToValidate="ddlDomains" Display="Dynamic" meta:resourcekey="valRequireDomain"></asp:RequiredFieldValidator>
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -186,4 +186,7 @@
|
|||
<data name="valRequireSubscriberNumber.Text" xml:space="preserve">
|
||||
<value>*</value>
|
||||
</data>
|
||||
<data name="SharedMailbox.Text" xml:space="preserve">
|
||||
<value>Shared Mailbox</value>
|
||||
</data>
|
||||
</root>
|
|
@ -117,12 +117,9 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<data name="buttonPanel.OnSaveClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating mailbox settings...');</value>
|
||||
</data>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="chkDisable.Text" xml:space="preserve">
|
||||
<value>Disable Mailbox</value>
|
||||
</data>
|
||||
|
|
|
@ -117,12 +117,9 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<data name="buttonPanel.OnSaveClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating mailbox settings...');</value>
|
||||
</data>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="chkDoNotDeleteOnForward.Text" xml:space="preserve">
|
||||
<value>Deliver messages to both forwarding address and mailbox</value>
|
||||
</data>
|
||||
|
|
|
@ -117,12 +117,6 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating...');</value>
|
||||
</data>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="locTitle.Text" xml:space="preserve">
|
||||
<value>Edit Mailbox</value>
|
||||
</data>
|
||||
|
|
|
@ -117,12 +117,9 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<data name="buttonPanel.OnSaveClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating mailbox permissions...');</value>
|
||||
</data>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="FormComments.Text" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
|
|
|
@ -117,12 +117,9 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<data name="buttonPanel.OnSaveClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating user settings...');</value>
|
||||
</data>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="chkDisable.Text" xml:space="preserve">
|
||||
<value>Disable User</value>
|
||||
</data>
|
||||
|
|
|
@ -117,12 +117,6 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.OnClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Updating...');</value>
|
||||
</data>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="locTitle.Text" xml:space="preserve">
|
||||
<value>Edit User </value>
|
||||
</data>
|
||||
|
|
|
@ -91,16 +91,37 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
if (plans.Length == 0)
|
||||
btnCreate.Enabled = false;
|
||||
|
||||
bool allowResourceMailbox = false;
|
||||
|
||||
if (cntx.Quotas.ContainsKey(Quotas.EXCHANGE2007_ISCONSUMER))
|
||||
{
|
||||
if (cntx.Quotas[Quotas.EXCHANGE2007_ISCONSUMER].QuotaAllocatedValue != 1)
|
||||
{
|
||||
locSubscriberNumber.Visible = txtSubscriberNumber.Visible = valRequireSubscriberNumber.Enabled = false;
|
||||
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("RoomMailbox.Text"), "5"));
|
||||
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("EquipmentMailbox.Text"), "6"));
|
||||
allowResourceMailbox = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (cntx.Quotas.ContainsKey(Quotas.EXCHANGE2013_RESOURCEMAILBOXES))
|
||||
{
|
||||
if (cntx.Quotas[Quotas.EXCHANGE2013_RESOURCEMAILBOXES].QuotaAllocatedValue != 0)
|
||||
allowResourceMailbox = true;
|
||||
}
|
||||
|
||||
|
||||
if (allowResourceMailbox)
|
||||
{
|
||||
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("RoomMailbox.Text"), "5"));
|
||||
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("EquipmentMailbox.Text"), "6"));
|
||||
}
|
||||
|
||||
if (cntx.Quotas.ContainsKey(Quotas.EXCHANGE2013_SHAREDMAILBOXES))
|
||||
{
|
||||
if (cntx.Quotas[Quotas.EXCHANGE2013_SHAREDMAILBOXES].QuotaAllocatedValue != 0)
|
||||
rbMailboxType.Items.Add(new System.Web.UI.WebControls.ListItem(GetLocalizedString("SharedMailbox.Text"), "10"));
|
||||
}
|
||||
|
||||
|
||||
rowRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, cntx);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/MailboxPlanSelector.ascx" TagName="MailboxPlanSelector" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
<%-- < wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/> --%>
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/>
|
||||
|
||||
<div id="ExchangeContainer">
|
||||
<div class="Module">
|
||||
|
@ -157,10 +158,8 @@
|
|||
</asp:Panel>
|
||||
|
||||
<div class="FormFooterClean">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1"
|
||||
meta:resourcekey="btnSave" ValidationGroup="EditMailbox" OnClick="btnSave_Click"></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1"
|
||||
meta:resourcekey="btnSaveExit" ValidationGroup="EditMailbox" OnClick="btnSaveExit_Click"></asp:Button>
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditMailbox" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -81,6 +81,9 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
}
|
||||
|
||||
secRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, Cntx);
|
||||
|
||||
if (GetLocalizedString("buttonPanel.OnSaveClientClick") != null)
|
||||
buttonPanel.OnSaveClientClick = GetLocalizedString("buttonPanel.OnSaveClientClick");
|
||||
}
|
||||
|
||||
int planId = -1;
|
||||
|
@ -183,6 +186,15 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
}
|
||||
imgVipUser.Visible = account.IsVIP && Cntx.Groups.ContainsKey(ResourceGroups.ServiceLevels);
|
||||
|
||||
if (account.AccountType == ExchangeAccountType.SharedMailbox)
|
||||
litDisplayName.Text += GetSharedLocalizedString("SharedMailbox.Text");
|
||||
|
||||
if (account.AccountType == ExchangeAccountType.Room)
|
||||
litDisplayName.Text += GetSharedLocalizedString("RoomMailbox.Text");
|
||||
|
||||
if (account.AccountType == ExchangeAccountType.Equipment)
|
||||
litDisplayName.Text += GetSharedLocalizedString("EquipmentMailbox.Text");
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -12,6 +12,15 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
|
||||
public partial class ExchangeMailboxGeneralSettings {
|
||||
|
||||
/// <summary>
|
||||
/// asyncTasks control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks;
|
||||
|
||||
/// <summary>
|
||||
/// Image1 control.
|
||||
/// </summary>
|
||||
|
@ -382,22 +391,13 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
protected global::System.Web.UI.WebControls.Label lblExchangeGuid;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// ValidationSummary1 control.
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<%@ Register Src="UserControls/AccountsList.ascx" TagName="AccountsList" TagPrefix="wsp" %>
|
||||
<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %>
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/>
|
||||
|
||||
|
@ -110,9 +111,8 @@
|
|||
</table>
|
||||
|
||||
<div class="FormFooterClean">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1" meta:resourcekey="btnSave" ValidationGroup="EditMailbox" OnClick="btnSave_Click"></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1"
|
||||
meta:resourcekey="btnSaveExit" ValidationGroup="EditMailbox" OnClick="btnSaveExit_Click"></asp:Button>
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditMailbox" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -49,6 +49,9 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
if (!IsPostBack)
|
||||
{
|
||||
BindSettings();
|
||||
|
||||
if (GetLocalizedString("buttonPanel.OnSaveClientClick") != null)
|
||||
buttonPanel.OnSaveClientClick = GetLocalizedString("buttonPanel.OnSaveClientClick");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -247,22 +247,13 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
protected global::System.Web.UI.WebControls.CheckBox chkPmmAllowed;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// ValidationSummary1 control.
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/MailboxPlanSelector.ascx" TagName="MailboxPlanSelector" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/>
|
||||
|
||||
|
@ -43,10 +44,8 @@
|
|||
</asp:Panel>
|
||||
|
||||
<div class="FormFooterClean">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1"
|
||||
meta:resourcekey="btnSave" ValidationGroup="EditMailbox" OnClick="btnSave_Click"></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1"
|
||||
meta:resourcekey="btnSaveExit" ValidationGroup="EditMailbox" OnClick="btnSaveExit_Click"></asp:Button>
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditMailbox" />
|
||||
</div>
|
||||
|
||||
|
|
|
@ -103,22 +103,13 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.AccountsList groups;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// ValidationSummary1 control.
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<%@ Register Src="UserControls/MailboxTabs.ascx" TagName="MailboxTabs" TagPrefix="wsp" %>
|
||||
<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %>
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/>
|
||||
|
||||
|
@ -44,9 +45,8 @@
|
|||
</uc2:AccountsList>
|
||||
</asp:Panel>
|
||||
<div class="FormFooterClean">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1" meta:resourcekey="btnSave" ValidationGroup="EditMailbox" OnClick="btnSave_Click" ></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1"
|
||||
meta:resourcekey="btnSaveExit" ValidationGroup="EditMailbox" OnClick="btnSaveExit_Click"></asp:Button>
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -37,8 +37,13 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
BindPermissions();
|
||||
|
||||
if (GetLocalizedString("buttonPanel.OnSaveClientClick") != null)
|
||||
buttonPanel.OnSaveClientClick = GetLocalizedString("buttonPanel.OnSaveClientClick");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -67,6 +72,19 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
litDisplayName.Text = mailbox.DisplayName;
|
||||
sendAsPermission.SetAccounts(mailbox.SendAsAccounts);
|
||||
fullAccessPermission.SetAccounts(mailbox.FullAccessAccounts);
|
||||
|
||||
// get account meta
|
||||
ExchangeAccount account = ES.Services.ExchangeServer.GetAccount(PanelRequest.ItemID, PanelRequest.AccountID);
|
||||
|
||||
if (account.AccountType == ExchangeAccountType.SharedMailbox)
|
||||
litDisplayName.Text += GetSharedLocalizedString("SharedMailbox.Text");
|
||||
|
||||
if (account.AccountType == ExchangeAccountType.Room)
|
||||
litDisplayName.Text += GetSharedLocalizedString("RoomMailbox.Text");
|
||||
|
||||
if (account.AccountType == ExchangeAccountType.Equipment)
|
||||
litDisplayName.Text += GetSharedLocalizedString("EquipmentMailbox.Text");
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -139,21 +139,12 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.AccountsList fullAccessPermission;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
</div>
|
||||
<div class="FormButtonsBarCleanRight">
|
||||
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="cmdSearch">
|
||||
<asp:CheckBox ID="chkMailboxes" runat="server" meta:resourcekey="chkMailboxes" Text="Mailboxes" AutoPostBack="true" OnCheckedChanged="chkMailboxes_CheckedChanged"/>
|
||||
<asp:CheckBox ID="chkResourceMailboxes" runat="server" meta:resourcekey="chkResourceMailboxes" Text="Resource Mailboxes" AutoPostBack="true" OnCheckedChanged="chkMailboxes_CheckedChanged"/>
|
||||
<asp:CheckBox ID="chkSharedMailboxes" runat="server" meta:resourcekey="chkSharedMailboxes" Text="Shared Mailboxes" AutoPostBack="true" OnCheckedChanged="chkMailboxes_CheckedChanged"/>
|
||||
<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True"
|
||||
onselectedindexchanged="ddlPageSize_SelectedIndexChanged">
|
||||
<asp:ListItem>10</asp:ListItem>
|
||||
|
@ -105,7 +108,7 @@
|
|||
OnSelected="odsAccountsPaged_Selected">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter Name="itemId" QueryStringField="ItemID" DefaultValue="0" />
|
||||
<asp:Parameter Name="accountTypes" DefaultValue="1,5,6" />
|
||||
<asp:Parameter Name="accountTypes" DefaultValue="1,5,6,10" />
|
||||
<asp:ControlParameter Name="filterColumn" ControlID="ddlSearchColumn" PropertyName="SelectedValue" />
|
||||
<asp:ControlParameter Name="filterValue" ControlID="txtSearchValue" PropertyName="Text" />
|
||||
<asp:Parameter Name="archiving" Type="Boolean" />
|
||||
|
|
|
@ -60,6 +60,10 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
chkMailboxes.Checked = true;
|
||||
chkResourceMailboxes.Checked = true;
|
||||
chkSharedMailboxes.Checked = true;
|
||||
|
||||
BindStats();
|
||||
}
|
||||
|
||||
|
@ -147,6 +151,7 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
{
|
||||
ExchangeAccountType accountType = (ExchangeAccountType)accountTypeId;
|
||||
string imgName = "mailbox_16.gif";
|
||||
|
||||
if (accountType == ExchangeAccountType.Contact)
|
||||
imgName = "contact_16.gif";
|
||||
else if (accountType == ExchangeAccountType.DistributionList)
|
||||
|
@ -155,6 +160,8 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
imgName = "room_16.gif";
|
||||
else if (accountType == ExchangeAccountType.Equipment)
|
||||
imgName = "equipment_16.gif";
|
||||
else if (accountType == ExchangeAccountType.SharedMailbox)
|
||||
imgName = "shared_16.gif";
|
||||
|
||||
if (vip && cntx.Groups.ContainsKey(ResourceGroups.ServiceLevels)) imgName = "vip_user_16.png";
|
||||
|
||||
|
@ -246,5 +253,25 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
|
||||
return serviceLevel;
|
||||
}
|
||||
|
||||
protected void chkMailboxes_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
List<string> accountTypes = new List<string>();
|
||||
|
||||
if ((!chkMailboxes.Checked)&&(!chkSharedMailboxes.Checked)&&(!chkResourceMailboxes.Checked))
|
||||
chkMailboxes.Checked = true;
|
||||
|
||||
if (chkMailboxes.Checked)
|
||||
accountTypes.Add("1");
|
||||
|
||||
if (chkSharedMailboxes.Checked)
|
||||
accountTypes.Add("10");
|
||||
|
||||
if (chkResourceMailboxes.Checked)
|
||||
accountTypes.AddRange(new string[] {"5","6"});
|
||||
|
||||
odsAccountsPaged.SelectParameters["accountTypes"].DefaultValue = string.Join(",", accountTypes);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -66,6 +66,33 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Panel SearchPanel;
|
||||
|
||||
/// <summary>
|
||||
/// chkMailboxes control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkMailboxes;
|
||||
|
||||
/// <summary>
|
||||
/// chkResourceMailboxes control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkResourceMailboxes;
|
||||
|
||||
/// <summary>
|
||||
/// chkSharedMailboxes control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkSharedMailboxes;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize control.
|
||||
/// </summary>
|
||||
|
|
|
@ -89,6 +89,24 @@
|
|||
<wsp:QuotaViewer ID="mailboxesStats" QuotaTypeId="2" runat="server" DisplayGauge="true" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="OrgStatsRow">
|
||||
<td class="OrgStatsQuota" nowrap>
|
||||
<asp:HyperLink ID="lnkSharedMailboxes" runat="server" meta:resourcekey="lnkSharedMailboxes" Text="Shared mailboxes" />
|
||||
</td>
|
||||
<td>
|
||||
<wsp:QuotaViewer ID="mailboxesSharedStats" QuotaTypeId="2" runat="server" DisplayGauge="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="OrgStatsRow">
|
||||
<td class="OrgStatsQuota" nowrap>
|
||||
<asp:HyperLink ID="lnkResourceMailboxes" runat="server" meta:resourcekey="lnkResourceMailboxes" Text="Resource mailboxes" />
|
||||
</td>
|
||||
<td>
|
||||
<wsp:QuotaViewer ID="mailboxesResourceStats" QuotaTypeId="2" runat="server" DisplayGauge="true" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="OrgStatsRow" id="rowContacts" runat="server">
|
||||
<td class="OrgStatsQuota" nowrap>
|
||||
<asp:HyperLink ID="lnkContacts" runat="server" meta:resourcekey="lnkContacts"></asp:HyperLink>
|
||||
|
|
|
@ -54,6 +54,14 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
lnkMailboxes.NavigateUrl = EditUrl("ItemID", PanelRequest.ItemID.ToString(), "mailboxes",
|
||||
"SpaceID=" + PanelSecurity.PackageId.ToString());
|
||||
|
||||
|
||||
lnkSharedMailboxes.NavigateUrl = EditUrl("ItemID", PanelRequest.ItemID.ToString(), "mailboxes",
|
||||
"SpaceID=" + PanelSecurity.PackageId.ToString());
|
||||
|
||||
lnkResourceMailboxes.NavigateUrl = EditUrl("ItemID", PanelRequest.ItemID.ToString(), "mailboxes",
|
||||
"SpaceID=" + PanelSecurity.PackageId.ToString());
|
||||
|
||||
|
||||
lnkContacts.NavigateUrl = EditUrl("ItemID", PanelRequest.ItemID.ToString(), "contacts",
|
||||
"SpaceID=" + PanelSecurity.PackageId.ToString());
|
||||
|
||||
|
@ -77,6 +85,13 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
mailboxesStats.QuotaValue = exchangeOrgStats.AllocatedMailboxes;
|
||||
if (exchangeOrgStats.AllocatedMailboxes != -1) mailboxesStats.QuotaAvailable = exchangeTenantStats.AllocatedMailboxes - exchangeTenantStats.CreatedMailboxes;
|
||||
|
||||
mailboxesSharedStats.QuotaUsedValue = exchangeOrgStats.CreatedSharedMailboxes;
|
||||
mailboxesSharedStats.QuotaValue = exchangeOrgStats.AllocatedSharedMailboxes;
|
||||
if (exchangeOrgStats.AllocatedSharedMailboxes != -1) mailboxesSharedStats.QuotaAvailable = exchangeTenantStats.AllocatedSharedMailboxes - exchangeTenantStats.CreatedSharedMailboxes;
|
||||
|
||||
mailboxesResourceStats.QuotaUsedValue = exchangeOrgStats.CreatedResourceMailboxes;
|
||||
mailboxesResourceStats.QuotaValue = exchangeOrgStats.AllocatedResourceMailboxes;
|
||||
if (exchangeOrgStats.AllocatedResourceMailboxes != -1) mailboxesResourceStats.QuotaAvailable = exchangeTenantStats.AllocatedResourceMailboxes - exchangeTenantStats.CreatedResourceMailboxes;
|
||||
|
||||
if (exchangeTenantStats.AllocatedContacts == 0) this.rowContacts.Style.Add("display", "none");
|
||||
else
|
||||
|
|
|
@ -201,6 +201,42 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
/// </remarks>
|
||||
protected global::WebsitePanel.Portal.QuotaViewer mailboxesStats;
|
||||
|
||||
/// <summary>
|
||||
/// lnkSharedMailboxes control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink lnkSharedMailboxes;
|
||||
|
||||
/// <summary>
|
||||
/// mailboxesSharedStats control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebsitePanel.Portal.QuotaViewer mailboxesSharedStats;
|
||||
|
||||
/// <summary>
|
||||
/// lnkResourceMailboxes control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink lnkResourceMailboxes;
|
||||
|
||||
/// <summary>
|
||||
/// mailboxesResourceStats control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebsitePanel.Portal.QuotaViewer mailboxesResourceStats;
|
||||
|
||||
/// <summary>
|
||||
/// rowContacts control.
|
||||
/// </summary>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<%@ Register src="UserControls/UserTabs.ascx" tagname="UserTabs" tagprefix="uc1" %>
|
||||
<%@ Register src="UserControls/MailboxTabs.ascx" tagname="MailboxTabs" tagprefix="uc1" %>
|
||||
|
||||
<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/>
|
||||
|
@ -283,10 +284,8 @@
|
|||
|
||||
|
||||
<div class="FormFooterClean">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1"
|
||||
meta:resourcekey="btnSave" ValidationGroup="EditMailbox" OnClick="btnSave_Click"></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1"
|
||||
meta:resourcekey="btnSaveExit" ValidationGroup="EditMailbox" OnClick="btnSaveExit_Click"></asp:Button>
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditMailbox" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -49,6 +49,9 @@ namespace WebsitePanel.Portal.HostedSolution
|
|||
|
||||
MailboxTabsId.Visible = (PanelRequest.Context == "Mailbox");
|
||||
UserTabsId.Visible = (PanelRequest.Context == "User");
|
||||
|
||||
if (GetLocalizedString("buttonPanel.OnSaveClientClick") != null)
|
||||
buttonPanel.OnSaveClientClick = GetLocalizedString("buttonPanel.OnSaveClientClick");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -769,22 +769,13 @@ namespace WebsitePanel.Portal.HostedSolution {
|
|||
protected global::System.Web.UI.WebControls.Label lblUserDomainName;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// ValidationSummary1 control.
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<%@ Register src="UserControls/UserTabs.ascx" tagname="UserTabs" tagprefix="uc1" %>
|
||||
<%@ Register src="UserControls/MailboxTabs.ascx" tagname="MailboxTabs" tagprefix="uc1" %>
|
||||
|
||||
<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server"/>
|
||||
|
@ -54,10 +55,8 @@
|
|||
</asp:Panel>
|
||||
|
||||
<div class="FormFooterClean">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1"
|
||||
meta:resourcekey="btnSave" ValidationGroup="EditMailbox" OnClick="btnSave_Click"></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1"
|
||||
meta:resourcekey="btnSaveExit" ValidationGroup="EditMailbox" OnClick="btnSaveExit_Click"></asp:Button>
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditMailbox" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -112,22 +112,13 @@ namespace WebsitePanel.Portal.HostedSolution {
|
|||
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.AccountsList groups;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// ValidationSummary1 control.
|
||||
|
|
|
@ -123,16 +123,31 @@
|
|||
<data name="lblDomainTemplateNameResource1.ToolTip" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
<data name="lblMaxMessageSizeInMB.Text" xml:space="preserve">
|
||||
<value>Global max message size:</value>
|
||||
</data>
|
||||
<data name="lblPublicIP.Text" xml:space="preserve">
|
||||
<value>Public IP Address:</value>
|
||||
</data>
|
||||
<data name="lblPublicIPResource1.Text" xml:space="preserve">
|
||||
<value>Public IP Address:</value>
|
||||
</data>
|
||||
<data name="lblPublicIPResource1.ToolTip" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
<data name="lblZeroIsUnlimited.Text" xml:space="preserve">
|
||||
<value>0 means unlimited</value>
|
||||
</data>
|
||||
<data name="MaxMessageSizeInMB.Text" xml:space="preserve">
|
||||
<value>Can be overridden on domain level if you check 'Override global limits'</value>
|
||||
</data>
|
||||
<data name="txtDomainTemplateNameResource1.Text" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
<data name="txtDomainTemplateNameResource1.ToolTip" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
<data name="txtWarnSizeValidator.ErrorMessage" xml:space="preserve">
|
||||
<value>Must be a value between 0 and 99, 0 means disabled</value>
|
||||
</data>
|
||||
</root>
|
|
@ -0,0 +1,129 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnAdd.Text" xml:space="preserve">
|
||||
<value>Add</value>
|
||||
</data>
|
||||
<data name="gvGWServers.EmptyDataText" xml:space="preserve">
|
||||
<value>No gateway serves have been added yet.</value>
|
||||
</data>
|
||||
<data name="ServerNameColumn.HeaderText" xml:space="preserve">
|
||||
<value>Server Name</value>
|
||||
</data>
|
||||
</root>
|
|
@ -76,7 +76,7 @@
|
|||
<asp:Label ID="lblRespondPeriodInDays" runat="server" meta:resourcekey="lblRespondPeriodInDays" Text="Respond period in days:"></asp:Label>
|
||||
</td>
|
||||
<td class="Normal">
|
||||
<asp:TextBox ID="txtRespondPeriodInDays" runat="server" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:TextBox ID="txtRespondPeriodInDays" runat="server" CssClass="NormalTextBox" Text="0"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator runat="server" ControlToValidate="txtRespondPeriodInDays" ErrorMessage="*"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ID="RespondPeriodInDaysValidator" runat="server" ControlToValidate="txtRespondPeriodInDays" MinimumValue="0" MaximumValue="63" Type="Integer" ErrorMessage="Respond days must be between 0 and 63 days" meta:resourcekey="RespondPeriodInDaysValidator"></asp:RangeValidator>
|
||||
</td>
|
||||
|
|
|
@ -37,8 +37,11 @@ namespace WebsitePanel.Portal.ProviderControls
|
|||
{
|
||||
// Hide some form items when creating a new account
|
||||
passwordRow.Visible = (PanelRequest.ItemID > 0);
|
||||
AutoresponderPanel.Visible = (PanelRequest.ItemID > 0);
|
||||
secAutoresponder.Visible = (PanelRequest.ItemID > 0);
|
||||
ForwardingPanel.Visible = (PanelRequest.ItemID > 0);
|
||||
secForwarding.Visible = (PanelRequest.ItemID > 0);
|
||||
OlderMailsPanel.Visible = (PanelRequest.ItemID > 0);
|
||||
secOlderMails.Visible = (PanelRequest.ItemID > 0);
|
||||
}
|
||||
|
||||
|
@ -109,10 +112,10 @@ namespace WebsitePanel.Portal.ProviderControls
|
|||
item.IsDomainAdmin = cbDomainAdmin.Checked;
|
||||
|
||||
item.DeleteOlder = cbDeleteOlder.Checked;
|
||||
item.DeleteOlderDays = Convert.ToInt32(txtDeleteOlderDays.Text);
|
||||
item.DeleteOlderDays = string.IsNullOrWhiteSpace(txtDeleteOlderDays.Text) ? 0 : Convert.ToInt32(txtDeleteOlderDays.Text);
|
||||
|
||||
item.ForwardOlder = cbForwardOlder.Checked;
|
||||
item.ForwardOlderDays = Convert.ToInt32(txtForwardOlderDays.Text);
|
||||
item.ForwardOlderDays = string.IsNullOrWhiteSpace(txtForwardOlderDays.Text) ? 0 : Convert.ToInt32(txtForwardOlderDays.Text);
|
||||
item.ForwardOlderTo = txtForwardOlderTo.Text;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_Settings.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_Settings" %>
|
||||
<%@ Register Src="../UserControls/SelectIPAddress.ascx" TagName="SelectIPAddress" TagPrefix="uc1" %>
|
||||
<table cellpadding="7" cellspacing="0" width="100%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="SubHead" width="150">
|
||||
<asp:Label ID="lblPublicIP" runat="server" Text="Public IP Address:" meta:resourcekey="lblPublicIP"></asp:Label>
|
||||
|
@ -14,9 +14,14 @@
|
|||
<asp:Label runat="server" ID="lblMaxMessageSizeInMB" Text="Global max message size:"></asp:Label>
|
||||
</td>
|
||||
<td class="Normal">
|
||||
<asp:TextBox runat="server" ID="txtMaxMessageSizeInMB" Text="0"></asp:TextBox>
|
||||
<asp:Label ID="Label1" runat="server" meta:resourcekey="MaxMessageSizeInMB" Text="Can be overridden on domain level if you check 'Override global limits'"></asp:Label>
|
||||
<asp:TextBox runat="server" ID="txtMaxMessageSizeInMB" Text="0" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="txtMaxMessageSizeInMBRequired" runat="server" Text="*" ControlToValidate="txtMaxMessageSizeInMB"></asp:RequiredFieldValidator>
|
||||
<asp:Label runat="server" meta:resourcekey="lblZeroIsUnlimited" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><asp:Label ID="MaxMessageSizeInMB" runat="server" meta:resourcekey="MaxMessageSizeInMB" Text="Can be overridden on domain level if you check 'Override global limits'"></asp:Label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
@ -43,9 +48,9 @@
|
|||
<asp:Label runat="server" ID="lblWarnDomainSize" Text="Warn domain administrator when domain size exceeds quota (%)"></asp:Label>
|
||||
</td>
|
||||
<td class="Normal">
|
||||
<asp:TextBox runat="server" ID="txtWarnDomainSize" Text="0"></asp:TextBox>
|
||||
<asp:TextBox runat="server" ID="txtWarnDomainSize" Text="0" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator runat="server" Text="*" ControlToValidate="txtWarnDomainSize"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ErrorMessage="Must be a value between 0 and 99" MinimumValue="0" MaximumValue="99" Type="Integer" meta:resourcekey="txtWarnDomainSizeValidator" ControlToValidate="txtWarnDomainSize" runat="server" />
|
||||
<asp:RangeValidator ErrorMessage="Must be a value between 0 and 99, 0 means disabled" MinimumValue="0" MaximumValue="99" Type="Integer" meta:resourcekey="txtWarnSizeValidator" ControlToValidate="txtWarnDomainSize" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -53,9 +58,9 @@
|
|||
<asp:Label runat="server" ID="lblWarnMailboxUsage" Text="Warn user when mailbox size exceeds quota (%)"></asp:Label>
|
||||
</td>
|
||||
<td class="Normal">
|
||||
<asp:TextBox runat="server" ID="txtWarnMailboxUsage" Text="0"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*" ControlToValidate="txtWarnMailboxUsage"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ErrorMessage="Must be a value between 0 and 99" MinimumValue="0" MaximumValue="99" Type="Integer" meta:resourcekey="txtWarnMailboxUsageValidator" ControlToValidate="txtWarnMailboxUsage" runat="server" />
|
||||
<asp:TextBox runat="server" ID="txtWarnMailboxUsage" Text="0" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="txtWarnMailboxUsageRequired" runat="server" Text="*" ControlToValidate="txtWarnMailboxUsage"></asp:RequiredFieldValidator>
|
||||
<asp:RangeValidator ErrorMessage="Must be a value between 0 and 99, 0 means disabled" MinimumValue="0" MaximumValue="99" Type="Integer" meta:resourcekey="txtWarnSizeValidator" ControlToValidate="txtWarnMailboxUsage" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -49,13 +49,22 @@ namespace WebsitePanel.Portal.ProviderControls {
|
|||
protected global::System.Web.UI.WebControls.TextBox txtMaxMessageSizeInMB;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 control.
|
||||
/// txtMaxMessageSizeInMBRequired control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator txtMaxMessageSizeInMBRequired;
|
||||
|
||||
/// <summary>
|
||||
/// MaxMessageSizeInMB control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label MaxMessageSizeInMB;
|
||||
|
||||
/// <summary>
|
||||
/// cbUseDomainDiskQuota control.
|
||||
|
@ -130,12 +139,12 @@ namespace WebsitePanel.Portal.ProviderControls {
|
|||
protected global::System.Web.UI.WebControls.TextBox txtWarnMailboxUsage;
|
||||
|
||||
/// <summary>
|
||||
/// RequiredFieldValidator1 control.
|
||||
/// txtWarnMailboxUsageRequired control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator txtWarnMailboxUsageRequired;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,7 +121,14 @@ namespace WebsitePanel.Portal.ProviderControls
|
|||
ddlSite.Items.Add(item);
|
||||
}
|
||||
|
||||
ddlSite_SelectedIndexChanged(this, null);
|
||||
if (ddlSite.Items.Count == 0)
|
||||
{
|
||||
ddlSite.Items.Add(new ListItem("Default FTP Site (not yet created)", "Default FTP Site"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ddlSite_SelectedIndexChanged(this, null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void ddlSite_SelectedIndexChanged(object sender, EventArgs e)
|
||||
|
|
|
@ -9,15 +9,6 @@
|
|||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtConnectionBroker" Display="Dynamic" ErrorMessage="*" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="SubHead" width="200" nowrap>
|
||||
<asp:Label runat="server" ID="lblGateway" meta:resourcekey="lblGateway" Text="Gateway Servers:"/>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox runat="server" ID="txtGateway" MaxLength="1000" Width="200px" />
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtGateway" Display="Dynamic" ErrorMessage="*" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="SubHead" width="200" nowrap>
|
||||
<asp:Label runat="server" ID="lblRootOU" meta:resourcekey="lblRootOU" Text="Root OU:"/>
|
||||
|
@ -52,4 +43,33 @@
|
|||
<asp:TextBox runat="server" ID="txtCentralNPS" Width="200px"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="SubHead" width="200" nowrap valign="top">
|
||||
<asp:Localize ID="locGWServers" runat="server" meta:resourcekey="locGWServers"
|
||||
Text="Gateway Servers:"></asp:Localize>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox runat="server" ID="txtAddGWServer" MaxLength="1000" Width="200px" />
|
||||
<asp:Button runat="server" ID="btnAddGWServer" OnClick="btnAddGWServer_Click" meta:resourcekey="btnAdd"
|
||||
CssClass="Button1" /><br />
|
||||
<asp:GridView ID="gvGWServers" runat="server" AutoGenerateColumns="False" EmptyDataText="gvRecords"
|
||||
CssSelectorClass="NormalGridView" OnRowCommand="gvGWServers_RowCommand" meta:resourcekey="gvGWServers">
|
||||
<Columns>
|
||||
<asp:TemplateField meta:resourcekey="ServerNameColumn" ItemStyle-Width="100%" >
|
||||
<ItemTemplate>
|
||||
<asp:Label runat="server" ID="lblServerName" Text='<%#Eval("ServerName")%>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="cmdDelete" runat="server" SkinID="DeleteSmall" CommandName="RemoveServer"
|
||||
CommandArgument='<%#Eval("ServerName") %>' meta:resourcekey="cmdDelete" AlternateText="Delete"
|
||||
OnClientClick="return confirm('Delete?');"></asp:ImageButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -27,6 +27,8 @@
|
|||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebsitePanel.EnterpriseServer;
|
||||
using WebsitePanel.Providers.Common;
|
||||
|
||||
|
@ -39,10 +41,26 @@ namespace WebsitePanel.Portal.ProviderControls
|
|||
|
||||
}
|
||||
|
||||
public string GWServers
|
||||
{
|
||||
get
|
||||
{
|
||||
return ViewState["GWServers"] != null ? ViewState["GWServers"].ToString() : string.Empty;
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["GWServers"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public void BindSettings(System.Collections.Specialized.StringDictionary settings)
|
||||
{
|
||||
txtConnectionBroker.Text = settings["ConnectionBroker"];
|
||||
txtGateway.Text = settings["GWServrsList"];
|
||||
|
||||
GWServers = settings["GWServrsList"];
|
||||
|
||||
UpdateLyncServersGrid();
|
||||
|
||||
txtRootOU.Text = settings["RootOU"];
|
||||
txtPrimaryDomainController.Text = settings["PrimaryDomainController"];
|
||||
|
||||
|
@ -63,11 +81,12 @@ namespace WebsitePanel.Portal.ProviderControls
|
|||
public void SaveSettings(System.Collections.Specialized.StringDictionary settings)
|
||||
{
|
||||
settings["ConnectionBroker"] = txtConnectionBroker.Text;
|
||||
settings["GWServrsList"] = txtGateway.Text;
|
||||
settings["RootOU"] = txtRootOU.Text;
|
||||
settings["PrimaryDomainController"] = txtPrimaryDomainController.Text;
|
||||
settings["UseCentralNPS"] = chkUseCentralNPS.Checked.ToString();
|
||||
settings["CentralNPS"] = chkUseCentralNPS.Checked ? txtCentralNPS.Text : string.Empty;
|
||||
|
||||
settings["GWServrsList"] = GWServers;
|
||||
}
|
||||
|
||||
protected void chkUseCentralNPS_CheckedChanged(object sender, EventArgs e)
|
||||
|
@ -75,6 +94,61 @@ namespace WebsitePanel.Portal.ProviderControls
|
|||
txtCentralNPS.Enabled = chkUseCentralNPS.Checked;
|
||||
txtCentralNPS.Text = chkUseCentralNPS.Checked ? txtCentralNPS.Text : string.Empty;
|
||||
}
|
||||
|
||||
|
||||
protected void btnAddGWServer_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(GWServers))
|
||||
GWServers += ";";
|
||||
|
||||
GWServers += txtAddGWServer.Text;
|
||||
|
||||
txtAddGWServer.Text = string.Empty;
|
||||
|
||||
UpdateLyncServersGrid();
|
||||
}
|
||||
|
||||
public List<GWServer> GetServices(string data)
|
||||
{
|
||||
if (string.IsNullOrEmpty(data))
|
||||
return null;
|
||||
List<GWServer> list = new List<GWServer>();
|
||||
string[] serversNames = data.Split(';');
|
||||
foreach (string current in serversNames)
|
||||
{
|
||||
list.Add(new GWServer { ServerName = current });
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
private void UpdateLyncServersGrid()
|
||||
{
|
||||
gvGWServers.DataSource = GetServices(GWServers);
|
||||
gvGWServers.DataBind();
|
||||
}
|
||||
|
||||
protected void gvGWServers_RowCommand(object sender, GridViewCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName == "RemoveServer")
|
||||
{
|
||||
string str = string.Empty;
|
||||
List<GWServer> servers = GetServices(GWServers);
|
||||
foreach (GWServer current in servers)
|
||||
{
|
||||
if (current.ServerName == e.CommandArgument.ToString())
|
||||
continue;
|
||||
|
||||
str += current.ServerName + ";";
|
||||
}
|
||||
|
||||
GWServers = str.TrimEnd(';');
|
||||
UpdateLyncServersGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class GWServer
|
||||
{
|
||||
public string ServerName { get; set; }
|
||||
}
|
||||
}
|
|
@ -39,33 +39,6 @@ namespace WebsitePanel.Portal.ProviderControls {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2;
|
||||
|
||||
/// <summary>
|
||||
/// lblGateway control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblGateway;
|
||||
|
||||
/// <summary>
|
||||
/// txtGateway control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtGateway;
|
||||
|
||||
/// <summary>
|
||||
/// RequiredFieldValidator3 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator3;
|
||||
|
||||
/// <summary>
|
||||
/// lblRootOU control.
|
||||
/// </summary>
|
||||
|
@ -155,5 +128,41 @@ namespace WebsitePanel.Portal.ProviderControls {
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtCentralNPS;
|
||||
|
||||
/// <summary>
|
||||
/// locGWServers control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Localize locGWServers;
|
||||
|
||||
/// <summary>
|
||||
/// txtAddGWServer control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtAddGWServer;
|
||||
|
||||
/// <summary>
|
||||
/// btnAddGWServer control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnAddGWServer;
|
||||
|
||||
/// <summary>
|
||||
/// gvGWServers control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView gvGWServers;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,9 +55,10 @@
|
|||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="imgRemove1" runat="server" Text="Remove"
|
||||
<asp:LinkButton ID="imgRemove1" runat="server" Text="Remove" Visible='<%# Eval("RdsCollectionId") == null %>'
|
||||
CommandName="DeleteItem" CommandArgument='<%# Eval("Id") %>'
|
||||
meta:resourcekey="cmdDelete" OnClientClick="return confirm('Are you sure you want to remove selected server?')"></asp:LinkButton>
|
||||
<asp:Label ID="lbRemove" Text="Remove" runat="server" Visible='<%# Eval("RdsCollectionId") != null %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
|
|
|
@ -32,6 +32,7 @@ using WebsitePanel.EnterpriseServer;
|
|||
using WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.HostedSolution;
|
||||
using WebsitePanel.Providers.OS;
|
||||
using WebsitePanel.Providers.RemoteDesktopServices;
|
||||
using WebsitePanel.WebPortal;
|
||||
|
||||
namespace WebsitePanel.Portal.RDS
|
||||
|
@ -67,6 +68,13 @@ namespace WebsitePanel.Portal.RDS
|
|||
|
||||
try
|
||||
{
|
||||
RdsServer rdsServer = ES.Services.RDS.GetRdsServer(rdsServerId);
|
||||
if (rdsServer.RdsCollectionId != null)
|
||||
{
|
||||
messageBox.ShowErrorMessage("RDS_UNASSIGN_SERVER_FROM_ORG_SERVER_IS_IN_COLLECTION");
|
||||
return;
|
||||
}
|
||||
|
||||
ResultObject result = ES.Services.RDS.RemoveRdsServerFromOrganization(rdsServerId);
|
||||
if (!result.IsSuccess)
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<td class="FormLabel150" style="width: 100px;"><asp:Localize ID="locCollectionName" runat="server" meta:resourcekey="locCollectionName" Text="Collection Name"></asp:Localize></td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtCollectionName" runat="server" CssClass="NormalTextBox" />
|
||||
<asp:RequiredFieldValidator ID="valCollectionName" runat="server" ErrorMessage="*" ControlToValidate="txtCollectionName"></asp:RequiredFieldValidator>
|
||||
<asp:RequiredFieldValidator ID="valCollectionName" runat="server" ErrorMessage="*" ControlToValidate="txtCollectionName" ValidationGroup="SaveRDSCollection"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -37,7 +37,7 @@
|
|||
</fieldset>
|
||||
|
||||
<div class="FormFooter">
|
||||
<asp:Button id="btnSave" runat="server" Text="Save" CssClass="Button1" meta:resourcekey="btnSave" OnClick="btnSave_Click"></asp:Button>
|
||||
<asp:Button id="btnSave" runat="server" Text="Save" CssClass="Button1" meta:resourcekey="btnSave" OnClick="btnSave_Click" ValidationGroup="SaveRDSCollection"></asp:Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -117,12 +117,21 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnAdd.OnClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Getting Remote Apps ...');</value>
|
||||
</data>
|
||||
<data name="btnAdd.Text" xml:space="preserve">
|
||||
<value>Add...</value>
|
||||
</data>
|
||||
<data name="btnAddSelected.OnClientClick" xml:space="preserve">
|
||||
<value>CloseProgressDialog();</value>
|
||||
</data>
|
||||
<data name="btnAddSelected.Text" xml:space="preserve">
|
||||
<value>Add Apps</value>
|
||||
</data>
|
||||
<data name="btnCancel.OnClientClick" xml:space="preserve">
|
||||
<value>CloseProgressDialog();</value>
|
||||
</data>
|
||||
<data name="btnCancel.Text" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
</data>
|
||||
|
|
|
@ -117,12 +117,21 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnAdd.OnClientClick" xml:space="preserve">
|
||||
<value>ShowProgressDialog('Getting RDS Servers ...');</value>
|
||||
</data>
|
||||
<data name="btnAdd.Text" xml:space="preserve">
|
||||
<value>Add...</value>
|
||||
</data>
|
||||
<data name="btnAddSelected.OnClientClick" xml:space="preserve">
|
||||
<value>CloseProgressDialog();</value>
|
||||
</data>
|
||||
<data name="btnAddSelected.Text" xml:space="preserve">
|
||||
<value>Add Servers</value>
|
||||
</data>
|
||||
<data name="btnCancel.OnClientClick" xml:space="preserve">
|
||||
<value>CloseProgressDialog();</value>
|
||||
</data>
|
||||
<data name="btnCancel.Text" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
</data>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
<asp:Button ID="btnAddServersFake" runat="server" style="display:none;" />
|
||||
<ajaxToolkit:ModalPopupExtender ID="AddServersModal" runat="server"
|
||||
TargetControlID="btnAddServersFake" PopupControlID="AddServersPanel"
|
||||
BackgroundCssClass="modalBackground" DropShadow="false" CancelControlID="btnCancelAdd" />
|
||||
BackgroundCssClass="modalBackground" DropShadow="false" CancelControlID="btnCancelAdd"/>
|
||||
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
|
@ -85,8 +85,8 @@ namespace WebsitePanel.Portal.RDS.UserControls
|
|||
protected void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
// bind all servers
|
||||
BindPopupServers();
|
||||
|
||||
BindPopupServers();
|
||||
|
||||
// show modal
|
||||
AddServersModal.Show();
|
||||
}
|
||||
|
@ -103,7 +103,6 @@ namespace WebsitePanel.Portal.RDS.UserControls
|
|||
List<RdsServer> selectedServers = GetPopUpGridViewServers();
|
||||
|
||||
BindServers(selectedServers.ToArray(), true);
|
||||
|
||||
}
|
||||
|
||||
protected void BindPopupServers()
|
||||
|
@ -132,6 +131,7 @@ namespace WebsitePanel.Portal.RDS.UserControls
|
|||
servers.AddRange(GetGridViewServers(SelectedState.All));
|
||||
|
||||
// add new servers
|
||||
|
||||
if (newServers != null)
|
||||
{
|
||||
foreach (RdsServer newServer in newServers)
|
||||
|
|
|
@ -43,7 +43,7 @@ function PadNumber(num)
|
|||
|
||||
function EnableProgressDialog() {
|
||||
_showProgressDialog = true;
|
||||
window.setInterval(DisableProgressDialog, 10); // disable dialog with some delay
|
||||
//window.setInterval(DisableProgressDialog, 10); // disable dialog with some delay
|
||||
}
|
||||
|
||||
function DisableProgressDialog() {
|
||||
|
@ -57,6 +57,12 @@ function ShowProgressDialog(title, popupBehavior)
|
|||
EnableProgressDialog();
|
||||
}
|
||||
|
||||
function CloseProgressDialog()
|
||||
{
|
||||
DisableProgressDialog();
|
||||
$find('ModalPopupProperties').hide();
|
||||
}
|
||||
|
||||
function ShowProgressDialogWithCallback(title)
|
||||
{
|
||||
_dialogTitle = title;
|
||||
|
|
|
@ -17,7 +17,16 @@
|
|||
EmptyDataText="gvPackages" CssSelectorClass="NormalGridView"
|
||||
AllowSorting="True" DataSourceID="odsItemsPaged" AllowPaging="True">
|
||||
<Columns>
|
||||
<asp:BoundField SortExpression="ItemName" DataField="ItemName" HeaderText="gvPackagesItemName" ></asp:BoundField>
|
||||
<asp:TemplateField SortExpression="ItemName" HeaderText="gvPackagesItemName">
|
||||
<ItemTemplate>
|
||||
<asp:hyperlink ID="lnkItem" runat="server" NavigateUrl='<%# GetItemPageUrl((int)Eval("ItemID"), (int)Eval("PackageID")) %>' Visible="<%# AllowItemLink() %>">
|
||||
<%# Eval("ItemName") %>
|
||||
</asp:hyperlink>
|
||||
<asp:Label ID="itemName" runat="server" Visible="<%# !AllowItemLink() %>">
|
||||
<%# Eval("ItemName") %>
|
||||
</asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField SortExpression="PackageName" HeaderText="gvPackagesName">
|
||||
<ItemTemplate>
|
||||
<asp:hyperlink id=lnkSpace runat="server" NavigateUrl='<%# GetSpaceHomePageUrl((int)Eval("PackageID")) %>'>
|
||||
|
|
|
@ -30,6 +30,7 @@ using System;
|
|||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
|
@ -37,10 +38,26 @@ using System.Web.UI.WebControls;
|
|||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
using WebsitePanel.WebPortal;
|
||||
using WebsitePanel.Portal.UserControls;
|
||||
|
||||
namespace WebsitePanel.Portal
|
||||
{
|
||||
public partial class SearchSpaces : WebsitePanelModuleBase
|
||||
{
|
||||
|
||||
string ItemTypeName;
|
||||
|
||||
const string type_WebSite = "WebSite";
|
||||
const string type_Domain = "Domain";
|
||||
const string type_Organization = "Organization";
|
||||
|
||||
List<string> linkTypes = new List<string>(new string[] {type_WebSite, type_Domain, type_Organization});
|
||||
|
||||
const string PID_SPACE_WEBSITES = "SpaceWebSites";
|
||||
const string PID_SPACE_DIMAINS = "SpaceDomains";
|
||||
const string PID_SPACE_EXCHANGESERVER = "SpaceExchangeServer";
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
|
@ -48,10 +65,16 @@ namespace WebsitePanel.Portal
|
|||
// bind item types
|
||||
DataTable dtItemTypes = ES.Services.Packages.GetSearchableServiceItemTypes().Tables[0];
|
||||
foreach (DataRow dr in dtItemTypes.Rows)
|
||||
{
|
||||
string displayName = dr["DisplayName"].ToString();
|
||||
ddlItemType.Items.Add(new ListItem(
|
||||
GetSharedLocalizedString("ServiceItemType." + dr["DisplayName"].ToString()),
|
||||
GetSharedLocalizedString("ServiceItemType." + displayName),
|
||||
dr["ItemTypeID"].ToString()));
|
||||
|
||||
if (Request["ItemTypeID"] == dr["ItemTypeID"].ToString())
|
||||
ItemTypeName = displayName;
|
||||
}
|
||||
|
||||
// bind filter
|
||||
Utils.SelectListItem(ddlItemType, Request["ItemTypeID"]);
|
||||
txtFilterValue.Text = Request["Query"];
|
||||
|
@ -68,6 +91,32 @@ namespace WebsitePanel.Portal
|
|||
return PortalUtils.GetSpaceHomePageUrl(spaceId);
|
||||
}
|
||||
|
||||
public string GetItemPageUrl(int itemId, int spaceId)
|
||||
{
|
||||
string res = "";
|
||||
|
||||
switch(ItemTypeName)
|
||||
{
|
||||
case type_WebSite:
|
||||
res = PortalUtils.NavigatePageURL(PID_SPACE_WEBSITES, "ItemID", itemId.ToString(),
|
||||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, DefaultPage.CONTROL_ID_PARAM + "=" + "edit_item",
|
||||
"moduleDefId=websites");
|
||||
break;
|
||||
case type_Domain:
|
||||
res = PortalUtils.NavigatePageURL(PID_SPACE_DIMAINS, "DomainID", itemId.ToString(),
|
||||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, DefaultPage.CONTROL_ID_PARAM + "=" + "edit_item",
|
||||
"moduleDefId=domains");
|
||||
break;
|
||||
case type_Organization:
|
||||
res = PortalUtils.NavigatePageURL(PID_SPACE_EXCHANGESERVER, "ItemID", itemId.ToString(),
|
||||
PortalUtils.SPACE_ID_PARAM + "=" + spaceId, DefaultPage.CONTROL_ID_PARAM + "=" + "organization_home",
|
||||
"moduleDefId=ExchangeServer");
|
||||
break;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
protected void cmdSearch_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
string query = txtFilterValue.Text.Trim().Replace("%", "");
|
||||
|
@ -86,5 +135,12 @@ namespace WebsitePanel.Portal
|
|||
e.ExceptionHandled = true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool AllowItemLink()
|
||||
{
|
||||
bool res = linkTypes.Exists(x => x == ItemTypeName);
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -0,0 +1,126 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="btnSave.Text" xml:space="preserve">
|
||||
<value>Save Changes</value>
|
||||
</data>
|
||||
<data name="btnSaveExit.Text" xml:space="preserve">
|
||||
<value>Save Changes and Exit</value>
|
||||
</data>
|
||||
</root>
|
|
@ -0,0 +1,5 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ItemButtonPanel.ascx.cs" Inherits="WebsitePanel.Portal.ItemButtonPanel" %>
|
||||
<asp:Button id="btnSave" runat="server" Text="Save Changes" CssClass="Button1" meta:resourcekey="btnSave"
|
||||
OnClick="btnSave_Click" OnClientClick="ShowProgressDialog('Updating ...');"></asp:Button>
|
||||
<asp:Button id="btnSaveExit" runat="server" Text="Save Changes and Exit" CssClass="Button1" meta:resourcekey="btnSaveExit"
|
||||
OnClick="btnSaveExit_Click" OnClientClick="ShowProgressDialog('Updating ...');"></asp:Button>
|
|
@ -0,0 +1,85 @@
|
|||
// Copyright (c) 2014, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
|
||||
namespace WebsitePanel.Portal
|
||||
{
|
||||
public partial class ItemButtonPanel : WebsitePanelControlBase
|
||||
{
|
||||
public bool ButtonSaveVisible
|
||||
{
|
||||
set { btnSave.Visible = value; }
|
||||
get { return btnSave.Visible; }
|
||||
}
|
||||
|
||||
public bool ButtonSaveExitVisible
|
||||
{
|
||||
set { btnSaveExit.Visible = value; }
|
||||
get { return btnSaveExit.Visible; }
|
||||
}
|
||||
|
||||
public string ValidationGroup
|
||||
{
|
||||
set {
|
||||
btnSave.ValidationGroup = value;
|
||||
btnSaveExit.ValidationGroup = value;
|
||||
}
|
||||
get { return btnSave.ValidationGroup; }
|
||||
}
|
||||
|
||||
public string OnSaveClientClick
|
||||
{
|
||||
set
|
||||
{
|
||||
btnSave.OnClientClick = value;
|
||||
btnSaveExit.OnClientClick = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public event EventHandler SaveClick = null;
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (SaveClick!=null)
|
||||
{
|
||||
SaveClick(this, e);
|
||||
}
|
||||
}
|
||||
|
||||
public event EventHandler SaveExitClick = null;
|
||||
protected void btnSaveExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (SaveExitClick!=null)
|
||||
{
|
||||
SaveExitClick(this, e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebsitePanel.Portal {
|
||||
|
||||
|
||||
public partial class ItemButtonPanel {
|
||||
|
||||
/// <summary>
|
||||
/// btnSave control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveExit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSaveExit;
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@
|
|||
TargetControlID="TechnicalDetailsPanel" resourcekey="secTechnicalDetails" Text="Technical Details">
|
||||
</wsp:CollapsiblePanel>
|
||||
<asp:Panel ID="TechnicalDetailsPanel" runat="server" Height="0" style="overflow:hidden;">
|
||||
<table id="tblTechnicalDetails" runat="server" style="background-color: #FFFFFF;" cellpadding="0" cellspacing="0">
|
||||
<table id="tblTechnicalDetails" runat="server" class="TechnicalDetailsTable" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3">
|
||||
|
@ -51,7 +51,7 @@
|
|||
<td class="NormalBold" valign="top">
|
||||
<asp:Label ID="lblStackTrace" runat="server" meta:resourcekey="lblStackTrace" Text="Stack Trace:"></asp:Label>
|
||||
</td>
|
||||
<td class="Normal" valign="top">
|
||||
<td class="WrapText" valign="top">
|
||||
<asp:Literal ID="litStackTrace" runat="server"></asp:Literal>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -103,7 +103,7 @@
|
|||
<asp:Label ID="lblComments" runat="server" meta:resourcekey="lblComments" Text="Personal Comments:"></asp:Label>
|
||||
</td>
|
||||
<td class="Normal" valign="top">
|
||||
<asp:TextBox ID="txtSendComments" runat="server" CssClass="LogArea" Rows="5" TextMode="MultiLine"
|
||||
<asp:TextBox ID="txtSendComments" runat="server" CssClass="LogArea TechnicalDetailsTable" Rows="5" TextMode="MultiLine"
|
||||
Width="400px"></asp:TextBox></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -1,10 +1,38 @@
|
|||
// Copyright (c) 2014, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelectIPAddress.ascx.cs" Inherits="WebsitePanel.Portal.SelectIPAddress" %>
|
||||
<asp:DropDownList ID="ddlIPAddresses" runat="server" CssClass="NormalTextBox">
|
||||
<asp:DropDownList ID="ddlIPAddresses" runat="server" CssClass="TextBox200">
|
||||
</asp:DropDownList>
|
||||
|
|
|
@ -1,16 +1,24 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebsitePanel.Portal {
|
||||
|
||||
|
||||
public partial class SelectIPAddress {
|
||||
protected System.Web.UI.WebControls.DropDownList ddlIPAddresses;
|
||||
|
||||
/// <summary>
|
||||
/// ddlIPAddresses control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlIPAddresses;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="Normal">
|
||||
<div class="Small" style="padding-top: 10px;">
|
||||
<div class="Small WrapText" style="padding-top: 10px;">
|
||||
<asp:Label ID="lblIgnoreGlobalDNSRecords" runat="server" meta:resourcekey="lblIPHelp2" Text="If you need your site..."></asp:Label>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
<%@ Register Src="UserControls/PopupHeader.ascx" TagName="PopupHeader" TagPrefix="wsp" %>
|
||||
<%@ Register TagPrefix="wsp" Namespace="WebsitePanel.Portal" %>
|
||||
<%@ Register Src="WebsitesSSL.ascx" TagName="WebsitesSSL" TagPrefix="uc2" %>
|
||||
<%@ Register Src="UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %>
|
||||
|
||||
<style type="text/css">
|
||||
.style1
|
||||
{
|
||||
|
@ -523,10 +525,8 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="FormFooter">
|
||||
<asp:Button ID="btnUpdate" runat="server" meta:resourcekey="btnUpdate" Text="Update"
|
||||
CssClass="Button1" OnClick="btnUpdate_Click" OnClientClick="ShowProgressDialog('Updating web site...');" />
|
||||
<asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" Text="Cancel"
|
||||
CssClass="Button1" CausesValidation="false" OnClick="btnCancel_Click" />
|
||||
<wsp:ItemButtonPanel id="buttonPanel" runat="server" ValidationGroup="EditMailbox"
|
||||
OnSaveClick="btnSave_Click" OnSaveExitClick="btnSaveExit_Click" />
|
||||
</div>
|
||||
<div class="FormFooter">
|
||||
<asp:Button ID="btnDelete" runat="server" meta:resourcekey="btnDelete" Text="Delete"
|
||||
|
|
|
@ -102,6 +102,9 @@ namespace WebsitePanel.Portal
|
|||
if (!IsPostBack)
|
||||
{
|
||||
BindWebSite();
|
||||
|
||||
if (GetLocalizedString("buttonPanel.OnSaveClientClick")!=null)
|
||||
buttonPanel.OnSaveClientClick = GetLocalizedString("buttonPanel.OnSaveClientClick");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,7 +112,7 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
var filteredTabs = TabsList.FilterTabsByHostingPlanQuotas(PackageId).ToList();
|
||||
|
||||
// remove "SSL" tab for a site with dynamic IP
|
||||
// remove "SSL" tab for a site with dynamic IP and not SNI enabled
|
||||
var sslTab = filteredTabs.SingleOrDefault(t => t.Id == "SSL");
|
||||
if (!AllowSsl && sslTab != null)
|
||||
filteredTabs.Remove(sslTab);
|
||||
|
@ -908,14 +911,14 @@ namespace WebsitePanel.Portal
|
|||
ShowResultMessage(result);
|
||||
return;
|
||||
}
|
||||
|
||||
ShowSuccessMessage("WEB_UPDATE_SITE");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowErrorMessage("WEB_UPDATE_SITE", ex);
|
||||
return;
|
||||
}
|
||||
|
||||
RedirectSpaceHomePage();
|
||||
}
|
||||
|
||||
private void DeleteWebSite()
|
||||
|
@ -938,14 +941,15 @@ namespace WebsitePanel.Portal
|
|||
RedirectSpaceHomePage();
|
||||
}
|
||||
|
||||
protected void btnUpdate_Click(object sender, EventArgs e)
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveWebSite();
|
||||
}
|
||||
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
protected void btnSaveExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
RedirectSpaceHomePage();
|
||||
SaveWebSite();
|
||||
RedirectSpaceHomePage();
|
||||
}
|
||||
|
||||
protected void btnDelete_Click(object sender, EventArgs e)
|
||||
|
@ -1071,6 +1075,7 @@ namespace WebsitePanel.Portal
|
|||
|
||||
sharedIP.Visible = false;
|
||||
switchToDedicatedIP.Visible = true;
|
||||
WebsitesSSLControl.InstalledCert = null;
|
||||
}
|
||||
|
||||
protected void cmdSwitchToSharedIP_Click(object sender, EventArgs e)
|
||||
|
@ -1090,6 +1095,7 @@ namespace WebsitePanel.Portal
|
|||
|
||||
dlTabs.SelectedIndex = 0;
|
||||
|
||||
WebsitesSSLControl.InstalledCert = null;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -1,31 +1,3 @@
|
|||
// Copyright (c) 2014, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -1157,22 +1129,13 @@ namespace WebsitePanel.Portal {
|
|||
protected global::WebsitePanel.Portal.WebsitesSSL WebsitesSSLControl;
|
||||
|
||||
/// <summary>
|
||||
/// btnUpdate control.
|
||||
/// buttonPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnUpdate;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCancel;
|
||||
protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete control.
|
||||
|
|
|
@ -779,6 +779,13 @@
|
|||
<Compile Include="Lync\UserControls\AllocatePackagePhoneNumbers.ascx.designer.cs">
|
||||
<DependentUpon>AllocatePackagePhoneNumbers.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ItemButtonPanel.ascx.cs">
|
||||
<DependentUpon>ItemButtonPanel.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ItemButtonPanel.ascx.designer.cs">
|
||||
<DependentUpon>ItemButtonPanel.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserOrganization.ascx.cs">
|
||||
<DependentUpon>UserOrganization.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
@ -4328,6 +4335,7 @@
|
|||
<Content Include="UserControls\OrgPolicyEditor.ascx" />
|
||||
<Content Include="UserControls\PackagePhoneNumbers.ascx" />
|
||||
<Content Include="Lync\UserControls\AllocatePackagePhoneNumbers.ascx" />
|
||||
<Content Include="UserControls\ItemButtonPanel.ascx" />
|
||||
<Content Include="UserOrganization.ascx" />
|
||||
<Content Include="VPSForPC\MonitoringPage.aspx" />
|
||||
<Content Include="VPSForPC\VdcAccountVLanAdd.ascx" />
|
||||
|
@ -5483,6 +5491,9 @@
|
|||
<Content Include="Lync\UserControls\App_LocalResources\AllocatePackagePhoneNumbers.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="UserControls\App_LocalResources\ItemButtonPanel.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<None Include="Resources\Windows2008_Settings.ascx.resx" />
|
||||
<Content Include="App_LocalResources\WebSitesHeliconZooControl.ascx.resx" />
|
||||
<Content Include="ExchangeServer\App_LocalResources\ExchangeDisclaimers.ascx.resx">
|
||||
|
@ -5561,6 +5572,7 @@
|
|||
<Content Include="RDS\UserControls\App_LocalResources\RDSCollectionUsers.ascx.resx" />
|
||||
<Content Include="RDS\UserControls\App_LocalResources\RDSCollectionServers.ascx.resx" />
|
||||
<Content Include="RDS\UserControls\App_LocalResources\RDSCollectionApps.ascx.resx" />
|
||||
<Content Include="ProviderControls\App_LocalResources\RDS_Settings.ascx.resx" />
|
||||
<EmbeddedResource Include="UserControls\App_LocalResources\EditDomainsList.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
|
|
|
@ -141,6 +141,8 @@
|
|||
<p class="Normal">
|
||||
<asp:Localize ID="SSLImportDescription" runat="server" meta:resourcekey="SSLImportDescription" /></p>
|
||||
<asp:Button ID="btnImport" meta:resourcekey="btnImport" CssClass="Button1" runat="server" OnClick="btnImport_click" />
|
||||
<asp:Button ID="btnDeleteAll" runat="server" Text="Delete" meta:resourcekey="btnDelete"
|
||||
CssClass="Button1" OnClick="btnDeleteAll_Click" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
|
@ -151,13 +153,7 @@
|
|||
<tr>
|
||||
<td class="SubHead">
|
||||
<asp:Localize ID="SelectCertType" runat="server" meta:resourcekey="SelectCertType" /></td>
|
||||
<td class="NormalBold" ><asp:radiobutton id="rbSiteCertificate" GroupName="Content" Runat="server" Checked="True"></asp:radiobutton></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="NormalBold" ><asp:radiobutton id="rbDomainCertificate" GroupName="Content" Runat="server" ></asp:radiobutton></td>
|
||||
</tr>
|
||||
|
||||
<td class="NormalBold" ><asp:DropDownList id="ddlbSiteCertificate" GroupName="Content" Runat="server" Checked="True"></asp:DropDownList></td>
|
||||
<tr>
|
||||
<td class="SubHead">
|
||||
<asp:Localize ID="sslBitLength" runat="server" meta:resourcekey="sslBitLength" /></td>
|
||||
|
@ -173,7 +169,7 @@
|
|||
<asp:Localize ID="sslOrganization" runat="server" meta:resourcekey="sslOrganization" /></td>
|
||||
<td class="Normal">
|
||||
<asp:TextBox ID="txtCompany" runat="server" /><asp:RequiredFieldValidator ID="SSLCompanyReq" Display="Dynamic" ValidationGroup="SSL" runat="server"
|
||||
ControlToValidate="txtCompany" ErrorMessage="RequiredFieldValidator" /></td>
|
||||
ControlToValidate="txtCompany" ErrorMessage="*" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="SubHead">
|
||||
|
@ -196,7 +192,7 @@
|
|||
<asp:DropDownList ID="ddlStates" Runat="server" DataTextField="Text" DataValueField="Value" CssClass="NormalTextBox"
|
||||
Width="200px" Visible="false" />
|
||||
<asp:RequiredFieldValidator ID="SSLSSLStateReq" ValidationGroup="SSL" runat="server"
|
||||
ControlToValidate="txtState" Display="Dynamic" /></td>
|
||||
ControlToValidate="txtState" Display="Dynamic" ErrorMessage="*" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="SubHead">
|
||||
|
@ -204,7 +200,7 @@
|
|||
<td class="Normal">
|
||||
<asp:TextBox ID="txtCity" runat="server" />
|
||||
<asp:RequiredFieldValidator ID="SSLCityReq" ValidationGroup="SSL" runat="server"
|
||||
ControlToValidate="txtCity" ErrorMessage="RequiredFieldValidator" /></td>
|
||||
ControlToValidate="txtCity" ErrorMessage="*" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
|
@ -254,6 +250,8 @@
|
|||
<br />
|
||||
<asp:Button ID="btnInstallCertificate" meta:resourcekey="btnInstallCertificate" runat="server"
|
||||
CssClass="Button1" Text="Install" OnClick="btnInstallCertificate_Click" />
|
||||
<asp:Button ID="btnCancelRequest" runat="server" OnClientClick="return confirm('Are you Sure? This will delete the current request.');"
|
||||
CssClass="Button1" Text="Cancel request" OnClick="btnCancelRequest_Click" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</ContentTemplate>
|
||||
|
|
|
@ -135,10 +135,18 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
}
|
||||
|
||||
private void BindListOfAvailableSslDomains(string websiteName, string domainName)
|
||||
{
|
||||
rbSiteCertificate.Text = websiteName;
|
||||
rbDomainCertificate.Text = "*." + domainName;
|
||||
private void BindListOfAvailableSslDomains(string defaultBindingName)
|
||||
{
|
||||
var domains = ES.Services.WebServers.GetWebSitePointers(SiteId).ToList();
|
||||
|
||||
// If no pointers at all, add website default domain
|
||||
if (domains.All(d => d.DomainName != defaultBindingName))
|
||||
{
|
||||
domains.Add(new DomainInfo() { DomainName = defaultBindingName, IsDomainPointer = false});
|
||||
}
|
||||
|
||||
ddlbSiteCertificate.Items.AddRange(domains.Select(d => new ListItem(d.DomainName)).ToArray());
|
||||
ddlbSiteCertificate.Items.AddRange(domains.Where(d => !d.IsDomainPointer).Select(d => new ListItem("*." + d.DomainName)).ToArray());
|
||||
}
|
||||
|
||||
public void BindWebItem(WebVirtualDirectory item)
|
||||
|
@ -148,106 +156,10 @@ namespace WebsitePanel.Portal
|
|||
// Skip processing virtual directories, otherwise we will likely run into a trouble
|
||||
if (webSite == null)
|
||||
return;
|
||||
//
|
||||
bool hasactive = false;
|
||||
bool haspending = false;
|
||||
|
||||
SiteId = item.Id;
|
||||
//
|
||||
try
|
||||
{
|
||||
SSLCertificate[] certificates = ES.Services.WebServers.GetCertificatesForSite(item.Id);
|
||||
SiteId = item.Id;
|
||||
|
||||
SSLNotInstalled.Visible = true;
|
||||
|
||||
DomainInfo[] domains = ES.Services.Servers.GetDomains(PanelSecurity.PackageId);
|
||||
string zoneName = string.Empty;
|
||||
foreach (DomainInfo d in domains)
|
||||
{
|
||||
if (d.WebSiteId == SiteId)
|
||||
{
|
||||
zoneName = d.ZoneName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
BindListOfAvailableSslDomains(webSite.Name, zoneName);
|
||||
|
||||
if (certificates.Length > 0)
|
||||
{
|
||||
foreach (SSLCertificate cert in certificates)
|
||||
{
|
||||
if (cert.Installed)
|
||||
{
|
||||
hasactive = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
haspending = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Web site has active certificate
|
||||
if (hasactive)
|
||||
{
|
||||
tabInstalled.Visible = true;
|
||||
tabInstalled.Enabled = true;
|
||||
tabInstalled.HeaderText = GetLocalizedString("tabInstalled.Text");
|
||||
|
||||
InstalledCert = (from c in certificates
|
||||
where c.Installed == true
|
||||
select c).SingleOrDefault();
|
||||
//
|
||||
BindCertificateFields();
|
||||
// Attention please, the certificate is about to expire!
|
||||
TimeSpan daystoexp = DateTime.Now - InstalledCert.ExpiryDate;
|
||||
if (daystoexp.Days < 30)
|
||||
{
|
||||
lblInstalledExpiration.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
// Put some data to the ViewState
|
||||
ViewState["SSLID"] = InstalledCert.id;
|
||||
ViewState["SSLSerial"] = InstalledCert.SerialNumber;
|
||||
//
|
||||
if (!haspending)
|
||||
{
|
||||
btnShowpnlCSR.Attributes.Add("OnClientClick", "return confirm('" + GetLocalizedString("btnInstallConfirm.Text") + "');");
|
||||
btnShowUpload.Attributes.Add("OnClientClick", "return confirm('" + GetLocalizedString("btnInstallConfirm.Text") + "');");
|
||||
SSLNotInstalledHeading.Text = GetLocalizedString("SSLInstalledNewHeading.Text");
|
||||
SSLNotInstalledDescription.Text = GetLocalizedString("SSLInstalledNewDescription.Text");
|
||||
}
|
||||
}
|
||||
|
||||
// Web site has pending certificate
|
||||
if (haspending)
|
||||
{
|
||||
tabCSR.HeaderText = GetLocalizedString("tabPendingCertificate.HeaderText");//"Pending Certificate";
|
||||
SSLNotInstalled.Visible = false;
|
||||
pnlInstallCertificate.Visible = true;
|
||||
SSLCertificate pending = (from c in certificates
|
||||
where c.Installed == false
|
||||
select c).Single();
|
||||
ViewState["CSRID"] = pending.id;
|
||||
txtCSR.Text = pending.CSR;
|
||||
txtCSR.Attributes.Add("onfocus", "this.select();");
|
||||
if (InstalledCert != null)
|
||||
{
|
||||
btnInstallCertificate.Attributes.Add("OnClientClick", "return confirm('" + GetLocalizedString("btnInstallConfirm.Text") + "');");
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasactive && ES.Services.WebServers.CheckCertificate(item.Id).IsSuccess)
|
||||
{
|
||||
SSLNotInstalled.Visible = false;
|
||||
SSLImport.Visible = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
messageBox.ShowErrorMessage("WEB_GET_SSL", ex);
|
||||
}
|
||||
RefreshControlLayout();
|
||||
}
|
||||
|
||||
protected void btnShowpnlCSR_click(object sender, EventArgs e)
|
||||
|
@ -271,7 +183,8 @@ namespace WebsitePanel.Portal
|
|||
L={3},
|
||||
S={4},
|
||||
C={5}",
|
||||
rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text,
|
||||
//rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text,
|
||||
ddlbSiteCertificate.SelectedValue,
|
||||
txtCompany.Text,
|
||||
txtOU.Text,
|
||||
txtCity.Text,
|
||||
|
@ -279,7 +192,7 @@ namespace WebsitePanel.Portal
|
|||
lstCountries.SelectedValue);
|
||||
|
||||
SSLCertificate certificate = new SSLCertificate();
|
||||
certificate.Hostname = rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text;
|
||||
certificate.Hostname = ddlbSiteCertificate.SelectedValue; //rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text;
|
||||
certificate.DistinguishedName = distinguishedName;
|
||||
certificate.CSRLength = Convert.ToInt32(lstBits.SelectedValue);
|
||||
certificate.Organisation = txtCompany.Text;
|
||||
|
@ -336,7 +249,7 @@ namespace WebsitePanel.Portal
|
|||
OU={2},
|
||||
L={3},
|
||||
S={4},
|
||||
C={5}", rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text,
|
||||
C={5}", ddlbSiteCertificate.SelectedValue, //rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text,
|
||||
txtCompany.Text,
|
||||
txtOU.Text,
|
||||
txtCity.Text,
|
||||
|
@ -344,7 +257,7 @@ namespace WebsitePanel.Portal
|
|||
lstCountries.SelectedValue);
|
||||
|
||||
SSLCertificate certificate = new SSLCertificate();
|
||||
certificate.Hostname = rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text;
|
||||
certificate.Hostname = ddlbSiteCertificate.SelectedValue; //rbSiteCertificate.Checked ? rbSiteCertificate.Text : rbDomainCertificate.Text;
|
||||
certificate.DistinguishedName = distinguishedName;
|
||||
certificate.CSRLength = Convert.ToInt32(lstBits.SelectedValue);
|
||||
certificate.Organisation = txtCompany.Text;
|
||||
|
@ -369,7 +282,7 @@ namespace WebsitePanel.Portal
|
|||
pnlCSR.Visible = false;
|
||||
ViewState["CSRID"] = certificate.id;
|
||||
txtCSR.Attributes.Add("onfocus", "this.select();");
|
||||
RefreshControlLayout(PanelRequest.ItemID);
|
||||
RefreshControlLayout();
|
||||
TabContainer1.ActiveTab = TabContainer1.Tabs[0];
|
||||
messageBox.ShowSuccessMessage(WEB_GEN_CSR);
|
||||
}
|
||||
|
@ -402,7 +315,7 @@ namespace WebsitePanel.Portal
|
|||
//
|
||||
TabContainer1.ActiveTab = tabInstalled;
|
||||
|
||||
RefreshControlLayout(webSiteId);
|
||||
RefreshControlLayout();
|
||||
}
|
||||
|
||||
protected void btnInstallPFX_Click(object sender, EventArgs e)
|
||||
|
@ -428,13 +341,14 @@ namespace WebsitePanel.Portal
|
|||
if (result.IsSuccess.Equals(false))
|
||||
{
|
||||
messageBox.ShowErrorMessage("WEB_INSTALL_CSR");
|
||||
return;
|
||||
RefreshControlLayout();
|
||||
return;
|
||||
}
|
||||
//
|
||||
messageBox.ShowSuccessMessage("WEB_INSTALL_CSR");
|
||||
SSLNotInstalled.Visible = false;
|
||||
tabInstalled.Visible = true;
|
||||
RefreshControlLayout(SiteId);
|
||||
RefreshControlLayout();
|
||||
}
|
||||
|
||||
protected void BindCertificateFields()
|
||||
|
@ -560,43 +474,43 @@ namespace WebsitePanel.Portal
|
|||
if (!result.IsSuccess)
|
||||
{
|
||||
messageBox.ShowErrorMessage("WEB_INSTALL_CSR");
|
||||
RefreshControlLayout();
|
||||
return;
|
||||
}
|
||||
// Show success message and display appropriate controls
|
||||
messageBox.ShowSuccessMessage("WEB_INSTALL_CSR");
|
||||
SSLNotInstalled.Visible = false;
|
||||
tabInstalled.Visible = true;
|
||||
//
|
||||
RefreshControlLayout(webSiteId);
|
||||
|
||||
RefreshControlLayout();
|
||||
}
|
||||
|
||||
protected void RefreshControlLayout(int webSiteId)
|
||||
public void RefreshControlLayout()
|
||||
{
|
||||
bool hasActiveCert = false;
|
||||
bool hasPendingCert = false;
|
||||
//
|
||||
//
|
||||
bool hasactive = false;
|
||||
bool haspending = false;
|
||||
|
||||
try
|
||||
{
|
||||
SSLCertificate[] certificates = ES.Services.WebServers.GetCertificatesForSite(webSiteId);
|
||||
var webSite = ES.Services.WebServers.GetWebSite(SiteId);
|
||||
|
||||
WebSite item = ES.Services.WebServers.GetWebSite(webSiteId);
|
||||
// Get all certificate infos stored in database
|
||||
SSLCertificate[] certificates = ES.Services.WebServers.GetCertificatesForSite(SiteId);
|
||||
|
||||
SSLNotInstalled.Visible = true;
|
||||
//
|
||||
// Set some default visible values, states and texts
|
||||
tabInstalled.Visible = false;
|
||||
tabInstalled.Enabled = false;
|
||||
SSLNotInstalled.Visible = true;
|
||||
SSLImport.Visible = false;
|
||||
pnlCSR.Visible = false;
|
||||
pnlShowUpload.Visible = false;
|
||||
pnlInstallCertificate.Visible = false;
|
||||
|
||||
DomainInfo[] domains = ES.Services.Servers.GetDomains(PanelSecurity.PackageId);
|
||||
string zoneName = string.Empty;
|
||||
foreach (DomainInfo d in domains)
|
||||
{
|
||||
if (d.WebSiteId == item.Id)
|
||||
{
|
||||
zoneName = d.ZoneName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
btnShowpnlCSR.Attributes.Remove("OnClientClick");
|
||||
btnShowUpload.Attributes.Remove("OnClientClick");
|
||||
SSLNotInstalledHeading.Text = GetLocalizedString("SSLNotInstalledHeading.Text");
|
||||
SSLNotInstalledDescription.Text = GetLocalizedString("SSLNotInstalledDescription.Text");
|
||||
|
||||
//
|
||||
BindListOfAvailableSslDomains(item.Name, zoneName);
|
||||
BindListOfAvailableSslDomains(webSite.Name);
|
||||
|
||||
if (certificates.Length > 0)
|
||||
{
|
||||
|
@ -604,16 +518,17 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
if (cert.Installed)
|
||||
{
|
||||
hasActiveCert = true;
|
||||
hasactive = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
hasPendingCert = true;
|
||||
haspending = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (hasActiveCert)
|
||||
// Web site has active certificate
|
||||
if (hasactive)
|
||||
{
|
||||
tabInstalled.Visible = true;
|
||||
tabInstalled.Enabled = true;
|
||||
|
@ -622,18 +537,19 @@ namespace WebsitePanel.Portal
|
|||
InstalledCert = (from c in certificates
|
||||
where c.Installed == true
|
||||
select c).SingleOrDefault();
|
||||
|
||||
TimeSpan daystoexp = DateTime.Now - InstalledCert.ExpiryDate;
|
||||
|
||||
BindCertificateFields();
|
||||
//
|
||||
bool certAbout2Exp = daystoexp.Days < 30
|
||||
? lblInstalledExpiration.ForeColor == System.Drawing.Color.Red
|
||||
: lblInstalledExpiration.ForeColor == System.Drawing.Color.Black;
|
||||
BindCertificateFields();
|
||||
// Attention please, the certificate is about to expire!
|
||||
TimeSpan daystoexp = InstalledCert.ExpiryDate - DateTime.Now;
|
||||
if (daystoexp.Days < 30)
|
||||
{
|
||||
lblInstalledExpiration.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
// Put some data to the ViewState
|
||||
ViewState["SSLID"] = InstalledCert.id;
|
||||
ViewState["SSLSerial"] = InstalledCert.SerialNumber;
|
||||
|
||||
if (!hasPendingCert)
|
||||
//
|
||||
if (!haspending)
|
||||
{
|
||||
btnShowpnlCSR.Attributes.Add("OnClientClick", "return confirm('" + GetLocalizedString("btnInstallConfirm.Text") + "');");
|
||||
btnShowUpload.Attributes.Add("OnClientClick", "return confirm('" + GetLocalizedString("btnInstallConfirm.Text") + "');");
|
||||
|
@ -642,9 +558,10 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
}
|
||||
|
||||
if (hasPendingCert)
|
||||
// Web site has pending certificate
|
||||
if (haspending)
|
||||
{
|
||||
tabCSR.HeaderText = GetLocalizedString("tabPendingCertificate.HeaderText");
|
||||
tabCSR.HeaderText = GetLocalizedString("tabPendingCertificate.HeaderText");//"Pending Certificate";
|
||||
SSLNotInstalled.Visible = false;
|
||||
pnlInstallCertificate.Visible = true;
|
||||
SSLCertificate pending = (from c in certificates
|
||||
|
@ -653,12 +570,17 @@ namespace WebsitePanel.Portal
|
|||
ViewState["CSRID"] = pending.id;
|
||||
txtCSR.Text = pending.CSR;
|
||||
txtCSR.Attributes.Add("onfocus", "this.select();");
|
||||
|
||||
if (InstalledCert != null)
|
||||
{
|
||||
btnInstallCertificate.Attributes.Add("OnClientClick", "return confirm('" + GetLocalizedString("btnInstallConfirm.Text") + "');");
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasactive && ES.Services.WebServers.CheckCertificate(SiteId).IsSuccess)
|
||||
{
|
||||
SSLNotInstalled.Visible = false;
|
||||
SSLImport.Visible = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -668,7 +590,10 @@ namespace WebsitePanel.Portal
|
|||
|
||||
protected void SetCertHostnameSelection(string hostname)
|
||||
{
|
||||
rbSiteCertificate.Checked = (rbSiteCertificate.Text == hostname);
|
||||
if (ddlbSiteCertificate.Items.Contains(new ListItem(hostname)))
|
||||
{
|
||||
ddlbSiteCertificate.SelectedValue = hostname;
|
||||
}
|
||||
}
|
||||
|
||||
protected void SetCertCountrySelection(string country)
|
||||
|
@ -701,5 +626,33 @@ namespace WebsitePanel.Portal
|
|||
listCtl.ClearSelection();
|
||||
li.Selected = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnCancelRequest_Click(object sender, EventArgs e)
|
||||
{
|
||||
ResultObject result = null;
|
||||
try
|
||||
{
|
||||
result = ES.Services.WebServers.DeleteCertificateRequest(SiteId, (int)ViewState["CSRID"]);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
messageBox.ShowErrorMessage(WEB_SSL_DELETE, ex);
|
||||
}
|
||||
//
|
||||
if (!result.IsSuccess)
|
||||
{
|
||||
messageBox.ShowErrorMessage(WEB_SSL_DELETE);
|
||||
return;
|
||||
}
|
||||
//
|
||||
SSLNotInstalled.Visible = true;
|
||||
pnlCSR.Visible = false;
|
||||
pnlInstallCertificate.Visible = false;
|
||||
}
|
||||
|
||||
protected void btnDeleteAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
DeleteCertificate(SiteId, new SSLCertificate());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,32 +1,4 @@
|
|||
// Copyright (c) 2014, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
|
@ -355,6 +327,15 @@ namespace WebsitePanel.Portal {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// btnDeleteAll control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnDeleteAll;
|
||||
|
||||
/// <summary>
|
||||
/// pnlCSR control.
|
||||
/// </summary>
|
||||
|
@ -374,22 +355,13 @@ namespace WebsitePanel.Portal {
|
|||
protected global::System.Web.UI.WebControls.Localize SelectCertType;
|
||||
|
||||
/// <summary>
|
||||
/// rbSiteCertificate control.
|
||||
/// ddlbSiteCertificate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RadioButton rbSiteCertificate;
|
||||
|
||||
/// <summary>
|
||||
/// rbDomainCertificate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RadioButton rbDomainCertificate;
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlbSiteCertificate;
|
||||
|
||||
/// <summary>
|
||||
/// sslBitLength control.
|
||||
|
@ -678,5 +650,14 @@ namespace WebsitePanel.Portal {
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnInstallCertificate;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancelRequest control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCancelRequest;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue