private void ResetQuestion() { string meid = Utils.GetRequest("hid", "all", 2, "", ""); string info = Utils.GetRequest("info", "all", 0, "", ""); meid = new BCW.BLL.User().GetMobile(int.Parse(meid)); //转换手机号码 int id = new BCW.BLL.User().GetID(meid); //得到ID号 if (info == "") { if (new BCW.BLL.tb_Question().Exists(meid)) { string str = meid.Substring(5, 6); new BCW.BLL.tb_Question().UpdateAnswer(str, meid); builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); Utils.Success("温馨提示", "重置密码保护问题答案成功! ID是" + id + "..手机号是:" + meid + "..新问题密码是:" + str, Utils.getUrl("uinfo.aspx?act=view&uid=" + id + ""), "3"); builder.Append(Out.Tab("</div>", "<br />")); } else { Utils.Success("温馨提示", "不存在该账号密码保护问题数据", Utils.getUrl("uinfo.aspx"), "3"); } } else { if (new BCW.BLL.tb_Question().Exists(meid)) { new BCW.BLL.tb_Question().Delete(meid); builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); Utils.Success("温馨提示", "成功清除该ID:" + id + "..手机号是:" + meid + "的密保数据,用户可以自行重新设置密码保护问题!", Utils.getUrl("uinfo.aspx?act=view&uid=" + id + ""), "3"); builder.Append(Out.Tab("</div>", "<br />")); } else { Utils.Success("温馨提示", "不存在该账号密码保护问题数据", Utils.getUrl("uinfo.aspx"), "3"); } } }
private void ReloadPage() //初始界面 { Master.Title = "我的手机号码"; int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../myedit.aspx") + "\">上级</a>-"); builder.Append("设置手机号码:"); builder.Append(Out.Tab("</div>", "<br/>")); string Mymobile = new BCW.BLL.User().GetMobile(meid); string showphone = Mymobile.Substring(0, 3) + "******" + Mymobile.Substring(9, 2); builder.Append(Out.Tab("<div class=\"text\">", "")); builder.Append("你的手机号码是:" + showphone); // builder.Append(Out.Tab("</div>", "<br/>")); builder.Append("<br/><a href=\"" + Utils.getUrl("MyPhone.aspx?act=reset") + "\">【修改手机号码】</a><br />"); // builder.Append(Out.Tab("<div class=\"text\">","")); // builder.Append("<br/><a href=\"" + Utils.getUrl("MyPhone.aspx?act=reset") + "\">【客服帮助】</a><br />"); builder.Append("<b>注:防止手机号泄漏隐藏部分数字.</b>" + "<br/>"); builder.Append(Out.Tab("</div>", "")); int SizeNum = 3; string strWhere = ""; IList <BCW.Model.tb_Help> listHelp = new BCW.BLL.tb_Help().GetHelps(SizeNum, strWhere); if (listHelp.Count > 0) { builder.Append(Out.Div("div", "其他相关帮助.." + "<br/>")); int k = 1; foreach (BCW.Model.tb_Help n in listHelp) { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } builder.Append("<a href=\"" + Utils.getUrl("MoreQuestion.aspx?act=shuoming&id=" + n.ID + "&backurl=" + Utils.PostPage(0)) + "\">" + n.Title + "</a>"); builder.Append(Out.Tab("</div>", "")); k++; } } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div class=\"text\">", "")); builder.Append("<br/><a href=\"" + Utils.getUrl("MoreQuestion.aspx") + "\">>>更多</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx?id=7") + "\">客服帮助</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", "<br/>")); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../myedit.aspx") + "\">上级</a>-"); builder.Append(Out.Tab("</div>", "")); }