12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- @using Webdiyer.WebControls.Mvc
- @model PagedList<Hospital.Model.D_Models.Models.D_NcisAnnouncement>
- @{
- ViewBag.Title = "卫健委更新内容";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <div class="page-header">
- <h3>
- @if (ViewBag.Logo != null)
- {
- <img src="@ViewBag.Logo" id="logoImg" style="margin:0px 5px 5px 0px;" />
- }
- <i class="fa fa-volume-down"></i> @ViewBag.Title
- <a href="@Url.Action("Index","MAdmin")" class='backbutton'><i class="icon-white fa fa-arrow-circle-left"></i>返回</a>
- </h3>
- </div>
- <div style="">
- @if (Model != null && Model.Any())
- {
- var i = 1;
- <table class="table table-striped table-hover">
- <thead>
- <tr>
- <th></th>
- <th>标题</th>
- <th>日期</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var item in Model)
- {
- <tr>
- <td style="width:60px;text-align:center;">@i</td>
- <td>
- <a href="@Url.Action("Details", "NcisAnnouncement", new { Area = "Admin" ,@id = item.ID})">@item.Title</a>
- </td>
- <td style="width:260px;">@item.AddTime</td>
- </tr>
- i++;
- }
- </tbody>
- </table>
- <div class="pagination">
- <p class="status">共 @Model.TotalItemCount 条记录,页 @Model.CurrentPageIndex / @Model.TotalPageCount</p>
- @Html.Pager(Model, new PagerOptions
- {
- AutoHide = false,
- PageIndexParameterName = "page",
- ContainerTagName = "ul",
- PagerItemWrapperFormatString = "<li>{0}</li>",
- CurrentPagerItemWrapperFormatString = "<li class='active'><span>{0}</span></li>",
- NumericPagerItemCount = 5,
- })
- </div>
- }
- else
- {
- <div class="alert alert-block">
- <i class="fa fa-info-circle"></i><strong>暂无数据</strong>
- </div>
- }
- </div>
|