DTcms.Web/admin/article/article_edit.aspx.cs
(开头部分) 47KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data;
using DTcms.Common;
namespace DTcms.Web.admin.article
{
public partial class article_edit : Web.UI.ManagePage
{
private string action = DTEnums.ActionEnum.Add.ToString(); //操作类型
protected string channel_name = string.Empty; //频道名称
protected int channel_id;
private int id = 0;
//页面初始化事件
protected void Page_Init(object sernder, EventArgs e)
{
this.channel_id = DTRequest.GetQueryInt("channel_id");
CreateOtherField(this.channel_id); //动态生成相应的扩展字段
}
//页面加载事件
protected void Page_Load(object sender, EventArgs e)
{
string _action = DTRequest.GetQueryString("action");
if (this.channel_id == 0)
{
JscriptMsg("频道参数不正确!", "back");
return;
}
this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
//如果是编辑或复制则检查信息是否存在
if (_action == DTEnums.ActionEnum.Edit.ToString() || _action == DTEnums.ActionEnum.Copy.ToString())
{
this.action = _action;//修改或复制类型
this.id = DTRequest.GetQueryInt("id");
if (this.id == 0)
{
JscriptMsg("传输参数不正确!", "back");
return;
}
if (!new BLL.article().Exists(this.id))
{
JscriptMsg("信息不存在或已被删除!", "back");
return;
}
}
if (!Page.IsPostBack)
{
ChkAdminLevel("channel_" + this.channel_name + "_list", DTEnums.ActionEnum.View.ToString()); //检查权限
ShowSysField(this.channel_id); //显示相应的默认控件
TreeBind(this.channel_id); //绑定类别
后面还有 932 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。