ExamWeb/Views/Teacher/Index.cshtml

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link href="~/Content/Site.css" rel="stylesheet" />
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<script src="~/Scripts/jquery-3.4.1.min.js"></script>
<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>Email</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in ViewBag.Teacher as IList<ExamWeb.Models.Teacher>)
        {
            <tr>
                <td>@item.TeacherName</td>
                <td>@item.TeacherLoginName</td>
                <td>*****</td>
                <td>@item.TeacherPhone</td>
                <td>@item.TeacherEmail</td>
                <td>
                    @Html.ActionLink("编辑", "Eidt", new { TeacherID = item.TeacherID }, new { @class = "btn btn-primary" })
                    @Html.ActionLink("详情", "Detial", new { TeacherID = item.TeacherID }, new { @class = "btn btn-primary" })
                    @Html.ActionLink("删除", "Delete", new { TeacherID = item.TeacherID }, new { @class = "btn btn-danger" })
                    @*      <a href="/teacher/Delete?TeacherID=@item.TeacherID" data-target="#exampleModal" class="btn btn-danger">删除</a>*@
                </td>
            </tr>
        }

    </tbody>
</table>

<!-- Button trigger modal -->
@*<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#exampleModal">
        删除
    </button>*@

<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">是否删除</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
后面还有 11 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。