96 lines
3.1 KiB
Plaintext
96 lines
3.1 KiB
Plaintext
@page
|
|
@model _2021_backend.Pages.Submissions.IndexModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>全部提交记录</h1>
|
|
<p>
|
|
<a asp-page="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Name)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Stuid)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Sex)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Grade)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Major)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Email)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Tel)
|
|
</th>
|
|
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].Address)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submission[0].SubmitTime)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Submission)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Stuid)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Sex)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Grade)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Major)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Email)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Tel)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Address)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.SubmitTime)
|
|
</td>
|
|
<td>
|
|
<a asp-page="./Edit" asp-route-strid="@item.Guid.ToString()">编辑</a> |
|
|
<a asp-page="./Details" asp-route-strid="@item.Guid.ToString()">详细信息</a> |
|
|
<a asp-page="./Delete" asp-route-strid="@item.Guid.ToString()">删除</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<nav>
|
|
<ul class="pagination">
|
|
<li class="page-item @(Model.PageId==0 ? "disabled" : "")"><a class="page-link" asp-route-pageId="@(Model.PageId-1) ">Prev</a></li>
|
|
@for (int i = 0; i < Model.PageCount; i++)
|
|
{
|
|
<li class="page-item @(Model.PageId==i ? "active" : "")"><a class="page-link" asp-route-pageId="@i">@i</a></li>
|
|
}
|
|
<li class="page-item @(Model.PageId>=Model.PageCount -1? "disabled" : "")"><a class="page-link" asp-route-pageId="@(Model.PageId+1)" >Next</a></li>
|
|
</ul>
|
|
</nav>
|