CmsWeb/Admin/settings/SinglePage_edit.aspx.cs
(开头部分) 25KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Cms.Common;
public partial class Admin_settings_SinglePage_edit : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//登录验证
adminUser.GetLoginState();
//登录信息
HttpCookie cookie = System.Web.HttpContext.Current.Request.Cookies["admin"];
if (cookie != null)
{
Application["adminname"] = (string)cookie.Values["adminname"];
}
else if (Session["adminname"] != null)
{
Application["adminname"] = (string)Session["adminname"];
}
DropList_Bind();//绑定栏目===========================
ActionTypeBind();//绑定权限值===========================
FieldBind();//绑定扩展字段===========================
cblActionType.Items[0].Selected = true;//默认选择权限值===========================
isShowChannel.Checked = true;//默认选择参与导航===========================
int classId = Convert.ToInt32(this.Request.QueryString["classId"] ?? "0");//栏目ID===========================
string strparentId = this.Request.QueryString["parentId"] ?? "";//上级栏目ID===========================
string action = this.Request.QueryString["action"] ?? "";//编辑:edit 添加:add===========================
switch (action)
{
case "add":
parentId.SelectedValue = classId.ToString();//设置默认上级栏目===========================
break;
case "edit":
this.classid.Text = classId.ToString();
this.DataBind(classId);//绑定栏目信息===========================
parentId.SelectedValue = strparentId;//设置默认上级栏目===========================
break;
}
}
}
#region 绑定操作权限类型=========================
private void ActionTypeBind()
{
cblActionType.Items.Clear();
foreach (KeyValuePair<string, string> kvp in Utils.ActionType())
后面还有 556 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
