ExamWeb/Views/Papers/Index.cshtml

(完整代码) 1KB

@{
    ViewBag.Title = "试卷列表";
    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>@ViewBag.Title</h2>
@Html.ActionLink("添加新试卷", "Create", null, new { @class = "btn btn-primary" })

<table class="table">
    <thead>
        <tr>
            <th>试卷名</th>
            <th>试卷说明</th>
            <th>试卷时长</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in ViewBag.Paper as IList<ExamWeb.Models.Paper>)
        {
            <tr>
                <td>@item.PaperName</td>
                <td>@item.PaperExplain</td>
                <td>@item.PaperTime</td>
                <td>
                    @Html.ActionLink("添加考题", "Create","Topics", new { PaperID = item.PaperID }, new { @class = "btn btn-primary"  })
                    @Html.ActionLink("编辑", "Eidt", new { PaperID = item.PaperID }, new { @class = "btn btn-primary" })
                    @Html.ActionLink("详情", "Detial", new { PaperID = item.PaperID }, new { @class = "btn btn-primary" })
                    @Html.ActionLink("删除", "Delete", new { PaperID = item.PaperID }, new { @class = "btn btn-danger" })
                </td>
            </tr>
        }
    </tbody>
</table>

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

AI 解读 AI

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

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