Error compiling template "Designs/Fusion/_parsed/LoginwithImpersonation.parsed.cshtml"
Line 1554: '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 visible-xs visible-sm"> 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 391 </div> 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 </div> 403 </div> 404 </div> 405 <div id="mobile-navigation-overlay"> 406 <button type="button" class="overlay-close"><i class="fa fa-close"></i> @Translate("Inchide","Inchide")</button> 407 <div class="content-scrollable"> 408 <ul class="root"> 409 <li> 410 <a href="#">Categorii de produse</a> 411 412 @RenderNavigation(new { 413 template = "CategoriesNavigationMobileB2B-v2.xslt", 414 expandmode = "all", 415 sitemapmode="true", 416 id = "categories", 417 startlevel = 1, 418 endlevel = 5, 419 areaid = 1 420 }) 421 </li> 422 </ul> 423 424 @if(!string.IsNullOrEmpty(customerNo)) { 425 @RenderNavigation(new { 426 template = "MainNavigationMobile-v2.xslt", 427 expandmode = "all", 428 id = "NavMainMobileAll", 429 startlevel = 2, 430 endlevel = 4, 431 parentid = 169, 432 customerGroup = @customerListGroupID, 433 customerRole = @customerRole 434 }); 435 } else { 436 @RenderNavigation(new { 437 template = "MainNavigationMobile-v2.xslt", 438 expandmode = "all", 439 id = "NavMainMobileAll", 440 startlevel = 1, 441 endlevel = 4 442 }); 443 } 444 </div> 445 446 447 </div> 448 @* } *@ 449 450 <div class="mobile-wrapper"> 451 452 @{ 453 454 System.Globalization.TextInfo myTI = new System.Globalization.CultureInfo("en-US", false).TextInfo; 455 @*string user = Dynamicweb.Frontend.PageView.Current().User.UserName; 456 string userProfileName = Dynamicweb.Frontend.PageView.Current().User.Name; 457 string userCustomerNumber = Dynamicweb.Frontend.PageView.Current().User.CustomerNumber;*@ 458 //string userProfileName = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser().Name;throw new Exception("Exceptie 01"); 459 460 461 462 var userProfileName = currentUser; 463 464 bool userLoggedIn = userProfileName != null; 465 466 467 468 469 string userAccountLink = "/Default.aspx?ID=9"; 470 string userCartLink = "/Default.aspx?ID=13"; 471 472 double cartQuantity = GetDouble("Ecom:Order.OrderLines.TotalProductQuantity"); 473 double cartPrice = GetDouble("Ecom:Order.PriceWithoutFees.PriceWithVAT"); 474 string currencyCart = GetString("Ecom:Order.Price.Currency.Symbol"); 475 BrandFusion.Dw.Austral.eCommerce.CustomerAddress customerDetails = null; 476 string customerLogo = ""; 477 478 @*string customerName = Dynamicweb.Frontend.PageView.Current().User != null && !string.IsNullOrEmpty(userProfileName)? userProfileName : "";*@ 479 @*string customerName = currentUserAccess != null && !string.IsNullOrEmpty(userProfileName)? userProfileName : "";*@ 480 string customerName = currentUserAccess != null ? userProfileName.Name.ToString() : ""; 481 482 string userCustomerNumber = userIsLoggedIn && currentUser.CustomerNumber != null ? currentUser.CustomerNumber.ToString() : null; 483 484 485 if(!string.IsNullOrEmpty(userCustomerNumber)) { 486 487 488 cartPrice = GetDouble("Ecom:Order.PriceWithoutFees.PriceWithoutVAT"); 489 } 490 491 if (!string.IsNullOrEmpty(userCustomerNumber)) { 492 493 494 userAccountLink = "/Default.aspx?ID=170"; 495 userCartLink = "/Default.aspx?ID=42"; 496 497 } 498 499 if(!string.IsNullOrEmpty(userCustomerNumber)){ 500 501 502 customerDetails = BrandFusion.Dw.Austral.eCommerce.CustomerFacade.GetB2bBillingAddress(userCustomerNumber); 503 504 if (customerDetails != null) 505 { 506 customerName = customerDetails.Company; 507 customerLogo = !string.IsNullOrEmpty(customerDetails.GeoLocationImage) ? "/Files/Images/Austral/CustomerLogos/"+customerDetails.GeoLocationImage : ""; 508 } 509 } 510 511 } 512 @SnippetStart("Head") 513 514 @SnippetEnd("Head") 515 516 517 <div class="header-top hidden-xs hidden-sm"> 518 <div class="container"> 519 <div class="row"> 520 <div class="col-md-12"> 521 @*@if(!string.IsNullOrEmpty(user)) {*@ 522 @if(userIsLoggedIn) { 523 <ul class="right-align"> 524 @*@if(!string.IsNullOrEmpty(userProfileName)) {*@ 525 @if(userLoggedIn) { 526 <li> 527 @if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) { 528 <a href="@userAccountLink"> <i class="ion-ios-locked-outline"></i> 529 530 @userProfileName.Name 531 532 @if(!string.IsNullOrEmpty(userCustomerNumber)) { 533 <span>- @userCustomerNumber</span> 534 } 535 536 </a> 537 } else{ 538 <span> 539 <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> 540 </span> 541 } 542 </li> 543 <li><a href="/Admin/Public/ExtranetLogoff.aspx">@Translate("logout", "Logout")</a></li> 544 } 545 546 </ul> 547 } 548 <ul class="left-align"> 549 <li><p>@GetValue("Item.Area.Program")</p></li> 550 551 @if(!string.IsNullOrEmpty(GetString("Item.Area.Telefon"))) { 552 <li><p>@GetValue("Item.Area.Telefon")</p></li> 553 } 554 </ul> 555 556 </div> 557 558 559 560 </div> 561 </div> 562 </div> 563 <div class="header-middle hidden-xs hidden-sm"> 564 <div class="container"> 565 <div class="row"> 566 567 <div id="logo" class="col-sm-3 hidden-xs"> 568 <a href="/"> 569 <img src='@GetValue("Item.Area.Logo")' alt='@GetValue("Item.Area.Site_Name")'> 570 </a> 571 </div> 572 573 <div class="header-search-v2 col-sm-9"> 574 <div class="row"> 575 576 577 <div class="col-sm-6 col-md-5 col-lg-6"> 578 <form action="/Default.aspx?ID=127" method="GET" data-file="search-v2"> 579 <div class="form-group"> 580 <input type="text" name="q" id="q" autocomplete="off" spellcheck="false" placeholder='@Translate("search", "Cauta dupa cod sau nume...")' class="form-control"> 581 <input type="hidden" id="ID" name="ID" value="127"> 582 @if(!string.IsNullOrEmpty(customerNo) && !string.IsNullOrEmpty(customerListGroupID)){ 583 <input type="hidden" name="CustomerNumber" id="CustomerNumber" value="@customerNo"> 584 } 585 <button type="submit"><i class="ion-ios-search-strong"></i></button> 586 <div class="instant_search"></div> 587 </div> 588 </form> 589 </div> 590 @*@if(string.IsNullOrEmpty(user)) {*@ 591 @if(!userIsLoggedIn) { 592 <div class="header-account col-sm-3 col-md-4 col-lg-3"> 593 <a href="/Default.aspx?ID=10">@Translate("CreateAccount", "Creeaza cont")</a> <text>|</text> <a href="/Default.aspx?ID=11">@Translate("Login", "Login")</a> 594 </div> 595 } else { 596 <div class="header-account customer col-sm-3 col-md-4 col-lg-3"> 597 <a href="@userAccountLink"> 598 @if (!string.IsNullOrEmpty(customerLogo)){ 599 <img src="/Admin/Public/GetImage.ashx?Image=@customerLogo&Format=jpg&Width=190&Height=85&Compression=100&Crop=5" class="img-responsive"> 600 }else{ 601 <span>@customerName</span> 602 } 603 </a> 604 </div> 605 } 606 607 <div class="col-sm-3 col-md-3 col-lg-3 minicart"> 608 <a href="@userCartLink"> 609 <i class="ion-android-cart"></i> 610 @*@if (!@GetBoolean("Ecom:Order.IsEmpty")) {*@ 611 @if (@GetBoolean("Ecom:Order.IsEmpty")) { 612 <span data-minicart-update="">(@cartQuantity) - @cartPrice<sup> @currencyCart</sup></span> 613 } else { 614 <span data-minicart-update="">Cosul este gol</span> 615 } 616 617 </a> 618 </div> 619 </div> 620 </div> 621 </div> 622 </div> 623 </div> 624 625 626 627 @SnippetStart("BottomJS") 628 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/main-v2.js"></script> 629 @SnippetEnd("BottomJS") 630 <div class="main-nav-2 hidden-xs hidden-sm"> 631 <span style="display: none;"> 632 @GetGlobalValue("Global:Item.Page.DisplayOptions").ToString() 633 </span> 634 635 <div class="container"> 636 <div class="row"> 637 <div class="col-md-3 hidden-sm hidden-xs"> 638 639 640 641 <div class="left-nav-box clearfix @navigationCollapsed"> 642 <div class="category-heading"><p>Categorii de produse</p></div> 643 <div class="menu3dmega" id="menuMega"> 644 @RenderNavigation(new { 645 template = "CategoriesNavigationB2B.xslt", 646 expandmode = "all", 647 sitemapmode="true", 648 id = "categories", 649 startlevel = 1, 650 endlevel = 5, 651 areaid = 1 652 }) 653 </div> 654 </div> 655 656 </div> 657 <div class="col-md-9" style="padding-left: 0;"> 658 @if(!string.IsNullOrEmpty(customerNo)) { 659 @RenderNavigation(new { 660 template = "MainNavigation-v2.xslt", 661 expandmode = "all", 662 id = "NavMainAll", 663 startlevel = 2, 664 endlevel = 4, 665 parentid = 169, 666 customerGroup = @customerListGroupID, 667 customerRole = @customerRole 668 }); 669 } else { 670 @RenderNavigation(new { 671 template = "MainNavigation-v2.xslt", 672 expandmode = "all", 673 id = "NavMainAll", 674 startlevel = 1, 675 endlevel = 4 676 }); 677 } 678 </div> 679 </div> 680 </div> 681 </div> 682 683 <div class="container"> 684 <div class="row"> 685 686 687 @if (Pageview.User.UserID == 0) { 688 689 <h3>Autentificare</h3> 690 <div class="login-box-mode" data-login-box-mode="login"> 691 @if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["username"]) || !string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["password"])) { 692 <div class="loginbox-login-failed alert alert-error">Datele de utilizator introduse nu sunt corecte</div> 693 } 694 695 <form class="form-horizontal" method="post"> 696 <div class="control-group"> 697 <input type="text" id="login-username" name="username" spellcheck="false" placeholder="Username" value='@System.Web.HttpContext.Current.Request["username"]'> 698 </div> 699 <div class="control-group"> 700 <input type="password" id="login-password" name="password" placeholder="Password" value='@System.Web.HttpContext.Current.Request["password"]'> 701 </div> 702 <input type="submit" value="Login"> 703 </form> 704 </div> 705 } else { 706 707 @: Esti autentificat cu userul @Pageview.User.UserName 708 <br> 709 <br> 710 711 <form method="post"> 712 @if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) { 713 <table border="0"> 714 <tr> 715 <td>Alege userul pe care vrei sa il impersonezi</td> 716 </tr> 717 <tr> 718 <td> 719 <select id="DWExtranetSecondaryUserSelector" name="DWExtranetSecondaryUserSelector"> 720 @foreach (var secondaryUser in GetLoop("DWExtranetSecondaryUsers")) { 721 <option value='@secondaryUser.GetValue("UserID")'>@secondaryUser.GetValue("UserName")</option> 722 } 723 </select> 724 </td> 725 </tr> 726 <tr> 727 <td colspan="2"><input type="submit" tabindex="3" value="OK"></td> 728 </tr> 729 </table> 730 } else { 731 <h3>@GetGlobalValue("Global:Extranet.SecondaryUser.UserName") este impersonat de @Pageview.User.UserName.</h3> 732 <br> 733 <input type="submit" name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" value="Stop impersonation"> 734 } 735 <br> 736 <br> 737 738 <a class="btn" href="/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.Page.ID">Logout</a> 739 740 741 742 743 </form> 744 } 745 </div> 746 </div> 747 <div class="container"> 748 <div class="row"> 749 @{ 750 var url = Pageview.Area.Item["NewsletterPage_ID"]; 751 string home = ""; 752 if(GetInteger("DwPageID") == GetInteger("DwAreaFirstPageID")) { 753 home = "home"; 754 } 755 756 } 757 <div class="col-xs-12"> 758 <div class="newsletter-box @home clearfix"> 759 <div class="subscribe clearfix"> 760 <h3>Newsletter</h3> 761 @if(!string.IsNullOrEmpty(GetString("ParagraphText"))) { 762 <div class="content"> 763 @GetValue("ParagraphText") 764 </div> 765 } 766 767 768 <div id="newsletter-block" class="form-inline"> 769 <div class="form-group"> 770 <input name="name" type="text" id="newsletter_subscribe_name" placeholder="Nume" class="form-control"> 771 </div> 772 <div class="form-group"> 773 <input name="email" type="text" id="newsletter_subscribe" placeholder="Adresa e-mail.." class="form-control"> 774 </div> 775 <div class="form-group"> 776 <button type="button" class="form-control action" onclick="newsletterSubscribeNoRedirectInPage('/Default.aspx?ID=@(url)&action=subscribe&email=');">@Translate("submit", "Aboneaza-te")</button> 777 </div> 778 779 780 </div> 781 </div> 782 </div> 783 </div> 784 785 786 787 @SnippetStart("Meta") 788 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Fusion/assets/css/newsletter.css"> 789 @SnippetEnd("Meta") 790 791 @SnippetStart("bottomJS") 792 793 794 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/newsletter.js"></script> 795 796 @SnippetEnd("bottomJS") 797 </div> 798 </div> 799 <div class="services-list"> 800 <div class="container"> 801 <div class="row"> 802 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 803 <div class="rec-banner hand"> 804 <div class="banner clearfix"> 805 <div class="services-icon"> 806 <img src="/Files/Templates/Designs/Fusion/assets/img/austral-hand.png" class="img-responsive"> 807 </div> 808 809 <div class="pull-left text-box"> 810 <h3>Garantie</h3> 811 <p>@GetValue("Item.Area.Garantie")</p> 812 </div> 813 </div> 814 </div> 815 </div> 816 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 817 <div class="rec-banner return"> 818 <div class="banner clearfix"> 819 <div class="services-icon"> 820 <img src="/Files/Templates/Designs/Fusion/assets/img/austral-return.png" class="img-responsive"> 821 </div> 822 <div class="pull-left text-box"> 823 <h3>Retur in 14 zile</h3> 824 <p>@GetValue("Item.Area.Retur")</p> 825 </div> 826 </div> 827 </div> 828 </div> 829 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 830 <div class="rec-banner support"> 831 <div class="banner clearfix"> 832 <div class="services-icon"> 833 <img src="/Files/Templates/Designs/Fusion/assets/img/austral-support.png" class="img-responsive"> 834 </div> 835 <div class="pull-left text-box"> 836 <h3>Serviciu clienti</h3> 837 <p>@GetValue("Item.Area.Serviciu_Clienti")</p> 838 </div> 839 </div> 840 </div> 841 </div> 842 <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> 843 <div class="rec-banner car"> 844 <div class="banner clearfix"> 845 <div class="services-icon"> 846 <img src="/Files/Templates/Designs/Fusion/assets/img/austral-car.png" class="img-responsive"> 847 </div> 848 <div class="pull-left text-box"> 849 <h3>Transport gratuit</h3> 850 @if(!string.IsNullOrEmpty(customerNo)){ 851 <p>@GetValue("Item.Area.TransportB2B")</p> 852 }else{ 853 <p>@GetValue("Item.Area.Transport")</p> 854 } 855 </div> 856 </div> 857 </div> 858 </div> 859 </div> 860 </div> 861 </div> 862 863 <div class="brands-wrapper"> 864 <div class="container"> 865 <div class="col-md-12"> 866 <div class="row"> 867 868 @RenderParagraphContent(1514) 869 870 @* <ul class="slides"> 871 @{ 872 var manufacturers = Dynamicweb.eCommerce.Products.Manufacturer.getManufacturers(); 873 int counter = 0; 874 int howManyOnRow = 1; 875 876 foreach (var manufacturer in manufacturers) 877 { 878 if (!string.IsNullOrEmpty(manufacturer.Logo)){ 879 if (counter % howManyOnRow == 0){ 880 if (counter == 0){ 881 @:<li class='item active'> 882 } 883 else { 884 @:</li><li class="item"> 885 } 886 } 887 <a href="/Default.aspx?ID=32&ManufacturerName=@manufacturer.Name"><img src="/Files/@manufacturer.Logo.Trim('/')"></a> 888 if (counter % howManyOnRow == howManyOnRow - 1) 889 { 890 @:</li> 891 } 892 counter++; 893 } 894 } 895 if (counter % howManyOnRow != 0) 896 { 897 @: 898 } 899 } 900 </ul> 901 902 <div class="brands-list-navigation product-list-navigation"> 903 <a href="#" class="flex-prev"><i class="ion-ios-arrow-back"></i></a> 904 <a href="#" class="flex-next"><i class="ion-ios-arrow-forward"></i></a> 905 </div> *@ 906 907 908 </div> 909 </div> 910 </div> 911 </div> 912 913 <div class="footer"> 914 <div class="container"> 915 <div class="row"> 916 917 <div class="col-md-3 col-sm-6 col-xs-12 shopinfo"> 918 <h4 class="title">AUSTRAL</h4> 919 <p> 920 @GetValue("Item.Area.Contact") 921 </p> 922 <div class="social-icons"> 923 <ul> 924 <li class="icon facebook"><a href='@GetValue("Item.Area.Facebook_Link")' target="_blank"><i class="fa fa-facebook fa-fw"></i></a></li> 925 <li class="icon twitter"><a href='@GetValue("Item.Area.Twitter_Link")' target="_blank"><i class="fa fa-twitter fa-fw"></i></a></li> 926 <li class="icon linkedin"><a href='@GetValue("Item.Area.Linkedin_link")' target="_blank"><i class="fa fa-linkedin fa-fw"></i></a></li> 927 <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> 928 </ul> 929 </div> 930 </div> 931 <div class="col-md-3 col-sm-6 col-xs-12 footermenu"> 932 <h4 class="title">UTILE </h4> 933 @GetValue("DwNavigation(BottomNavigation)") 934 <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> 935 </div> 936 <div class="col-md-3 col-sm-6 col-xs-12 footermenu"> 937 <h4 class="title">COMENZI</h4> 938 @GetValue("DwNavigation(BottomNavigation1)") 939 <img src="/Files/Templates/Designs/Fusion/assets/img/MobilPay-banner.png" alt=""> 940 </div> 941 <div class="col-md-3 col-sm-6 col-xs-12 getintouch"> 942 <h4 class="title">Certificari</h4> 943 <img src="/Files/Templates/Designs/Fusion/assets/img/ukas.jpg" alt=""> 944 </div> 945 946 </div> 947 </div> 948 </div> 949 <div class="cart--footer"> 950 <div class="container"> 951 <div class="row"> 952 <div class="col-xs-12"> 953 <a href="#" class="emptyCart">Goleste cos</a> 954 @GetValue("CartV2.NextStepButtonName") 955 956 @{ 957 var cartLink = "/Default.aspx?ID=13"; 958 if(!string.IsNullOrEmpty(customerNo)) { 959 cartLink = "/Default.aspx?ID=42"; 960 } 961 } 962 <a class="cart" href="@cartLink"> 963 <span class="spacing">Aveti <span class="em" cartproducts="">produse</span> in cos</span> 964 <span class="spacing">Cost total: <span class="em" carttotals="">Cosul este gol</span></span> 965 <span class="spacing cart--footer__button">Finalizeaza Comanda</span> 966 </a> 967 </div> 968 </div> 969 </div> 970 </div> 971 </div> 972 973 974 975 976 977 @* JS Libraries *@ 978 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/bootstrap.min.js"></script> 979 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/libraries/slick.min.js"></script> 980 <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js" type="text/javascript"></script> 981 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/jquery.noty.packaged.js"></script> 982 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/bpopup.js"></script> 983 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.0/jquery.flexslider.min.js"></script> 984 985 986 987 988 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/libraries/jscookie.js"></script> 989 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/alertify.js"></script> 990 @* <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/mobile-menu.js"></script> *@ 991 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/mobile-menu-v2.js"></script> 992 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/login.js"></script> 993 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/main.js"></script> 994 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/carousels.js"></script> 995 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/main-v2.js"></script> 996 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/product-modal.js"></script> 997 998 999 <script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.js" type="text/javascript"></script> 1000 <script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe-ui-default.min.js" type="text/javascript"></script> 1001 <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.6/lodash.min.js" type="text/javascript" charset="utf-8"></script> 1002 1003 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/product-list.js"></script> 1004 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/loader.js"></script> 1005 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/minicart.js"></script> 1006 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/voucher.js"></script> 1007 <script type="text/javascript" src="/Files/Templates/Designs/Fusion/assets/js/cart.js"></script> 1008 1009 @RenderSnippet("modalBottom") 1010 @RenderSnippet("bottomJS") 1011 1012 @* Quickview modal *@ 1013 <div class="b-modal" id="quickview"> 1014 <div id="results" class="clearfix"></div> 1015 </div> 1016 1017 1018 1019 @RenderScripts("footer") 1020 </body> 1021