Easy.COMMON/NewsPage.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Easy.COMMON
{
public static class NewsPage
{
// Methods
public static string PageInfo(int count, string pageInfo, int pageList, int nowPage, string pageStr, string unit)
{
int pageCount = 1;
string temp = "";
if (count > 0)
{
string firstPage = "";
string lastPage = "";
string nextPage = "";
string endPage = "";
pageCount = count / pageList;
string selectStr = "跳转:<select name='PageSelect' onchange='window.location.href=value' id='PageSelect'>";
if ((count % pageList) > 0)
{
pageCount++;
}
for (int i = 1; i <= pageCount; i++)
{
object CS0002;
if (i == nowPage)
{
CS0002 = selectStr;
selectStr = string.Concat(new object[] { CS0002, "<option selected='selected' value='", pageStr, "page=", i, "'>", i, "</option>" });
}
else
{
CS0002 = selectStr;
selectStr = string.Concat(new object[] { CS0002, "<option value='", pageStr, "page=", i, "'>", i, "</option>" });
}
}
selectStr = selectStr + "</select>";
if (pageCount == 1)
{
firstPage = "<font color='#cccccc'><<首页</font>";
lastPage = "<font color='#cccccc'><上页</font>";
nextPage = "<font color='#cccccc'>下页></font>";
endPage = "<font color='#cccccc'>尾页>></font>";
}
else if (nowPage == 1)
{
firstPage = "<font color='#cccccc'><<首页</font>";
lastPage = "<font color='#cccccc'><上页</font>";
nextPage = string.Concat(new object[] { "<a href='", pageStr, "page=", nowPage + 1, "'>下页></a>" });
endPage = string.Concat(new object[] { "<a href='", pageStr, "page=", pageCount, "'>尾页>></a>" });
}
else if (nowPage == pageCount)
{
firstPage = "<a href='" + pageStr + "page=1'><<首页</a>";
lastPage = string.Concat(new object[] { "<a href='", pageStr, "page=", pageCount - 1, "'><上页</a>" });
nextPage = "<font color='#cccccc'>下页></font>";
后面还有 18 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。