diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.cs
index ba879d62..385b5159 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.cs
@@ -47,11 +47,11 @@ namespace WebsitePanel.Portal
if (!IsPostBack)
{
- searchBox.AddCriteria("Username", GetLocalizedString("SearchField.Username"));
+ /*searchBox.AddCriteria("Username", GetLocalizedString("SearchField.Username"));
searchBox.AddCriteria("FullName", GetLocalizedString("SearchField.Name"));
searchBox.AddCriteria("Email", GetLocalizedString("SearchField.EMail"));
searchBox.AddCriteria("CompanyName", GetLocalizedString("SearchField.CompanyName"));
- searchBox.Focus();
+ searchBox.Focus();*/
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.designer.cs
index bb552025..23343195 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.designer.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserCustomersSummary.ascx.designer.cs
@@ -21,24 +21,6 @@ namespace WebsitePanel.Portal {
///
protected global::System.Web.UI.WebControls.Button btnCreate;
- ///
- /// tblSearch control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Panel tblSearch;
-
- ///
- /// searchBox control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::WebsitePanel.Portal.SearchBox searchBox;
-
///
/// allCustomers control.
///
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.cs
index ba37b8e8..b39fdc8d 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.cs
@@ -28,6 +28,7 @@
using System;
using System.Collections.Generic;
+using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
@@ -46,6 +47,7 @@ namespace WebsitePanel.Portal.VPS
searchBox.AddCriteria("ExternalIP", GetLocalizedString("SearchField.ExternalIP"));
searchBox.AddCriteria("IPAddress", GetLocalizedString("SearchField.IPAddress"));
}
+ searchBox.AjaxData = this.GetSearchBoxAjaxData();
// toggle columns
bool isUserSelected = PanelSecurity.SelectedUser.Role == WebsitePanel.EnterpriseServer.UserRole.User;
@@ -134,5 +136,16 @@ namespace WebsitePanel.Portal.VPS
"ItemID=" + itemId));
}
}
+
+ public string GetSearchBoxAjaxData()
+ {
+ StringBuilder res = new StringBuilder();
+ res.Append("PagedStored: 'VirtualMachines'");
+ res.Append(", RedirectUrl: '" + GetServerEditUrl("{0}").Substring(2) + "'");
+ res.Append(", PackageID: " + (String.IsNullOrEmpty(Request["SpaceID"]) ? "0" : Request["SpaceID"]));
+ res.Append(", Recursive: true");
+ res.Append(", VPSTypeID: 'VPS'");
+ return res.ToString();
+ }
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.designer.cs
index 680bd21c..3a1cde30 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.designer.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcHome.ascx.designer.cs
@@ -1,38 +1,9 @@
-// Copyright (c) 2015, 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.
-
//------------------------------------------------------------------------------
//
// 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.
//
//------------------------------------------------------------------------------
@@ -202,14 +173,5 @@ namespace WebsitePanel.Portal.VPS {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::WebsitePanel.Portal.Quota hddQuota;
-
- ///
- /// FormComments control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Localize FormComments;
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcPrivateNetwork.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcPrivateNetwork.ascx.cs
index 9d85b3cf..3d805787 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcPrivateNetwork.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS/VdcPrivateNetwork.ascx.cs
@@ -34,6 +34,7 @@ using System.Web.UI.WebControls;
using WebsitePanel.Providers.Virtualization;
using WebsitePanel.WebPortal;
using WebsitePanel.EnterpriseServer;
+using System.Text;
namespace WebsitePanel.Portal.VPS
{
@@ -46,6 +47,7 @@ namespace WebsitePanel.Portal.VPS
searchBox.AddCriteria("IPAddress", GetLocalizedString("SearchField.IPAddress"));
searchBox.AddCriteria("ItemName", GetLocalizedString("SearchField.ItemName"));
}
+ searchBox.AjaxData = this.GetSearchBoxAjaxData();
}
public string GetServerEditUrl(string itemID)
@@ -62,5 +64,15 @@ namespace WebsitePanel.Portal.VPS
e.ExceptionHandled = true;
}
}
+
+ public string GetSearchBoxAjaxData()
+ {
+ StringBuilder res = new StringBuilder();
+ res.Append("PagedStored: 'PackagePrivateIPAddresses'");
+ res.Append(", RedirectUrl: '" + GetServerEditUrl("{0}").Substring(2) + "'");
+ res.Append(", PackageID: " + (String.IsNullOrEmpty(Request["SpaceID"]) ? "0" : Request["SpaceID"]));
+ res.Append(", VPSTypeID: 'VPS'");
+ return res.ToString();
+ }
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcHome.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcHome.ascx.cs
index a8f8e024..7a69ee9b 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcHome.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcHome.ascx.cs
@@ -28,9 +28,10 @@
using System;
using System.Linq;
+using System.Text;
using System.Web.UI.WebControls;
using WebsitePanel.EnterpriseServer;
-using WebsitePanel.Providers.Virtualization;
+using WebsitePanel.Providers.Virtualization;
namespace WebsitePanel.Portal.VPS2012
{
@@ -45,6 +46,7 @@ namespace WebsitePanel.Portal.VPS2012
searchBox.AddCriteria("ExternalIP", GetLocalizedString("SearchField.ExternalIP"));
searchBox.AddCriteria("IPAddress", GetLocalizedString("SearchField.IPAddress"));
}
+ searchBox.AjaxData = this.GetSearchBoxAjaxData();
// toggle columns
bool isUserSelected = PanelSecurity.SelectedUser.Role == WebsitePanel.EnterpriseServer.UserRole.User;
@@ -153,5 +155,16 @@ namespace WebsitePanel.Portal.VPS2012
"ItemID=" + itemId));
}
}
+
+ public string GetSearchBoxAjaxData()
+ {
+ StringBuilder res = new StringBuilder();
+ res.Append("PagedStored: 'VirtualMachines'");
+ res.Append(", RedirectUrl: '" + GetServerEditUrl("{0}").Substring(2) + "'");
+ res.Append(", PackageID: " + (String.IsNullOrEmpty(Request["SpaceID"]) ? "0" : Request["SpaceID"]));
+ res.Append(", Recursive: true");
+ res.Append(", VPSTypeID: 'VPS2012'");
+ return res.ToString();
+ }
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcPrivateNetwork.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcPrivateNetwork.ascx.cs
index 62f0076e..85f2492b 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcPrivateNetwork.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPS2012/VdcPrivateNetwork.ascx.cs
@@ -34,6 +34,7 @@ using System.Web.UI.WebControls;
using WebsitePanel.Providers.Virtualization;
using WebsitePanel.WebPortal;
using WebsitePanel.EnterpriseServer;
+using System.Text;
namespace WebsitePanel.Portal.VPS2012
{
@@ -46,6 +47,7 @@ namespace WebsitePanel.Portal.VPS2012
searchBox.AddCriteria("IPAddress", GetLocalizedString("SearchField.IPAddress"));
searchBox.AddCriteria("ItemName", GetLocalizedString("SearchField.ItemName"));
}
+ searchBox.AjaxData = this.GetSearchBoxAjaxData();
}
public string GetServerEditUrl(string itemID)
@@ -62,5 +64,15 @@ namespace WebsitePanel.Portal.VPS2012
e.ExceptionHandled = true;
}
}
+
+ public string GetSearchBoxAjaxData()
+ {
+ StringBuilder res = new StringBuilder();
+ res.Append("PagedStored: 'PackagePrivateIPAddresses'");
+ res.Append(", RedirectUrl: '" + GetServerEditUrl("{0}").Substring(2) + "'");
+ res.Append(", PackageID: " + (String.IsNullOrEmpty(Request["SpaceID"]) ? "0" : Request["SpaceID"]));
+ res.Append(", VPSTypeID: 'VPS2012'");
+ return res.ToString();
+ }
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcHome.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcHome.ascx.cs
index f80b86df..f869bd84 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcHome.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcHome.ascx.cs
@@ -28,6 +28,7 @@
using System;
using System.Collections.Generic;
+using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
@@ -46,6 +47,7 @@ namespace WebsitePanel.Portal.VPSForPC
searchBox.AddCriteria("ExternalIP", GetLocalizedString("SearchField.ExternalIP"));
searchBox.AddCriteria("IPAddress", GetLocalizedString("SearchField.IPAddress"));
}
+ searchBox.AjaxData = this.GetSearchBoxAjaxData();
// toggle columns
bool isUserSelected = PanelSecurity.SelectedUser.Role == WebsitePanel.EnterpriseServer.UserRole.User;
@@ -138,5 +140,16 @@ namespace WebsitePanel.Portal.VPSForPC
"ItemID=" + itemId));
}
}
+
+ public string GetSearchBoxAjaxData()
+ {
+ StringBuilder res = new StringBuilder();
+ res.Append("PagedStored: 'VirtualMachines'");
+ res.Append(", RedirectUrl: '" + GetServerEditUrl("{0}").Substring(2) + "'");
+ res.Append(", PackageID: " + (String.IsNullOrEmpty(Request["SpaceID"]) ? "0" : Request["SpaceID"]));
+ res.Append(", Recursive: true");
+ res.Append(", VPSTypeID: 'VPSForPC'");
+ return res.ToString();
+ }
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcPrivateNetwork.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcPrivateNetwork.ascx.cs
index 6ebf3d77..a0127670 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcPrivateNetwork.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/VPSForPC/VdcPrivateNetwork.ascx.cs
@@ -34,6 +34,7 @@ using System.Web.UI.WebControls;
using WebsitePanel.Providers.Virtualization;
using WebsitePanel.WebPortal;
using WebsitePanel.EnterpriseServer;
+using System.Text;
namespace WebsitePanel.Portal.VPSForPC
{
@@ -46,6 +47,7 @@ namespace WebsitePanel.Portal.VPSForPC
searchBox.AddCriteria("IPAddress", GetLocalizedString("SearchField.IPAddress"));
searchBox.AddCriteria("ItemName", GetLocalizedString("SearchField.ItemName"));
}
+ searchBox.AjaxData = this.GetSearchBoxAjaxData();
}
public string GetServerEditUrl(string itemID)
@@ -62,5 +64,15 @@ namespace WebsitePanel.Portal.VPSForPC
e.ExceptionHandled = true;
}
}
+
+ public string GetSearchBoxAjaxData()
+ {
+ StringBuilder res = new StringBuilder();
+ res.Append("PagedStored: 'PackagePrivateIPAddresses'");
+ res.Append(", RedirectUrl: '" + GetServerEditUrl("{0}").Substring(2) + "'");
+ res.Append(", PackageID: " + (String.IsNullOrEmpty(Request["SpaceID"]) ? "0" : Request["SpaceID"]));
+ res.Append(", VPSTypeID: 'VPSForPC'");
+ return res.ToString();
+ }
}
}