Discuz.Web/admin/global/global_edithelpclass.aspx.cs
(完整代码) 1KBusing System;
using System.Web.UI;
using Discuz.Control;
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Entity;
namespace Discuz.Web.Admin
{
public partial class edithelpclass : AdminPage
{
public int id = DNTRequest.GetInt("id", 0);
public HelpInfo helpinfo = new HelpInfo();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
helpinfo = Helps.GetMessage(id);
if ((this.username != null) && (this.username != ""))
{
if (id == 0)
{
return;
}
else
{
poster.Text = this.username;
orderby.Text = helpinfo.Orderby.ToString();
title.Text = helpinfo.Title;
}
}
}
}
protected void updateclass_Click(object sender, EventArgs e)
{
Helps.UpdateHelp(this.id, title.Text,"",0,int.Parse(orderby.Text));
Response.Redirect("global_helplist.aspx");
}
#region Web 窗体设计器生成的代码
protected override void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.updateclass.Click += new EventHandler(this.updateclass_Click);
}
#endregion
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
