@using Pulsa.Texts @using WebPortal.Models @using WebPortal.Controllers @using WebPortal.Extensions @using WebService @using Microsoft.AspNetCore.Http @{ //wsLoginResponse userInfo = Context.Session.GetComplexData("userInfo"); String msisdn = Context.Session.GetString("account"); String isdn = ""; if (msisdn != null && msisdn.Length > BaseController.CountryCode.Length) { isdn = msisdn.Substring(BaseController.CountryCode.Length); } String productType = ViewBag.productType; String noMenu = ViewBag.noMenu; //if (Model != null) //{ // productType = Model.productType; //} bannerObj[] listBanner = Context.Session.GetComplexData("listBanner"); int bannerType = 0; bannerObj banDf = null; string lang = BaseController.getCurrentLang(); } @if (listBanner != null && listBanner.Length > 0) { foreach (var banner in listBanner) { if (banner.imgBanner != null || banner.imgAvatar != null) { if (banner.imgAvatar != null) { if (banner.description != null) { bannerType = 4; } else { bannerType = 1; } banDf = banner; break; } else if (banner.description != null) { bannerType = 2; banDf = banner; break; } } else if (banner.imgBackground != null) { bannerType = 3; banDf = banner; break; } } } @if (bannerType == 3) { // full background } else {
@if (banDf != null && banDf.imgBackground != null && (bannerType == 1 || bannerType == 2)) { } @if (bannerType == 1 || bannerType == 2 || bannerType == 0 || bannerType == 4) {
@if (banDf != null) { if (bannerType == 1) {
@**@ avatar
} else if (bannerType == 4) { if (listBanner != null && listBanner.Length > 0 && (listBanner[0].imgBanner != null)) {
avatar

@banDf.description

@Lang.LearnMore
} else {
avatar

@banDf.description

@Lang.LearnMore
} } else if (bannerType == 2) {
@(lang == "1" ? BaseController.TopNo1 : BaseController.TopNo0)

@banDf.nodeName

@banDf.description

@Lang.LearnMore
} } @if (listBanner != null && listBanner.Length > 0 && listBanner[0].imgBanner != null) {
}
}
}