Ejemplo n.º 1
0
    private void ListBPage()
    {
        int    classid  = int.Parse(Utils.GetRequest("classid", "get", 2, "", "ID错误"));
        int    nclassid = int.Parse(Utils.GetRequest("nclassid", "get", 2, "", "ID错误"));
        int    page     = int.Parse(Utils.GetRequest("page", "get", 1, @"^[1-9]\d*$", "1"));
        string str      = new BCW.Service.GetCplist2().GetCplist2XML(classid, nclassid, page);

        if (!string.IsNullOrEmpty(str))
        {
            string[] temp = Regex.Split(str, "!@#!@#");
            new Out().head(Utils.ForWordType(temp[0].ToString()), "left");
            if (ub.GetSub("CPListTop", xmlPath) != "")
            {
                builder.Append(Out.Tab("<div>", ""));
                builder.Append(Out.SysUBB(ub.GetSub("CPListTop", xmlPath)));
                builder.Append(Out.Tab("</div>", "<br />"));
            }
            builder.Append(Out.Tab("<div class=\"title\">" + temp[0].ToString() + "</div>", ""));
            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("CPListFoot", xmlPath) != "")
        {
            builder.Append(Out.Tab("<div>", ""));
            builder.Append(Out.SysUBB(ub.GetSub("CPListFoot", xmlPath)));
            builder.Append(Out.Tab("</div>", "<br />"));
        }
        builder.Append(Out.Tab("<div class=\"title\">", Out.RHr()));
        //builder.Append("<a href=\"" + Utils.getUrl("cplist.aspx?act=hz&amp;backurl=" + Utils.getPage(0) + "") + "\">返回资料首页</a><br />");
        builder.Append("<a href=\"" + Utils.getPage("default.aspx") + "\">返回网站首页</a>");
        builder.Append(Out.Tab("</div>", ""));
    }
Ejemplo n.º 2
0
    private void StViewPage()
    {
        string gourl = Utils.GetRequest("gourl", "get", 2, @"^[\s\S]{5,}$", "地址错误");
        string str   = new BCW.Service.GetCplist2().GetCplist2XML3(gourl);

        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\">", "<br />"));
        //builder.Append("<a href=\"" + Utils.getUrl("cplist.aspx?act=st&amp;backurl=" + Utils.getPage(0) + "") + "\">返回资料首页</a><br />");
        builder.Append("<a href=\"" + Utils.getPage("default.aspx") + "\">返回网站首页</a>");
        builder.Append(Out.Tab("</div>", ""));
    }