update replace menu
This commit is contained in:
parent
884183a2ce
commit
536447fd36
10 changed files with 35 additions and 10 deletions
|
@ -27,7 +27,7 @@
|
||||||
</Content>
|
</Content>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
||||||
<Page name="Home" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" skin="Browse3.ascx">
|
<Page name="Home" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" skin="Browse3.ascx" align="right">
|
||||||
<Content id="LeftPane">
|
<Content id="LeftPane">
|
||||||
<Module moduleDefinitionID="UserAccountMenu" title="UserMenu" container="Clear.ascx">
|
<Module moduleDefinitionID="UserAccountMenu" title="UserMenu" container="Clear.ascx">
|
||||||
<ModuleData ref="UserMenu"/>
|
<ModuleData ref="UserMenu"/>
|
||||||
|
@ -534,7 +534,7 @@
|
||||||
</Content>
|
</Content>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
||||||
<Page name="Reporting" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" enabled="false">
|
<Page name="Reporting" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" enabled="false" align="left">
|
||||||
<Content id="LeftPane">
|
<Content id="LeftPane">
|
||||||
<Module moduleDefinitionID="User" title="User" container="Clear.ascx" />
|
<Module moduleDefinitionID="User" title="User" container="Clear.ascx" />
|
||||||
<Module moduleDefinitionID="HostingSpace" title="HostingSpace" container="Clear.ascx" />
|
<Module moduleDefinitionID="HostingSpace" title="HostingSpace" container="Clear.ascx" />
|
||||||
|
@ -552,7 +552,7 @@
|
||||||
</Page>
|
</Page>
|
||||||
</Pages>
|
</Pages>
|
||||||
</Page>
|
</Page>
|
||||||
<Page name="Configuration" roles="Administrator" enabled="false">
|
<Page name="Configuration" roles="Administrator" enabled="false" align="left">
|
||||||
<Pages>
|
<Pages>
|
||||||
<Page name="VirtualServers" roles="Administrator" skin="Browse1.ascx">
|
<Page name="VirtualServers" roles="Administrator" skin="Browse1.ascx">
|
||||||
<Content id="ContentPane">
|
<Content id="ContentPane">
|
||||||
|
|
|
@ -33,8 +33,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="TopMenu">
|
<div id="TopMenu">
|
||||||
<wsp:TopMenu ID="menu" runat="server" />
|
<wsp:TopMenu ID="leftMenu" runat="server" Align="left" />
|
||||||
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
||||||
|
<wsp:TopMenu ID="rightMenu" runat="server" Align="right" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Top">
|
<div id="Top">
|
||||||
|
|
|
@ -33,8 +33,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="TopMenu">
|
<div id="TopMenu">
|
||||||
<wsp:TopMenu ID="menu" runat="server" />
|
<wsp:TopMenu ID="leftMenu" runat="server" Align="left" />
|
||||||
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
||||||
|
<wsp:TopMenu ID="rightMenu" runat="server" Align="right" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Top">
|
<div id="Top">
|
||||||
|
|
|
@ -28,8 +28,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="TopMenu">
|
<div id="TopMenu">
|
||||||
<wsp:TopMenu ID="menu" runat="server" />
|
<wsp:TopMenu ID="leftMenu" runat="server" Align="left" />
|
||||||
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
||||||
|
<wsp:TopMenu ID="rightMenu" runat="server" Align="right" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Top">
|
<div id="Top">
|
||||||
|
|
|
@ -295,6 +295,7 @@ namespace WebsitePanel.WebPortal
|
||||||
|
|
||||||
page.Enabled = (xmlPage.Attributes["enabled"] != null) ? Boolean.Parse(xmlPage.Attributes["enabled"].Value) : true;
|
page.Enabled = (xmlPage.Attributes["enabled"] != null) ? Boolean.Parse(xmlPage.Attributes["enabled"].Value) : true;
|
||||||
page.Hidden = (xmlPage.Attributes["hidden"] != null) ? Boolean.Parse(xmlPage.Attributes["hidden"].Value) : false;
|
page.Hidden = (xmlPage.Attributes["hidden"] != null) ? Boolean.Parse(xmlPage.Attributes["hidden"].Value) : false;
|
||||||
|
page.Align = (xmlPage.Attributes["align"] != null) ? xmlPage.Attributes["align"].Value : null;
|
||||||
page.SkinSrc = (xmlPage.Attributes["skin"] != null) ? xmlPage.Attributes["skin"].Value : null;
|
page.SkinSrc = (xmlPage.Attributes["skin"] != null) ? xmlPage.Attributes["skin"].Value : null;
|
||||||
page.AdminSkinSrc = (xmlPage.Attributes["adminskin"] != null) ? xmlPage.Attributes["adminskin"].Value : null;
|
page.AdminSkinSrc = (xmlPage.Attributes["adminskin"] != null) ? xmlPage.Attributes["adminskin"].Value : null;
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@ namespace WebsitePanel.WebPortal
|
||||||
private Dictionary<string, ContentPane> contentPanes = new Dictionary<string, ContentPane>();
|
private Dictionary<string, ContentPane> contentPanes = new Dictionary<string, ContentPane>();
|
||||||
private string url;
|
private string url;
|
||||||
private string target;
|
private string target;
|
||||||
|
private string align;
|
||||||
|
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
@ -108,5 +109,11 @@ namespace WebsitePanel.WebPortal
|
||||||
get { return this.target; }
|
get { return this.target; }
|
||||||
set { this.target = value; }
|
set { this.target = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string Align
|
||||||
|
{
|
||||||
|
get { return this.align; }
|
||||||
|
set { this.align = value; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,6 +199,7 @@ namespace WebsitePanel.WebPortal
|
||||||
|
|
||||||
NameValueCollection attrs = new NameValueCollection();
|
NameValueCollection attrs = new NameValueCollection();
|
||||||
attrs["target"] = page.Target;
|
attrs["target"] = page.Target;
|
||||||
|
attrs["align"] = page.Align;
|
||||||
|
|
||||||
SiteMapNode node = new SiteMapNode(this, page.Name,
|
SiteMapNode node = new SiteMapNode(this, page.Name,
|
||||||
url,
|
url,
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
<asp:SiteMapDataSource ID="siteMapSource" runat="server" ShowStartingNode="False" />
|
<asp:SiteMapDataSource ID="siteMapSource" runat="server" ShowStartingNode="False" />
|
||||||
|
|
||||||
<asp:Menu ID="topMenu" runat="server" DataSourceID="siteMapSource"
|
<asp:Menu ID="topMenu" runat="server" DataSourceID="siteMapSource"
|
||||||
CssSelectorClass="TopMenu" Orientation="Horizontal"
|
CssSelectorClass="TopMenu" Orientation="Horizontal"
|
||||||
EnableViewState="False" onmenuitemdatabound="topMenu_MenuItemDataBound">
|
EnableViewState="False" onmenuitemdatabound="topMenu_MenuItemDataBound">
|
||||||
</asp:Menu>
|
</asp:Menu>
|
|
@ -41,6 +41,12 @@ namespace WebsitePanel.Portal.SkinControls
|
||||||
{
|
{
|
||||||
public partial class TopMenu : System.Web.UI.UserControl
|
public partial class TopMenu : System.Web.UI.UserControl
|
||||||
{
|
{
|
||||||
|
public string Align
|
||||||
|
{
|
||||||
|
get { return ViewState["Align"].ToString(); }
|
||||||
|
set { ViewState["Align"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -48,7 +54,15 @@ namespace WebsitePanel.Portal.SkinControls
|
||||||
|
|
||||||
protected void topMenu_MenuItemDataBound(object sender, MenuEventArgs e)
|
protected void topMenu_MenuItemDataBound(object sender, MenuEventArgs e)
|
||||||
{
|
{
|
||||||
string target = ((SiteMapNode)e.Item.DataItem)["target"];
|
var node = ((SiteMapNode)e.Item.DataItem);
|
||||||
|
|
||||||
|
if (node["align"] == Align)
|
||||||
|
{
|
||||||
|
topMenu.Items.Remove(e.Item);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
string target = node["target"];
|
||||||
|
|
||||||
if(!String.IsNullOrEmpty(target))
|
if(!String.IsNullOrEmpty(target))
|
||||||
e.Item.Target = target;
|
e.Item.Target = target;
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// 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
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue