Backup/程序/member_sales_log.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class member_sales_log : System.Web.UI.Page
{
#region 初始化
protected string con = CommonLib.SqlHelper.SqlConnectionString;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.Cookies["buy"] == null)
{
Response.Redirect("login.aspx");
return;
}
Bind();
}
}
#endregion
#region 绑定
private void Bind()
{
string name = HttpUtility.UrlDecode(Request.Cookies["buy"]["user"]);
string sql = "select m_id from member where m_name='" + name + "'";
string con = CommonLib.SqlHelper.SqlConnectionString;
string mid = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
string where = " where m_id2=" + mid;
string count = "select count(*) from log" + where;
AspNetPager1.RecordCount = Convert.ToInt32(CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, count, null));
sql = "select * from log" + where + " order by l_id desc";
CommonLib.SqlHelper.BindRepeater(rep_list, sql, AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex - 1);
}
#endregion
#region 分页
protected void AspNetPager1_PageChanged(object sender, EventArgs e)
{
Bind();
}
#endregion
#region 获取分类
protected string getclsname(string id)
{
string con = CommonLib.SqlHelper.SqlConnectionString;
string sql = "select pro_cls_id from product where pro_id=" + id;
id = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
if (id != "0")
{
后面还有 26 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。