Error compiling template "Designs/Fusion/_parsed/LoginwithImpersonation.parsed.cshtml"
Line 1594: 'Dynamicweb.Security.UserManagement.User' does not contain a definition for 'UserID' and no extension method 'UserID' accepting a first argument of type 'Dynamicweb.Security.UserManagement.User' could be found (are you missing a using directive or an assembly reference?)

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering; 3 @using System.Text.RegularExpressions; 4 @using System.Web; 5 @using Dynamicweb.Environment; 6 7 @helper RenderScripts(string location) 8 { 9 //possible location values: header, body, footer; 10 //posible scope: tracking, marketing, preferences, functional; 11 //possible cookie option values; 12 //no cookies = 0; 13 //functional only=1; 14 //all=2; 15 //marketing = 3; 16 //tracking = 4; 17 //preferences = 5; 18 //Item.Area.Tracking.Code; 19 //Item.Area.Tracking.Location; 20 //Item.Area.Tracking.Scope; 21 //cookie=Dynamicweb.CookieOptInLevel; 22 //Functional; 23 //None; 24 //All; 25 CookieOptInLevel level = CookieManager.GetCookieOptInLevel(); 26 int x = (int)level; 27 string[] allowedFunctional = {"functional"}; 28 string[] allowedTracking = {"functional","tracking"}; 29 string[] allowedMarketing = {"functional","marketing","tracking"}; 30 string[] allowedScope = {"functional"}; 31 switch(x) 32 { 33 case 0: 34 allowedScope = allowedFunctional; 35 break; 36 case 1: 37 allowedScope = allowedTracking; 38 break; 39 case 2: 40 allowedScope = allowedMarketing; 41 break; 42 default: 43 allowedScope = allowedFunctional; 44 break; 45 } 46 47 if(!string.IsNullOrEmpty(location) && x > 0){ 48 var trackingScripts = GetLoop("Item.Area.Tracking").Where(a=>a.GetString("Item.Area.Tracking.Location") == location); 49 trackingScripts = trackingScripts.Where(z=>allowedScope.Any(y=>y == z.GetString("Item.Area.Tracking.Scope"))); 50 foreach(var trackingScript in trackingScripts){ 51 <text>@trackingScript.GetString("Item.Area.Tracking.Code")</text> 52 } 53 } 54 55 56 } 57 58 59 @functions { 60 private string CommaSplittedString(string CommaSplittedString, string NewString) 61 { 62 63 if (!string.IsNullOrEmpty(CommaSplittedString)) 64 { 65 CommaSplittedString += ", "; 66 } 67 CommaSplittedString = NewString; 68 69 return CommaSplittedString; 70 } 71 public static string StripHtml(string source) 72 { 73 return Regex.Replace(source, "<.*?>", string.Empty); 74 } 75 76 77 78 79 80 81 82 83 } 84 <!DOCTYPE html> 85 <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> 86 <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> 87 <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> 88 <!--[if gt IE 8]> <html class="no-js"> <![endif]--> 89 90 <head> 91 @using Dynamicweb; 92 @using Dynamicweb.Ecommerce.Products; 93 @using Dynamicweb.Security.UserManagement; 94 @using Dynamicweb.Modules.UserManagement; 95 @using Dynamicweb.Frontend; 96 @using System.Web; 97 @using System; 98 @{ 99 var serviceLocator = Dynamicweb.Extensibility.ServiceLocator.Current; 100 var pageService = serviceLocator.GetInstance<Dynamicweb.Content.IPageService>(); 101 102 var DisplayOptions = ""; 103 104 if (!string.IsNullOrEmpty(GetGlobalValue("Global:Item.Page.DisplayOptions").ToString())){ 105 DisplayOptions = (GetGlobalValue("Global:Item.Page.DisplayOptions").ToString() == "wide") ? "container-wide" : ""; 106 } 107 var pageURL = "/Default.aspx?" + System.Web.HttpContext.Current.Request.QueryString; 108 109 110 var currentUserAccess = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 111 var user = currentUserAccess; 112 var currentUser = currentUserAccess; 113 bool userIsLoggedIn = currentUser != null; 114 115 string customerNo = userIsLoggedIn ? currentUser.CustomerNumber : ""; 116 117 @*var galleryType = Pageview.Area.Item["Gallery"]; 118 var cartBehaviour = Pageview.Area.Item["CartBehaviour"]; 119 var cart_page_id = Pageview.Area.Item["CartPage_ID"];*@ 120 121 var area = PageView.Current().Area; 122 123 @*var galleryType = PageView.Current().Area.Item["Gallery"]; 124 var cartBehaviour = PageView.Current().Area.Item["CartBehaviour"]; 125 var cart_page_id = PageView.Current().Area.Item["CartPage_ID"];*@ 126 127 @*var currentUser = Dynamicweb.Frontend.PageView.Current().User; 128 var currentUserAccess = Dynamicweb.Modules.UserManagement.User.GetCurrentUser(); 129 var firstPageID = Pageview.Area.get_Value("AreaFirstPage");*@ 130 131 //var firstPageID = Dynamicweb.Frontend.PageView.Current().Area.AreaFirstPage; //PageView.Current().Area.FirstPage; 132 var firstPageID = pageService.GetFirstPageForArea(area.ID); 133 134 var currentPageID = GetGlobalValue("Global:Page.ID"); 135 136 string cartPage = "13"; 137 138 //Rolul userului autentificat 139 int customerRole = -1; 140 141 142 //customer numberul userului autentificat 143 //string customerNo = currentUser.LoggedIn ? currentUser.CustomerNumber.ToString() : null; 144 //string customerNo = currentUserAccess != null ? currentUserAccess.CustomerNumber : null; 145 146 //Id-ul nodului parinte pentru navigatie 147 var navigationParentId = !string.IsNullOrEmpty(customerNo) ? 17 : 17; 148 149 //determina daca navigatia este colapsata sau este vizibila implicit 150 var navigationCollapsed = "category-collapsed"; 151 if (!string.IsNullOrEmpty(GetString("Item.Page.DisplayOptions.Value"))){ 152 navigationCollapsed = GetString("Item.Page.DisplayOptions.Value"); 153 } 154 155 //determina fisierul XSLT folosit pentru randarea navigatiei 156 @*var navigationXSLT = !string.IsNullOrEmpty(customerNo) ? "CategoriesNavigationB2B.xslt" : "CategoriesNavigationB2B.xslt"; 157 var navigationMobileXSLT = !string.IsNullOrEmpty(customerNo) ? "CategoriesNavigationMobileB2B-v2.xslt" : "CategoriesNavigationMobileB2B-v2.xslt";*@ 158 159 //determina daca afisam navigatie pe coloana din stanga sau nu 160 var navigationColumn = 3; 161 162 //determina numarul de coloane al zonei de content 163 var navigationContent = 9; 164 165 //defineste obiect general de tip customer settings 166 //var customerSettings = !string.IsNullOrEmpty(customerNo) ? BrandFusion.Dw.Austral.eCommerce.CustomerFacade.Get(customerNo) : null; 167 var customerSettings = !string.IsNullOrEmpty(customerNo) ? BrandFusion.Dw.Austral.eCommerce.CustomerFacade.Get(customerNo,"aus") : null; 168 169 //Limita lunara totala pentru comenzi 170 var customerMonthlyLimit = customerSettings != null ? customerSettings.MonthlyBudget.GetValueOrDefault() : 0; 171 172 //Ziua de inceput pentru plasarea comenzilor 173 var customerOrderStart = customerSettings != null ? customerSettings.OrderStart.GetValueOrDefault() : 0; 174 175 //Ziua de sfarsit pentru plasarea comenzilor 176 var customerOrderEnd = customerSettings != null ? customerSettings.OrderEnd.GetValueOrDefault() : 0; 177 178 //Ziua de inceput pentru aprobarea comenzilor 179 var customerApprovalStart = customerSettings != null ? customerSettings.ApprovalStart.GetValueOrDefault() : 0; 180 181 //Ziua de sfarsit pentru aprobarea comenzilor 182 var customerApprovalEnd = customerSettings != null ? customerSettings.ApprovalEnd.GetValueOrDefault() : 0; 183 184 //Valoare minima comanda 185 decimal customerMinimumOrderValue = customerSettings != null ? customerSettings.MinimumOrderValue.GetValueOrDefault() : 0; 186 187 //Mesaj pentru comanda minima 188 string customerMinimumOrderMessage = customerSettings != null ? customerSettings.MinimumOrderValueMessage : ""; 189 190 //Ascunde preturile pentru user 191 bool customerHidePrices = false;//customerSettings != null ? customerSettings.HidePrices.GetValueOrDefault() : false; 192 193 194 int todayDay = (int)DateTime.Now.Day; 195 196 197 bool orderAllow = true ; 198 bool approveAllow = true ; 199 200 if (todayDay < customerOrderStart || todayDay > customerOrderEnd){ 201 orderAllow = false; 202 } 203 if (todayDay < customerApprovalStart || todayDay > customerApprovalEnd){ 204 approveAllow = false; 205 } 206 207 208 209 string customerListGroupID = null; 210 211 if(!string.IsNullOrEmpty(customerNo)){ 212 213 customerListGroupID= BrandFusion.Dw.Austral.eCommerce.GroupFacade.GetGroupId(customerNo); 214 customerRole = BrandFusion.Dw.Austral.eCommerce.UserFacade.GetRole(currentUserAccess).GetValueOrDefault(); 215 } 216 217 218 HttpContext.Current.Session["userListView"] = "box"; 219 220 if(System.Web.HttpContext.Current.Request["view"] != null){ 221 HttpContext.Current.Session["userListView"] = System.Web.HttpContext.Current.Request["view"]; 222 } 223 224 string userListView = HttpContext.Current.Session["userListView"].ToString(); 225 226 227 } 228 229 230 <title>@GetValue("Title")</title> 231 @GetValue("MetaTags") 232 @GetValue("CopyRightNotice") 233 234 235 <meta charset="utf-8"> 236 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 237 238 <meta name="viewport" content="width=device-width, initial-scale=1"> 239 240 @foreach (LoopItem i in GetLoop("Item.Area.Groups")) { 241 if (i.GetString("Item.Area.Group.Name") == "Header") { 242 foreach (LoopItem j in i.GetLoop("Item.Area.Group.Fields")) { 243 <meta name='@j.GetString("Item.Area.Field.Name")' content='@j.GetString("Item.Area.Field.Value")'> 244 } 245 } 246 } 247 @RenderSnippet("Meta") 248 249 <link rel="shortcut icon" href="/Files/Templates/Designs/Fusion/assets/img/favicon.ico"> 250 <link href='//fonts.googleapis.com/css?family=Roboto+Slab:400,300,100,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'> 251 <link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'> 252 <link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext' rel='stylesheet' type='text/css'> 253 <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,600,700,900,300&subset=latin,latin-ext' rel='stylesheet' type='text/css'> 254 <link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'> 255 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css"> 256 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> 257 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> 258 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.0/flexslider.min.css"> 259 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.css"> 260 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/default-skin/default-skin.min.css"> 261 <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css"> 262 263 264 @* 265 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Fusion/assets/css/main.css"> 266 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Fusion/assets/css/fix.css"> 267 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Fusion/assets/css/main-v2.css"> 268 *@ 269 270 271 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Fusion/assets/css/main-v3.css"> 272 273 274 @* To be deleted *@ 275 <link rel="stylesheet" href="/Files/Templates/Designs/Fusion/assets/css/fix-mobile.css"> 276 <link rel="stylesheet" href="/Files/Templates/Designs/Fusion/assets/css/fixCss.css"> 277 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Fusion/assets/css/fix-transition.css"> 278 279 280 281 282 <!--[if lt IE 9]> 283 <link rel="stylesheet" href="/Files/Templates/Designs/Fusion/assets/css/ie.css" /> 284 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/html5shiv.min.js"></script> 285 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/respond.min.js"></script> 286 <![endif]--> 287 288 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/jquery-1.12.3.min.js"></script> 289 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/modernizr-2.7.1.min.js"></script> 290 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/modernizr-custom.js"></script> 291 292 @RenderSnippet("Head") 293 294 @RenderScripts("header") 295 296 @if(string.IsNullOrEmpty(customerNo)) { 297 <!--Start of Zopim Live Chat Script--> 298 <script type="text/javascript"> 299 window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s= 300 d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. 301 _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8'); 302 $.src='//v2.zopim.com/?1DEBG92c1wNjRsFQMlxrAGvS8zlr3Ujv';z.t=+new Date;$. 303 type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); 304 </script> 305 <!--End of Zopim Live Chat Script--> 306 } 307 <meta name="google-site-verification" content="RC3gdwFLyrYziMTNmlGB9YvN-n-7IDIGCY2rOHAfKQk"> 308 <meta name="google-site-verification" content="HwvHBJZdAxmQVtH4XGXNG_Bl1YmafpX8k7RVNF_v2mo"> 309 @GetValue("Stylesheets") 310 @GetValue("Javascripts") 311 </head> 312 <body data-pageid='@GetGlobalValue("Global:Page.ID")' data-productpage='@GetValue("Item.Area.Catalog_Page")' data-paragraph='@GetValue("Item.Area.InstantSearch_Paragraph")' data-areaid='@GetGlobalValue("Global:Area.ID")'> 313 @RenderScripts("body") 314 <!--[if lt IE 7]> 315 <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> 316 <![endif]--> 317 318 @* @if (Pageview.Device == Dynamicweb.Frontend.PageView.DeviceType.Mobile || Pageview.Device == Dynamicweb.Frontend.PageView.DeviceType.Tablet) { *@ 319 <div class="header-mobile"> 320 <div class="col-xs-12"> 321 <div class="row"> 322 <div class="logo col-xs-6"> 323 <a href="/"> 324 <img src='@GetValue("Item.Area.Logo")' alt='@GetValue("Item.Area.Site_Name")'> 325 </a> 326 </div> 327 <div class="mobile-nav-trigger col-xs-6"> 328 @{ 329 330 System.Globalization.TextInfo myTIMobile = new System.Globalization.CultureInfo("en-US", false).TextInfo; 331 @*string userMobile = Dynamicweb.Frontend.PageView.Current().User.UserName; 332 string userProfileNameMobile = Dynamicweb.Frontend.PageView.Current().User.Name; 333 string userCustomerNumberMobile = Dynamicweb.Frontend.PageView.Current().User.CustomerNumber;*@ 334 var userMobile = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 335 var userProfileNameMobile = userMobile; 336 bool userMobileIsLoggedIn = userProfileNameMobile != null; 337 338 string userCustomerNumberMobile = userIsLoggedIn && currentUser.CustomerNumber != null ? currentUser.CustomerNumber.ToString() : null; 339 340 341 342 //string userCustomerNumberMobile = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser().CustomerNumber; 343 344 345 string userAccountLinkMobile = "/Default.aspx?ID=9"; 346 string userCartLinkMobile = "/Default.aspx?ID=13"; 347 348 if (!string.IsNullOrEmpty(userCustomerNumberMobile)) { 349 userAccountLinkMobile = "/Default.aspx?ID=170"; 350 userCartLinkMobile = "/Default.aspx?ID=42"; 351 } 352 353 } 354 355 356 357 <button type="button" id="mobile-nav-button"><i class="fa fa-bars"></i></button> 358 <div class="minicart"> 359 <a href="@userCartLinkMobile"> 360 <i class="ion-android-cart"></i> 361 @if (!@GetBoolean("Ecom:Order.IsEmpty")) { 362 <span data-minicart-update="">(0)</span> 363 } else { 364 <span data-minicart-update="">Cosul tau este gol</span> 365 } 366 367 </a> 368 </div> 369 370 @*@if(string.IsNullOrEmpty(userMobile)) {*@ 371 @if(userMobile == null) { 372 <button type="button" class="mobile-header-overlay-trigger"><i class="fa fa-user"></i></button> 373 <div class="mobile-header-overlay animated"> 374 <a href="/Default.aspx?ID=11" class="btn-main animated">@Translate("Intra in cont","Intra in cont")</a> 375 @*<a href="/Default.aspx?ID=10" class="btn-main animated">@Translate("Creeaza cont","Creeaza cont")</a>*@ 376 <button type="button" class="overlay-close"><i class="fa fa-close"></i> @Translate("Inchide","Inchide")</button> 377 </div> 378 379 } else { 380 <button type="button" class="mobile-header-overlay-trigger"><i class="fa fa-user"></i></button> 381 <div class="mobile-header-overlay animated"> 382 <a href="/Admin/Public/ExtranetLogoff.aspx" class="btn-main animated"><i class="fa fa-unlock-alt"></i> @Translate("Logout","Logout")</a> 383 <a href="@userAccountLinkMobile" class="btn-main animated"><i class="fa fa-user"></i> @Translate("Contul meu","Contul meu")</a> 384 <button type="button" class="overlay-close"><i class="fa fa-close"></i> @Translate("Inchide","Inchide")</button> 385 </div> 386 387 } 388 389 390 </div> 391 @if(!string.IsNullOrEmpty(customerNo)) { 392 <div class="search-mobile col-xs-12"><form action="/Default.aspx?ID=127" method="GET"> 393 <div class="form-group"> 394 <input type="text" name="q" id="q-mobile" autocomplete="off" spellcheck="false" placeholder='@Translate("search", "Cauta dupa cod sau nume...")' class="form-control"> 395 @if(!string.IsNullOrEmpty(customerNo) && !string.IsNullOrEmpty(customerListGroupID)){ 396 <input type="hidden" name="CustomerNumber" id="CustomerNumber" value="@customerNo"> 397 } 398 <button type="submit"><i class="ion-ios-search-strong"></i></button> 399 <div class="instant_search"></div> 400 </div> 401 </form></div> 402 } 403 </div> 404 </div> 405 </div> 406 <div id="mobile-navigation-overlay"> 407 <button type="button" class="overlay-close"><i class="fa fa-close"></i> @Translate("Inchide","Inchide")</button> 408 <div class="content-scrollable"> 409 @if(!string.IsNullOrEmpty(customerNo)) { 410 <ul class="root"> 411 <li> 412 <a href="#">Categorii de produse</a> 413 @RenderNavigation(new { 414 template = "CategoriesNavigationMobileB2B-v2.xslt", 415 expandmode = "all", 416 sitemapmode="true", 417 id = "categories", 418 startlevel = 1, 419 endlevel = 5, 420 areaid = 1 421 }) 422 </li> 423 </ul> 424 } 425 426 @if(!string.IsNullOrEmpty(customerNo)) { 427 @RenderNavigation(new { 428 template = "MainNavigationMobile-v2.xslt", 429 expandmode = "all", 430 id = "NavMainMobileAll", 431 startlevel = 2, 432 endlevel = 4, 433 parentid = 169, 434 customerGroup = @customerListGroupID, 435 customerRole = @customerRole 436 }); 437 } else { 438 439 @RenderNavigation(new { 440 template = "MainNavigationMobile-v2.xslt", 441 expandmode = "all", 442 id = "NavMainMobileAll", 443 startlevel = 1, 444 endlevel = 4 445 }); 446 447 } 448 449 </div> 450 451 452 </div> 453 @* } *@ 454 455 <div class="mobile-wrapper"> 456 457 @{ 458 459 System.Globalization.TextInfo myTI = new System.Globalization.CultureInfo("en-US", false).TextInfo; 460 @*string user = Dynamicweb.Frontend.PageView.Current().User.UserName; 461 string userProfileName = Dynamicweb.Frontend.PageView.Current().User.Name; 462 string userCustomerNumber = Dynamicweb.Frontend.PageView.Current().User.CustomerNumber;*@ 463 //string userProfileName = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser().Name;throw new Exception("Exceptie 01"); 464 465 466 467 var userProfileName = currentUser; 468 469 bool userLoggedIn = userProfileName != null; 470 471 472 473 474 string userAccountLink = "/Default.aspx?ID=9"; 475 string userCartLink = "/Default.aspx?ID=13"; 476 477 double cartQuantity = GetDouble("Ecom:Order.OrderLines.TotalProductQuantity"); 478 double cartPrice = GetDouble("Ecom:Order.PriceWithoutFees.PriceWithVAT"); 479 string currencyCart = GetString("Ecom:Order.Price.Currency.Symbol"); 480 BrandFusion.Dw.Austral.eCommerce.CustomerAddress customerDetails = null; 481 string customerLogo = ""; 482 483 @*string customerName = Dynamicweb.Frontend.PageView.Current().User != null && !string.IsNullOrEmpty(userProfileName)? userProfileName : "";*@ 484 @*string customerName = currentUserAccess != null && !string.IsNullOrEmpty(userProfileName)? userProfileName : "";*@ 485 string customerName = currentUserAccess != null ? userProfileName.Name.ToString() : ""; 486 487 string userCustomerNumber = userIsLoggedIn && currentUser.CustomerNumber != null ? currentUser.CustomerNumber.ToString() : null; 488 489 490 if(!string.IsNullOrEmpty(userCustomerNumber)) { 491 492 493 cartPrice = GetDouble("Ecom:Order.PriceWithoutFees.PriceWithoutVAT"); 494 } 495 496 if (!string.IsNullOrEmpty(userCustomerNumber)) { 497 498 499 userAccountLink = "/Default.aspx?ID=170"; 500 userCartLink = "/Default.aspx?ID=42"; 501 502 } 503 504 if(!string.IsNullOrEmpty(userCustomerNumber)){ 505 506 507 customerDetails = BrandFusion.Dw.Austral.eCommerce.CustomerFacade.GetB2bBillingAddress(userCustomerNumber); 508 509 if (customerDetails != null) 510 { 511 customerName = customerDetails.Company; 512 customerLogo = !string.IsNullOrEmpty(customerDetails.GeoLocationImage) ? "/Files/Images/Austral/CustomerLogos/"+customerDetails.GeoLocationImage : ""; 513 } 514 } 515 516 } 517 @SnippetStart("Head") 518 519 @SnippetEnd("Head") 520 521 522 <div class="header-top hidden-xs hidden-sm"> 523 <div class="container"> 524 <div class="row"> 525 <div class="col-md-12"> 526 @*@if(!string.IsNullOrEmpty(user)) {*@ 527 @if(userIsLoggedIn) { 528 <ul class="right-align"> 529 @*@if(!string.IsNullOrEmpty(userProfileName)) {*@ 530 @if(userLoggedIn) { 531 <li> 532 @if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) { 533 <a href="@userAccountLink"> <i class="ion-ios-locked-outline"></i> 534 535 @userProfileName.Name 536 537 @if(!string.IsNullOrEmpty(userCustomerNumber)) { 538 <span>- @userCustomerNumber</span> 539 } 540 541 </a> 542 } else{ 543 <span> 544 <a href="/Default.aspx?ID=3500">@GetGlobalValue("Global:Extranet.SecondaryUser.Name") - (@GetGlobalValue("Global:Extranet.SecondaryUser.UserName")) @Translate("ImpersonatedBy", "este impersonat de") @Pageview.User.Name (@Pageview.User.UserName)</a> 545 </span> 546 } 547 </li> 548 <li><a href="/Admin/Public/ExtranetLogoff.aspx">@Translate("logout", "Logout")</a></li> 549 } 550 551 </ul> 552 } 553 <ul class="left-align"> 554 <li><p>@GetValue("Item.Area.Program")</p></li> 555 556 @if(!string.IsNullOrEmpty(GetString("Item.Area.Telefon"))) { 557 <li><p>@GetValue("Item.Area.Telefon")</p></li> 558 } 559 </ul> 560 561 </div> 562 563 564 565 </div> 566 </div> 567 </div> 568 <div class="header-middle hidden-xs hidden-sm"> 569 <div class="container"> 570 <div class="row"> 571 572 <div id="logo" class="col-sm-3 hidden-xs"> 573 <a href="/"> 574 <img src='@GetValue("Item.Area.Logo")' alt='@GetValue("Item.Area.Site_Name")'> 575 </a> 576 </div> 577 578 <div class="header-search-v2 col-sm-9"> 579 <div class="row"> 580 581 582 <div class="col-sm-6 col-md-5 col-lg-6"> 583 @if(user!=null) { 584 <form action="/Default.aspx?ID=127" method="GET" data-file="search-v2"> 585 <div class="form-group"> 586 <input type="text" name="q" id="q" autocomplete="off" spellcheck="false" placeholder='@Translate("search", "Cauta dupa cod sau nume...")' class="form-control"> 587 <input type="hidden" id="ID" name="ID" value="127"> 588 @if(!string.IsNullOrEmpty(customerNo) && !string.IsNullOrEmpty(customerListGroupID)){ 589 <input type="hidden" name="CustomerNumber" id="CustomerNumber" value="@customerNo"> 590 } 591 <button type="submit"><i class="ion-ios-search-strong"></i></button> 592 <div class="instant_search"></div> 593 </div> 594 </form> 595 } 596 </div> 597 @*@if(string.IsNullOrEmpty(user)) {*@ 598 @if(!userIsLoggedIn) { 599 <div class="header-account col-sm-3 col-md-4 col-lg-3"> 600 @*<a href="/Default.aspx?ID=10">@Translate("CreateAccount", "Creeaza cont")</a> <text>|</text>*@ <a href="/Default.aspx?ID=11">@Translate("Login", "Login")</a> 601 </div> 602 } else { 603 <div class="header-account customer col-sm-3 col-md-4 col-lg-3"> 604 <a href="@userAccountLink"> 605 @if (!string.IsNullOrEmpty(customerLogo)){ 606 <img src="/Admin/Public/GetImage.ashx?Image=@customerLogo&Format=jpg&Width=190&Height=85&Compression=100&Crop=5" class="img-responsive"> 607 }else{ 608 <span>@customerName</span> 609 } 610 </a> 611 </div> 612 } 613 614 <div class="col-sm-3 col-md-3 col-lg-3 minicart"> 615 <a href="@userCartLink"> 616 <i class="ion-android-cart"></i> 617 @*@if (!@GetBoolean("Ecom:Order.IsEmpty")) {*@ 618 @if (@GetBoolean("Ecom:Order.IsEmpty")) { 619 <span data-minicart-update="">(@cartQuantity) - @cartPrice<sup> @currencyCart</sup></span> 620 } else { 621 <span data-minicart-update="">Cosul este gol</span> 622 } 623 624 </a> 625 </div> 626 </div> 627 </div> 628 </div> 629 </div> 630 </div> 631 632 633 634 @SnippetStart("BottomJS") 635 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/main-v2.js"></script> 636 @SnippetEnd("BottomJS") 637 <div class="main-nav-2 hidden-xs hidden-sm"> 638 <span style="display: none;"> 639 @GetGlobalValue("Global:Item.Page.DisplayOptions").ToString() 640 </span> 641 642 <div class="container"> 643 <div class="row"> 644 645 @if(!string.IsNullOrEmpty(customerNo)) 646 { 647 <div class="col-md-3 hidden-sm hidden-xs"> 648 <div class="left-nav-box clearfix @navigationCollapsed"> 649 <div class="category-heading"><p>Categorii de produse</p></div> 650 <div class="menu3dmega" id="menuMega"> 651 @RenderNavigation(new { 652 template = "CategoriesNavigationB2B.xslt", 653 expandmode = "all", 654 sitemapmode="true", 655 id = "categories", 656 startlevel = 1, 657 endlevel = 5, 658 areaid = 1 659 }) 660 </div> 661 </div> 662 </div> 663 664 <div class="col-md-9" style="padding-left: 0;"> 665 @RenderNavigation(new { 666 template = "MainNavigation-v2.xslt", 667 expandmode = "all", 668 id = "NavMainAll", 669 startlevel = 2, 670 endlevel = 4, 671 parentid = 169, 672 customerGroup = @customerListGroupID, 673 customerRole = @customerRole 674 }) 675 676 </div> 677 } else { 678 679 @RenderSnippet("Homepagenavigation") 680 681 <div class="col-md-12"> 682 @RenderNavigation(new { 683 template = "MainNavigation-v2.xslt", 684 expandmode = "all", 685 id = "NavMainAll", 686 startlevel = 1, 687 endlevel = 4 688 }) 689 </div> 690 691 } 692 </div> 693 </div> 694 </div> 695 696 <div class="container"> 697 <div class="row"> 698 699 700 @if (Pageview.User.UserID == 0) { 701 702 <h3>Autentificare</h3> 703 <div class="login-box-mode" data-login-box-mode="login"> 704 @if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["username"]) || !string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["password"])) { 705 <div class="loginbox-login-failed alert alert-error">Datele de utilizator introduse nu sunt corecte</div> 706 } 707 708 <form class="form-horizontal" method="post"> 709 <div class="control-group"> 710 <input type="text" id="login-username" name="username" spellcheck="false" placeholder="Username" value='@System.Web.HttpContext.Current.Request["username"]'> 711 </div> 712 <div class="control-group"> 713 <input type="password" id="login-password" name="password" placeholder="Password" value='@System.Web.HttpContext.Current.Request["password"]'> 714 </div> 715 <input type="submit" value="Login"> 716 </form> 717 </div> 718 } else { 719 720 @: Esti autentificat cu userul @Pageview.User.UserName 721 <br> 722 <br> 723 724 <form method="post"> 725 @if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) { 726 <table border="0"> 727 <tr> 728 <td>Alege userul pe care vrei sa il impersonezi</td> 729 </tr> 730 <tr> 731 <td> 732 <select id="DWExtranetSecondaryUserSelector" name="DWExtranetSecondaryUserSelector"> 733 @foreach (var secondaryUser in GetLoop("DWExtranetSecondaryUsers")) { 734 <option value='@secondaryUser.GetValue("UserID")'>@secondaryUser.GetValue("UserName")</option> 735 } 736 </select> 737 </td> 738 </tr> 739 <tr> 740 <td colspan="2"><input type="submit" tabindex="3" value="OK"></td> 741 </tr> 742 </table> 743 } else { 744 <h3>@GetGlobalValue("Global:Extranet.SecondaryUser.UserName") este impersonat de @Pageview.User.UserName.</h3> 745 <br> 746 <input type="submit" name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" value="Stop impersonation"> 747 } 748 <br> 749 <br> 750 751 <a class="btn" href="/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.Page.ID">Logout</a> 752 753 754 755 756 </form> 757 } 758 </div> 759 </div> 760 <div class="container"> 761 <div class="row"> 762 763 764 <div class="brands-wrapper"> 765 <div class="container"> 766 <div class="col-md-12"> 767 <div class="row"> 768 769 @RenderParagraphContent(1514) 770 771 @* <div class="logo-slider"> 772 <div class="flexslider"> 773 <ul class="slides"> 774 @{ 775 var manufacturers = Dynamicweb.Ecommerce.Products.Manufacturer.GetManufacturers(); 776 int counter = 0; 777 int howManyOnRow = 1; 778 779 foreach (var manufacturer in manufacturers) 780 { 781 if (!string.IsNullOrEmpty(manufacturer.Logo)){ 782 if (counter % howManyOnRow == 0){ 783 if (counter == 0){ 784 @:<li class='item active'> 785 } 786 else { 787 @:</li><li class="item"> 788 } 789 } 790 791 <a href="#"> 792 <img src="/Files/@manufacturer.Logo.Trim('/')"> 793 </a> 794 if (counter % howManyOnRow == howManyOnRow - 1) 795 { 796 @:</li> 797 } 798 counter++; 799 } 800 } 801 if (counter % howManyOnRow != 0) 802 { 803 @: 804 } 805 } 806 </ul> 807 </div> 808 </div>*@ 809 810 @*<div class="brands-list-navigation product-list-navigation"> 811 <a href="#" class="flex-prev"><i class="ion-ios-arrow-back"></i></a> 812 <a href="#" class="flex-next"><i class="ion-ios-arrow-forward"></i></a> 813 </div> *@ 814 815 816 </div> 817 </div> 818 </div> 819 </div> 820 </div> 821 </div> 822 @* 823 <div class="services-list"> 824 <div class="container"> 825 <div class="row"> 826 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 827 <div class="rec-banner hand"> 828 <div class="banner clearfix"> 829 <div class="services-icon"> 830 <img src="http://cdn.aperta.ro/Files/Templates/Designs/Fusion/assets/img/austral-hand.png" class="img-responsive"> 831 </div> 832 833 <div class="pull-left text-box"> 834 <h3>Garantie</h3> 835 <p>@GetValue("Item.Area.Garantie")</p> 836 </div> 837 </div> 838 </div> 839 </div> 840 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 841 <div class="rec-banner return"> 842 <div class="banner clearfix"> 843 <div class="services-icon"> 844 <img src="http://cdn.aperta.ro/Files/Templates/Designs/Fusion/assets/img/austral-return.png" class="img-responsive"> 845 </div> 846 <div class="pull-left text-box"> 847 <h3>Retur in 14 zile</h3> 848 <p>@GetValue("Item.Area.Retur")</p> 849 </div> 850 </div> 851 </div> 852 </div> 853 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 854 <div class="rec-banner support"> 855 <div class="banner clearfix"> 856 <div class="services-icon"> 857 <img src="http://cdn.aperta.ro/Files/Templates/Designs/Fusion/assets/img/austral-support.png" class="img-responsive"> 858 </div> 859 <div class="pull-left text-box"> 860 <h3>Serviciu clienti</h3> 861 <p>@GetValue("Item.Area.Serviciu_Clienti")</p> 862 </div> 863 </div> 864 </div> 865 </div> 866 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 867 <div class="rec-banner car"> 868 <div class="banner clearfix"> 869 <div class="services-icon"> 870 <img src="http://cdn.aperta.ro/Files/Templates/Designs/Fusion/assets/img/austral-car.png" class="img-responsive"> 871 </div> 872 <div class="pull-left text-box"> 873 <h3>Transport gratuit</h3> 874 @if(!string.IsNullOrEmpty(customerNo)){ 875 <p>@GetValue("Item.Area.TransportB2B")</p> 876 }else{ 877 <p>@GetValue("Item.Area.Transport")</p> 878 } 879 </div> 880 </div> 881 </div> 882 </div> 883 </div> 884 </div> 885 </div>*@ 886 887 888 889 890 <div class="footer"> 891 <div class="container"> 892 <div class="row"> 893 894 <div class="col-md-3 col-sm-6 col-xs-12 shopinfo"> 895 <h4 class="title">AUSTRAL</h4> 896 <p> 897 @GetValue("Item.Area.Contact") 898 </p> 899 <div class="social-icons"> 900 <ul> 901 <li class="icon facebook"><a href='@GetValue("Item.Area.Facebook_Link")' target="_blank"><i class="fa fa-facebook fa-fw"></i></a></li> 902 <li class="icon twitter"><a href='@GetValue("Item.Area.Twitter_Link")' target="_blank"><i class="fa fa-twitter fa-fw"></i></a></li> 903 <li class="icon linkedin"><a href='@GetValue("Item.Area.Linkedin_link")' target="_blank"><i class="fa fa-linkedin fa-fw"></i></a></li> 904 <li class="icon google-plus"><a href='@GetValue("Item.Area.GooglePlus_Link")' target="_blank"><i class="fa fa-google-plus fa-fw"></i></a></li> 905 </ul> 906 </div> 907 </div> 908 <div class="col-md-3 col-sm-6 col-xs-12 footermenu"> 909 <h4 class="title">UTILE </h4> 910 @GetValue("DwNavigation(BottomNavigation)") 911 <a href="http://australservicii.ro/" target="_blank"><img src="/Files/Templates/Designs/Fusion/assets/img/Banner_Australservicii.png" alt="" style="margin: 9px 0 0 0;"></a> 912 </div> 913 <div class="col-md-3 col-sm-6 col-xs-12 footermenu"> 914 <h4 class="title">COMENZI</h4> 915 @GetValue("DwNavigation(BottomNavigation1)") 916 <img src="/Files/Templates/Designs/Fusion/assets/img/MobilPay-banner.png" alt=""> 917 </div> 918 <div class="col-md-3 col-sm-6 col-xs-12 getintouch"> 919 <h4 class="title">Certificari</h4> 920 <img src="/Files/Templates/Designs/Fusion/assets/img/ukas.jpg" alt=""> 921 </div> 922 923 </div> 924 </div> 925 </div> 926 <div class="cart--footer"> 927 <div class="container"> 928 <div class="row"> 929 <div class="col-xs-12"> 930 <a href="#" class="emptyCart">Goleste cos</a> 931 @GetValue("CartV2.NextStepButtonName") 932 933 @{ 934 var cartLink = "/Default.aspx?ID=13"; 935 if(!string.IsNullOrEmpty(customerNo)) { 936 cartLink = "/Default.aspx?ID=42"; 937 } 938 } 939 <a class="cart" href="@cartLink"> 940 <span class="spacing">Aveti <span class="em" cartproducts="">produse</span> in cos</span> 941 <span class="spacing">Cost total: <span class="em" carttotals="">Cosul este gol</span></span> 942 <span class="spacing cart--footer__button">Finalizeaza Comanda</span> 943 </a> 944 </div> 945 </div> 946 </div> 947 </div> 948 </div> 949 950 951 952 953 954 @* JS Libraries *@ 955 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/bootstrap.min.js"></script> 956 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/libraries/slick.min.js"></script> 957 <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js" type="text/javascript"></script> 958 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/jquery.noty.packaged.js"></script> 959 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/bpopup.js"></script> 960 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.0/jquery.flexslider.min.js"></script> 961 962 963 964 965 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/libraries/jscookie.js"></script> 966 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/alertify.js"></script> 967 @* <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/mobile-menu.js"></script> *@ 968 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/mobile-menu-v2.js"></script> 969 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/login.js"></script> 970 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/main.js"></script> 971 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/carousels.js"></script> 972 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/main-v2.js"></script> 973 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/product-modal.js"></script> 974 975 976 <script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.js" type="text/javascript"></script> 977 <script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe-ui-default.min.js" type="text/javascript"></script> 978 <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.6/lodash.min.js" type="text/javascript" charset="utf-8"></script> 979 980 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/product-list.js"></script> 981 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/loader.js"></script> 982 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/minicart.js"></script> 983 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/voucher.js"></script> 984 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/cart.js"></script> 985 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/jquery.validate.js"></script> 986 987 @RenderSnippet("modalBottom") 988 @RenderSnippet("bottomJS") 989 990 @* Quickview modal *@ 991 <div class="b-modal" id="quickview"> 992 <div id="results" class="clearfix"></div> 993 </div> 994 995 996 997 @RenderScripts("footer") 998 </body> 999