server/aspnetapp/Views/Shared/PagePartial.cshtml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
int pageindex = ViewBag.page == null ? 0 : Convert.ToInt32(ViewBag.page);
int spitindex = 0;
int pagecount = ViewBag.pagecount == null ? 0 : Convert.ToInt32(ViewBag.pagecount);
int pagesize = ViewBag.pagesize == null ? 0 : Convert.ToInt32(ViewBag.pagesize);
string path = Context.Request.Path.ToString() + Context.Request.QueryString.ToString() + ViewBag.other;
if (path.Contains("page="))
{
path = path.Substring(0, path.LastIndexOf("page=") - 1);
}
if (path.Contains("?"))
{
path += "&";
}
else
{
path += "?";
}
}
<style>
.btn-page {
padding: 2px 6px;
}
.z-crt {
background-color: #355e92;
border-radius: 50%;
color: white !important;
padding: 10px 18px;
}
.m-page {
text-align: center;
font-size: 14px;
margin-top: 20px;
}
.m-page a, .m-page span {
font-size: 18px
}
</style>
@if (pagecount > 1)
{
<div class="m-page">
<span>共 @pagecount 页</span>
<a href="@(path+"page="+(pageindex > 0 ? pageindex - 1 : 0))" class="first pageprv @(pageindex> 0 ? "" : "z-dis")"><</a>
@{ spitindex = pageindex - 2;}
@if (spitindex > 4)
{
<a href="@(path+"page=0")" class="btn-page">1</a>
}
else
{
for (int i = 0; i < spitindex; i++)
{
<a href="@(path+"page="+i)" class="btn-page">@(i + 1)</a>
}
后面还有 34 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。