Results.cshtml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. @{
  2. ViewData["Title"] = "Results";
  3. Layout = "~/Views/Shared/_Layout.cshtml";
  4. }
  5. @using LotteryWebApp.Languages;
  6. @using LotteryWebApp.Controllers;
  7. @using LotteryWebApp.Common;
  8. @using System.Globalization;
  9. @model HomeResults_ViewModel
  10. @{
  11. DateTime oDateFrom = DateTime.ParseExact(Model.fromDate, "dd/MM/yyyy", CultureInfo.InvariantCulture);
  12. String dateFrom = oDateFrom.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);
  13. DateTime oDateTo = DateTime.ParseExact(Model.toDate, "dd/MM/yyyy", CultureInfo.InvariantCulture);
  14. String dateTo = oDateTo.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);
  15. }
  16. <div class="app-content content" style="position:relative">
  17. <div class="card-title text-center ">
  18. <div class="news-button-header-container" style="text-align: start; margin: 0 10px;">
  19. @await Component.InvokeAsync("SmallHeader", new { title = @Lang.results.ToUpper()})
  20. </div>
  21. </div>
  22. <div class="content-wrapper" style="padding:2px;">
  23. <div class="content-body">
  24. <section class="flexbox-container">
  25. <div class="content-wrapper buy-ticket-container" style="margin-top:35px;">
  26. <div class="">
  27. <div class="result-date-box">
  28. <fieldset class="form-group position-relative has-icon-left">
  29. <label>@Lang.from</label>
  30. <input type="date" class="form-control small-input-box" id="fromDate" name="fromDate" required value="@dateFrom">
  31. </fieldset>
  32. </div>
  33. <div class=" result-date-box">
  34. <fieldset class="form-group position-relative has-icon-left">
  35. <label>@Lang.to</label>
  36. <input type="date" class="form-control small-input-box" id="toDate" name="toDate" required value="@dateTo">
  37. </fieldset>
  38. </div>
  39. <div class=" result-date-box-button">
  40. <button type="button" class="btn btn-outline-primary adv-button btn-block login-button-action small-input-box"
  41. onclick="getResultTermHistoryData(@Model.termType)">
  42. @Lang.search.ToUpper()
  43. </button>
  44. </div>
  45. </div>
  46. <div class="row tabs-style" style=" margin-top: 30px !important;">
  47. <div class="col-4 tab-style">
  48. <input type="radio" id="tab-1" name="tab-group-1" @(Model.termType == Constants.NEW_YORK_BOLET_CODE ? "checked" : "")>
  49. <label for="tab-1">
  50. <a style="font-size: 11px;" href="@ViewBag.MyConfig.MyValue/Home/Results?termType=@Constants.NEW_YORK_BOLET_CODE"
  51. class="@(Model.termType == Constants.NEW_YORK_BOLET_CODE ? "active-tab" : "")">
  52. <img style="height: 30px;" src="~/img/logo-deebef36ed9bb3f8e07e8492eecbb7ae (1) 1.png" />
  53. NEW YORK
  54. </a>
  55. </label>
  56. </div>
  57. <div class="col-4 tab-style">
  58. <input type="radio" id="tab-2" name="tab-group-1" @(Model.termType == Constants.FLORIDA_BOLET_CODE ? "checked" : "")>
  59. <label for="tab-2">
  60. <a style="font-size: 11px;" href="@ViewBag.MyConfig.MyValue/Home/Results?termType=@Constants.FLORIDA_BOLET_CODE"
  61. class="@(Model.termType == Constants.FLORIDA_BOLET_CODE ? "active-tab" : "")">
  62. <img style="height: 30px;" src="~/img/siteLogo 2.png" />
  63. FLORIDA
  64. </a>
  65. </label>
  66. </div>
  67. <div class="col-4 tab-style">
  68. <input type="radio" id="tab-2" name="tab-group-1" @(Model.termType == Constants.BOULCHANS_CODE ? "checked" : "")>
  69. <label for="tab-2">
  70. <a style="font-size: 11px;" href="@ViewBag.MyConfig.MyValue/Home/Results?termType=@Constants.BOULCHANS_CODE"
  71. class="@(Model.termType == Constants.BOULCHANS_CODE ? "active-tab" : "")">
  72. @*<img style="height: 30px;" src="~/img/siteLogo 2.png" />*@
  73. BOULCHANS
  74. </a>
  75. </label>
  76. </div>
  77. </div>
  78. <div class="result-form-all">
  79. <div class="result-form-container">
  80. <div class="row result-form-box">
  81. <div class="col-3" style="border-right:1px solid white;">
  82. <h5>@Lang.time</h5>
  83. </div>
  84. <div class="col-9">
  85. <h5>@Lang.results</h5>
  86. </div>
  87. </div>
  88. </div>
  89. <div id="term-result-history-data">
  90. </div>
  91. <script>
  92. getResultTermHistoryData(@Model.termType);
  93. </script>
  94. </div>
  95. </div>
  96. </section>
  97. </div>
  98. </div>
  99. </div>
  100. <script>
  101. stopLoading();
  102. </script>