Files
ScheMe/ScheMe-SP/JQMob.Master.cs
2017-08-25 10:16:04 +02:00

37 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace ScheMe
{
public partial class JQMob : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
// verifica auth utente...
if (Page.User.Identity.IsAuthenticated || user_std.UtSn.isAuth || (memLayer.ML.confReadBool("AutoAuth") && Request.Url.LocalPath.Split('/').Last() != "Unauth"))
{
mod_footer.Visible = true;
}
else
{
mod_footer.Visible = false;
}
}
/// <summary>
/// restituisce stato active se pagina corrente...
/// </summary>
/// <param name="nomeElem"></param>
/// <returns></returns>
public string liClass(object nomeElem)
{
string answ = "";
if (Request.Url.ToString().Contains(nomeElem.ToString())) answ = "ui-btn-active";
return answ;
}
}
}