ExamWeb/Views/Student/Index.cshtml
(完整代码) 1KB
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/Content/Site.css" rel="stylesheet" />
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/global.css" rel="stylesheet" />
<h2>学生列表</h2>
@Html.ActionLink("添加新的学生", "Create", null, new { @class = "btn btn-primary" })
<table class="table">
<thead>
<tr>
<th>姓名</th>
<th>登录名</th>
<th>密码</th>
<th>性别</th>
<th>电话</th>
<th>Email</th>
<th>班级</th>
<th>操作</th>
</tr>
</thead>
<tbody>
@foreach (var item in ViewBag.Students as IList<ExamWeb.Models.Student>)
{
<tr>
<td>@item.StuName</td>
<td>@item.StuLoginName</td>
<td>*****</td>
<td>@(item.StuSex ? "男" : "女")</td>
<td>@item.StuPhone</td>
<td>@item.StuEmail</td>
<td>@item.StuGrade</td>
<td>
@Html.ActionLink("编辑", "Eidt", new { StuID = item.StuID }, new { @class = "btn btn-primary" })
@Html.ActionLink("详情", "Detial", new { StuID = item.StuID }, new { @class = "btn btn-primary" })
@Html.ActionLink("删除", $"Delete", new { StuID = item.StuID }, new { @class = "btn btn-danger" })
</td>
</tr>
}
</tbody>
</table>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。