VideoHome.Wap/WapSite.Master.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace myfilm.Web.Wap
{
public partial class WapSite : System.Web.UI.MasterPage
{
public string c1 = "fc-orange";
public string c2 = "fc-main";
public string c3 = "fc-main";
public string c4 = "fc-main";
protected void Page_Load(object sender, EventArgs e)
{
if (ExistsUrl("index.aspx"))
{
c1 = "fc-orange";
c2 = "fc-main";
c3 = "fc-main";
c4 = "fc-main";
}
else if (ExistsUrl("CourseClass.aspx") || ExistsUrl("CourseList.aspx"))
{
c1 = "fc-main";
c2 = "fc-orange";
c3 = "fc-main";
c4 = "fc-main";
}
else if (ExistsUrl("News.aspx"))
{
c1 = "fc-main";
c2 = "fc-main";
c3 = "fc-orange";
c4 = "fc-main";
}
else if (ExistsUrl("Login.aspx") || ExistsUrl("UserChong.aspx") || ExistsUrl("UserChongList.aspx") || ExistsUrl("UserSeeRecord.aspx") || ExistsUrl("UserSetPwd.aspx"))
{
c1 = "fc-main";
c2 = "fc-main";
c3 = "fc-main";
c4 = "fc-orange";
}
}
public static bool ExistsUrl(string sUrl)
{
return HttpContext.Current.Request.Url.AbsoluteUri.Contains(sUrl);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
