protected void Page_Load(object sender, EventArgs e) { if (!EX_Admin.Power("user_edit", "编辑会员")) { WindowNoPower(); } id = RequestTool.RequestInt("id", 0); user_questions = B_Lebi_User_Question.GetList("", "Sort desc"); where = "User_id=" + id + ""; user_answers = B_Lebi_User_Answer.GetList(where, "id asc", 20, 1); recordCount = B_Lebi_User_Answer.Counts(where); }
protected override void LoadPage(string themecode, int siteid, string languagecode, string pcode) { if (CurrentUser.id == 0) { Response.Redirect(URL("P_Login", "" + HttpUtility.UrlEncode(RequestTool.GetRequestUrlNonDomain()) + "," + GetUrlToken(RequestTool.GetRequestUrlNonDomain()) + "")); } LoadTheme(themecode, siteid, languagecode, pcode); CurrentPage = B_Lebi_Theme_Page.GetModel("Code='P_UserQuestion'"); type = Rint_Para("0"); path = "<a href=\"" + URL("P_Index", "") + "\" class=\"home\" title=\"" + Tag("首页") + "\"><span>" + Tag("首页") + "</span></a><em class=\"home\">»</em><a href=\"" + URL("P_UserCenter", "") + "\"><span>" + Tag("会员中心") + "</span></a><em>»</em><a class=\"text\"><span>" + Tag("安全问题") + "</span></a>"; user_questions = B_Lebi_User_Question.GetList("", "Sort desc"); where = "User_id=" + CurrentUser.id + ""; user_answers = B_Lebi_User_Answer.GetList(where, "id asc", 20, 1); recordCount = B_Lebi_User_Answer.Counts(where); }