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
/
map
/
Views
/
ServiceProvider
/
View File Name :
_List.cshtml
@using PagedList.Mvc; @model PagedList.IPagedList<RER_Project.DataAccess.Functions.Fn_Get_Serviceprovider> @{ int cpage = 1; } @using RER_Project.Core.Helpers @using RER_Project.BusinessLayer.BusinessService; @{ var meta = AppUserService.GetCurrent(); } @if (Model.Count > 0) { <div class="table table-responsive table-striped table-hover table-bordered"> <table class="table table-striped" id="userListTable"> <thead> <tr> <th class="col-md-1">SN</th> <th style="white-space:nowrap;">Provider Name</th> <th style="white-space:nowrap;">Fiscal Year</th> <th style="white-space:nowrap;">Province</th> <th style="white-space:nowrap;">District</th> <th style="white-space:nowrap;">Municipality</th> <th style="white-space:nowrap;">Ward</th> <th style="white-space:nowrap;">Created Date</th> <th style="white-space:nowrap;">Is Registered</th> <th style="text-align:center">Action</th> </tr> </thead> <tbody> @{ int serialNo = 1; } @foreach (var item in Model) { <tr> <td> <label> @((cpage - 1) * 10 + @serialNo)</label> @{ serialNo++; } </td> <td style="white-space:nowrap;">@item.Name</td> <td style="white-space:nowrap;">@item.FiscalYear</td> <td style="white-space:nowrap;">@item.Province</td> <td style="white-space:nowrap;">@item.District</td> <td style="white-space:nowrap;">@item.Municipality</td> <td style="white-space:nowrap;">@item.Ward</td> <td style="white-space:nowrap;">@item.CreatedDate.ToShortDateString()</td> <td style="white-space:nowrap;">@(item.Registered.ToString().ToLower() == "true" ? "Yes" : "No")</td> <td style="white-space:nowrap;"> <center> @if (meta.RoleId == (int)EnumRoleHelper.Roles.Admin || meta.RoleId == (int)EnumRoleHelper.Roles.MnE || meta.RoleId == (int)EnumRoleHelper.Roles.MnEOfficer || meta.RoleId == (int)EnumRoleHelper.Roles.SupplyChainSupervisor) { <a class="btn btn-default btn-xs" href="@("/serviceprovider/edit/" + item.Id)" style="color:dodgerblue" title="Edit"><i class="fa fa-edit"></i></a> @*<a class="btn btn-default btn-xs" href="@("/serviceprovider/delete/" + item.Id)" style="color:dodgerblue" title="Delete"><i class="fa fa-trash"></i></a>*@ <a class="btn btn-default btn-xs" style="color:dodgerblue" title="Delete" onclick="deleteItem(@item.Id)"><i class="fa fa-trash"></i></a> } <a class="btn btn-default btn-xs" href="@("/serviceprovider/details/" + item.Id)" style="color:dodgerblue" title="View Details"><i class="fa fa-eye"></i></a> <a class="btn btn-default btn-xs" href="@("/serviceprovider/quadrimester/info/" + item.Id)" style="color:dodgerblue" title="Fill Quadrimester Data"><i class="fa fa-calendar"></i></a> </center> </td> </tr> } </tbody> </table> <div id="myPager" align="center"> @if (Model.Count > 0) { @Html.PagedListPager(Model, page => Url.Action("Index", new { page, name = ViewBag.Name, fyId = ViewBag.fyId, provinceId = ViewBag.provinceId, districtId = ViewBag.districtId, municipalityId = ViewBag.municipalityId }), PagedListRenderOptions.ClassicPlusFirstAndLast) } </div> </div> } else { <div><center>No Data</center></div> }