using System.Text; namespace Common { public class MyPage { public static string PageShow(int pageSize, int recordCount, int currentPage, int PageIndex, string parm, string relativePath, string currentPath, string tip) { StringBuilder stringBuilder = new StringBuilder(); int num1 = 0; if (recordCount > 0) num1 = recordCount % pageSize <= 0 ? recordCount / pageSize : recordCount / pageSize + 1; if (recordCount <= 0) return ""; if (num1 < currentPage) currentPage = num1; int num2 = 6; int num3 = 1; if (num2 > num1) num2 = num1; if (currentPage >= 4) { num2 = currentPage + 3; if (num2 > num1) { num2 = num1; num3 = num2 - 5; if (num3 < 1) num3 = 1; } else num3 = currentPage - 3; } stringBuilder.Append("