)
-
@name
-
- @if (showStatistic)
- {
-
-
- @percent%
+
+
+ @name
+
+
+ @if (showStatistic)
+ {
+
+
@Math.Round(Convert.ToDecimal(resource.ContentLength) / 1024, 2) / @Math.Round(Convert.ToDecimal(resource.AllocatedSpace) / 1024, 2) @Resources.GigabyteShort
+ }
+
+
-
@Math.Round(Convert.ToDecimal(resource.ContentLength) / 1024, 2) / @Math.Round(Convert.ToDecimal(resource.AllocatedSpace) / 1024, 2) @Resources.GigabyteShort
- }
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_ConfirmDialog.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_ConfirmDialog.cshtml
new file mode 100644
index 00000000..1711a807
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_ConfirmDialog.cshtml
@@ -0,0 +1,20 @@
+@using WebsitePanel.WebDavPortal.UI
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml
index cd295597..e93d4c78 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml
+++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml
@@ -1,9 +1,11 @@
-@using Ninject
+@using System.Web.Script.Serialization
+@using Ninject
@using WebsitePanel.WebDav.Core
@using WebsitePanel.WebDav.Core.Config
@using WebsitePanel.WebDavPortal.DependencyInjection
@using WebsitePanel.WebDavPortal.Models
@using WebsitePanel.WebDavPortal.UI.Routes;
+@model WebsitePanel.WebDavPortal.Models.Common.BaseModel
@@ -15,8 +17,8 @@
@Scripts.Render("~/bundles/modernizr")
-
-
+
- @RenderSection("popups", required: false)
+
+ @RenderSection("popups", required: false)
+
@Scripts.Render("~/bundles/jquery")
+ @Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/bootstrap")
+ @Scripts.Render("~/bundles/appScripts")
+
+
@if (WspContext.User != null)
{
@Scripts.Render("~/bundles/authScripts")
-
+
}
+ @if (Model != null)
+ {
+
+ }
+
+
+
@RenderSection("scripts", required: false)
diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config
index aaabd2ca..e71f301b 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config
+++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Web.config
@@ -46,8 +46,10 @@
+
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/WebsitePanel.WebDavPortal.csproj b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/WebsitePanel.WebDavPortal.csproj
index bdc8ba78..2ea96586 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/WebsitePanel.WebDavPortal.csproj
+++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/WebsitePanel.WebDavPortal.csproj
@@ -145,6 +145,7 @@
+
@@ -159,8 +160,12 @@
+
+
+
+
@@ -225,8 +230,11 @@
+
+
+
@@ -265,6 +273,7 @@
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/Ecommerce/WebsitePanel.Portal.Ecommerce.Modules.csproj b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/Ecommerce/WebsitePanel.Portal.Ecommerce.Modules.csproj
index 923cc4df..8fda74b1 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/Ecommerce/WebsitePanel.Portal.Ecommerce.Modules.csproj
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/Ecommerce/WebsitePanel.Portal.Ecommerce.Modules.csproj
@@ -117,36 +117,42 @@
BillingCycles.ascx
+ ASPXCodeBehind
BillingCycles.ascx
BillingCyclesAddCycle.ascx
+ ASPXCodeBehind
BillingCyclesAddCycle.ascx
BillingCyclesEditCycle.ascx
+ ASPXCodeBehind
BillingCyclesEditCycle.ascx
Categories.ascx
+ ASPXCodeBehind
Categories.ascx
CategoriesAddCategory.ascx
+ ASPXCodeBehind
CategoriesAddCategory.ascx
CategoriesEditCategory.ascx
+ ASPXCodeBehind
CategoriesEditCategory.ascx
@@ -158,8 +164,12 @@
ASPXCodeBehind
-
-
+
+ ASPXCodeBehind
+
+
+ ASPXCodeBehind
+
@@ -186,150 +196,175 @@
CustomerPaymentProfile.ascx
+ ASPXCodeBehind
CustomerPaymentProfile.ascx
CustomersInvoices.ascx
+ ASPXCodeBehind
CustomersInvoices.ascx
CustomersInvoicesViewInvoice.ascx
+ ASPXCodeBehind
CustomersInvoicesViewInvoice.ascx
CustomersPayments.ascx
+ ASPXCodeBehind
CustomersPayments.ascx
CustomersServices.ascx
+ ASPXCodeBehind
CustomersServices.ascx
CustomersServicesUpgradeService.ascx
+ ASPXCodeBehind
CustomersServicesUpgradeService.ascx
CustomersServicesViewService.ascx
+ ASPXCodeBehind
CustomersServicesViewService.ascx
DomainNames.ascx
+ ASPXCodeBehind
DomainNames.ascx
DomainNamesAddDomain.ascx
+ ASPXCodeBehind
DomainNamesAddDomain.ascx
DomainNamesEditDomain.ascx
+ ASPXCodeBehind
DomainNamesEditDomain.ascx
DomainRegistrarDirecti.ascx
+ ASPXCodeBehind
DomainRegistrarDirecti.ascx
DomainRegistrarEnom.ascx
+ ASPXCodeBehind
DomainRegistrarEnom.ascx
EcommerceSystemSettings.ascx
+ ASPXCodeBehind
EcommerceSystemSettings.ascx
HostingAddons.ascx
+ ASPXCodeBehind
HostingAddons.ascx
HostingAddonsAddAddon.ascx
+ ASPXCodeBehind
HostingAddonsAddAddon.ascx
HostingAddonsEditAddon.ascx
+ ASPXCodeBehind
HostingAddonsEditAddon.ascx
HostingPlans.ascx
+ ASPXCodeBehind
HostingPlans.ascx
HostingPlansAddPlan.ascx
+ ASPXCodeBehind
HostingPlansAddPlan.ascx
HostingPlansEditPlan.ascx
+ ASPXCodeBehind
HostingPlansEditPlan.ascx
NotificationNewInvoice.ascx
+ ASPXCodeBehind
NotificationNewInvoice.ascx
NotificationPaymentReceived.ascx
+ ASPXCodeBehind
NotificationPaymentReceived.ascx
NotificationServiceActivated.ascx
+ ASPXCodeBehind
NotificationServiceActivated.ascx
NotificationServiceCancelled.ascx
+ ASPXCodeBehind
NotificationServiceCancelled.ascx
NotificationServiceSuspended.ascx
+ ASPXCodeBehind
NotificationServiceSuspended.ascx
OrderFailed.ascx
+ ASPXCodeBehind
OrderFailed.ascx
@@ -343,48 +378,56 @@
PaymentMethod2Checkout.ascx
+ ASPXCodeBehind
PaymentMethod2Checkout.ascx
PaymentMethodCreditCard.ascx
+ ASPXCodeBehind
PaymentMethodCreditCard.ascx
PaymentMethodOffline.ascx
+ ASPXCodeBehind
PaymentMethodOffline.ascx
PaymentMethodPayPalAccount.ascx
+ ASPXCodeBehind
PaymentMethodPayPalAccount.ascx
2CO_Payment.ascx
+ ASPXCodeBehind
2CO_Payment.ascx
CreditCard_Payment.ascx
+ ASPXCodeBehind
CreditCard_Payment.ascx
Offline_Payment.ascx
+ ASPXCodeBehind
Offline_Payment.ascx
PPAccount_Payment.ascx
+ ASPXCodeBehind
PPAccount_Payment.ascx
@@ -398,30 +441,35 @@
DomainName_ServiceDetails.ascx
+ ASPXCodeBehind
DomainName_ServiceDetails.ascx
HostingAddon_ServiceDetails.ascx
+ ASPXCodeBehind
HostingAddon_ServiceDetails.ascx
HostingPlan_Brief.ascx
+ ASPXCodeBehind
HostingPlan_Brief.ascx
HostingPlan_Highlights.ascx
+ ASPXCodeBehind
HostingPlan_Highlights.ascx
HostingPlan_ServiceDetails.ascx
+ ASPXCodeBehind
HostingPlan_ServiceDetails.ascx
@@ -429,24 +477,28 @@
ProvisioningSettingsEdit.ascx
+ ASPXCodeBehind
ProvisioningSettingsEdit.ascx
QuickSignup.ascx
+ ASPXCodeBehind
QuickSignup.ascx
OrderComplete.ascx
+ ASPXCodeBehind
OrderComplete.ascx
OrderCheckout.ascx
+ ASPXCodeBehind
OrderCheckout.ascx
@@ -458,102 +510,119 @@
CatalogBreadCrumb.ascx
+ ASPXCodeBehind
CatalogBreadCrumb.ascx
StorefrontMenu.ascx
+ ASPXCodeBehind
StorefrontMenu.ascx
StorefrontOrderProduct.ascx
+ ASPXCodeBehind
StorefrontOrderProduct.ascx
StorefrontViewCategory.ascx
+ ASPXCodeBehind
StorefrontViewCategory.ascx
StorefrontWelcome.ascx
+ ASPXCodeBehind
StorefrontWelcome.ascx
StorefrontWelcomeEdit.ascx
+ ASPXCodeBehind
StorefrontWelcomeEdit.ascx
2Checkout_Settings.ascx
+ ASPXCodeBehind
2Checkout_Settings.ascx
AuthorizeNet_Settings.ascx
+ ASPXCodeBehind
AuthorizeNet_Settings.ascx
OfflinePayment_Settings.ascx
+ ASPXCodeBehind
OfflinePayment_Settings.ascx
PayPalPro_Settings.ascx
+ ASPXCodeBehind
PayPalPro_Settings.ascx
PayPalStandard_Settings.ascx
+ ASPXCodeBehind
PayPalStandard_Settings.ascx
Taxations.ascx
+ ASPXCodeBehind
Taxations.ascx
TaxationsAddTax.ascx
+ ASPXCodeBehind
TaxationsAddTax.ascx
TaxationsEditTax.ascx
+ ASPXCodeBehind
TaxationsEditTax.ascx
TermsAndConditions.ascx
+ ASPXCodeBehind
TermsAndConditions.ascx
TermsAndConditionsEdit.ascx
+ ASPXCodeBehind
TermsAndConditionsEdit.ascx
AddonProducts.ascx
+ ASPXCodeBehind
AddonProducts.ascx
@@ -570,120 +639,140 @@
ChoosePaymentMethod.ascx
+ ASPXCodeBehind
ChoosePaymentMethod.ascx
CreateUserAccount.ascx
+ ASPXCodeBehind
CreateUserAccount.ascx
CustomerInvoiceTemplated.ascx
+ ASPXCodeBehind
CustomerInvoiceTemplated.ascx
DomainNameBillingCycles.ascx
+ ASPXCodeBehind
DomainNameBillingCycles.ascx
EmailNotificationEditor.ascx
+ ASPXCodeBehind
EmailNotificationEditor.ascx
HostingAddonOneTimeFee.ascx
+ ASPXCodeBehind
HostingAddonOneTimeFee.ascx
HostingPlanBillingCycles.ascx
+ ASPXCodeBehind
HostingPlanBillingCycles.ascx
HostingPlanQuotas.ascx
+ ASPXCodeBehind
HostingPlanQuotas.ascx
LoginUserAccount.ascx
+ ASPXCodeBehind
LoginUserAccount.ascx
ManualPaymentAdd.ascx
+ ASPXCodeBehind
ManualPaymentAdd.ascx
PlanDomainOption.ascx
+ ASPXCodeBehind
PlanDomainOption.ascx
PlanHostingAddons.ascx
+ ASPXCodeBehind
PlanHostingAddons.ascx
ProductHighlights.ascx
+ ASPXCodeBehind
ProductHighlights.ascx
QuickHostingAddon.ascx
+ ASPXCodeBehind
QuickHostingAddon.ascx
QuickHostingPlanCycles.ascx
+ ASPXCodeBehind
QuickHostingPlanCycles.ascx
QuickHostingPlans.ascx
+ ASPXCodeBehind
QuickHostingPlans.ascx
PathBreadCrumb.ascx
+ ASPXCodeBehind
PathBreadCrumb.ascx
ProductCategories.ascx
+ ASPXCodeBehind
ProductCategories.ascx
UserAccountDetails.ascx
+ ASPXCodeBehind
UserAccountDetails.ascx
ViewProductDetails.ascx
+ ASPXCodeBehind
ViewProductDetails.ascx
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs
index 2285cd13..428ab43f 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs
@@ -46,7 +46,7 @@ namespace WebsitePanel.Portal
///
/// Summary description for Utils.
/// Name of the parameter to add.
/// Value for the parameter to add.
/// Url with added parameter.
- public static Uri AddParameterToUrl(Uri url, string paramName, string paramValue)
+ public static Uri AddParameter(this Uri url, string paramName, string paramValue)
{
var uriBuilder = new UriBuilder(url);
var query = HttpUtility.ParseQueryString(uriBuilder.Query);
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx
index 11119fd1..62389f09 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx
@@ -51,7 +51,7 @@
-
+
<%# Eval("ExternalIP") %>
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs
index b3ed2b40..950cd86d 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs
@@ -45,6 +45,8 @@ namespace WebsitePanel.Portal
gvIPAddresses.PageSize = UsersHelper.GetDisplayItemsPerPage();
ddlItemsPerPage.SelectedValue = gvIPAddresses.PageSize.ToString();
+ gvIPAddresses.PageIndex = PageIndex;
+
// pool
if (!String.IsNullOrEmpty(PanelRequest.PoolId))
ddlPools.SelectedValue = PanelRequest.PoolId;
@@ -69,6 +71,7 @@ namespace WebsitePanel.Portal
bool vps = ddlPools.SelectedIndex > 1;
gvIPAddresses.Columns[3].Visible = vps;
}
+
protected void odsIPAddresses_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception != null)
@@ -84,10 +87,23 @@ namespace WebsitePanel.Portal
return PortalUtils.GetSpaceHomePageUrl(spaceId);
}
+ public string GetReturnUrl()
+ {
+ var returnUrl = Request.Url.AddParameter("Page", gvIPAddresses.PageIndex.ToString());
+ return Uri.EscapeDataString("~" + returnUrl.PathAndQuery);
+ }
+
+ public int PageIndex
+ {
+ get
+ {
+ return PanelRequest.GetInt("Page", 0);
+ }
+ }
protected void btnAddItem_Click(object sender, EventArgs e)
{
- Response.Redirect(EditUrl("PoolID", ddlPools.SelectedValue, "add_ip"), true);
+ Response.Redirect(EditUrl("PoolID", ddlPools.SelectedValue, "add_ip", "ReturnUrl=" + GetReturnUrl()), true);
}
protected void ddlItemsPerPage_SelectedIndexChanged(object sender, EventArgs e)
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs
index 6718425e..fc805eee 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs
@@ -43,6 +43,18 @@ namespace WebsitePanel.Portal
{
protected void Page_Load(object sender, EventArgs e)
{
+ if (!IsPostBack)
+ {
+ gvIPAddresses.PageIndex = PageIndex;
+ }
+ }
+
+ public int PageIndex
+ {
+ get
+ {
+ return PanelRequest.GetInt("IpAddressesPage", 0);
+ }
}
public string EditModuleUrl(string key, string keyVal, string ctrlKey)
@@ -57,7 +69,10 @@ namespace WebsitePanel.Portal
public string GetReturnUrl()
{
- var returnUrl = Utils.AddParameterToUrl(Request.Url, "IpAddressesCollapsed", "False");
+ var returnUrl = Request.Url
+ .AddParameter("IpAddressesCollapsed", "False")
+ .AddParameter("IpAddressesPage", gvIPAddresses.PageIndex.ToString());
+
return Uri.EscapeDataString("~" + returnUrl.PathAndQuery);
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs
index c31abfbd..3bee6d7d 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs
@@ -58,9 +58,9 @@ namespace WebsitePanel.Portal
ShowErrorMessage("SERVER_GET_SERVER", ex);
return;
}
- }
- IPAddressesHeader.IsCollapsed = IsIpAddressesCollapsed;
+ IPAddressesHeader.IsCollapsed = IsIpAddressesCollapsed;
+ }
}
private void BindTools()
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx.cs
index 1a086347..8d029680 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx.cs
@@ -48,6 +48,7 @@ namespace WebsitePanel.Portal
{
XmlNodeList xmlIcons = null;
DataSet myPackages;
+ int currentPackage;
protected void Page_Load(object sender, EventArgs e)
{
@@ -68,6 +69,15 @@ namespace WebsitePanel.Portal
ddlPackageSelect.DataTextField = myPackages.Tables[0].Columns[2].ColumnName;
ddlPackageSelect.DataValueField = myPackages.Tables[0].Columns[0].ColumnName;
ddlPackageSelect.DataBind();
+ if(Session["currentPackage"] == null) {
+ if(ddlPackageSelect.Items.Count > 0) {
+ Session["currentPackage"] = ddlPackageSelect.Items[0].Value;
+ currentPackage = int.Parse(Session["currentPackage"].ToString());
+ }
+ } else {
+ currentPackage = int.Parse(Session["currentPackage"].ToString());
+ ddlPackageSelect.SelectedValue = currentPackage.ToString();
+ }
}
// USER
UserPackagesPanel.Visible = true;
@@ -78,7 +88,7 @@ namespace WebsitePanel.Portal
EmptyPackagesList.Visible = true;
} else {
ddlPackageSelect.Visible = true;
- myPackages = new PackagesHelper().GetMyPackage(int.Parse(ddlPackageSelect.SelectedValue));
+ myPackages = new PackagesHelper().GetMyPackage(currentPackage);
PackagesList.DataSource = myPackages;
PackagesList.DataBind();
}
@@ -241,8 +251,8 @@ namespace WebsitePanel.Portal
}
public void openSelectedPackage(Object sender, EventArgs e) {
- PackagesList.DataSource = new PackagesHelper().GetMyPackage(int.Parse(ddlPackageSelect.SelectedValue));
- PackagesList.DataBind();
+ Session["currentPackage"] = int.Parse(ddlPackageSelect.SelectedValue);
+ Response.Redirect(Request.RawUrl);
}
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs
index 125c354c..be04563f 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs
@@ -546,7 +546,7 @@ namespace WebsitePanel.Portal
WDeployPublishingConfirmPasswordTextBox,
WDeployPublishingAccountRequiredFieldValidator);
- WDeployPublishingAccountTextBox.Text = AutoSuggestWmSvcAccontName(item, "_dploy");
+ WDeployPublishingAccountTextBox.Text = AutoSuggestWmSvcAccontName(item, "_deploy");
//
WDeployPublishingAccountRequiredFieldValidator.Enabled = true;
//