protected override void ShowPage() { pagetitle = "用户控制面板"; if (userid == -1) { AddErrLine("你尚未登录"); return; } user = Discuz.Forum.Users.GetUserInfo(userid); //得到当前用户请求的页数 pageid = DNTRequest.GetInt("page", 1); //获取主题总数 creditslogcount = CreditsLogs.GetCreditsLogRecordCount(userid); //获取总页数 pagecount = creditslogcount % pagesize == 0 ? creditslogcount / pagesize : creditslogcount / pagesize + 1; if (pagecount == 0) { pagecount = 1; } //修正请求页数中可能的错误 if (pageid < 1) { pageid = 1; } if (pageid > pagecount) { pageid = pagecount; } //获取收入记录并分页显示 creditsloglist = CreditsLogs.GetCreditsLogList(pagesize, pageid, userid); pagenumbers = Utils.GetPageNumbers(pageid, pagecount, "usercpcreaditstransferlog.aspx", 8); }
protected override void ShowPage() { pagetitle = "用户控制面板"; if (!IsLogin()) { return; } if (isshowmsg) { SetUrl("usercpcreaditstransferlog.aspx"); SetMetaRefresh(5); SetShowBackLink(false); AddMsgLine("积分充值操作完成,充值成功后会发送站内通知告知"); return; } //获取主题总数 creditslogcount = CreditsLogs.GetCreditsLogRecordCount(userid); //获取收入记录并分页显示 BindItems(creditslogcount); creditsloglist = CreditsLogs.GetCreditsLogList(16, pageid, userid); }