OSS인증 - 팀장 : 서영민 - 팀원 : 김현, 박상진, 박승영, 윤동수, 김성미
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

4 years ago
  1. @using RegistrationForm.Models;
  2. @model RegistrationForm.Models.Employ_Table
  3. @{
  4. ViewBag.Title = "Login";
  5. }
  6. @using (Html.BeginForm("Login", "Home", FormMethod.Post))
  7. {
  8. <fieldset>
  9. <legend> 로그인 페이지 입니다. </legend>
  10. @Html.AntiForgeryToken()
  11. @Html.ValidationSummary(true)
  12. @if (@ViewBag.Message != null)
  13. {
  14. <div style="border: 1px solid red">
  15. @ViewBag.Message
  16. </div>
  17. }
  18. <table>
  19. <tr>
  20. <td>@Html.LabelFor(a => a.EmployNum)</td>
  21. <td>@Html.TextBoxFor(a => a.EmployNum)</td>
  22. <td>@Html.ValidationMessageFor(a => a.EmployNum)</td>
  23. </tr>
  24. <tr>
  25. <td>
  26. @Html.LabelFor(a => a.Password)
  27. </td>
  28. <td>
  29. @Html.PasswordFor(a => a.Password)
  30. </td>
  31. <td>
  32. @Html.ValidationMessageFor(a => a.Password)
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>
  37. <input type="submit" value="Login" />
  38. </td>
  39. </tr>
  40. </table>
  41. </fieldset>
  42. }