@{ ViewBag.Title = "Lesson"; } @using NEducation.Content.Texts @**@ @*@using NEducation.Content.Texts; @using NEducation.NEduService;*@ @using NEducation.Controllers @using NEducation.Code @model NEducation.Models.LessonModel @section navMenu{ @{ if (Model.courseType == UtilsController.Constant.VN_LISTEN || Model.courseType == UtilsController.Constant.LAO_LISTEN) { @Lang.Home @Lang.english @Lang.vietnamese @Lang.laos @* @Lang.Ebook *@ @Lang.MiniGame } else { @Lang.Home @Lang.Vocabulary @Lang.Grammar @Lang.Listening @Lang.MiniGame } } } @section menu{ @{ if (Model.courseType == UtilsController.Constant.VN_LISTEN || Model.courseType == UtilsController.Constant.LAO_LISTEN) { @Lang.Home @Lang.english @Lang.vietnamese @Lang.laos @* @Lang.Ebook *@ } else { @Lang.Home @Lang.Vocabulary @Lang.Grammar @Lang.Listening @Lang.MiniGame @* @Lang.Ebook *@ } } } @{ var controllerLearning = ""; var msisdn = ""; var displaySub = ""; var displayReg = ""; var displayBuy = ""; var bought = false; var signup = false; //var subscribed = false; var status = ""; var subscribeTxt = ""; msisdn = Session["msisdn"] as string; if (msisdn == "" || msisdn == null) { msisdn = "false"; } // check controller for learning controllerLearning = UtilsController.GetCategoryCode(Model.course.categoryId) == "VOCABULARY" ? "Voca" : UtilsController.GetCategoryCode(Model.course.categoryId) == "GRAMMAR" ? "Grammar" : UtilsController.GetCategoryCode(Model.course.categoryId) == "LISTEN" ? "Listening" : "Listening"; // disable buycourse Session["account"] is null if (Session["profile"] != null) { signup = true; displaySub = "none"; displayBuy = Model.course.isLearn == "-1" ? "inherit" : "none"; bought = Model.course.isLearn == "-1" ? false : true; displayReg = Session["isSub"] as string == "true" ? "none" : "inherit"; } else { displayBuy = "none"; displaySub = "none"; displayReg = "inherit"; } }
Prepare For National Exam

@Model.course.name

@Model.course.description

@Html.AntiForgeryToken() @Lang.SignUp @* Buy (@Model.course.fee HTG) *@ @* @Lang.Buy *@ @{ if (msisdn != "false") { @* @Lang.Subscriber *@ } else { @Lang.Subscriber } }
@for (int i = 0; i < Model.course.listLesson.Count; i++) { Lesson lesson = Model.course.listLesson[i];
@lesson.name

@lesson.name

@if (bought || (i == 0 && signup)) { @Lang.LearnNow } else if (!signup) { @Lang.PleaseSignIn } else { @Lang.Locked }
}
@Html.Raw(Model.course.description)