Exemple #1
0
        internal static string BuildJsonPagerInfo(string firstLinkFormat, string linkFormat, int pageIndex, int recordCount, int pages)
        {
            var      pagingGetter = new CustomPagingGetter(firstLinkFormat, linkFormat, "", "", "<<", ">>");
            UrlPager pg           = UrlPaging.NewPager(pageIndex, pages, pagingGetter);

            pg.RecordCount = recordCount;
            pg.LinkCount   = 10;
            pg.PagerTotal  = "共{2}条";
            return(pg.Pager());
        }
Exemple #2
0
        internal static string BuildPagerInfo(string format, int pageIndex, int recordCount, int pages)
        {
            return(UrlPaging.PagerHtml(format, format, pageIndex, recordCount, pages));

            /*
             * UrlPager p = new UrlPager(pageIndex, pages);
             * p.LinkCount = 5;
             * p.RecordCount = recordCount;
             * p.FirstPageLink = format;
             * p.LinkFormat = format;
             * p.SelectPageText = "&nbsp;跳页:";
             * p.EnableSelect = true;
             * p.PagerTotal = String.Empty;
             * p.NextPagerLinkText = "..";
             * p.PreviousPagerLinkText = "..";
             * p.NextPageText = " > ";
             * p.PreviousPageText = " < ";
             * p.Style = PagerStyle.Blue;
             * return p.ToString();
             */
        }