Exemplo n.º 1
0
    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&amp;backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员&gt;&gt;</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") + "\">&lt;&lt;重新选择类型</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") + "\">&lt;&lt;重新选择类型</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>", ""));
    }
Exemplo n.º 2
0
    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&amp;backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员&gt;&gt;</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") + "\">&lt;&lt;重新选择</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") + "\">我的兑换记录&gt;&gt;</a><br />");
            builder.Append("<a href=\"" + Utils.getUrl("changesim.aspx?act=list") + "\">全部兑换记录&gt;&gt;</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>", ""));
    }
Exemplo n.º 3
0
    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&amp;backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员&gt;&gt;</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") + "\">&lt;&lt;重新选择</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") + "\">我的兑换记录&gt;&gt;</a><br />");
            builder.Append("<a href=\"" + Utils.getUrl("changeqb.aspx?act=list") + "\">全部兑换记录&gt;&gt;</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>", ""));
    }
Exemplo n.º 4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(BCW.Model.SellNum model)
 {
     return(dal.Add(model));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(BCW.Model.SellNum model)
 {
     dal.Update(model);
 }
Exemplo n.º 6
0
    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&amp;backurl=" + Utils.getPage(0) + "") + "\">&lt;&lt;重新查找</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&amp;backurl=" + Utils.getPage(0) + "") + "\">&lt;&lt;重新查找</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&amp;backurl=" + Utils.getPage(0) + "") + "\">&lt;&lt;换个更靓的</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&amp;backurl=" + Utils.PostPage(1) + "") + "\">马上开通VIP会员&gt;&gt;</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&amp;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&amp;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>", ""));
    }