SWCMS.WebFile/admin/usergroup_edit.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.IO;
using System.Web;
using System.Web.UI.WebControls;
using SWCMS.Common;
namespace SWCMS.WebFile.Admin
{
public partial class _usergroup_edit : SWCMS.UI.AdminCenter
{
protected void Page_Load(object sender, EventArgs e)
{
Admin_Load("master", "stop");
id = Str2Str(q("id"));
SWCMS.DBUtility.WebFormHandler wh = new SWCMS.DBUtility.WebFormHandler(doh, "SWCMS_usergroup", btnSave);
wh.AddBind(txtGroupName, "GroupName", true);
wh.AddBind(rblIsLogin, "SelectedValue", "islogin", false);
if (id == "0")
{
wh.Mode = SWCMS.DBUtility.OperationType.Add;
}
else
{
wh.ConditionExpress = "id=" + id;
wh.Mode = SWCMS.DBUtility.OperationType.Modify;
}
wh.BindBeforeAddOk += new EventHandler(bind_ok);
wh.BindBeforeModifyOk += new EventHandler(bind_ok);
wh.AddOk += new EventHandler(save_ok);
wh.ModifyOk += new EventHandler(save_ok);
wh.validator = chkForm;
}
protected void bind_ok(object sender, EventArgs e)
{
string[] setting = "0,0,0,0|23,1,10,10,1,0,1,1,5,1,1,5,1,1,5,".Split(',');
if (id != "0")
{
doh.Reset();
doh.ConditionExpress = "id=" + id;
setting = doh.GetField("SWCMS_usergroup", "Setting").ToString().Split(',');
if (setting.Length < 17)
setting = "0,0,0,0|23,1,10,10,1,0,1,1,5,1,1,5,1,1,5,".Split(',');
}
this.GroupSet0.Items.FindByValue(setting[0].ToString()).Selected = true;
this.GroupSet1.Items.FindByValue(setting[1].ToString()).Selected = true;
this.GroupSet2.Items.FindByValue(setting[2].ToString()).Selected = true;
this.GroupSet3.Text = setting[3].ToString();
this.GroupSet4.Items.FindByValue(setting[4].ToString()).Selected = true;
this.GroupSet5.Text = setting[5].ToString();
this.GroupSet6.Text = setting[6].ToString();
this.GroupSet7.Items.FindByValue(setting[7].ToString()).Selected = true;
this.GroupSet8.Items.FindByValue(setting[8].ToString()).Selected = true;
this.GroupSet9.Items.FindByValue(setting[9].ToString()).Selected = true;
this.GroupSet10.Items.FindByValue(setting[10].ToString()).Selected = true;
this.GroupSet11.Text = setting[11].ToString();
this.GroupSet12.Items.FindByValue(setting[12].ToString()).Selected = true;
this.GroupSet13.Items.FindByValue(setting[13].ToString()).Selected = true;
this.GroupSet14.Text = setting[14].ToString();
后面还有 47 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
