SiteAdmin/Aspx/DBManage.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web.UI.WebControls;
using System.Data;
public partial class SiteAdmin_Aspx_DBManage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["roleid"] != null)
{
if (!IsPostBack)
{
binddr();
}
}
else
{
MessageBox.ShowAndRedirect(this.Page, "对不起!您还没有登录系统。", "../Logout.aspx");
}
}
//绑定记录
public void binddr()
{
ShenTab myn = new ShenTab();
string sqlstr = "RZLX='" + Server.HtmlEncode(Request.Cookies["dwid"].Value) + "'";
sqlstr = sqlstr + " order by ID desc ";
DataView dv = myn.GetList(sqlstr).Tables[0].DefaultView;
PagedDataSource pds = new PagedDataSource();
AspNetPager1.RecordCount = dv.Count;
pds.DataSource = dv;
pds.AllowPaging = true;
pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
pds.PageSize = AspNetPager1.PageSize;
myrepeater.DataSource = pds;
myrepeater.DataBind();
}
public string ZTShow(object article)
{
string Show = "<font color=#0000FF>已提交</font>";
if (article.ToString() == "受理中")
{
Show = "<font color=red>受理中</font>";
}
else if (article.ToString() == "已放贷")
{
Show = "<font color=green>已放贷</font>";
}
else if (article.ToString() == "已申请")
{
Show = "<font color=#0000FF>已申请</font>";
}
return Show;
}
protected void AspNetPager1_PageChanged(object sender, EventArgs e)
{
后面还有 3 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。