Advertisement
Lihin96

Confirmation.cshtml

Apr 7th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. @model MRTAssignment.Models.PassengerModel
  2.  
  3. @{
  4. Layout = null;
  5. }
  6.  
  7. <!DOCTYPE html>
  8.  
  9. <html>
  10. <head>
  11. <meta name="viewport" content="width=device-width" />
  12. <title>Confirmation</title>
  13. <script src="~/Scripts/jquery-3.3.1.min.js"></script>
  14. <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
  15. <script src="~/Scripts/jquery.validate.min.js"></script>
  16. <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
  17. </head>
  18. <body style="font-family:Calibri;">
  19. <div align="center">
  20. <h3>Confirmation</h3>
  21. <table>
  22. <tr><td>Current Station</td><td>:</td><td>@ViewBag.stationFrom</td></tr>
  23. <tr><td>Destination</td><td>:</td><td>@ViewBag.stationTo</td></tr>
  24. <tr><td>Price per Ticket</td><td>:</td><td>@ViewBag.Charge.ToString("RM 0.00")</td></tr>
  25. <tr><td>Ticket Type</td><td>:</td><td>@ViewBag.TicketType</td></tr>
  26. <tr><td>Ticket Quantity</td><td>:</td><td>@ViewBag.Qty</td></tr>
  27. <tr><td>Total</td><td>:</td><td>@ViewBag.TotalPay.ToString("RM 0.00")</td></tr>
  28. @if (ViewBag.Discount != null)
  29. {
  30. <tr><td>Discount</td><td>:</td><td>@ViewBag.Discount</td></tr>
  31. <tr><td><b>Total Amount to Pay</b></td><td>:</td><td><b>@ViewBag.NewTotalPay.ToString("RM 0.00")</b></td></tr>
  32. }
  33. </table>
  34.  
  35. @using (Html.BeginForm())
  36. {
  37. <br />
  38. <table>
  39. <tr>
  40. <td>
  41. <div align="center">
  42. <h4>Continue purchasing?</h4>
  43. Please input your details.
  44. </div>
  45. <table>
  46. <tr><td>Name:</td><td>@Html.TextBoxFor(x => x.name)</td></tr>
  47. <tr><td>E-mail:</td><td>@Html.TextBoxFor(x => x.email)</td></tr>
  48. <tr><td>ID Card:</td><td>@Html.TextBoxFor(x => x.idCard)</td></tr>
  49. <tr><td>Passport No:</td><td>@Html.TextBoxFor(x => x.passportNo)</td></tr>
  50. </table>
  51. </td>
  52. </tr>
  53. </table>
  54.  
  55. //Ticket Price: @Html.TextBoxFor(x => x.ticketPrice, new { id = "ticketPrice", Value = @ViewBag.Charge })
  56. @Html.HiddenFor(x => x.stationFrom, new { id = "stationFrom", Value = ViewBag.StationFrom })
  57. @Html.HiddenFor(x => x.stationTo, new { id = "stationTo", Value = ViewBag.StationTo })
  58. @Html.HiddenFor(x => x.ticketType, new { id = "ticketType", Value = ViewBag.TicketType })
  59. @Html.HiddenFor(x => x.ticketQty, new { id = "ticketQty", Value = ViewBag.Qty })
  60. @Html.HiddenFor(x => x.ticketPrice, new { id = "ticketPrice", Value = ViewBag.NewTotalPay })
  61. @Html.HiddenFor(x => x.passengerType, new { id = "passengerType", Value = ViewBag.PassengerType })
  62.  
  63. //@Html.Hidden(new { id = "total", Value = ViewBag.Charge})
  64.  
  65. <p><input type="submit" value="Proceed" formaction="@Url.Action("Result")" /></p>
  66. }
  67. </div>
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement