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
/
mapqa
/
Views
/
Trader
/
View File Name :
Contract.cshtml
@model RER_Project.DataAccess.ViewModels.TraderDataVm @using RER_Project.Core.Helpers @using RER_Project.BusinessLayer.BusinessService; @{ ViewBag.Title = "Contract"; Layout = "~/Views/Shared/_Layout.cshtml"; } @{ var a = ViewBag.traderid; } <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-md-12" style="margin-top: 20px"> <strong><span style="font-size: medium; margin-left:20px">Trader Contracts </span></strong><br /> <br /> <div class="row"> <div class="col-lg-12"> <span style="font-size: 100%;"> Business Name: <strong>@Model.trader[0].name</strong> </span> <span style="font-size: 100%;"> Province: <strong>@Model.trader[0].province</strong> </span> <span style="font-size: 100%;"> Atoll: <strong>@Model.trader[0].district</strong> </span> <span style="font-size: 100%;"> Island: <strong>@Model.trader[0].paliaka</strong> </span> </div> </div> <br /> <div class="row"> <div class="col-lg-12"> <span style="font-size: 100%;"> Nature Of Business: <strong>@Model.trader[0].nature</strong> </span> <span style="font-size: 100%;"> Address: <strong>@Model.trader[0].addressofbusiness</strong> </span> </div> </div> <br /> <div style="display: flex; justify-content: right; margin: 10px;"> <a href="@("/contract/create/" + a ) " class=" btn btn-primary showCreateBtn">Create</a> </div> </div> </div> <div class="table table-responsive table-striped table-hover table-bordered" style="margin-top:10px"> <table class="table table-striped" id="userListTable"> <thead> <tr> <th style="white-space:nowrap;">Iff info</th> <th style="white-space:nowrap;">Member Name</th> <th style="white-space:nowrap;">Fiscal Year</th> <th style="white-space:nowrap;">Contracted</th> <th style="white-space:nowrap;">Nature of Contract</th> <th style="white-space:nowrap;">Contract Id</th> <th style="white-space: nowrap;">Action</th> </tr> </thead> <tbody> @foreach (var item in Model.contracts) { <tr> <td style="white-space:nowrap;">@item.group_name</td> <td style="white-space:nowrap;">@item.first_name @item.last_name</td> <td style="white-space:nowrap;">@item.fiscal_year</td> <td style="white-space:nowrap;">@item.contracted</td> <td style="white-space:nowrap;">@item.name</td> <td style="white-space:nowrap;">@item.trader_contract_id</td> <td> <a class="btn btn-default btn-xs" href="@("/contract/edit/" + item.id)" style="color: dodgerblue; white-space: nowrap;" title="Edit"><i class="fa fa-edit"></i></a> <a class="btn btn-default btn-xs" style="color: dodgerblue; white-space: nowrap;" title="Delete" onclick="deleteItem(@item.id,@item.trader_id)"><i class="fa fa-trash"></i></a> </td> @* <td style="white-space:nowrap;">@item.contracted</td>*@ </tr> } </tbody> </table> </div> <div style="display: flex; justify-content: right; margin: 20px;"> <a href="trader/index" class=" btn btn-primary showCreateBtn">Back</a> </div> <script> function deleteItem(id, traderid) { debugger; if (!window.confirmAction()) { return false; } const ajx = window.getAjaxRequest("/Contract/delete/" + id, "GET", ""); ajx.done(function (response) { if (response == true) { ShowMessage("success", "Deleted Successfully"); } window.location = "/contract?traderId=" + traderid; window.onload(); }); ajx.fail(function (xhr) { ShowMessage("error", xhr.responseText); }); } </script>