SWCMS.WebFile/admin/usergroup_ajax.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web;
using System.Web.UI.WebControls;
using SWCMS.Utils;
using SWCMS.Common;
namespace SWCMS.WebFile.Admin
{
public partial class _usergroup_ajax : SWCMS.UI.AdminCenter
{
private string _operType = string.Empty;
private string _response = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!CheckFormUrl())
{
Response.End();
}
Admin_Load("master", "json");
this._operType = q("oper");
switch (this._operType)
{
case "ajaxGetList":
ajaxGetList();
break;
case "ajaxDelete":
ajaxDelete();
break;
case "checkname":
ajaxCheckName();
break;
case "ajaxUserGroupCount":
ajaxUserGroupCount();
break;
default:
DefaultResponse();
break;
}
Response.Write(this._response);
}
private void ajaxCheckName()
{
if (q("id") == "0")
{
doh.Reset();
doh.ConditionExpress = "name=@name";
doh.AddConditionParameter("@name", q("txtUsergroupName"));
if (doh.Exist("SWCMS_usergroup"))
this._response = JsonResult(0, "不可添加");
else
this._response = JsonResult(1, "可以添加");
}
else
this._response = JsonResult(1, "可以修改");
}
private void DefaultResponse()
后面还有 31 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
