Hidistro.UI.Web/Admin/Settings/SetRolePermissions.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Settings
{
using Hidistro.ControlPanel.Store;
using Hidistro.Entities.Store;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class SetRolePermissions : AdminPage
{
protected Literal ltHtml;
protected Literal ltRoleName;
private IList<RolePermissionInfo> oldPermissions;
private int roleId;
protected HtmlForm thisForm;
protected SetRolePermissions() : base("m09", "szp10")
{
}
private void BindDate()
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat("<input type=\"hidden\" id=\"txtRoleId\" value=\"{0}\" />", this.roleId);
Dictionary<string, NavModule> moduleList = Navigation.GetNavigation(true).ModuleList;
bool isCheck = true;
foreach (KeyValuePair<string, NavModule> pair in moduleList)
{
bool isAllCheck = true;
string nodeKey = string.Empty;
string str2 = this.GetFirstNoHeaderNode(pair.Value.ItemList, pair.Value.ID, out isAllCheck, out nodeKey);
bool flag3 = true;
string str3 = this.GetPageLink(pair.Value.ItemList, pair.Value.ID, nodeKey, out flag3);
if (!flag3)
{
isCheck = false;
}
if (!isAllCheck)
{
isCheck = false;
}
builder.Append(" <div class=\"checkboxlist\">");
builder.Append(" <div class=\"boxrow clearfix\">");
builder.Append(" <div class=\"classa fl\">");
builder.Append(" <label class=\"setalign\">");
builder.AppendFormat(" <input type=\"checkbox\" {1}><strong>{0}</strong>", pair.Value.Title, this.GetInputCheck(isCheck));
builder.Append(" </label>");
builder.Append(" </div>");
builder.Append(str2);
builder.Append(" </div>");
builder.Append(str3);
builder.Append(" </div>");
}
this.ltHtml.Text = builder.ToString();
}
后面还有 156 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
