using System;
using System.Globalization;
using System.Resources;
using System.Threading;
public partial class UserControls_TA_uc_SystemLeft : System.Web.UI.UserControl
{
    ResourceManager rm;
    CultureInfo ci;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Session_ActiveLanguage"] == null)
        {
            Response.Redirect("../index.aspx");
        }
        else
        {
            string source_Language;
            source_Language = Convert.ToString(Session["Session_ActiveLanguage"]);
            rm = new ResourceManager(source_Language, System.Reflection.Assembly.Load("App_GlobalResources"));
            ci = Thread.CurrentThread.CurrentCulture;
        }
        //cls_Common getmenu = new cls_Common();
        //DataSet ds = new DataSet();
        //ds = getmenu.getUserMenu(5, Convert.ToInt16(Session["userGroup_Id"]));
        //this.mnu.InnerHtml = "<span class='LeftMenuHeader'>" + rm.GetString("Menu_System_Settings", ci) + "</span>";
        //for (int iloop = 0; iloop <= ds.Tables[0].Rows.Count - 1; iloop++)
        //{
        //    //this.mnu.InnerHtml += "<a class='leftMenu' href='" + ds.Tables[0].Rows[iloop]["path"] + "' title='" + ds.Tables[0].Rows[iloop]["displayName"] + " '>" + ds.Tables[0].Rows[iloop]["displayName"] + " </a>";
        //    string txt = ds.Tables[0].Rows[iloop]["displayName"].ToString();
        //    this.mnu.InnerHtml += "<a class='leftMenu' href='" + ds.Tables[0].Rows[iloop]["path"] + "' title='" + rm.GetString(txt, ci) + " '>" + rm.GetString(txt, ci) + " </a>";
        //}
        //ds.Clear();
        //ds.Dispose();
        if (Convert.ToString(Session["SystemLeftMenu"]) != "")
        {
            this.mnu.InnerHtml = Convert.ToString(Session["SystemLeftMenu"]);
        }
    }
}
