📄 ultipublish.cs
字号:
string ReadType = NetCMS.Common.Public.readparamConfig("ReviewType");
switch (Numstr)
{
case "0":
Pagestr += "<div style=\"padding-top:15px;\">共" + n + "页, 当前第" + (i + 1) + "页, ";
if (i == 0)
{
Pagestr += getPageStyle("首页", postResult_color) + " ";
Pagestr += getPageStyle("上一页", postResult_color) + " ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"首页\">" + getPageStyle("首页", postResult_color) + "</a> ";
if (i == 1)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"上一页\">" + getPageStyle("上一页", postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, i, getFileName, getFileEXName, isPop) + "\" title=\"上一页\">" + getPageStyle("上一页", postResult_color) + "</a> ";
}
}
if (n < 10)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"上十页\">" + getPageStyle("上十页", postResult_color) + "</a> ";
for (int m = i; m < n; m++)
{
if (m == i)
{
Pagestr += "<strong>" + getPageStyle("" + (m + 1), postResult_color) + "</strong> ";
}
else
{
if (m == 0)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (m + 1), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
}
}
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, n, getFileName, getFileEXName, isPop) + "\" title=\"下十页\">" + getPageStyle("下十页", postResult_color) + "</a> ";
}
else if (n > 10)
{
if (i < 11)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"上十页\">" + getPageStyle("上十页", postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, ((i + 1) - 10), getFileName, getFileEXName, isPop) + "\" title=\"上十页\">" + getPageStyle("上十页", postResult_color) + "</a> ";
}
int mjs = (i + 10);
if ((n - i) < 10)
{
mjs = n;
}
for (int m = i; m < (mjs); m++)
{
if (m == i)
{
Pagestr += "<strong>" + getPageStyle("" + (m + 1), postResult_color) + "</strong> ";
}
else
{
if (m == 0)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (m + 1), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
}
}
if ((i + 10) > n)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, n, getFileName, getFileEXName, isPop) + "\" title=\"下十页\">" + getPageStyle("下十页", postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, ((i + 1) + 10), getFileName, getFileEXName, isPop) + "\" title=\"下十页\">" + getPageStyle("下十页", postResult_color) + "</a> ";
}
}
if (i == (n - 1))
{
Pagestr += getPageStyle("下一页", postResult_color) + " ";
Pagestr += getPageStyle("尾页", postResult_color) + "</div>";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (i + 2), getFileName, getFileEXName, isPop) + "\" title=\"下一页\">" + getPageStyle("下一页", postResult_color) + "</a> ";
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, n, getFileName, getFileEXName, isPop) + "\" title=\"尾页\">" + getPageStyle("尾页", postResult_color) + "</a></div>";
}
break;
case "1":
Pagestr += "<div style=\"padding-top:15px;\">共" + n + "页, 当前第" + (i + 1) + "页, ";
if ((i + 1) > 2)
{
Pagestr += " <a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, i, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("上一页", postResult_color) + "</a> ";
}
else
{
if (i == 0)
{
Pagestr += " " + getPageStyle("上一页", postResult_color) + " ";
}
else
{
Pagestr += " <a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("上一页", postResult_color) + "</a> ";
}
}
for (int j = 0; j < n; j++)
{
if (j == i)
{
Pagestr += "<strong>" + getPageStyle("第" + (j + 1) + "页", postResult_color) + "</strong> ";
}
else
{
if (j == 0)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("第" + (j + 1) + "页", postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (j + 1), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("第" + (j + 1) + "页", postResult_color) + "</a> ";
}
}
}
if ((i + 1) == n)
{
Pagestr += " " + getPageStyle("下一页", postResult_color) + " ";
}
else
{
Pagestr += " <a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (i + 2), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("下一页", postResult_color) + "</a> ";
}
Pagestr += "</div>";
break;
case "2":
Pagestr += "<div style=\"padding-top:15px;\">共" + n + "页, 当前第" + (i + 1) + "页, ";
if ((i + 1) > 2)
{
Pagestr += " <a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, i, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("上一页", postResult_color) + "</a> ";
}
else
{
if (i == 0)
{
Pagestr += " " + getPageStyle("上一页", postResult_color) + " ";
}
else
{
Pagestr += " <a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("上一页", postResult_color) + "</a> ";
}
}
for (int j = 0; j < n; j++)
{
if (j == i)
{
Pagestr += "<strong>" + getPageStyle("" + (j + 1), postResult_color) + "</strong> ";
}
else
{
if (j == 0)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (j + 1), postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (j + 1), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (j + 1), postResult_color) + "</a> ";
}
}
}
if ((i + 1) == n)
{
Pagestr += " " + getPageStyle("下一页", postResult_color) + " ";
}
else
{
Pagestr += " <a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (i + 2), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("下一页", postResult_color) + "</a> ";
}
Pagestr += "</div>";
break;
default:
Pagestr += "<div style=\"padding-top:15px;\">共" + n + "页, 当前第" + (i + 1) + "页, ";
if (i == 0)
{
Pagestr += getPageStyle("<font face=webdings title=\"首页\">9</font>", postResult_color) + " ";
Pagestr += getPageStyle("<font face=webdings title=\"上一页\">3</font>", postResult_color) + " ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"首页\">" + getPageStyle("<font face=webdings>9</font>", postResult_color) + "</a> ";
if (i == 1)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"上一页\">" + getPageStyle("<font face=webdings>3</font>", postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, i, getFileName, getFileEXName, isPop) + "\" title=\"上一页\">" + getPageStyle("<font face=webdings>3</font>", postResult_color) + "</a> ";
}
}
if (n < 10)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"上十页\">" + getPageStyle("<font face=webdings>7</font>", postResult_color) + "</a> ";
for (int m = i; m < n; m++)
{
if (m == i)
{
Pagestr += "<strong>" + getPageStyle("" + (m + 1), postResult_color) + "</strong> ";
}
else
{
if (m == 0)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (m + 1), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
}
}
Pagestr += getPageStyle("<font face=webdings>8</font>", postResult_color) + " ";
}
else if (n > 10)
{
if (i < 11)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\" title=\"上十页\">" + getPageStyle("<font face=webdings>7</font>", postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, ((i + 1) - 10), getFileName, getFileEXName, isPop) + "\" title=\"上十页\">" + getPageStyle("<font face=webdings>7</font>", postResult_color) + "</a> ";
}
int mjs = (i + 10);
if ((n - i) < 10)
{
mjs = n;
}
for (int m = i; m < (mjs); m++)
{
if (m == i)
{
Pagestr += "<strong>" + getPageStyle("" + (m + 1), postResult_color) + "</strong> ";
}
else
{
if (m == 0)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, 0, getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
else
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, (m + 1), getFileName, getFileEXName, isPop) + "\">" + getPageStyle("" + (m + 1), postResult_color) + "</a> ";
}
}
}
if ((i + 10) > n)
{
Pagestr += "<a " + postResult_css + " href=\"" + getPageresult(ID, ReadType, ContentType, n, getFileName, getFileEXName, isPop) + "\" title=\"下十页\">" + getPageStyle("<font face=webdings>7</font>", postResult_color) + "</a> ";
}
else
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -