stat/Admin_WebSite.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using System.Data;
namespace web.Admin_weking
{
public partial class Admin_WebSite : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Stat.BLL.FPower.chkLogin();
Stat.BLL.FPower.chkUser();
if (Stat.BLL.FPublic.Rq("ac") == "Add")
{
this.pnWebAdd.Visible = true;
this.pnWebList.Visible = false;
this.pnAddUser.Visible = false;
//添加
}
else if (Stat.BLL.FPublic.Rq("ac") == "Edit")
{
//修改
}
else
{
this.pnWebAdd.Visible = false;
this.pnAddUser.Visible = false;
this.pnWebList.Visible = true;
GetWebList();//列表
}
}
/// <summary>
/// 站点列表
/// </summary>
private void GetWebList()
{
List<Stat.Model.MWebSites> dt = Stat.BLL.BWebSites.GetWebsitesInPower(Session["UserPower"].ToString());
this.gvWebList.DataSource = dt;
this.gvWebList.DataKeyNames = new string[] { "WebId" };
this.gvWebList.DataBind();
}
/// <summary>
/// 添加站点
/// </summary>
protected void btnSaveWebSite_Click(object sender, EventArgs e)
{
Stat.Model.MWebSites w = new Stat.Model.MWebSites();
w.WebName = Stat.BLL.FPublic.SafeRequest(this.txtWebName.Text.ToString());
w.WebUrl = this.txtWebUrl.Text.ToString();
w.UserId = Convert.ToInt32(Session["Userid"].ToString());
w.ViewStype = Convert.ToInt32(this.rBtnShowStype.SelectedValue);
w.InitPV = Convert.ToInt32(this.txtInitPV.Text);
w.InitIP = Convert.ToInt32(this.txtInitIP.Text);
if (Stat.BLL.BWebSites.Add(w))
{
Response.Write("<script>alert('添加成功!');location.href='?';</script>");
DataTable dtUserInfo = Stat.BLL.BUsers.GetUserInfo(int.Parse(Session["Userid"].ToString()));
if (Stat.BLL.FPower.steupMaster(dtUserInfo))
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
