private void ReplyOkPage() { Master.Title = "靓号回复"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.Types != 0 || model.State != 3) { Utils.Error("不存在的记录", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok") { string Notes = Utils.GetRequest("Notes", "post", 2, @"^[\s\S]{1,200}$", "注册内容限1-200字"); new BCW.BLL.SellNum().UpdateState4(id, Notes); //发信息通知兑换的会员 //new BCW.BLL.Guest().Add(model.UsID, model.UsName, "您的ID" + model.BuyUID + "(" + model.Price + "" + ub.Get("SiteBz") + ")已成功兑换[url=/bbs/spaceapp/sellnum.aspx?act=uidlist]进入我的靓号记录[/url]"); new BCW.BLL.Guest().Add(model.UsID, model.UsName, "" + Notes + "[url=/bbs/spaceapp/sellnum.aspx?act=uidlist]进入我的靓号记录[/url]"); Utils.Success("靓号回复", "ID:" + model.BuyUID + "(" + model.Price + "" + ub.Get("SiteBz") + ")回复注册内容成功...", Utils.getUrl("sellnum.aspx"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">靓号回复</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("靓号ID:" + model.BuyUID + ""); builder.Append(Out.Tab("</div>", "")); string strText = "输入内线内容(同时作为备注):/,,,,"; string strName = "Notes,id,act,info,backurl"; string strType = "textarea,hidden,hidden,hidden,hidden"; string strValu = "'" + id + "'replyok'ok'" + Utils.getPage(0) + ""; string strEmpt = "true,false,false,false,false"; string strIdea = "/"; string strOthe = "确定并内线,sellnum.aspx,post,0,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", " ")); builder.Append("<a href=\"" + Utils.getPage("sellnum.aspx") + "\">取消</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); } }
private void PriceOkPage() { Master.Title = "靓号报价"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.State >= 2) { Utils.Error("系统已报价", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok") { long Price = int.Parse(Utils.GetRequest("Price", "post", 2, @"^[0-9]\d*$", "报价填写错误")); new BCW.BLL.SellNum().UpdateState2(id, Price); //发信息通知查询报价的会员 new BCW.BLL.Guest().Add(model.UsID, model.UsName, "您查询的ID" + model.BuyUID + "报价为" + Price + "" + ub.Get("SiteBz") + "[url=/bbs/spaceapp/sellnum.aspx?act=uidlist]进入我的靓号记录[/url]"); Utils.Success("靓号报价", "ID:" + model.BuyUID + "报价" + Price + "" + ub.Get("SiteBz") + "成功...", Utils.getUrl("sellnum.aspx"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">靓号报价</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("报价ID:" + model.BuyUID + ""); builder.Append(Out.Tab("</div>", "")); string strText = "输入价格:/,,,,"; string strName = "Price,id,act,info,backurl"; string strType = "num,hidden,hidden,hidden,hidden"; string strValu = "'" + id + "'priceok'ok'" + Utils.getPage(0) + ""; string strEmpt = "true,false,false,false,false"; string strIdea = "/"; string strOthe = "确定报价,sellnum.aspx,post,0,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", " ")); builder.Append("<a href=\"" + Utils.getPage("sellnum.aspx") + "\">取消</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); } }
private void QqVipNoPage() { Master.Title = "撤销QQ服务"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.Types != 3) { Utils.Error("不存在的记录", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); int Types = model.Tags; if (info == "ok") { new BCW.BLL.SellNum().UpdateState9(id); //退币 new BCW.BLL.User().UpdateiGold(model.UsID, model.UsName, model.Price, "撤销" + OutType(Types) + "" + model.BuyUID + "个月"); //发信息通知兑换的会员 new BCW.BLL.Guest().Add(model.UsID, model.UsName, "您开通QQ:" + model.Mobile + "|" + OutType(Types) + "(" + model.BuyUID + "个月),花费" + model.Price + "" + ub.Get("SiteBz") + "不成功已被撤销,退回本金,如需再继续请进入[url=/bbs/spaceapp/changeqqvip.aspx]开通处[/url],有疑问请内线客服10086查询"); Utils.Success("撤销QQ服务", "撤销QQ服务成功...", Utils.getUrl("changeqqvip.aspx"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">撤销QQ服务</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("QQ号:" + model.Mobile + ""); builder.Append("<br />类型:" + OutType(Types) + "(" + model.BuyUID + "个月)"); builder.Append(Out.Tab("</div>", "<br />")); string strName = "id,act,info,backurl"; string strValu = "" + id + "'qqvipno'ok'" + Utils.getPage(0) + ""; string strOthe = "撤销并内线,changeqqvip.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", " ")); builder.Append("<a href=\"" + Utils.getPage("changeqqvip.aspx") + "\">取消</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); } }
private void BbsPage() { int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "评价"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[1-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.UsID != meid || model.Types != 3) { Utils.Error("不存在的记录", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok") { string Notes = Utils.GetRequest("Notes", "all", 2, @"^[\s\S]{1,50}$", "评价内容限1-50字"); new BCW.BLL.SellNum().UpdateNotes(id, Notes); Utils.Success("评价", "评价成功...", Utils.getPage("changeqqvip.aspx?act=mylist"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">评价</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("评价内容:"); builder.Append(Out.Tab("</div>", "")); string strText = ",,,,,"; string strName = "Notes,id,act,info,backurl"; string strType = "text,hidden,hidden,hidden,hidden"; string strValu = "'" + id + "'bbs'ok'" + Utils.getPage(0) + ""; string strEmpt = "false,false,false,false,false"; string strIdea = "/"; string strOthe = "确定评价,changeqqvip.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", " ")); builder.Append("<a href=\"" + Utils.getPage("changeqqvip.aspx?act=mylist") + "\">取消</a>"); builder.Append(Out.Tab("</div>", "")); } }
private void QbOkPage() { Master.Title = "确认Q币充值"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.Types != 2) { Utils.Error("不存在的记录", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok") { new BCW.BLL.SellNum().UpdateState2(id, model.Price); //发信息通知兑换的会员 new BCW.BLL.Guest().Add(model.UsID, model.UsName, "您兑换" + model.BuyUID + "个Q币(花费" + model.Price + "" + ub.Get("SiteBz") + ")已成功充值[url=/bbs/spaceapp/changeqb.aspx?act=mylist]查看并给个好评吧[/url]"); Utils.Success("确认Q币充值", "确认Q币充值成功...", Utils.getUrl("changeqb.aspx"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">确认充值</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("QQ号:" + model.Mobile + ""); builder.Append("<br />类型:" + model.BuyUID + "个Q币"); builder.Append(Out.Tab("</div>", "<br />")); string strName = "id,act,info,backurl"; string strValu = "" + id + "'qbok'ok'" + Utils.getPage(0) + ""; string strOthe = "已充值并内线,changeqb.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", " ")); builder.Append("<a href=\"" + Utils.getPage("sellnum.aspx") + "\">取消</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); } }
private void QqVipPage() { int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "开通腾讯QQ服务"; int ptype = int.Parse(Utils.GetRequest("ptype", "all", 2, @"^[1-9]\d*$", "开通类型错误")); if (ptype < 1 || ptype > 19) { Utils.Error("开通类型错误", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info != "") { int month = int.Parse(Utils.GetRequest("month", "post", 2, @"^[1-9]\d*$", "开通月份填写错误")); long qq = Int64.Parse(Utils.GetRequest("qq", "post", 2, @"^[0-9]{5,11}$", "QQ填写错误")); long qq2 = Int64.Parse(Utils.GetRequest("qq2", "post", 2, @"^[0-9]{5,11}$", "QQ填写错误")); if (month < 1 || month > 12) { Utils.Error("开通月份限1-12月", ""); } if (!qq.Equals(qq2)) { Utils.Error("QQ确认错误", ""); } long Price = Convert.ToInt64(month * OutPrice(ptype)); if (info == "ok2") { int myVipLeven = BCW.User.Users.VipLeven(meid); if (myVipLeven == 0) { Utils.Error("必须是VIP会员才能继续...<br /><a href=\"" + Utils.getUrl("/bbs/finance.aspx?act=addvip&backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员>></a>", ""); } if (new BCW.BLL.User().GetGold(meid) < Price) { Utils.Error("你的" + ub.Get("SiteBz") + "不足", ""); } //每个QQ每个服务在6个月内最多只能开通12个月 int GetMonth = new BCW.BLL.SellNum().GetSumBuyUIDQQ(ptype, qq.ToString(), meid); if (GetMonth + month > 12) { Utils.Error("每个QQ每项服务最多开通12个月,QQ" + qq + "当前还可以开通“" + OutType(ptype) + "”" + (12 - GetMonth) + "个月", ""); } //每个ID每30天内只能为2个QQ号进行开通服务 int GetQQCount = new BCW.BLL.SellNum().GetSumQQCount(meid); if (GetQQCount >= 2) { Utils.Error("每个ID在30天内只能为2个QQ号进行开通服务", ""); } //支付安全提示 string[] p_pageArr = { "act", "month", "qq", "qq2", "ptype", "info", "backurl" }; BCW.User.PaySafe.PaySafePage(meid, Utils.getPageUrl(), p_pageArr, "post", false); //是否刷屏 string appName = "LIGHT_CHANGEQQVIP"; int Expir = 60; BCW.User.Users.IsFresh(appName, Expir); string mename = new BCW.BLL.User().GetUsName(meid); BCW.Model.SellNum model = new BCW.Model.SellNum(); model.Types = 3; model.UsID = meid; model.UsName = mename; model.BuyUID = month; model.Price = Price; model.Mobile = qq.ToString() + ""; model.State = 1;//1提交中/2已充值/3已评价 model.AddTime = DateTime.Now; int id = new BCW.BLL.SellNum().Add2(model); //更新QQ服务类型 new BCW.BLL.SellNum().UpdateTags(id, ptype); //扣币 new BCW.BLL.User().UpdateiGold(meid, mename, -Price, "开通" + OutType(ptype) + "" + month + "个月"); //动态记录 new BCW.BLL.Action().Add(meid, mename, "在[URL=/bbs/spaceapp/changeqqvip.aspx]QQ特权处[/URL]开通" + OutType(ptype) + "" + month + "个月"); new BCW.BLL.Guest().Add(10086, "QQ管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]开通" + OutType(ptype) + "" + month + "个月,请进入后台处理"); //new BCW.BLL.Guest().Add(19611, "QQ管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]开通" + OutType(ptype) + "" + month + "个月,请进入后台处理"); //if (!Utils.GetTopDomain().Contains("tuhao") && !Utils.GetTopDomain().Contains("th")) //{ // new BCW.BLL.Guest().Add(1010, "QQ管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]开通" + OutType(ptype) + "" + month + "个月,请进入后台处理"); //} Utils.Success("开通" + OutType(ptype) + "", "开通" + OutType(ptype) + "" + month + "个月已提交成功,很乐意为您服务,请等待开通完成回复...", Utils.getUrl("changeqqvip.aspx?act=mylist"), "2"); } else { builder.Append(Out.Tab("<div>", "")); builder.Append("您选择<img src=\"qq/" + ptype + ".jpg\" alt=\"load\"/>" + OutType(ptype) + "(开通" + month + "个月),需花费" + Price + "" + ub.Get("SiteBz") + ""); builder.Append("<br />您的QQ号:" + qq + ""); builder.Append(Out.Tab("</div>", "<br />")); string strName = "month,qq,qq2,ptype,act,info,backurl"; string strValu = "" + month + "'" + qq + "'" + qq2 + "'" + ptype + "'qqvip'ok2'" + Utils.getPage(0) + ""; string strOthe = "确定兑换,changeqqvip.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx") + "\"><<重新选择类型</a>"); builder.Append(Out.Tab("</div>", "")); } } else { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("您选择<img src=\"qq/" + ptype + ".jpg\" alt=\"load\"/>" + OutType(ptype) + "/" + OutPrice(ptype) + "" + ub.Get("SiteBz") + "/月"); builder.Append(Out.Tab("</div>", "")); string strText = "开通QQ号:/,确认QQ号:/,开通时长:/,,,,"; string strName = "qq,qq2,month,ptype,act,info,backurl"; string strType = "num,num,num,hidden,hidden,hidden,hidden"; string strValu = "''1'" + ptype + "'qqvip'ok'" + Utils.getPage(0) + ""; string strEmpt = "true,true,true,false,false,false,false"; string strIdea = "''个月''''|/"; string strOthe = "确认开通,changeqqvip.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx") + "\"><<重新选择类型</a>"); builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); }
private void ListPage() { int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "全部QQ服务开通记录"; builder.Append(Out.Tab("<div class=\"title\">", "")); int ptype = int.Parse(Utils.GetRequest("ptype", "get", 1, @"^[0-3]$", "0")); if (ptype == 0) { builder.Append("全部|"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx?act=list&ptype=0") + "\">全部</a>|"); } if (ptype == 1) { builder.Append("兑换中|"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx?act=list&ptype=1") + "\">兑换中</a>|"); } if (ptype == 2) { builder.Append("已完成"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx?act=list&ptype=2") + "\">已完成</a>"); } builder.Append(Out.Tab("<div>", "<br />")); int pageIndex; int recordCount; string strWhere = string.Empty; int pageSize = Convert.ToInt32(ub.Get("SiteListNo")); string[] pageValUrl = { "act", "ptype", "backurl" }; pageIndex = Utils.ParseInt(Request["page"]); if (pageIndex == 0) { pageIndex = 1; } strWhere = "Types=3 and State<>9"; if (ptype > 0) { if (ptype > 1) { strWhere += " and State>=2"; } else { strWhere += " and State=1"; } } // 开始读取专题 IList <BCW.Model.SellNum> listSellNum = new BCW.BLL.SellNum().GetSellNums(pageIndex, pageSize, strWhere, out recordCount); if (listSellNum.Count > 0) { int k = 1; foreach (BCW.Model.SellNum n in listSellNum) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", Out.Hr())); } } int Types = n.Tags; builder.Append("<a href=\"" + Utils.getUrl("/bbs/uinfo.aspx?uid=" + n.UsID + "&backurl=" + Utils.PostPage(1) + "") + "\">" + n.UsName + "</a>"); if (n.State == 1) { builder.Append("开通" + OutType(Types) + "(" + n.BuyUID + "个月),花费" + n.Price + "" + ub.Get("SiteBz") + "|操作时间" + DT.FormatDate(n.AddTime, 5) + ""); } else { builder.Append("<b>已成功</b>开通" + OutType(Types) + "(" + n.BuyUID + "个月),花费" + n.Price + "" + ub.Get("SiteBz") + "|操作时间" + DT.FormatDate(n.AddTime, 5) + ""); if (n.Notes != null) { builder.Append("<br />TA的评价:" + n.Notes + ""); } else { if (n.UsID == meid) { builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx?act=bbs&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[评价]</a>"); } } } k++; builder.Append(Out.Tab("</div>", "")); } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div>", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx?act=mylist") + "\">我的开通记录>></a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getUrl("changeqqvip.aspx?act=qb") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); }
private void ReloadPage() { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("兑换Q币管理"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div class=\"text\">", "")); int ptype = int.Parse(Utils.GetRequest("ptype", "get", 1, @"^[0-3]$", "0")); if (ptype == 0) { builder.Append("全部|"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=list&ptype=0") + "\">全部</a>|"); } if (ptype == 1) { builder.Append("兑换中|"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=list&ptype=1") + "\">兑换中</a>|"); } if (ptype == 2) { builder.Append("已完成|"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=list&ptype=2") + "\">已完成</a>|"); } if (ptype == 3) { builder.Append("已撤销"); } else { builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=list&ptype=3") + "\">已撤销</a>"); } builder.Append(Out.Tab("<div>", "<br />")); int pageIndex; int recordCount; string strWhere = string.Empty; int pageSize = Convert.ToInt32(ub.Get("SiteListNo")); string[] pageValUrl = { "act", "ptype", "backurl" }; pageIndex = Utils.ParseInt(Request["page"]); if (pageIndex == 0) { pageIndex = 1; } strWhere = "Types=2"; if (ptype > 0) { if (ptype == 3) { strWhere += " and State=9";//已撤销 } else { if (ptype > 1) { strWhere += " and State>=2 and State<>9"; } else { strWhere += " and State=1"; } } } // 开始读取专题 IList <BCW.Model.SellNum> listSellNum = new BCW.BLL.SellNum().GetSellNums(pageIndex, pageSize, strWhere, out recordCount); if (listSellNum.Count > 0) { int k = 1; foreach (BCW.Model.SellNum n in listSellNum) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", Out.Hr())); } } builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx?uid=" + n.UsID + "&backurl=" + Utils.PostPage(1) + "") + "\">" + n.UsName + "</a>"); if (n.State == 1) { builder.Append("兑换" + n.BuyUID + "个Q币,Q号(" + n.Mobile + "),花费" + n.Price + "" + ub.Get("SiteBz") + "|兑换时间" + DT.FormatDate(n.AddTime, 5) + ""); builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=qbok&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[回复]</a>"); builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=qbno&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[撤销]</a>"); } else if (n.State == 9) { builder.Append("<b>已撤销</b>兑换" + n.BuyUID + "个Q币,Q号(" + n.Mobile + "),花费" + n.Price + "" + ub.Get("SiteBz") + "|兑换时间" + DT.FormatDate(n.AddTime, 5) + ""); } else { builder.Append("<b>已成功</b>兑换" + n.BuyUID + "个Q币,Q号(" + n.Mobile + "),花费" + n.Price + "" + ub.Get("SiteBz") + "|兑换时间" + DT.FormatDate(n.AddTime, 5) + ""); if (n.Notes != null) { builder.Append("<br />TA的评价:" + n.Notes + ""); } } k++; builder.Append(Out.Tab("</div>", "")); } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); }
private void SimPage() { long bl = 28000; if (Utils.GetTopDomain().Contains("tuhao") || Utils.GetTopDomain().Contains("th")) { bl = 95000; } if (Utils.GetDomain().Contains("boyi929")) { bl = 105; } int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "" + ub.Get("SiteBz") + "兑换话费"; string ac = Utils.GetRequest("ac", "all", 1, "", ""); string info = Utils.GetRequest("info", "all", 1, "", ""); if (ac != "") { int SimPrice = 0; if (info == "ok") { int myVipLeven = BCW.User.Users.VipLeven(meid); if (myVipLeven == 0) { Utils.Error("必须是VIP会员才能继续...<br /><a href=\"" + Utils.getUrl("/bbs/finance.aspx?act=addvip&backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员>></a>", ""); } SimPrice = int.Parse(Utils.GetRequest("SimPrice", "post", 2, @"^30$|^50$|^100$", "兑换提交错误")); long Price = Convert.ToInt64(SimPrice / 10 * bl); if (new BCW.BLL.User().GetGold(meid) < Price) { Utils.Error("你的" + ub.Get("SiteBz") + "不足", ""); } //每天最多200元 int iPrice = new BCW.BLL.SellNum().GetSumBuyUID(1, meid); if (iPrice + SimPrice > 200) { Utils.Error("每ID每天最多可以兑换200元充值卡,你今天已兑换" + iPrice + "元", ""); } //是否刷屏 string appName = "LIGHT_CHANGESIM"; int Expir = 60; BCW.User.Users.IsFresh(appName, Expir); string mename = new BCW.BLL.User().GetUsName(meid); BCW.Model.SellNum model = new BCW.Model.SellNum(); model.Types = 1; model.UsID = meid; model.UsName = mename; model.BuyUID = SimPrice; model.Price = Price; model.Mobile = new BCW.BLL.User().GetMobile(meid); model.State = 1;//1提交中/2已充值/3已评价 model.AddTime = DateTime.Now; new BCW.BLL.SellNum().Add2(model); //扣币 new BCW.BLL.User().UpdateiGold(meid, mename, -Price, "兑换" + SimPrice + "元充值卡"); //动态记录 new BCW.BLL.Action().Add(meid, mename, "在[URL=/bbs/spaceapp/changesim.aspx?act=sim]兑换话费处[/URL]兑换" + SimPrice + "元充值卡"); new BCW.BLL.Guest().Add(10086, "话费管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换" + SimPrice + "元话费卡,请进入后台处理"); //new BCW.BLL.Guest().Add(19611, "话费管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换" + SimPrice + "元话费卡,请进入后台处理"); //if (!Utils.GetTopDomain().Contains("tuhao") && !Utils.GetTopDomain().Contains("th")) //{ // new BCW.BLL.Guest().Add(1010, "话费管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换" + SimPrice + "元话费卡,请进入后台处理"); //} Utils.Success("兑换话费", "兑换话费已提交成功,很乐意为您服务,请等待充值完成回复...", Utils.getUrl("changesim.aspx?act=mylist"), "2"); } else { //支付安全提示 string[] p_pageArr = { "act", "ac", "backurl" }; BCW.User.PaySafe.PaySafePage(meid, Utils.getPageUrl(), p_pageArr, "post", false); if (Utils.ToSChinese(ac) == "30卡") { SimPrice = 30; } else if (Utils.ToSChinese(ac) == "50卡") { SimPrice = 50; } else if (Utils.ToSChinese(ac) == "100卡") { SimPrice = 100; } string mobile = new BCW.BLL.User().GetMobile(meid); builder.Append(Out.Tab("<div>", "")); if (SimPrice == 30) { builder.Append("您选择的是30元充值卡,需花费" + (SimPrice / 10 * bl) + "" + ub.Get("SiteBz") + ""); } else if (SimPrice == 50) { builder.Append("您选择的是50元充值卡,需花费" + (SimPrice / 10 * bl) + "" + ub.Get("SiteBz") + ""); } else if (SimPrice == 100) { builder.Append("您选择的是100元充值卡,需花费" + (SimPrice / 10 * bl) + "" + ub.Get("SiteBz") + ""); } builder.Append("<br />您的手机号:" + mobile + ""); builder.Append(Out.Tab("</div>", "<br />")); string strName = "SimPrice,act,info,backurl"; string strValu = "" + SimPrice + "'sim'ok'" + Utils.getPage(0) + ""; string strOthe = "确定兑换,changesim.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("changesim.aspx?act=sim") + "\"><<重新选择</a>"); builder.Append(Out.Tab("</div>", "")); } } else { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("" + ub.Get("SiteBz") + "兑换话费"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append("->请选择面值:"); builder.Append(Out.Tab("</div>", "<br />")); string strText = ",,,"; string strName = "act,backurl"; string strType = "hidden,hidden,hidden"; string strValu = "sim'" + Utils.getPage(0) + ""; string strEmpt = "false,false"; string strIdea = ""; string strOthe = "30卡|50卡|100卡,changesim.aspx,post,3,other|other|other"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("每10话费按" + bl + "" + ub.Get("SiteBz") + "计算<br />"); builder.Append("可充值移动/电信/联通手机卡<br />"); builder.Append("话费将充值到您绑定的手机号<br />"); builder.Append("每个ID每天最多可以兑换200元<br />"); builder.Append("兑换话费需5分钟至24小时内到账"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"text\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("changesim.aspx?act=mylist") + "\">我的兑换记录>></a><br />"); builder.Append("<a href=\"" + Utils.getUrl("changesim.aspx?act=list") + "\">全部兑换记录>></a>"); builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); }
private void QbPage() { long bl = 2800; if (Utils.GetTopDomain().Contains("tuhao") || Utils.GetTopDomain().Contains("th")) { bl = 9500; } int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "" + ub.Get("SiteBz") + "兑换腾讯Q币"; string info = Utils.GetRequest("info", "all", 1, "", ""); if (info != "") { int qb = int.Parse(Utils.GetRequest("qb", "post", 2, @"^[1-9]\d*$", "Q币数量填写错误")); long qq = Int64.Parse(Utils.GetRequest("qq", "post", 2, @"^[0-9]{5,11}$", "QQ填写错误")); long qq2 = Int64.Parse(Utils.GetRequest("qq2", "post", 2, @"^[0-9]{5,11}$", "QQ填写错误")); if (qb < 5 || qb > 100) { Utils.Error("Q币数量限5-100", ""); } if (!qq.Equals(qq2)) { Utils.Error("QQ确认错误", ""); } if (info == "ok2") { int myVipLeven = BCW.User.Users.VipLeven(meid); if (myVipLeven == 0) { Utils.Error("必须是VIP会员才能继续...<br /><a href=\"" + Utils.getUrl("/bbs/finance.aspx?act=addvip&backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员>></a>", ""); } long Price = Convert.ToInt64(qb * bl); if (new BCW.BLL.User().GetGold(meid) < Price) { Utils.Error("你的" + ub.Get("SiteBz") + "不足", ""); } //每天最多100Q币 int iPrice = new BCW.BLL.SellNum().GetSumBuyUID(2, meid); if (iPrice + qb > 100) { Utils.Error("每ID每天最多可以兑换100Q币,你今天已兑换" + iPrice + "Q币", ""); } //支付安全提示 string[] p_pageArr = { "act", "qb", "qq", "qq2", "info", "backurl" }; BCW.User.PaySafe.PaySafePage(meid, Utils.getPageUrl(), p_pageArr, "post", false); //是否刷屏 string appName = "LIGHT_CHANGEQB"; int Expir = 60; BCW.User.Users.IsFresh(appName, Expir); string mename = new BCW.BLL.User().GetUsName(meid); BCW.Model.SellNum model = new BCW.Model.SellNum(); model.Types = 2; model.UsID = meid; model.UsName = mename; model.BuyUID = qb; model.Price = Price; model.Mobile = qq.ToString(); model.State = 1;//1提交中/2已充值/3已评价 model.AddTime = DateTime.Now; new BCW.BLL.SellNum().Add2(model); //扣币 new BCW.BLL.User().UpdateiGold(meid, mename, -Price, "兑换" + qb + "个Q币"); //动态记录 new BCW.BLL.Action().Add(meid, mename, "在[URL=/bbs/spaceapp/changeqb.aspx?act=qb]兑换Q币处[/URL]兑换" + qb + "个Q币"); new BCW.BLL.Guest().Add(10086, "Q币管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换" + qb + "个Q币,请进入后台处理"); //new BCW.BLL.Guest().Add(19611, "Q币管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换" + qb + "个Q币,请进入后台处理"); //if (!Utils.GetTopDomain().Contains("tuhao") && !Utils.GetTopDomain().Contains("th")) //{ // new BCW.BLL.Guest().Add(1010, "Q币管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换" + qb + "个Q币,请进入后台处理"); //} Utils.Success("兑换Q币", "兑换Q币已提交成功,很乐意为您服务,请等待充值完成回复...", Utils.getUrl("changeqb.aspx?act=mylist"), "2"); } else { builder.Append(Out.Tab("<div>", "")); builder.Append("您将要兑换" + qb + "个Q币,需花费" + (qb * bl) + "" + ub.Get("SiteBz") + ""); builder.Append("<br />您的QQ号:" + qq + ""); builder.Append(Out.Tab("</div>", "<br />")); string strName = "qb,qq,qq2,act,info,backurl"; string strValu = "" + qb + "'" + qq + "'" + qq2 + "'qb'ok2'" + Utils.getPage(0) + ""; string strOthe = "确定兑换,changeqb.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=qb") + "\"><<重新选择</a>"); builder.Append(Out.Tab("</div>", "")); } } else { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("" + ub.Get("SiteBz") + "兑换腾讯Q币"); builder.Append(Out.Tab("</div>", "")); string strText = "请输入兑换Q币数量:/,请输入接受的QQ号:/,请再次输入接受的QQ号:/,,,"; string strName = "qb,qq,qq2,act,info,backurl"; string strType = "num,num,num,hidden,hidden,hidden"; string strValu = "'''qb'ok'" + Utils.getPage(0) + ""; string strEmpt = "false,false,false,false,false,false"; string strIdea = "/"; string strOthe = "确定兑换Q币,changeqb.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("每1Q币按" + bl + "" + ub.Get("SiteBz") + "计算<br />"); builder.Append("每次至少需兑换5个Q币<br />"); builder.Append("每天至多可兑换100Q币<br />"); builder.Append("Q币将兑换到你填写的QQ号中<br />"); builder.Append("一经确定兑换无法撤销,请注意<br />"); builder.Append("兑换Q币需5分钟至24小时内到账"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"text\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=mylist") + "\">我的兑换记录>></a><br />"); builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=list") + "\">全部兑换记录>></a>"); builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); }
private void ReloadPage() { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("靓号管理"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); int uid = int.Parse(Utils.GetRequest("uid", "all", 1, @"^[1-9]\d*$", "0")); int ptype = int.Parse(Utils.GetRequest("ptype", "get", 1, @"^[0-4]$", "0")); if (ptype == 0) { builder.Append("全部|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=0") + "\">全部</a>|"); } if (ptype == 1) { builder.Append("查询中|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=1") + "\">查询中</a>|"); } if (ptype == 2) { builder.Append("已报价|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=2") + "\">已报价</a>|"); } if (ptype == 3) { builder.Append("已成交|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=3") + "\">已成交</a>|"); } if (ptype == 4) { builder.Append("已撤销"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=4") + "\">已撤销</a>"); } builder.Append(Out.Tab("</div>", "<br />")); int pageIndex; int recordCount; string strWhere = string.Empty; int pageSize = Convert.ToInt32(ub.Get("SiteListNo")); string[] pageValUrl = { "act", "ptype", "uid", "backurl" }; pageIndex = Utils.ParseInt(Request["page"]); if (pageIndex == 0) { pageIndex = 1; } strWhere = "Types=0"; if (ptype == 4) { strWhere += " and State=9";//已撤销 } else { if (ptype > 0 && ptype < 3) { strWhere += " and State=" + ptype + ""; } else if (ptype >= 3) { strWhere += " and State>=3 and State<>9"; } } if (uid > 0) { strWhere += " and usid=" + uid + ""; } // 开始读取专题 IList <BCW.Model.SellNum> listSellNum = new BCW.BLL.SellNum().GetSellNums(pageIndex, pageSize, strWhere, out recordCount); if (listSellNum.Count > 0) { int k = 1; foreach (BCW.Model.SellNum n in listSellNum) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx?uid=" + n.UsID + "&backurl=" + Utils.PostPage(1) + "") + "\">" + n.UsName + "</a>"); if (n.State == 1) { builder.Append("<b>查询中</b>ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + ""); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=priceok&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[报价]</a>"); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=priceno&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[撤销]</a>"); } else if (n.State == 2) { builder.Append("<b>已报价</b>ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=priceno&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[撤销]</a>"); } else if (n.State == 9) { builder.Append("<b>已撤销</b>ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); } else if (n.State == 3) { builder.Append("<b>已兑换</b>ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); builder.Append("<br />绑定手机号:" + n.Mobile + ""); builder.Append("<br />兑换时间" + DT.FormatDate(n.PayTime, 5) + ""); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=replyok&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[回复]</a>"); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=priceno2&id=" + n.ID + "&backurl=" + Utils.PostPage(1) + "") + "\">[撤销]</a>"); } else { builder.Append("<b>已成交</b>ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); builder.Append("<br />绑定手机号:" + n.Mobile + ""); builder.Append("<br />备注:" + n.Notes + ""); builder.Append("<br />成交时间" + DT.FormatDate(n.PayTime, 5) + ""); } k++; builder.Append(Out.Tab("</div>", "")); } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } string strText = "输入用户ID:/,"; string strName = "uid,ptype"; string strType = "num,hidden"; string strValu = "'" + ptype + ""; string strEmpt = "true,false"; string strIdea = "/"; string strOthe = "搜记录,sellnum.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); }
private void PriceNo2Page() { Master.Title = "撤销靓号提交"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.Types != 0 || model.State != 3) { Utils.Error("不存在的记录", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok") { string Content = Utils.GetRequest("Content", "post", 3, @"^[\s\S]{1,300}$", "内线内容限300字内,可以留空"); new BCW.BLL.SellNum().UpdateState9(id); if (Content != "") { Content = "原因:" + Content + "。"; } Content = "您兑换的ID" + model.BuyUID + "已被撤销并退回本金," + Content + "如需再继续请进入[url=/bbs/spaceapp/sellnum.aspx?act=uidbuy]查询报价[/url],有疑问请内线[url=/bbs/uinfo.aspx?uid=10086]客服10086[/url]查询"; //退币 new BCW.BLL.User().UpdateiGold(model.UsID, model.UsName, model.Price, "撤销兑换ID" + model.BuyUID + "退回"); //发信息通知查询报价的会员 new BCW.BLL.Guest().Add(model.UsID, model.UsName, Content); Utils.Success("撤销靓号提交", "撤销成功...", Utils.getUrl("sellnum.aspx"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">靓号报价</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("报价ID:" + model.BuyUID + ""); builder.Append(Out.Tab("</div>", "")); string strText = "撤销原因:/,,,,"; string strName = "Content,id,act,info,backurl"; string strType = "textarea,hidden,hidden,hidden,hidden"; string strValu = "'" + id + "'priceno2'ok'" + Utils.getPage(0) + ""; string strEmpt = "true,false,false,false,false"; string strIdea = "/"; string strOthe = "撤销并内线,sellnum.aspx,post,0,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", " ")); builder.Append("<a href=\"" + Utils.getPage("sellnum.aspx") + "\">取消</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("<a href=\"" + Utils.getUrl("default.aspx") + "\">应用中心</a><br />"); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); } }
private void UIDBuyPage() { int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "兑换靓号"; builder.Append(Out.Tab("<div class=\"title\">兑换靓号</div>", "")); string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok" || info == "ok2") { int uid = int.Parse(Utils.GetRequest("uid", "post", 2, @"^[1-9]\d*$", "请输入4-8位的ID进行查找")); if (uid < 1000 || uid > 99999999) { builder.Append(Out.Tab("<div>", "")); builder.Append("输入4-8位的ID进行查找!<br /><a href=\"" + Utils.getUrl("sellnum.aspx?act=uidbuy&backurl=" + Utils.getPage(0) + "") + "\"><<重新查找</a>"); builder.Append(Out.Tab("</div>", "")); } else { if (new BCW.BLL.SellNum().Exists(0, uid, 3)) { Utils.Error("此靓号已被别人抢先兑换了", ""); } else if (new BCW.BLL.User().Exists(uid)) { builder.Append(Out.Tab("<div>", "")); builder.Append("很遗憾!您输入的ID" + uid + "已被他人使用!<br /><a href=\"" + Utils.getUrl("sellnum.aspx?act=uidbuy&backurl=" + Utils.getPage(0) + "") + "\"><<重新查找</a>"); builder.Append(Out.Tab("</div>", "")); } else { if (info == "ok") { builder.Append(Out.Tab("<div>", "")); builder.Append("恭喜!你查找的ID:" + uid + "未被使用<br />喜欢这个靓号吗?点击下一步查询所需花费的" + ub.Get("SiteBz") + ""); builder.Append(Out.Tab("</div>", "<br />")); string strName = "uid,act,info,backurl"; string strValu = "" + uid + "'uidbuy'ok2'" + Utils.getPage(0) + ""; string strOthe = "下一步,sellnum.aspx,post,0,red"; builder.Append(Out.wapform(strName, strValu, strOthe)); builder.Append(Out.Tab("<div>", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidbuy&backurl=" + Utils.getPage(0) + "") + "\"><<换个更靓的</a>"); builder.Append(Out.Tab("</div>", "")); } else if (info == "ok2") { //int myVipLeven = BCW.User.Users.VipLeven(meid); //if (myVipLeven == 0) //{ // Utils.Error("必须是VIP会员才能继续...<br /><a href=\"" + Utils.getUrl("/bbs/finance.aspx?act=addvip&backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员>></a>", ""); //} if (new BCW.BLL.SellNum().GetCount(0, meid) >= 5) { Utils.Error("每ID每天只能查询5次报价...", ""); } //if (new BCW.BLL.SellNum().Exists(0, uid, 1)) //{ // Utils.Error("ID:" + uid + "已被提交给系统...", ""); //} long Price = 0; int State = 1; DataSet ds = new BCW.BLL.SellNum().GetList("Price", "BuyUID=" + uid + " and State=2"); if (ds != null && ds.Tables[0].Rows.Count > 0) { Price = Int64.Parse(ds.Tables[0].Rows[0]["Price"].ToString()); State = 2; } string mename = new BCW.BLL.User().GetUsName(meid); BCW.Model.SellNum model = new BCW.Model.SellNum(); model.Types = 0; model.UsID = meid; model.UsName = mename; model.BuyUID = uid; model.Price = Price; model.State = State; model.AddTime = DateTime.Now; new BCW.BLL.SellNum().Add(model); //动态记录 new BCW.BLL.Action().Add(meid, mename, "在[URL=/bbs/spaceapp/sellnum.aspx?act=uidbuy]兑换靓号处[/URL]查询靓号ID" + uid + "的价格"); //发信息通知管理员 if (State == 1) { new BCW.BLL.Guest().Add(10086, "靓号管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]查询ID" + uid + "的价格,请进入后台处理"); new BCW.BLL.Guest().Add(19611, "靓号管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]查询ID" + uid + "的价格,请进入后台处理"); //if (!Utils.GetTopDomain().Contains("tuhao") && !Utils.GetTopDomain().Contains("th")) //{ // new BCW.BLL.Guest().Add(1010, "靓号管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]查询ID" + uid + "的价格,请进入后台处理"); //} Utils.Success("靓号", "靓号提交成功,系统正在计算所需花费的的" + ub.Get("SiteBz") + ",请等待系统回复...", Utils.getUrl("sellnum.aspx?act=uidlist"), "2"); } else { Utils.Success("靓号", "靓号提交成功,系统报价" + Price + "" + ub.Get("SiteBz") + ",正在进入靓号记录...", Utils.getUrl("sellnum.aspx?act=uidlist&ptype=2"), "2"); } } } } } else { builder.Append(Out.Tab("<div>", "")); builder.Append("人靠衣装马靠鞍,ID号也一样哦~"); builder.Append(Out.Tab("</div>", "<br />")); string strText = "输入你喜欢的ID(4-8位):/,,,,"; string strName = "uid,act,info,backurl"; string strType = "num,hidden,hidden,hidden"; string strValu = "'uidbuy'ok'" + Utils.PostPage(1) + ""; string strEmpt = "true,false,false,false"; string strIdea = ""; string strOthe = "查找,sellnum.aspx,post,3,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist") + "\">我的靓号记录</a><br />"); builder.Append("温馨提示:<br />在兑换成功7天内可以用支出" + ub.Get("SiteBz") + "的ID内线<a href=\"" + Utils.getUrl("/bbs/guest.aspx?act=add&hid=10086") + "\">客服(10086)</a>把现用的ID资料(包括发帖、回帖、" + ub.Get("SiteBz") + "等)全部转移到兑换的新ID中,超过7天不再受理."); builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); }
private void UIDListPage() { int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "我的靓号记录"; builder.Append(Out.Tab("<div class=\"title\">", "")); int ptype = int.Parse(Utils.GetRequest("ptype", "get", 1, @"^[0-3]$", "0")); if (ptype == 0) { builder.Append("全部|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=0") + "\">全部</a>|"); } if (ptype == 1) { builder.Append("查询中|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=1") + "\">查询中</a>|"); } if (ptype == 2) { builder.Append("已报价|"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=2") + "\">已报价</a>|"); } if (ptype == 3) { builder.Append("已成交"); } else { builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist&ptype=3") + "\">已成交</a>"); } builder.Append(Out.Tab("<div>", "<br />")); int pageIndex; int recordCount; string strWhere = string.Empty; int pageSize = Convert.ToInt32(ub.Get("SiteListNo")); string[] pageValUrl = { "act", "ptype", "backurl" }; pageIndex = Utils.ParseInt(Request["page"]); if (pageIndex == 0) { pageIndex = 1; } strWhere = "Types=0 and UsID=" + meid + " and State<>9"; if (ptype > 0 && ptype < 3) { strWhere += " and State=" + ptype + ""; } else if (ptype >= 3) { strWhere += " and State>=3"; } // 开始读取专题 IList <BCW.Model.SellNum> listSellNum = new BCW.BLL.SellNum().GetSellNums(pageIndex, pageSize, strWhere, out recordCount); if (listSellNum.Count > 0) { int k = 1; foreach (BCW.Model.SellNum n in listSellNum) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } if (n.State == 1) { builder.Append("ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[未报价]"); } else if (n.State == 2) { builder.Append("ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidok&id=" + n.ID + "&backurl=" + Utils.getPage(0) + "") + "\">兑换</a>"); } else if (n.State == 3) { builder.Append("ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); builder.Append("兑换时间" + DT.FormatDate(n.PayTime, 5) + "[等待系统回复]"); } else { builder.Append("ID号:" + n.BuyUID + "|提交时间" + DT.FormatDate(n.AddTime, 5) + "[报价" + n.Price + "" + ub.Get("SiteBz") + "]"); builder.Append("<br />绑定手机号:" + BCW.User.Users.FormatMobile(n.Mobile) + ""); //builder.Append("<br />备注:" + n.Notes + ""); builder.Append("<br />成交时间" + DT.FormatDate(n.PayTime, 5) + ""); } k++; builder.Append(Out.Tab("</div>", "")); } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } builder.Append(Out.Tab("<div>", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidbuy") + "\">查找喜欢的ID>></a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); }
private void UIDOkPage() { int meid = new BCW.User.Users().GetUsId(); if (meid == 0) { Utils.Login(); } Master.Title = "兑换靓号"; int id = int.Parse(Utils.GetRequest("id", "all", 2, @"^[0-9]\d*$", "ID错误")); BCW.Model.SellNum model = new BCW.BLL.SellNum().GetSellNum(id); if (model == null) { Utils.Error("不存在的记录", ""); } if (model.UsID != meid) { Utils.Error("不存在的记录", ""); } if (model.State == 1) { Utils.Error("请等待系统报价", ""); } if (model.State == 3) { Utils.Error("已申请兑换,请等待系统回复", ""); } if (model.State == 4) { Utils.Error("此条记录已完成", ""); } string info = Utils.GetRequest("info", "all", 1, "", ""); if (info == "ok") { string mobile = Utils.GetRequest("mobile", "post", 2, @"^(?:13|14|15|18)\d{9}$", "请正确输入十一位数的手机号码"); if (new BCW.BLL.SellNum().Exists(0, model.BuyUID, 3)) { Utils.Error("此靓号已被别人抢先兑换了", ""); } //再次确定此号已注册 if (new BCW.BLL.User().Exists(model.BuyUID)) { Utils.Error("此靓号已被别人抢先注册了", ""); } if (new BCW.BLL.User().Exists(mobile)) { Utils.Error("此手机号" + mobile + "已绑定在其它ID上", ""); } long gold = new BCW.BLL.User().GetGold(meid); if (gold < model.Price) { Utils.Error("你的" + ub.Get("SiteBz") + "不足", ""); } //支付安全提示 string[] p_pageArr = { "act", "mobile", "id", "info", "backurl" }; BCW.User.PaySafe.PaySafePage(meid, Utils.getPageUrl(), p_pageArr, "post", false); new BCW.BLL.SellNum().UpdateState3(id, mobile); //扣币 string mename = new BCW.BLL.User().GetUsName(meid); new BCW.BLL.User().UpdateiGold(meid, mename, -model.Price, "兑换靓号ID" + model.BuyUID + ""); //发信息通知管理员 new BCW.BLL.Guest().Add(10086, "靓号管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换ID" + model.BuyUID + ",请进入后台处理"); new BCW.BLL.Guest().Add(19611, "靓号管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换ID" + model.BuyUID + ",请进入后台处理"); //if (!Utils.GetTopDomain().Contains("tuhao") && !Utils.GetTopDomain().Contains("th")) //{ // new BCW.BLL.Guest().Add(1010, "靓号管理员", "[url=/bbs/uinfo.aspx?uid=" + meid + "]" + mename + "[/url]兑换ID" + model.BuyUID + ",请进入后台处理"); //} //动态记录 new BCW.BLL.Action().Add(meid, mename, "在[URL=/bbs/spaceapp/sellnum.aspx?act=uidbuy]兑换靓号处[/URL]成功兑换靓号ID" + model.BuyUID + ""); Utils.Success("靓号", "靓号兑换成功,请等待系统回复...", Utils.getUrl("sellnum.aspx?act=uidlist&ptype=3"), "2"); } else { builder.Append(Out.Tab("<div class=\"title\">兑换靓号</div>", "")); builder.Append(Out.Tab("<div>", "")); builder.Append("你要兑换的ID:" + model.BuyUID + ",兑换价为" + model.Price + "" + ub.Get("SiteBz") + ""); builder.Append(Out.Tab("</div>", "<br />")); string strText = "输入你要绑定的手机号:/,,,,"; string strName = "mobile,id,act,info,backurl"; string strType = "num,hidden,hidden,hidden,hidden"; string strValu = "'" + id + "'uidok'ok'" + Utils.getPage(0) + ""; string strEmpt = "true,false,false,false,false"; string strIdea = ""; string strOthe = "确定兑换,sellnum.aspx,post,3,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"text\">", Out.Hr())); builder.Append("温馨提示:<br />在兑换成功7天内可以用支出" + ub.Get("SiteBz") + "的ID内线<a href=\"" + Utils.getUrl("/bbs/guest.aspx?act=add&hid=10086") + "\">客服(10086)</a>把现用的ID资料(包括发帖、回帖、" + ub.Get("SiteBz") + "等)全部转移到兑换的新ID中,超过7天不再受理."); builder.Append("<a href=\"" + Utils.getUrl("sellnum.aspx?act=uidlist") + "\">我的靓号记录</a>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", Out.Hr())); builder.Append("<a href=\"" + Utils.getUrl("/default.aspx") + "\">首页</a>-"); builder.Append("<a href=\"" + Utils.getPage("../uinfo.aspx") + "\">上级</a>-"); builder.Append("<a href=\"" + Utils.getUrl("../uinfo.aspx") + "\">空间</a>"); builder.Append(Out.Tab("</div>", "")); } }