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
/
HRDC
/
HRDC
/
Views
/
Dashboard
/
View File Name :
EditSuccessStories.cshtml
@model HRDC.Models.SuccessStoryViewModel @{ ViewBag.Title = "Edit"; Layout = "~/Views/Shared/_AdminLayout.cshtml"; } <h2>Edit Success Stories Content</h2> @using (Html.BeginForm("EditSuccessStories", "Dashboard", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() @Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.SuccessStoryID) <div class="row"> <div class="col-xs-12"> <div class="panel panel-primary"> <div class="panel-heading"> Create Banner Contents </div> <div class="panel-body"> <div class="form-group"> @Html.LabelFor(model => model.SuccessStoryTitle) @Html.EditorFor(model => model.SuccessStoryTitle, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.SuccessStoryTitle, "", new { @class = "text-danger" }) </div> @Html.LabelFor(model => model.SuccessStoryImage, "Existing Image", new { htmlAttributes = new { @class = "form-control" } }) <br /> <img src="~/Assets/Images/SuccessStories/@Model.SuccessStoryImage" height="100" width="150" style="border:solid;border-width:thin;" /> <div class="form-group"> @Html.LabelFor(model => model.SuccessStoryImage, "Update Image", new { htmlAttributes = new { @class = "form-control" } }) <div class=""> <div class="fileupload fileupload-new" data-provides="fileupload"> <div class="fileupload-preview thumbnail" style="width: 200px; height: 150px;"></div> <div> <span class="btn btn-file btn-success"> <span class="fileupload-new"> Select Image </span><span class="fileupload-exists">Change</span> @Html.EditorFor(model => model.SuccessStoryImage, new { htmlAttributes = new { @type = "file", @id = "StoryImg" } }) </span> <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload">Remove</a> </div> </div> @Html.ValidationMessageFor(model => model.SuccessStoryImage, "", new { @class = "text-danger", @id = "StoryImgMsg" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.SuccessStoryDescription) @Html.EditorFor(model => model.SuccessStoryDescription, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.SuccessStoryDescription, "", new { @class = "text-danger" }) </div> <div class="form-group"> @Html.LabelFor(model => model.SuccessStoryPublishDate) @Html.EditorFor(model => model.SuccessStoryPublishDate, new { htmlAttributes = new { @class = "date-picker form-control" } }) @Html.ValidationMessageFor(model => model.SuccessStoryPublishDate, "", new { @class = "text-danger" }) </div> <div class="form-group"> @Html.LabelFor(model => model.Tags) @Html.ListBoxFor(model => model.TagList, ViewBag.Tags as MultiSelectList, new { id = "multiselectTags", multiple = "multiple", htmlAttributes = new { @class = "form-control" } }) </div> <div class="form-group"> @Html.LabelFor(model => model.SuccessStoryDetail) @Html.TextAreaFor(model => model.SuccessStoryDetail, new { @id = "SuccessStoryDetail", @class = "form-control", @rows = "200" }) @Html.ValidationMessageFor(model => model.SuccessStoryDetail, "", new { @class = "text-danger" }) </div> <input type="submit" value="Create" class="btn btn-info" onclick="return submitClick()" /> </div> </div> </div> </div> } <div> @Html.ActionLink("Back to List", "ManageSuccessStories") </div> <script> CKEDITOR.replace('SuccessStoryDetail', { enterMode: CKEDITOR.ENTER_BR, }); function submitClick() { var img = document.getElementById("StoryImg"); var msg = document.getElementById("StoryImgMsg"); msg.innerHTML = ''; if ((BannerImg.files[0].size / 1048576) > 1) { msg.innerHTML = 'Please upload Image less than 1 mb'; return false; } else return true; } </script>