DTcms.Web/plugins/advert/admin/bar_edit.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DTcms.Common;
namespace DTcms.Web.Plugin.Advert.admin
{
public partial class bar_edit : DTcms.Web.UI.ManagePage
{
private string action = "Add"; //操作类型
protected int aid;
protected int id;
protected void Page_Load(object sender, EventArgs e)
{
string _action = DTRequest.GetQueryString("action");
if (!string.IsNullOrEmpty(_action) && _action == "Edit")
{
this.action = "Edit";//修改类型
this.id = DTRequest.GetQueryInt("id");
if (this.id < 1)
{
JscriptMsg("传输参数不正确!", "back", "Error");
return;
}
if (!new BLL.advert_banner().Exists(this.id))
{
JscriptMsg("信息不存在或已被删除!", "back", "Error");
return;
}
}
else
{
this.aid = DTRequest.GetQueryInt("aid");
if (this.aid < 1)
{
JscriptMsg("传输参数不正确!", "back", "Error");
return;
}
if (!new BLL.advert().Exists(this.aid))
{
JscriptMsg("广告位不存在或已删除!", "back", "Error");
return;
}
LitTitle.Text = new BLL.advert().GetTitle(aid);
}
if (!Page.IsPostBack)
{
if (action == "Edit") //修改
{
ShowInfo(this.id);
}
}
}
#region 赋值操作=================================
后面还有 95 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
