Beispiel #1
0
    private void ViewPage()
    {
        int pid = int.Parse(Utils.GetRequest("pid", "get", 2, "", "ID错误"));
        int id  = int.Parse(Utils.GetRequest("id", "get", 2, "", "ID错误"));
        int i   = int.Parse(Utils.GetRequest("i", "get", 1, @"^[0-9]\d*$", "0"));
        int o   = int.Parse(Utils.GetRequest("o", "get", 1, @"^[0-9]\d*$", "0"));

        if (i == 0)
        {
            i = int.Parse(Utils.GetRequest("ii", "get", 1, @"^[0-9]\d*$", "0"));
            if (i >= 1)
            {
                i = i - 1;
            }
        }
        string str = new BCW.Service.GetCplist().GetCplistXML2(pid, id, i, o);

        if (!string.IsNullOrEmpty(str))
        {
            string[] temp = Regex.Split(str, "!@#!@#");
            new Out().head(Utils.ForWordType(temp[0].ToString()), "left");
            if (ub.GetSub("CPDetailTop", xmlPath) != "")
            {
                builder.Append(Out.Tab("<div>", ""));
                builder.Append(Out.SysUBB(ub.GetSub("CPDetailTop", xmlPath)));
                builder.Append(Out.Tab("</div>", "<br />"));
            }
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(temp[1].ToString());
            builder.Append(Out.Tab("</div>", ""));
        }
        else
        {
            new Out().head(Utils.ForWordType("操作超时"), "left");
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("操作超时, 请重试");
            builder.Append(Out.Tab("</div>", "<br />"));
        }
        if (ub.GetSub("CPDetailFoot", xmlPath) != "")
        {
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(Out.SysUBB(ub.GetSub("CPDetailFoot", xmlPath)));
            builder.Append(Out.Tab("</div>", "<br />"));
        }
        builder.Append(Out.Tab("<div class=\"title\">", Out.RHr()));
        builder.Append("<a href=\"" + Utils.getUrl("cplist.aspx?backurl=" + Utils.getPage(0) + "") + "\">返回资料首页</a><br />");
        builder.Append("<a href=\"" + Utils.getPage("default.aspx") + "\">返回网站首页</a>");
        builder.Append(Out.Tab("</div>", ""));
    }
Beispiel #2
0
    private void BmPage()
    {
        new Out().head(Utils.ForWordType("WAP最快报码室"), "left");
        string str = new BCW.Service.GetCplist().GetCplistXML3();

        if (!string.IsNullOrEmpty(str))
        {
            if (ub.GetSub("CPBmTop", xmlPath) != "")
            {
                builder.Append(Out.Tab("<div>", ""));
                builder.Append(Out.SysUBB(ub.GetSub("CPBmTop", xmlPath)));
                builder.Append(Out.Tab("</div>", "<br />"));
            }
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("【最快报码室】<a href=\"" + Utils.getUrl("cplist.aspx?act=bm") + "\">刷新</a>");
            builder.Append(Out.Tab("</div>", ""));
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(str);
            builder.Append(Out.Tab("</div>", "<br />"));
        }
        else
        {
            builder.Append(Out.Tab("<div>", ""));
            builder.Append("操作超时, 请重试");
            builder.Append(Out.Tab("</div>", ""));
        }
        if (ub.GetSub("CPBmFoot", xmlPath) != "")
        {
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(Out.SysUBB(ub.GetSub("CPBmFoot", xmlPath)));
            builder.Append(Out.Tab("</div>", "<br />"));
        }
        builder.Append(Out.Tab("<div class=\"title\">", Out.RHr()));
        builder.Append("<a href=\"" + Utils.getUrl("cplist.aspx?backurl=" + Utils.getPage(0) + "") + "\">返回资料首页</a><br />");
        builder.Append("<a href=\"" + Utils.getPage("default.aspx") + "\">返回网站首页</a>");
        builder.Append(Out.Tab("</div>", ""));
    }