CourseView.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. 
  2. @{
  3. ViewBag.Title = "Course";
  4. }
  5. <link rel="stylesheet" href="~/Content/assets/css/library.css" />
  6. <link rel="stylesheet" href="~/Content/assets/css/home-voca.css" />
  7. @*@using NEducation.NEduService;*@
  8. @using NEducation.Code;
  9. @using NEducation.Content.Texts;
  10. @using NEducation.Controllers;
  11. @model NEducation.Models.CourseModel
  12. @section navMenu{
  13. @{
  14. if (Model.courseType == UtilsController.Constant.VN_LISTEN || Model.courseType == UtilsController.Constant.LAO_LISTEN)
  15. {
  16. <a href="/Home/" class="nav-link">@Lang.Home</a>
  17. <a href="/Home/EnglishIndex/" class="nav-link">@Lang.english</a>
  18. <a href="/Home/VietnameseIndex/" class="nav-link">@Lang.vietnamese</a>
  19. <a href="/Home/LaosIndex/" class="nav-link">@Lang.laos</a>
  20. <div class="dropdown nav-link">
  21. <button onclick="myFunction()" class="dropbtn">
  22. E-Library
  23. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  24. </button>
  25. <div id="myDropdown" class="dropdown-content">
  26. <a href="/Ebook/">@Lang.Ebook</a>
  27. <a href="/Ebook/Video">Children's Video</a>
  28. </div>
  29. </div>
  30. }
  31. else
  32. {
  33. <a href="/Home/" class="nav-link">@Lang.Home</a>
  34. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_VOCABULARY" class="nav-link">@Lang.Vocabulary</a>
  35. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_GRAMMAR" class="nav-link">@Lang.Grammar</a>
  36. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_LISTEN" class="nav-link">@Lang.Listening</a>
  37. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_MINIGAME" class="nav-link">@Lang.MiniGame</a>
  38. }
  39. }
  40. }
  41. @section menu{
  42. @{
  43. if (Model.courseType == UtilsController.Constant.VN_LISTEN || Model.courseType == UtilsController.Constant.LAO_LISTEN)
  44. {
  45. <a href="/Home/" class="header-menu-link ">@Lang.Home</a>
  46. <a href="/Home/EnglishIndex/" class="header-menu-link ">@Lang.english</a>
  47. <a href="/Home/VietnameseIndex/" class="header-menu-link ">@Lang.vietnamese</a>
  48. <a href="/Home/LaosIndex/" class="header-menu-link ">@Lang.laos</a>
  49. @*<a href="/Ebook/" class="header-menu-link ">
  50. @Lang.Ebook
  51. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  52. </a>*@
  53. <li class="menu-item-has-children header-menu-link ">
  54. <a href="#" class="">
  55. E-Library
  56. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  57. </a>
  58. <ul class="" style=" margin-left: 20px;">
  59. <li><a href="/Ebook/">@Lang.Ebook</a></li>
  60. <li><a href="/Ebook/Video">Children's Video</a></li>
  61. </ul>
  62. </li>
  63. }
  64. else
  65. {
  66. <a href="/Home/" class="header-menu-link ">@Lang.Home</a>
  67. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_VOCABULARY" class="header-menu-link ">@Lang.Vocabulary</a>
  68. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_GRAMMAR" class="header-menu-link ">@Lang.Grammar</a>
  69. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_LISTEN" class="header-menu-link ">@Lang.Listening</a>
  70. <a href="/Common/Course?courseType=@UtilsController.Constant.EN_MINIGAME" class="nav-link">@Lang.MiniGame</a>
  71. <li class="menu-item-has-children header-menu-link ">
  72. <a href="#" class="">
  73. E-Library
  74. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  75. </a>
  76. <ul class="" style=" margin-left: 20px;">
  77. <li><a href="/Ebook/">@Lang.Ebook</a></li>
  78. <li><a href="/Ebook/Video">Children's Video</a></li>
  79. </ul>
  80. </li>
  81. }
  82. }
  83. }
  84. <div class="library-main-container">
  85. @*<a href="https://pronunciation.voca.vn" target="_blank">
  86. <img style="width: 100%;" alt="voca promotion" src="~/Content/assets/imgs/ra-mat-voca-pro.jpg" />
  87. </a>*@
  88. <!-- HEADER -->
  89. <div class="library-header">
  90. <div class="library-cover">
  91. <div class="cover-center">
  92. @*<div class="row">
  93. <div class="col-xs-12 col-sm-5">*@
  94. <div>
  95. <div>
  96. @if (Model.courseType == "1")
  97. {
  98. <h1 class="library-title">
  99. MEDU VOCABULARY
  100. @*BIBLIOTHÈQUE DE VOCABULAIRE DE NEDU*@
  101. </h1>
  102. <h2 class="library-description">
  103. @*Không Ngôn Ngữ*@
  104. @*@Lang.Common_des_2*@
  105. Common_des_2
  106. @*Hơn 100 khóa Apprendre l'anglais Vocabulaire theo chủ đề dành cho mọi đối tượng.*@
  107. @*Plus de 100 cours de vocabulaire anglais classifié selon des sujets pour vous*@
  108. </h2>
  109. }
  110. else if (Model.courseType == "2")
  111. {
  112. <h1 class="library-title">
  113. MEDU GRAMMAR
  114. @*NEDU COURS DE GRAMMAIR*@
  115. </h1>
  116. <h2 class="library-description">
  117. @*Thư viện khóa học ngữ pháp dành cho mọi đối tượng.*@
  118. @Lang.GrammarSystem
  119. @*Biblothèque de cours de grammaire pour tous*@
  120. </h2>
  121. }
  122. else if (Model.courseType == "3")
  123. {
  124. <h1 class="library-title">
  125. MEDU LISTENING
  126. @*Listening Courses*@
  127. </h1>
  128. <h2 class="library-description">
  129. @Lang.SpeakingSystem
  130. @*Bao gồm các khóa học nghe tốt nhất cho bạn.*@
  131. </h2>
  132. }
  133. else if (Model.courseType == "10")
  134. {
  135. <span>MiniGame</span>
  136. }
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <!-- BODY -->
  143. <div class="library-body">
  144. <div class="body-cover">
  145. <!-- List product -->
  146. <div class="library-list-product">
  147. @{
  148. if (Model.category.listCourse != null)
  149. {
  150. foreach (Course course in Model.category.listCourse)
  151. {
  152. <!--if (Model.courseType == "10")
  153. {
  154. <div class="title">MINIGAME</div>
  155. <div class="countdown">
  156. <div>
  157. <span id="days">28</span>
  158. DAYS
  159. </div>
  160. <div>
  161. <span id="hours">22</span>
  162. HOURS
  163. </div>
  164. <div>
  165. <span id="minutes">36</span>
  166. MINUTES
  167. </div>
  168. </div>
  169. <div class="tabs">
  170. <button class="tab-button active" onclick="showTab('ranking')">Ranking</button>
  171. <button class="tab-button" onclick="showTab('howToPlay')">How To Play</button>
  172. </div>
  173. <div id="ranking" class="tab-content active">
  174. <p>1. The minigame starts at 10:00 AM every Sunday.</p>
  175. <p>2. You have 15 seconds to think and give your answer.</p>-->
  176. <!-- Thêm các mục khác -->
  177. <!--</div>
  178. <div id="howToPlay" class="tab-content">
  179. <p>Hướng dẫn chơi game...</p>
  180. </div>
  181. <script>
  182. function showTab(tabId) {
  183. document.querySelectorAll('.tab-content').forEach(tab => {
  184. tab.classList.remove('active');
  185. });
  186. document.querySelectorAll('.tab-button').forEach(button => {
  187. button.classList.remove('active');
  188. });
  189. document.getElementById(tabId).classList.add('active');
  190. document.querySelector(`.tab-button[onclick="showTab('${tabId}')"]`).classList.add('active');
  191. }
  192. </script>
  193. }
  194. else
  195. {-->
  196. <div class="library-product">
  197. <a href="@Url.Action("Lesson", "Common", new { courseId = course.id, courseType=Model.courseType })" class="library-product-cover">
  198. <img class="product-image" alt="product" src="@course.iconPath" />
  199. <p class="product-name">@course.name</p>
  200. <p class="product-description">@course.description</p>
  201. </a>
  202. </div>
  203. //}
  204. }
  205. }
  206. }
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <script src="~/Content/assets/js/library.js" type="text/javascript"></script>