WebUI/AchieveManageWeb/Views/MyTest/MVCPager.cshtml

(开头部分) 5KB

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

@model AchieveManageWeb.Models.MyTest.MVCPager
@{
    Layout = null;
}
@using Webdiyer.WebControls.Mvc;

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>MVCPager</title>
    <link href="~/Content/pagerstyles.css" rel="stylesheet" />
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
    <div style="padding:15px;">
        <div style="float:left;">
            @using (Html.BeginForm("MVCPager", "MyTest", new RouteValueDictionary { { "id", "" } }, FormMethod.Get))
            {
                @Html.Label("关键字:")<input name="key" value="@Request.QueryString["key"]" /><input type="submit" value="查询" />
            }
        </div>

        @using (@Html.BeginForm("ImportStu", "MyTest", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <div style="float:left;padding-left:30px;">
                <input name="file" type="file" id="file" />
            </div>
            <div style="float:left;padding:1px;">
                <input type="submit" name="Upload" value="上传" />&nbsp;&nbsp;&nbsp;<input type="button" name="Export" value="导出" onclick="location.href = '/MyTest/ExportStu'" /> @*<a href="javascript:;">@Html.ActionLink("导出Excel", "ExportStu")</a>*@
            </div>
        }
        <table class="table table-bordered table-striped">
            <tr>
                <th>编号</th>
                <th>标题</th>
                <th>内容</th>
            </tr>
            @foreach (var info in Model.Articles)
            {
                <tr>
                    <td>@Html.DisplayFor(model => info.ID)</td>
                    <td>@Html.DisplayFor(model => info.Title)</td>
                    <td>@Html.DisplayFor(model => info.Content)</td>
                </tr>
            }
        </table>

        <div class="text-center">
            <nav>
                @Html.Pager(Model.Articles, new PagerOptions
                {
                    PageIndexParameterName = "id",
                    NumericPagerItemCount = 5,
                    FirstPageText = "首页",
                    PrevPageText = "上一页",
                    NextPageText = "下一页",
                    LastPageText = "末页",
                    ContainerTagName = "ul",
后面还有 39 行代码,购买后查看完整代码

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

AI 解读 AI

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

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