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
/
Doctor
/
Edit File Name :
Create.cshtml
@model bnb.Models.DoctorViewModel @{ ViewBag.Title = "Create"; Layout = "~/Views/Shared/_Layout.cshtml"; } <style> #ImageUrl { display: initial; } </style> <h2>Add Doctor </h2> @using (Html.BeginForm("Create", "Doctor", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() <div class="form-horizontal"> <hr /> @Html.ValidationSummary(true, "", new { @class = "text-danger" }) <div class="form-group"> @Html.LabelFor(model => model.DoctorName, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.DoctorName, new { htmlAttributes = new { @class = "form-control", @id = "DoctorName" } }) @Html.ValidationMessageFor(model => model.DoctorName, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.DoctorCode, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.DoctorCode, new { htmlAttributes = new { @class = "form-control", @id = "DoctorCode" } }) @Html.ValidationMessageFor(model => model.DoctorCode, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.DisplayOrder, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.DisplayOrder, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.DisplayOrder, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.NMCNo, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.NMCNo, new { htmlAttributes = new { @class = "form-control", @id = "NMCNo" } }) @Html.ValidationMessageFor(model => model.NMCNo, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Designation, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.TextAreaFor(model => model.Designation, new { @class = "form-control", @id = "Designation" }) @Html.ValidationMessageFor(model => model.Designation, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Specialization, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.TextAreaFor(model => model.Specialization, new { @class = "form-control", @id = "Specialization" }) @Html.ValidationMessageFor(model => model.Specialization, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Qualification, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.TextAreaFor(model => model.Qualification, new { @class = "form-control", @id = "Qualification" }) @Html.ValidationMessageFor(model => model.Qualification, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.Label("Department", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @{ List<SelectListItem> items = new List<SelectListItem>(); using (var db = new bnb.Models.bnbEntities()) { var department = db.Departments.ToList(); foreach (var dep in department) { items.Add(new SelectListItem { Text = dep.DepartmentName, Value = dep.DepartmentId.ToString() }); } } @Html.DropDownListFor(x => x.DepartmentId, items, new { @class = "form-control custom-select" }) } </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Thumbnail, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> <div class="thumbnail" style="width: 200px; height: 160px; border: none;"> <img class="img-responsive" id="targetImg" style="width: 200px; height: 150px;" /> <span style="color: red;">218px width * 275px height</span> </div> @Html.EditorFor(model => model.Thumbnail, new { htmlAttributes = new { @type = "file", @id = "ImageUrl" } }) @Html.ValidationMessageFor(model => model.Thumbnail, "", new { @class = "text-danger" }) <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload" onclick="ClearPreview()">Remove</a> </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.TextAreaFor(model => model.Description, new { htmlAttributes = new { @class = "form-control", @id = "Description" } }) @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Active, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.CheckBoxFor(model => model.Active, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Active, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.UrlName, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.UrlName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.UrlName, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.AppointmentUrl, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.AppointmentUrl, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.AppointmentUrl, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Save" class="btn btn-primary" /> @Html.ActionLink("Back to List", "Index", null, htmlAttributes: new { @class = "btn btn-info" }) </div> </div> </div> } @section Scripts { @Scripts.Render("~/bundles/jqueryval") } <script src="~/Scripts/file.js"></script> <script> $(document).ready(function () { CKEDITOR.replace('Description'); }); </script>
Save