SuLei.Web/admin/settings/sys_config.aspx.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SuLei.Common;
using SuLei.UI;
namespace SuLei.Web.admin.settings
{
public partial class sys_config : ManagePage
{
string defaultpassword = "0|0|0|0"; //默认显示密码
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ChkAdminLevel("sys_config", SLEnums.ActionEnum.View.ToString()); //检查权限
ShowInfo();
}
}
#region 赋值操作=================================
private void ShowInfo()
{
BLL.sysconfig bll = new BLL.sysconfig();
Model.sysconfig model = bll.loadConfig();
webname.Text = model.webname;
weburl.Text = model.weburl;
webcompany.Text = model.webcompany;
webaddress.Text = model.webaddress;
webtel.Text = model.webtel;
webfax.Text = model.webfax;
webmail.Text = model.webmail;
webcrod.Text = model.webcrod;
webpath.Text = model.webpath;
webmanagepath.Text = model.webmanagepath;
staticstatus.SelectedValue = model.staticstatus.ToString();
staticextension.Text = model.staticextension;
if (model.memberstatus == 1)
{
memberstatus.Checked = true;
}
else
{
memberstatus.Checked = false;
}
if (model.commentstatus == 1)
{
commentstatus.Checked = true;
}
else
{
commentstatus.Checked = false;
}
if (model.logstatus == 1)
后面还有 217 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
