using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CodeCafe.Web;
public partial class ucAdminBlogMenu : System.Web.UI.UserControl
{
/****************************************************************************************************/
///
/// Handles the Load event of the Page control.
///
/// The source of the event.
/// The instance containing the event data.
protected void Page_Load(object sender, EventArgs e)
{
HiglightMenu();
DisplayBlogCount();
}
/****************************************************************************************************/
///
/// Higlights the menu.
///
public void HiglightMenu()
{
switch (Utils.GetWebFilename(Request.Url.AbsolutePath).ToUpper())
{
case "ADMIN-BLOG.ASPX":
hlBlog.CssClass = "sel";
break;
case "ADMIN-BLOG-VETTING.ASPX":
hlVet.CssClass = "sel";
break;
case "ADMIN-BLOG-EDITING.ASPX":
hlEdit.CssClass = "sel";
break;
}
}
/****************************************************************************************************/
///
/// Displays the blog count.
///
public void DisplayBlogCount()
{
clsBlogComment comment = new clsBlogComment();
ltCount.Text = " (" + comment.CountPending().ToString() + ")";
}
}