Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
BNBHospital
/
Views
/
FAQ
/
View File Name :
Index.cshtml
@model PagedList.IPagedList<bnb.Models.FAQViewModel> @using PagedList.Mvc; <link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" /> @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } @using System.Text.RegularExpressions; @helper StripHTML(string input) { if (!string.IsNullOrEmpty(input)) { input = Regex.Replace(input, "<.*?>", String.Empty); <span>@input</span> } } <h2>Manage FAQ</h2> <p> <div style="float: right; margin-bottom: 10px;">@Html.ActionLink("Create", "Create", null, htmlAttributes: new { @class = "btn btn-info" })</div> </p> <form class="form-inline"> <div class="form-group mb-2"> @Html.TextBox("SearchString", ViewBag.CurrentFilter as string, htmlAttributes: new { @class = "form-control" }) </div> <input type="submit" value="Search" class="btn btn-light mb-2" /> </form> <br /> <table class="table"> <thead> <tr> <th> S.N </th> <th> Heading </th> <th> Question </th> <th> Answer </th> <th> Is Active </th> <th> Created Date </th> <th> Updated Date </th> <th></th> </tr> </thead> <tbody> @{ int i = 1; foreach (var item in Model) { <tr> <td> @i </td> <td> @item.Heading </td> <td> @item.Question </td> <td> @StripHTML(item.Answer) </td> <td> @Html.DisplayFor(model => item.IsActive) </td> <td> @if (item.CreatedDate != null) { @item.CreatedDate.Value.ToString("yyyy/MM/dd") } </td> <td> @if (item.UpdatedDate != null) { @item.UpdatedDate.Value.ToString("yyyy/MM/dd") } </td> <td> @Html.ActionLink("Edit", "Edit", new { id = item.ID }, new { @class = "btn btn-primary" }) @*@Html.ActionLink("Details", "Details", new { id = item.DepartmentId }, new { @class = "btn btn-warning" })*@ </td> </tr> i++; } } </tbody> </table> Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount @Html.PagedListPager(Model, page => Url.Action("Index", new { page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter }))