Error compiling template "Designs/Fusion/_parsed/LoginwithImpersonation.parsed.cshtml"
Line 2317: 'User' does not contain a definition for 'UserID' and no accessible extension method 'UserID' accepting a first argument of type 'User' could be found (are you missing a using directive or an assembly reference?)
Line 275: The variable 'cartPage' is assigned but its value is never used
Line 304: The variable 'navigationColumn' is assigned but its value is never used
Line 307: The variable 'navigationContent' is assigned but its value is never used
Line 335: The variable 'customerHidePrices' is assigned but its value is never used
Line 341: The variable 'orderAllow' is assigned but its value is never used
Line 342: The variable 'approveAllow' is assigned but its value is never used

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 97 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 2 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 22 using Dynamicweb.Rendering; 23 24 #line default 25 #line hidden 26 27 #line 3 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 28 using System.Text.RegularExpressions; 29 30 #line default 31 #line hidden 32 33 #line 96 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 34 using System.Web; 35 36 #line default 37 #line hidden 38 39 #line 5 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 40 using Dynamicweb.Environment; 41 42 #line default 43 #line hidden 44 45 #line 91 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 46 using Dynamicweb; 47 48 #line default 49 #line hidden 50 51 #line 92 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 52 using Dynamicweb.Ecommerce.Products; 53 54 #line default 55 #line hidden 56 57 #line 93 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 58 using Dynamicweb.Security.UserManagement; 59 60 #line default 61 #line hidden 62 63 #line 94 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 64 using Dynamicweb.Modules.UserManagement; 65 66 #line default 67 #line hidden 68 69 #line 95 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 70 using Dynamicweb.Frontend; 71 72 #line default 73 #line hidden 74 75 76 public class RazorEngine_d0b0851793c44da58e6e634fc664b336 : RazorTemplateBase<RazorTemplateModel<Template>> { 77 78 #line hidden 79 80 #line 7 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 81 public RazorEngine.Templating.TemplateWriter RenderScripts(string location) 82 { 83 #line default 84 #line hidden 85 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 86 87 #line 8 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 88 89 //possible location values: header, body, footer; 90 //posible scope: tracking, marketing, preferences, functional; 91 //possible cookie option values; 92 //no cookies = 0; 93 //functional only=1; 94 //all=2; 95 //marketing = 3; 96 //tracking = 4; 97 //preferences = 5; 98 //Item.Area.Tracking.Code; 99 //Item.Area.Tracking.Location; 100 //Item.Area.Tracking.Scope; 101 //cookie=Dynamicweb.CookieOptInLevel; 102 //Functional; 103 //None; 104 //All; 105 CookieOptInLevel level = CookieManager.GetCookieOptInLevel(); 106 int x = (int)level; 107 string[] allowedFunctional = {"functional"}; 108 string[] allowedTracking = {"functional","tracking"}; 109 string[] allowedMarketing = {"functional","marketing","tracking"}; 110 string[] allowedScope = {"functional"}; 111 switch(x) 112 { 113 case 0: 114 allowedScope = allowedFunctional; 115 break; 116 case 1: 117 allowedScope = allowedTracking; 118 break; 119 case 2: 120 allowedScope = allowedMarketing; 121 break; 122 default: 123 allowedScope = allowedFunctional; 124 break; 125 } 126 127 if(!string.IsNullOrEmpty(location) && x > 0){ 128 var trackingScripts = GetLoop("Item.Area.Tracking").Where(a=>a.GetString("Item.Area.Tracking.Location") == location); 129 trackingScripts = trackingScripts.Where(z=>allowedScope.Any(y=>y == z.GetString("Item.Area.Tracking.Scope"))); 130 foreach(var trackingScript in trackingScripts){ 131 132 133 #line default 134 #line hidden 135 WriteLiteralTo(__razor_helper_writer, " "); 136 137 138 #line 51 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 139 WriteTo(__razor_helper_writer, trackingScript.GetString("Item.Area.Tracking.Code")); 140 141 142 #line default 143 #line hidden 144 WriteLiteralTo(__razor_helper_writer, "\r\n"); 145 146 147 #line 52 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 148 } 149 } 150 151 152 153 154 #line default 155 #line hidden 156 }); 157 158 #line 56 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 159 } 160 #line default 161 #line hidden 162 163 164 #line 59 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 165 166 private string CommaSplittedString(string CommaSplittedString, string NewString) 167 { 168 169 if (!string.IsNullOrEmpty(CommaSplittedString)) 170 { 171 CommaSplittedString += ", "; 172 } 173 CommaSplittedString = NewString; 174 175 return CommaSplittedString; 176 } 177 public static string StripHtml(string source) 178 { 179 return Regex.Replace(source, "<.*?>", string.Empty); 180 } 181 182 183 184 185 186 187 188 189 190 #line default 191 #line hidden 192 193 194 public RazorEngine_d0b0851793c44da58e6e634fc664b336() { 195 } 196 197 public override void Execute() { 198 WriteLiteral("\r\n"); 199 200 WriteLiteral("\r\n\r\n"); 201 202 WriteLiteral(@"<!DOCTYPE html> 203 <!--[if lt IE 7]> <html class=""no-js lt-ie9 lt-ie8 lt-ie7""> <![endif]--> 204 <!--[if IE 7]> <html class=""no-js lt-ie9 lt-ie8""> <![endif]--> 205 <!--[if IE 8]> <html class=""no-js lt-ie9""> <![endif]--> 206 <!--[if gt IE 8]> <html class=""no-js""> <![endif]--> 207 208 <head> 209 "); 210 211 212 #line 91 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 213 214 215 #line default 216 #line hidden 217 218 #line 98 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 219 220 var serviceLocator = Dynamicweb.Extensibility.ServiceLocator.Current; 221 var pageService = serviceLocator.GetInstance<Dynamicweb.Content.IPageService>(); 222 223 var DisplayOptions = ""; 224 225 if (!string.IsNullOrEmpty(GetGlobalValue("Global:Item.Page.DisplayOptions").ToString())){ 226 DisplayOptions = (GetGlobalValue("Global:Item.Page.DisplayOptions").ToString() == "wide") ? "container-wide" : ""; 227 } 228 var pageURL = "/Default.aspx?" + System.Web.HttpContext.Current.Request.QueryString; 229 string b2cPageRedirect = "/Default.aspx?ID=4626"; 230 var currentPageID = GetGlobalValue("Global:Page.ID"); 231 232 var currentUserAccess = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 233 var user = currentUserAccess; 234 var currentUser = currentUserAccess; 235 bool userIsLoggedIn = currentUser != null; 236 237 string customerNo = userIsLoggedIn ? currentUser.CustomerNumber : ""; 238 bool isCS = userIsLoggedIn ? BrandFusion.Dw.Austral.eCommerce.UserExtensions.IsCs(currentUserAccess) : false; 239 240 if(userIsLoggedIn && customerNo == "" && !isCS && currentPageID != "4626" ){ 241 HttpContext.Current.Response.Redirect(b2cPageRedirect, false); 242 } 243 244 245 246 #line default 247 #line hidden 248 249 #line 125 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 250 251 252 var area = PageView.Current().Area; 253 254 255 256 #line default 257 #line hidden 258 259 #line 131 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 260 261 262 263 264 #line default 265 #line hidden 266 267 #line 135 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 268 269 270 //var firstPageID = Dynamicweb.Frontend.PageView.Current().Area.AreaFirstPage; //PageView.Current().Area.FirstPage; 271 var firstPageID = pageService.GetFirstPageForArea(area.ID); 272 273 274 275 string cartPage = "13"; 276 277 //Rolul userului autentificat 278 int customerRole = -1; 279 280 281 //customer numberul userului autentificat 282 //string customerNo = currentUser.LoggedIn ? currentUser.CustomerNumber.ToString() : null; 283 //string customerNo = currentUserAccess != null ? currentUserAccess.CustomerNumber : null; 284 285 //Id-ul nodului parinte pentru navigatie 286 var navigationParentId = !string.IsNullOrEmpty(customerNo) ? 17 : 17; 287 288 //determina daca navigatia este colapsata sau este vizibila implicit 289 var navigationCollapsed = "category-collapsed"; 290 if (!string.IsNullOrEmpty(GetString("Item.Page.DisplayOptions.Value"))){ 291 navigationCollapsed = GetString("Item.Page.DisplayOptions.Value"); 292 } 293 294 //determina fisierul XSLT folosit pentru randarea navigatiei 295 296 297 #line default 298 #line hidden 299 300 #line 163 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 301 302 303 //determina daca afisam navigatie pe coloana din stanga sau nu 304 var navigationColumn = 3; 305 306 //determina numarul de coloane al zonei de content 307 var navigationContent = 9; 308 309 //defineste obiect general de tip customer settings 310 //var customerSettings = !string.IsNullOrEmpty(customerNo) ? BrandFusion.Dw.Austral.eCommerce.CustomerFacade.Get(customerNo) : null; 311 var customerSettings = !string.IsNullOrEmpty(customerNo) ? BrandFusion.Dw.Austral.eCommerce.CustomerFacade.Get(customerNo,"aus") : null; 312 313 //Limita lunara totala pentru comenzi 314 var customerMonthlyLimit = customerSettings != null ? customerSettings.MonthlyBudget.GetValueOrDefault() : 0; 315 316 //Ziua de inceput pentru plasarea comenzilor 317 var customerOrderStart = customerSettings != null ? customerSettings.OrderStart.GetValueOrDefault() : 0; 318 319 //Ziua de sfarsit pentru plasarea comenzilor 320 var customerOrderEnd = customerSettings != null ? customerSettings.OrderEnd.GetValueOrDefault() : 0; 321 322 //Ziua de inceput pentru aprobarea comenzilor 323 var customerApprovalStart = customerSettings != null ? customerSettings.ApprovalStart.GetValueOrDefault() : 0; 324 325 //Ziua de sfarsit pentru aprobarea comenzilor 326 var customerApprovalEnd = customerSettings != null ? customerSettings.ApprovalEnd.GetValueOrDefault() : 0; 327 328 //Valoare minima comanda 329 decimal customerMinimumOrderValue = customerSettings != null ? customerSettings.MinimumOrderValue.GetValueOrDefault() : 0; 330 331 //Mesaj pentru comanda minima 332 string customerMinimumOrderMessage = customerSettings != null ? customerSettings.MinimumOrderValueMessage : ""; 333 334 //Ascunde preturile pentru user 335 bool customerHidePrices = false;//customerSettings != null ? customerSettings.HidePrices.GetValueOrDefault() : false; 336 337 338 int todayDay = (int)DateTime.Now.Day; 339 340 341 bool orderAllow = true ; 342 bool approveAllow = true ; 343 344 if (todayDay < customerOrderStart || todayDay > customerOrderEnd){ 345 orderAllow = false; 346 } 347 if (todayDay < customerApprovalStart || todayDay > customerApprovalEnd){ 348 approveAllow = false; 349 } 350 351 352 353 string customerListGroupID = null; 354 if (currentUserAccess != null) { 355 var productSpecialListNumberField = currentUserAccess.CustomFieldValues.FirstOrDefault(f => f.CustomField.SystemName == "AccessUser_Products_SpecialList_Number"); 356 var productSpecialListNumber = productSpecialListNumberField != null ? productSpecialListNumberField.Value as string : null; 357 if (!string.IsNullOrEmpty(productSpecialListNumber)) { 358 customerListGroupID = BrandFusion.Dw.Austral.eCommerce.GroupFacade.GetGroupId(productSpecialListNumber); 359 } else if (!string.IsNullOrEmpty(customerNo)) { 360 customerListGroupID = BrandFusion.Dw.Austral.eCommerce.GroupFacade.GetGroupId(customerNo); 361 } 362 } 363 364 if(!string.IsNullOrEmpty(customerNo)){ 365 customerRole = BrandFusion.Dw.Austral.eCommerce.UserFacade.GetRole(currentUserAccess).GetValueOrDefault(); 366 } 367 368 369 HttpContext.Current.Session["userListView"] = "box"; 370 371 if(System.Web.HttpContext.Current.Request["view"] != null){ 372 HttpContext.Current.Session["userListView"] = System.Web.HttpContext.Current.Request["view"]; 373 } 374 375 string userListView = HttpContext.Current.Session["userListView"].ToString(); 376 377 378 379 380 #line default 381 #line hidden 382 WriteLiteral(" \r\n\r\n\r\n <title>"); 383 384 385 #line 243 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 386 Write(GetValue("Title")); 387 388 389 #line default 390 #line hidden 391 WriteLiteral("</title>\r\n"); 392 393 394 #line 244 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 395 Write(GetValue("MetaTags")); 396 397 398 #line default 399 #line hidden 400 WriteLiteral("\r\n"); 401 402 403 #line 245 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 404 Write(GetValue("CopyRightNotice")); 405 406 407 #line default 408 #line hidden 409 WriteLiteral("\r\n\r\n \r\n <meta"); 410 411 WriteLiteral(" charset=\"utf-8\""); 412 413 WriteLiteral(">\r\n <meta"); 414 415 WriteLiteral(" http-equiv=\"X-UA-Compatible\""); 416 417 WriteLiteral(" content=\"IE=edge,chrome=1\""); 418 419 WriteLiteral(">\r\n \r\n <meta"); 420 421 WriteLiteral(" name=\"viewport\""); 422 423 WriteLiteral(" content=\"width=device-width, initial-scale=1\""); 424 425 WriteLiteral(">\r\n \r\n"); 426 427 428 #line 253 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 429 430 431 #line default 432 #line hidden 433 434 #line 253 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 435 foreach (LoopItem i in GetLoop("Item.Area.Groups")) { 436 if (i.GetString("Item.Area.Group.Name") == "Header") { 437 foreach (LoopItem j in i.GetLoop("Item.Area.Group.Fields")) { 438 439 440 #line default 441 #line hidden 442 WriteLiteral(" \t\t\t<meta"); 443 444 WriteAttribute("name", Tuple.Create(" name=\'", 9440), Tuple.Create("\'", 9483) 445 446 #line 256 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 447 , Tuple.Create(Tuple.Create("", 9447), Tuple.Create<System.Object, System.Int32>(j.GetString("Item.Area.Field.Name") 448 449 #line default 450 #line hidden 451 , 9447), false) 452 ); 453 454 WriteAttribute("content", Tuple.Create(" content=\'", 9484), Tuple.Create("\'", 9531) 455 456 #line 256 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 457 , Tuple.Create(Tuple.Create("", 9494), Tuple.Create<System.Object, System.Int32>(j.GetString("Item.Area.Field.Value") 458 459 #line default 460 #line hidden 461 , 9494), false) 462 ); 463 464 WriteLiteral(">\r\n"); 465 466 467 #line 257 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 468 } 469 } 470 } 471 472 473 #line default 474 #line hidden 475 WriteLiteral(" "); 476 477 478 #line 260 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 479 Write(RenderSnippet("Meta")); 480 481 482 #line default 483 #line hidden 484 WriteLiteral("\r\n <meta"); 485 486 WriteLiteral(" name=\"facebook-domain-verification\""); 487 488 WriteLiteral(" content=\"6sw38rlj8z2blddpnx9sngk2g4j5t2\""); 489 490 WriteLiteral(">\r\n <link"); 491 492 WriteLiteral(" rel=\"shortcut icon\""); 493 494 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/img/favicon.ico\""); 495 496 WriteLiteral(">\r\n <link"); 497 498 WriteLiteral(" href=\'//fonts.googleapis.com/css?family=Roboto+Slab:400,300,100,700&subset=latin" + 499 ",latin-ext\'"); 500 501 WriteLiteral(" rel=\'stylesheet\'"); 502 503 WriteLiteral(" type=\'text/css\'"); 504 505 WriteLiteral(">\r\n <link"); 506 507 WriteLiteral(" href=\'//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300\'"); 508 509 WriteLiteral(" rel=\'stylesheet\'"); 510 511 WriteLiteral(" type=\'text/css\'"); 512 513 WriteLiteral(">\r\n <link"); 514 515 WriteLiteral(" href=\'//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic," + 516 "700italic,800italic,400,300,600,700,800&subset=latin,latin-ext\'"); 517 518 WriteLiteral(" rel=\'stylesheet\'"); 519 520 WriteLiteral(" type=\'text/css\'"); 521 522 WriteLiteral(">\r\n <link"); 523 524 WriteLiteral(" href=\'//fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,600,700,900,300&" + 525 "subset=latin,latin-ext\'"); 526 527 WriteLiteral(" rel=\'stylesheet\'"); 528 529 WriteLiteral(" type=\'text/css\'"); 530 531 WriteLiteral(">\r\n <link"); 532 533 WriteLiteral(" href=\'//fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700&subset=latin" + 534 ",latin-ext\'"); 535 536 WriteLiteral(" rel=\'stylesheet\'"); 537 538 WriteLiteral(" type=\'text/css\'"); 539 540 WriteLiteral(">\r\n\r\n "); 541 542 WriteLiteral("\r\n\r\n <link"); 543 544 WriteLiteral(" rel=\"stylesheet\""); 545 546 WriteLiteral(" type=\"text/css\""); 547 548 WriteLiteral(" href=\"//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.c" + 549 "ss\""); 550 551 WriteLiteral(">\r\n <link"); 552 553 WriteLiteral(" rel=\"stylesheet\""); 554 555 WriteLiteral(" type=\"text/css\""); 556 557 WriteLiteral(" href=\"//cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css\""); 558 559 WriteLiteral(">\r\n\r\n "); 560 561 WriteLiteral("\r\n <link"); 562 563 WriteLiteral(" rel=\"stylesheet\""); 564 565 WriteLiteral(" type=\"text/css\""); 566 567 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/cdnj/animate.css\""); 568 569 WriteLiteral(">\r\n "); 570 571 WriteLiteral("\r\n <link"); 572 573 WriteLiteral(" rel=\"stylesheet\""); 574 575 WriteLiteral(" type=\"text/css\""); 576 577 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/cdnj/default-skin.min.css\""); 578 579 WriteLiteral(">\r\n <link"); 580 581 WriteLiteral(" rel=\"stylesheet\""); 582 583 WriteLiteral(" type=\"text/css\""); 584 585 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/cdnj/flexslider.min.css\""); 586 587 WriteLiteral(">\r\n "); 588 589 WriteLiteral("\r\n <link"); 590 591 WriteLiteral(" rel=\"stylesheet\""); 592 593 WriteLiteral(" type=\"text/css\""); 594 595 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/cdnj/photoswipe.min.css\""); 596 597 WriteLiteral(">\r\n <link"); 598 599 WriteLiteral(" rel=\"stylesheet\""); 600 601 WriteLiteral(" type=\"text/css\""); 602 603 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/cdnj/slick.min.css\""); 604 605 WriteLiteral(">\r\n\r\n\r\n \r\n \r\n "); 606 607 WriteLiteral("\r\n \t\r\n \t\r\n <link"); 608 609 WriteLiteral(" rel=\"stylesheet\""); 610 611 WriteLiteral(" type=\"text/css\""); 612 613 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/main-v3.css\""); 614 615 WriteLiteral(">\r\n \r\n\r\n "); 616 617 WriteLiteral("\r\n <link"); 618 619 WriteLiteral(" rel=\"stylesheet\""); 620 621 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/fix-mobile.css\""); 622 623 WriteLiteral(">\r\n <link"); 624 625 WriteLiteral(" rel=\"stylesheet\""); 626 627 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/fixCss.css\""); 628 629 WriteLiteral(">\r\n <link"); 630 631 WriteLiteral(" rel=\"stylesheet\""); 632 633 WriteLiteral(" type=\"text/css\""); 634 635 WriteLiteral(" href=\"/Files/Templates/Designs/Fusion/assets/css/fix-transition.css\""); 636 637 WriteLiteral(@"> 638 639 640 641 642 <!--[if lt IE 9]> 643 <link rel=""stylesheet"" href=""/Files/Templates/Designs/Fusion/assets/css/ie.css"" /> 644 <script type=""text/javascript"" src=""/Files/Templates/Designs/Fusion/assets/js/html5shiv.min.js""></script> 645 <script type=""text/javascript"" src=""/Files/Templates/Designs/Fusion/assets/js/respond.min.js""></script> 646 <![endif]--> 647 648 <script"); 649 650 WriteLiteral(" type=\"text/javascript\""); 651 652 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/jquery-1.12.3.min.js\""); 653 654 WriteLiteral("></script>\r\n <script"); 655 656 WriteLiteral(" type=\"text/javascript\""); 657 658 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/modernizr-2.7.1.min.js\""); 659 660 WriteLiteral("></script>\r\n <script"); 661 662 WriteLiteral(" type=\"text/javascript\""); 663 664 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/modernizr-custom.js\""); 665 666 WriteLiteral("></script> \r\n \r\n"); 667 668 WriteLiteral(" "); 669 670 671 #line 320 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 672 Write(RenderSnippet("Head")); 673 674 675 #line default 676 #line hidden 677 WriteLiteral(@" 678 679 <!-- Facebook Pixel Code --> 680 <script> 681 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? 682 n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; 683 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; 684 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, 685 document,'script','https://connect.facebook.net/en_US/fbevents.js'); 686 687 fbq('init', '1448596761825791'); 688 fbq('track', ""PageView"");</script> 689 <noscript><img"); 690 691 WriteLiteral(" height=\"1\""); 692 693 WriteLiteral(" width=\"1\""); 694 695 WriteLiteral(" style=\"display:none\""); 696 697 WriteLiteral(" src=\"https://www.facebook.com/tr?id=1448596761825791&ev=PageView&noscript=1\""); 698 699 WriteLiteral("></noscript>\r\n <!-- End Facebook Pixel Code -->\r\n \r\n \r\n \r\n \r" + 700 "\n"); 701 702 WriteLiteral(" "); 703 704 705 #line 338 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 706 Write(RenderScripts("header")); 707 708 709 #line default 710 #line hidden 711 WriteLiteral("\r\n\r\n \r\n <meta"); 712 713 WriteLiteral(" name=\"google-site-verification\""); 714 715 WriteLiteral(" content=\"RC3gdwFLyrYziMTNmlGB9YvN-n-7IDIGCY2rOHAfKQk\""); 716 717 WriteLiteral(">\r\n <meta"); 718 719 WriteLiteral(" name=\"google-site-verification\""); 720 721 WriteLiteral(" content=\"HwvHBJZdAxmQVtH4XGXNG_Bl1YmafpX8k7RVNF_v2mo\""); 722 723 WriteLiteral(">\r\n <meta"); 724 725 WriteLiteral(" name=\"google-site-verification\""); 726 727 WriteLiteral(" content=\"7SwW0RX0W2anTHnl1zpoX1V4xfuqBjXw6wjPHUrtMSk\""); 728 729 WriteLiteral(">\r\n"); 730 731 732 #line 344 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 733 Write(GetValue("Stylesheets")); 734 735 736 #line default 737 #line hidden 738 WriteLiteral("\r\n"); 739 740 741 #line 345 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 742 Write(GetValue("Javascripts")); 743 744 745 #line default 746 #line hidden 747 WriteLiteral("\r\n</head>\r\n<body"); 748 749 WriteLiteral(" data-pageid=\'"); 750 751 752 #line 347 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 753 Write(GetGlobalValue("Global:Page.ID")); 754 755 756 #line default 757 #line hidden 758 WriteLiteral("\'"); 759 760 WriteLiteral(" data-productpage=\'"); 761 762 763 #line 347 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 764 Write(GetValue("Item.Area.Catalog_Page")); 765 766 767 #line default 768 #line hidden 769 WriteLiteral("\'"); 770 771 WriteLiteral(" data-paragraph=\'"); 772 773 774 #line 347 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 775 Write(GetValue("Item.Area.InstantSearch_Paragraph")); 776 777 778 #line default 779 #line hidden 780 WriteLiteral("\'"); 781 782 WriteLiteral(" data-areaid=\'"); 783 784 785 #line 347 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 786 Write(GetGlobalValue("Global:Area.ID")); 787 788 789 #line default 790 #line hidden 791 WriteLiteral("\'"); 792 793 WriteLiteral(">\r\n"); 794 795 796 #line 348 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 797 Write(RenderScripts("body")); 798 799 800 #line default 801 #line hidden 802 WriteLiteral(@" 803 <!--[if lt IE 7]> 804 <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> 805 <![endif]--> 806 807 "); 808 809 WriteLiteral("\r\n <div"); 810 811 WriteLiteral(" class=\"header-mobile\""); 812 813 WriteLiteral(">\r\n <div"); 814 815 WriteLiteral(" class=\"col-xs-12\""); 816 817 WriteLiteral(">\r\n <div"); 818 819 WriteLiteral(" class=\"row\""); 820 821 WriteLiteral(">\r\n <div"); 822 823 WriteLiteral(" class=\"logo col-xs-6\""); 824 825 WriteLiteral(">\r\n <a"); 826 827 WriteLiteral(" href=\"/\""); 828 829 WriteLiteral(">\r\n <img"); 830 831 WriteAttribute("src", Tuple.Create(" src=\'", 15953), Tuple.Create("\'", 15986) 832 833 #line 359 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 834 , Tuple.Create(Tuple.Create("", 15959), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Logo") 835 836 #line default 837 #line hidden 838 , 15959), false) 839 ); 840 841 WriteAttribute("alt", Tuple.Create(" alt=\'", 15987), Tuple.Create("\'", 16025) 842 843 #line 359 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 844 , Tuple.Create(Tuple.Create("", 15993), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Site_Name") 845 846 #line default 847 #line hidden 848 , 15993), false) 849 ); 850 851 WriteLiteral(">\r\n </a>\r\n </div> \r\n <div"); 852 853 WriteLiteral(" class=\"mobile-nav-trigger col-xs-6\""); 854 855 WriteLiteral("> \r\n"); 856 857 858 #line 363 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 859 860 861 #line default 862 #line hidden 863 864 #line 363 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 865 866 867 System.Globalization.TextInfo myTIMobile = new System.Globalization.CultureInfo("en-US", false).TextInfo; 868 869 870 #line default 871 #line hidden 872 873 #line 368 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 874 875 var userMobile = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 876 var userProfileNameMobile = userMobile; 877 bool userMobileIsLoggedIn = userProfileNameMobile != null; 878 879 string userCustomerNumberMobile = userIsLoggedIn && currentUser.CustomerNumber != null ? currentUser.CustomerNumber.ToString() : null; 880 881 882 883 //string userCustomerNumberMobile = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser().CustomerNumber; 884 885 886 string userAccountLinkMobile = "/Default.aspx?ID=9"; 887 string userCartLinkMobile = "/Default.aspx?ID=13"; 888 889 if (!string.IsNullOrEmpty(userCustomerNumberMobile)) { 890 userAccountLinkMobile = "/Default.aspx?ID=170"; 891 userCartLinkMobile = "/Default.aspx?ID=42"; 892 } 893 894 895 896 #line default 897 #line hidden 898 WriteLiteral("\r\n\r\n\r\n\r\n<button"); 899 900 WriteLiteral(" type=\"button\""); 901 902 WriteLiteral(" id=\"mobile-nav-button\""); 903 904 WriteLiteral("><i"); 905 906 WriteLiteral(" class=\"fa fa-bars\""); 907 908 WriteLiteral("></i></button>\r\n<div"); 909 910 WriteLiteral(" class=\"minicart\""); 911 912 WriteLiteral(">\r\n <a"); 913 914 WriteAttribute("href", Tuple.Create(" href=\"", 17378), Tuple.Create("\"", 17404) 915 916 #line 394 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 917 , Tuple.Create(Tuple.Create("", 17385), Tuple.Create<System.Object, System.Int32>(userCartLinkMobile 918 919 #line default 920 #line hidden 921 , 17385), false) 922 ); 923 924 WriteLiteral(">\r\n <i"); 925 926 WriteLiteral(" class=\"ion-android-cart\""); 927 928 WriteLiteral("></i> \r\n"); 929 930 931 #line 396 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 932 933 934 #line default 935 #line hidden 936 937 #line 396 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 938 if (!@GetBoolean("Ecom:Order.IsEmpty")) { 939 940 941 #line default 942 #line hidden 943 WriteLiteral(" <span"); 944 945 WriteLiteral(" data-minicart-update=\"\""); 946 947 WriteLiteral(">(0)</span> \r\n"); 948 949 950 #line 398 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 951 } else { 952 953 954 #line default 955 #line hidden 956 WriteLiteral(" <span"); 957 958 WriteLiteral(" data-minicart-update=\"\""); 959 960 WriteLiteral(">Cosul tau este gol</span> \r\n"); 961 962 963 #line 400 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 964 } 965 966 967 #line default 968 #line hidden 969 WriteLiteral(" \r\n </a>\r\n</div>\r\n\r\n"); 970 971 WriteLiteral("\r\n"); 972 973 974 #line 406 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 975 976 977 #line default 978 #line hidden 979 980 #line 406 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 981 if(userMobile == null) { 982 983 984 #line default 985 #line hidden 986 WriteLiteral(" <button"); 987 988 WriteLiteral(" type=\"button\""); 989 990 WriteLiteral(" class=\"mobile-header-overlay-trigger\""); 991 992 WriteLiteral("><i"); 993 994 WriteLiteral(" class=\"fa fa-user\""); 995 996 WriteLiteral("></i></button>\r\n"); 997 998 WriteLiteral(" <div"); 999 1000 WriteLiteral(" class=\"mobile-header-overlay animated\""); 1001 1002 WriteLiteral(">\r\n <a"); 1003 1004 WriteLiteral(" href=\"/Default.aspx?ID=11\""); 1005 1006 WriteLiteral(" class=\"btn-main animated\""); 1007 1008 WriteLiteral(">"); 1009 1010 1011 #line 409 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1012 Write(Translate("Intra in cont","Intra in cont")); 1013 1014 1015 #line default 1016 #line hidden 1017 WriteLiteral("</a>\r\n "); 1018 1019 WriteLiteral("\r\n <button"); 1020 1021 WriteLiteral(" type=\"button\""); 1022 1023 WriteLiteral(" class=\"overlay-close\""); 1024 1025 WriteLiteral("><i"); 1026 1027 WriteLiteral(" class=\"fa fa-close\""); 1028 1029 WriteLiteral("></i> "); 1030 1031 1032 #line 411 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1033 Write(Translate("Inchide","Inchide")); 1034 1035 1036 #line default 1037 #line hidden 1038 WriteLiteral("</button>\r\n </div>\r\n"); 1039 1040 1041 #line 413 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1042 1043 } else { 1044 1045 1046 #line default 1047 #line hidden 1048 WriteLiteral(" <button"); 1049 1050 WriteLiteral(" type=\"button\""); 1051 1052 WriteLiteral(" class=\"mobile-header-overlay-trigger\""); 1053 1054 WriteLiteral("><i"); 1055 1056 WriteLiteral(" class=\"fa fa-user\""); 1057 1058 WriteLiteral("></i></button>\r\n"); 1059 1060 WriteLiteral(" <div"); 1061 1062 WriteLiteral(" class=\"mobile-header-overlay animated\""); 1063 1064 WriteLiteral(">\r\n <a"); 1065 1066 WriteLiteral(" href=\"/Admin/Public/ExtranetLogoff.aspx\""); 1067 1068 WriteLiteral(" class=\"btn-main animated\""); 1069 1070 WriteLiteral("><i"); 1071 1072 WriteLiteral(" class=\"fa fa-unlock-alt\""); 1073 1074 WriteLiteral("></i> "); 1075 1076 1077 #line 417 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1078 Write(Translate("Logout","Logout")); 1079 1080 1081 #line default 1082 #line hidden 1083 WriteLiteral("</a> \r\n <a"); 1084 1085 WriteAttribute("href", Tuple.Create(" href=\"", 18548), Tuple.Create("\"", 18577) 1086 1087 #line 418 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1088 , Tuple.Create(Tuple.Create("", 18555), Tuple.Create<System.Object, System.Int32>(userAccountLinkMobile 1089 1090 #line default 1091 #line hidden 1092 , 18555), false) 1093 ); 1094 1095 WriteLiteral(" class=\"btn-main animated\""); 1096 1097 WriteLiteral("><i"); 1098 1099 WriteLiteral(" class=\"fa fa-user\""); 1100 1101 WriteLiteral("></i> "); 1102 1103 1104 #line 418 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1105 Write(Translate("Contul meu","Contul meu")); 1106 1107 1108 #line default 1109 #line hidden 1110 WriteLiteral("</a>\r\n <button"); 1111 1112 WriteLiteral(" type=\"button\""); 1113 1114 WriteLiteral(" class=\"overlay-close\""); 1115 1116 WriteLiteral("><i"); 1117 1118 WriteLiteral(" class=\"fa fa-close\""); 1119 1120 WriteLiteral("></i> "); 1121 1122 1123 #line 419 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1124 Write(Translate("Inchide","Inchide")); 1125 1126 1127 #line default 1128 #line hidden 1129 WriteLiteral("</button>\r\n </div>\r\n"); 1130 1131 1132 #line 421 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1133 1134 } 1135 1136 1137 #line default 1138 #line hidden 1139 WriteLiteral("\r\n \r\n </div>\r\n \r\n <div"); 1140 1141 WriteLiteral(" class=\"search-mobile col-xs-12\""); 1142 1143 WriteLiteral("><form"); 1144 1145 WriteLiteral(" action=\"/Default.aspx?ID=127\""); 1146 1147 WriteLiteral(" method=\"GET\""); 1148 1149 WriteLiteral(">\r\n <div"); 1150 1151 WriteLiteral(" class=\"form-group\""); 1152 1153 WriteLiteral(">\r\n <input"); 1154 1155 WriteLiteral(" type=\"text\""); 1156 1157 WriteLiteral(" name=\"q\""); 1158 1159 WriteLiteral(" id=\"q-mobile\""); 1160 1161 WriteLiteral(" autocomplete=\"off\""); 1162 1163 WriteLiteral(" spellcheck=\"false\""); 1164 1165 WriteAttribute("placeholder", Tuple.Create(" placeholder=\'", 19061), Tuple.Create("\'", 19125) 1166 1167 #line 429 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1168 , Tuple.Create(Tuple.Create("", 19075), Tuple.Create<System.Object, System.Int32>(Translate("search", "Cauta dupa cod sau nume...") 1169 1170 #line default 1171 #line hidden 1172 , 19075), false) 1173 ); 1174 1175 WriteLiteral(" class=\"form-control\""); 1176 1177 WriteLiteral(">\r\n"); 1178 1179 1180 #line 430 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1181 1182 1183 #line default 1184 #line hidden 1185 1186 #line 430 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1187 if(!string.IsNullOrEmpty(customerNo) && !string.IsNullOrEmpty(customerListGroupID)){ 1188 1189 1190 #line default 1191 #line hidden 1192 WriteLiteral(" \t\t<input"); 1193 1194 WriteLiteral(" type=\"hidden\""); 1195 1196 WriteLiteral(" name=\"CustomerNumber\""); 1197 1198 WriteLiteral(" id=\"CustomerNumber\""); 1199 1200 WriteAttribute("value", Tuple.Create(" value=\"", 19309), Tuple.Create("\"", 19328) 1201 1202 #line 431 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1203 , Tuple.Create(Tuple.Create("", 19317), Tuple.Create<System.Object, System.Int32>(customerNo 1204 1205 #line default 1206 #line hidden 1207 , 19317), false) 1208 ); 1209 1210 WriteLiteral(">\r\n"); 1211 1212 1213 #line 432 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1214 } 1215 1216 1217 #line default 1218 #line hidden 1219 WriteLiteral(" <button"); 1220 1221 WriteLiteral(" type=\"submit\""); 1222 1223 WriteLiteral("><i"); 1224 1225 WriteLiteral(" class=\"ion-ios-search-strong\""); 1226 1227 WriteLiteral("></i></button>\r\n <div"); 1228 1229 WriteLiteral(" class=\"instant_search\""); 1230 1231 WriteLiteral("></div>\r\n </div>\r\n</form></div>\r\n \r\n </div>\r\n </div> \r\n </di" + 1232 "v>\r\n<div"); 1233 1234 WriteLiteral(" id=\"mobile-navigation-overlay\""); 1235 1236 WriteLiteral(">\r\n <button"); 1237 1238 WriteLiteral(" type=\"button\""); 1239 1240 WriteLiteral(" class=\"overlay-close\""); 1241 1242 WriteLiteral("><i"); 1243 1244 WriteLiteral(" class=\"fa fa-close\""); 1245 1246 WriteLiteral("></i> "); 1247 1248 1249 #line 442 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1250 Write(Translate("Inchide","Inchide")); 1251 1252 1253 #line default 1254 #line hidden 1255 WriteLiteral("</button>\r\n <div"); 1256 1257 WriteLiteral(" class=\"content-scrollable\""); 1258 1259 WriteLiteral(">\r\n "); 1260 1261 WriteLiteral("\r\n <ul"); 1262 1263 WriteLiteral(" class=\"root\""); 1264 1265 WriteLiteral(">\r\n <li> \r\n <a"); 1266 1267 WriteLiteral(" href=\"#\""); 1268 1269 WriteLiteral(">Categorii de produse</a>\r\n"); 1270 1271 WriteLiteral(" "); 1272 1273 1274 #line 448 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1275 Write(RenderNavigation(new { 1276 template = "CategoriesNavigationMobileB2B-v2.xslt", 1277 expandmode = "all", 1278 sitemapmode="true", 1279 id = "categories", 1280 startlevel = 1, 1281 endlevel = 5, 1282 areaid = 1 1283 })); 1284 1285 1286 #line default 1287 #line hidden 1288 WriteLiteral(" \r\n </li>\r\n </ul>\r\n "); 1289 1290 WriteLiteral("\r\n \r\n"); 1291 1292 1293 #line 461 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1294 1295 1296 #line default 1297 #line hidden 1298 1299 #line 461 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1300 if(!string.IsNullOrEmpty(customerNo) ) { 1301 1302 1303 #line default 1304 #line hidden 1305 1306 #line 462 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1307 Write(RenderNavigation(new { 1308 template = "MainNavigationMobile-v2.xslt", 1309 expandmode = "all", 1310 id = "NavMainMobileAll", 1311 startlevel = 2, 1312 endlevel = 4, 1313 parentid = 169, 1314 customerGroup = @customerListGroupID, 1315 customerRole = @customerRole 1316 })); 1317 1318 1319 #line default 1320 #line hidden 1321 1322 #line 471 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1323 ; 1324 } else { 1325 1326 1327 1328 #line default 1329 #line hidden 1330 1331 #line 474 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1332 Write(RenderNavigation(new { 1333 template = "MainNavigationMobile-v2.xslt", 1334 expandmode = "all", 1335 id = "NavMainMobileAll", 1336 startlevel = 1, 1337 endlevel = 4 1338 })); 1339 1340 1341 #line default 1342 #line hidden 1343 1344 #line 480 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1345 ; 1346 1347 } 1348 1349 1350 #line default 1351 #line hidden 1352 WriteLiteral(" \r\n </div> \r\n \r\n\r\n</div>\r\n"); 1353 1354 WriteLiteral("\r\n \r\n <div"); 1355 1356 WriteLiteral(" class=\"mobile-wrapper\""); 1357 1358 WriteLiteral(">\r\n \r\n"); 1359 1360 1361 #line 492 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1362 1363 1364 #line default 1365 #line hidden 1366 1367 #line 492 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1368 1369 1370 System.Globalization.TextInfo myTI = new System.Globalization.CultureInfo("en-US", false).TextInfo; 1371 1372 1373 #line default 1374 #line hidden 1375 1376 #line 497 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1377 1378 //string userProfileName = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser().Name;throw new Exception("Exceptie 01"); 1379 1380 1381 1382 var userProfileName = currentUser; 1383 1384 bool userLoggedIn = userProfileName != null; 1385 1386 1387 1388 1389 string userAccountLink = "/Default.aspx?ID=9"; 1390 string userCartLink = "/Default.aspx?ID=13"; 1391 1392 double cartQuantity = GetDouble("Ecom:Order.OrderLines.TotalProductQuantity"); 1393 double cartPrice = GetDouble("Ecom:Order.PriceWithoutFees.PriceWithVAT"); 1394 string currencyCart = GetString("Ecom:Order.Price.Currency.Symbol"); 1395 BrandFusion.Dw.Austral.eCommerce.CustomerAddress customerDetails = null; 1396 string customerLogo = ""; 1397 1398 1399 1400 #line default 1401 #line hidden 1402 1403 #line 518 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1404 1405 1406 1407 #line default 1408 #line hidden 1409 1410 #line 519 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1411 1412 string customerName = currentUserAccess != null ? userProfileName.Name.ToString() : ""; 1413 1414 string userCustomerNumber = userIsLoggedIn && currentUser.CustomerNumber != null ? currentUser.CustomerNumber.ToString() : null; 1415 1416 1417 if(!string.IsNullOrEmpty(userCustomerNumber)) { 1418 1419 1420 cartPrice = GetDouble("Ecom:Order.PriceWithoutFees.PriceWithoutVAT"); 1421 } 1422 1423 if (!string.IsNullOrEmpty(userCustomerNumber)) { 1424 1425 1426 userAccountLink = "/Default.aspx?ID=170"; 1427 userCartLink = "/Default.aspx?ID=42"; 1428 1429 } 1430 1431 if(!string.IsNullOrEmpty(userCustomerNumber)){ 1432 1433 1434 customerDetails = BrandFusion.Dw.Austral.eCommerce.CustomerFacade.GetB2bBillingAddress(userCustomerNumber); 1435 1436 if (customerDetails != null) 1437 { 1438 customerName = customerDetails.Company; 1439 customerLogo = !string.IsNullOrEmpty(customerDetails.GeoLocationImage) ? "/Files/Images/Austral/CustomerLogos/"+customerDetails.GeoLocationImage : ""; 1440 } 1441 } 1442 1443 1444 1445 #line default 1446 #line hidden 1447 WriteLiteral("\r\n"); 1448 1449 1450 #line 552 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1451 Write(SnippetStart("Head")); 1452 1453 1454 #line default 1455 #line hidden 1456 WriteLiteral("\r\n \r\n"); 1457 1458 1459 #line 554 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1460 Write(SnippetEnd("Head")); 1461 1462 1463 #line default 1464 #line hidden 1465 WriteLiteral("\r\n\r\n\r\n <div"); 1466 1467 WriteLiteral(" class=\"header-top hidden-xs hidden-sm\""); 1468 1469 WriteLiteral(">\r\n <div"); 1470 1471 WriteLiteral(" class=\"container\""); 1472 1473 WriteLiteral(">\r\n <div"); 1474 1475 WriteLiteral(" class=\"row\""); 1476 1477 WriteLiteral(">\r\n <div"); 1478 1479 WriteLiteral(" class=\"col-md-12\""); 1480 1481 WriteLiteral("> \r\n "); 1482 1483 WriteLiteral("\r\n"); 1484 1485 1486 #line 562 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1487 1488 1489 #line default 1490 #line hidden 1491 1492 #line 562 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1493 if(userIsLoggedIn) { 1494 1495 1496 #line default 1497 #line hidden 1498 WriteLiteral(" <ul"); 1499 1500 WriteLiteral(" class=\"right-align\""); 1501 1502 WriteLiteral("> \r\n "); 1503 1504 WriteLiteral("\r\n"); 1505 1506 1507 #line 565 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1508 1509 1510 #line default 1511 #line hidden 1512 1513 #line 565 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1514 if(userLoggedIn) { 1515 1516 1517 #line default 1518 #line hidden 1519 WriteLiteral(" <li>\r\n"); 1520 1521 1522 #line 567 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1523 1524 1525 #line default 1526 #line hidden 1527 1528 #line 567 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1529 if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) { 1530 1531 1532 #line default 1533 #line hidden 1534 WriteLiteral(" <a"); 1535 1536 WriteAttribute("href", Tuple.Create(" href=\"", 23907), Tuple.Create("\"", 23930) 1537 1538 #line 568 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1539 , Tuple.Create(Tuple.Create("", 23914), Tuple.Create<System.Object, System.Int32>(userAccountLink 1540 1541 #line default 1542 #line hidden 1543 , 23914), false) 1544 ); 1545 1546 WriteLiteral("> <i"); 1547 1548 WriteLiteral(" class=\"ion-ios-locked-outline\""); 1549 1550 WriteLiteral("></i>\r\n \r\n"); 1551 1552 WriteLiteral(" "); 1553 1554 1555 #line 570 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1556 Write(userProfileName.Name); 1557 1558 1559 #line default 1560 #line hidden 1561 WriteLiteral("\r\n \r\n"); 1562 1563 1564 #line 572 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1565 1566 1567 #line default 1568 #line hidden 1569 1570 #line 572 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1571 if(!string.IsNullOrEmpty(userCustomerNumber)) { 1572 1573 1574 #line default 1575 #line hidden 1576 WriteLiteral(" <span>- "); 1577 1578 1579 #line 573 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1580 Write(userCustomerNumber); 1581 1582 1583 #line default 1584 #line hidden 1585 WriteLiteral("</span>\r\n"); 1586 1587 1588 #line 574 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1589 } 1590 1591 1592 #line default 1593 #line hidden 1594 WriteLiteral(" \r\n </a>\r\n"); 1595 1596 1597 #line 577 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1598 } else{ 1599 1600 1601 #line default 1602 #line hidden 1603 WriteLiteral(" <span> \r\n <a"); 1604 1605 WriteLiteral(" href=\"/Default.aspx?ID=3500\""); 1606 1607 WriteLiteral(">"); 1608 1609 1610 #line 579 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1611 Write(GetGlobalValue("Global:Extranet.SecondaryUser.Name")); 1612 1613 1614 #line default 1615 #line hidden 1616 WriteLiteral(" - ("); 1617 1618 1619 #line 579 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1620 Write(GetGlobalValue("Global:Extranet.SecondaryUser.UserName")); 1621 1622 1623 #line default 1624 #line hidden 1625 WriteLiteral(") "); 1626 1627 1628 #line 579 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1629 Write(Translate("ImpersonatedBy", "este impersonat de")); 1630 1631 1632 #line default 1633 #line hidden 1634 WriteLiteral(" "); 1635 1636 1637 #line 579 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1638 Write(Pageview.User.Name); 1639 1640 1641 #line default 1642 #line hidden 1643 WriteLiteral(" ("); 1644 1645 1646 #line 579 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1647 Write(Pageview.User.UserName); 1648 1649 1650 #line default 1651 #line hidden 1652 WriteLiteral(")</a>\r\n </span>\r\n"); 1653 1654 1655 #line 581 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1656 } 1657 1658 1659 #line default 1660 #line hidden 1661 WriteLiteral(" </li>\r\n"); 1662 1663 WriteLiteral(" <li><a"); 1664 1665 WriteLiteral(" href=\"/Admin/Public/ExtranetLogoff.aspx\""); 1666 1667 WriteLiteral(">"); 1668 1669 1670 #line 583 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1671 Write(Translate("logout", "Logout")); 1672 1673 1674 #line default 1675 #line hidden 1676 WriteLiteral("</a></li>\r\n"); 1677 1678 1679 #line 584 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1680 } 1681 1682 1683 #line default 1684 #line hidden 1685 WriteLiteral(" \r\n </ul> \r\n"); 1686 1687 1688 #line 587 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1689 } 1690 1691 1692 #line default 1693 #line hidden 1694 WriteLiteral(" <ul"); 1695 1696 WriteLiteral(" class=\"left-align\""); 1697 1698 WriteLiteral("> \r\n <li><p>"); 1699 1700 1701 #line 589 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1702 Write(GetValue("Item.Area.Program")); 1703 1704 1705 #line default 1706 #line hidden 1707 WriteLiteral("</p></li>\r\n \r\n"); 1708 1709 1710 #line 591 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1711 1712 1713 #line default 1714 #line hidden 1715 1716 #line 591 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1717 if(!string.IsNullOrEmpty(GetString("Item.Area.Telefon"))) { 1718 1719 1720 #line default 1721 #line hidden 1722 WriteLiteral(" <li><p>"); 1723 1724 1725 #line 592 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1726 Write(GetValue("Item.Area.Telefon")); 1727 1728 1729 #line default 1730 #line hidden 1731 WriteLiteral("</p></li>\r\n"); 1732 1733 1734 #line 593 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1735 } 1736 1737 1738 #line default 1739 #line hidden 1740 WriteLiteral(" </ul>\r\n \r\n </div>\r\n \r\n \r\n \r\n " + 1741 " </div>\r\n </div>\r\n </div>\r\n <div"); 1742 1743 WriteLiteral(" class=\"header-middle hidden-xs hidden-sm\""); 1744 1745 WriteLiteral(">\r\n <div"); 1746 1747 WriteLiteral(" class=\"container\""); 1748 1749 WriteLiteral(">\r\n <div"); 1750 1751 WriteLiteral(" class=\"row\""); 1752 1753 WriteLiteral(">\r\n\t\t\r\n <div"); 1754 1755 WriteLiteral(" id=\"logo\""); 1756 1757 WriteLiteral(" class=\"col-sm-3 hidden-xs\""); 1758 1759 WriteLiteral(">\r\n <a"); 1760 1761 WriteLiteral(" href=\"/\""); 1762 1763 WriteLiteral(">\r\n <img"); 1764 1765 WriteAttribute("src", Tuple.Create(" src=\'", 25491), Tuple.Create("\'", 25524) 1766 1767 #line 609 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1768 , Tuple.Create(Tuple.Create("", 25497), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Logo") 1769 1770 #line default 1771 #line hidden 1772 , 25497), false) 1773 ); 1774 1775 WriteAttribute("alt", Tuple.Create(" alt=\'", 25525), Tuple.Create("\'", 25563) 1776 1777 #line 609 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1778 , Tuple.Create(Tuple.Create("", 25531), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Site_Name") 1779 1780 #line default 1781 #line hidden 1782 , 25531), false) 1783 ); 1784 1785 WriteLiteral(">\r\n </a>\r\n </div>\r\n\r\n <div"); 1786 1787 WriteLiteral(" class=\"header-search-v2 col-sm-9\""); 1788 1789 WriteLiteral(">\r\n <div"); 1790 1791 WriteLiteral(" class=\"row\""); 1792 1793 WriteLiteral(">\r\n \r\n \r\n \t\t <div"); 1794 1795 WriteLiteral(" class=\"col-sm-6 col-md-5 col-lg-6\""); 1796 1797 WriteLiteral(">\r\n \r\n \t<form"); 1798 1799 WriteLiteral(" action=\"/Default.aspx?ID=127\""); 1800 1801 WriteLiteral(" method=\"GET\""); 1802 1803 WriteLiteral(" data-file=\"search-v2\""); 1804 1805 WriteLiteral(">\r\n <div"); 1806 1807 WriteLiteral(" class=\"form-group\""); 1808 1809 WriteLiteral(">\r\n <input"); 1810 1811 WriteLiteral(" type=\"text\""); 1812 1813 WriteLiteral(" name=\"q\""); 1814 1815 WriteLiteral(" id=\"q\""); 1816 1817 WriteLiteral(" autocomplete=\"off\""); 1818 1819 WriteLiteral(" spellcheck=\"false\""); 1820 1821 WriteAttribute("placeholder", Tuple.Create(" placeholder=\'", 25968), Tuple.Create("\'", 26032) 1822 1823 #line 621 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1824 , Tuple.Create(Tuple.Create("", 25982), Tuple.Create<System.Object, System.Int32>(Translate("search", "Cauta dupa cod sau nume...") 1825 1826 #line default 1827 #line hidden 1828 , 25982), false) 1829 ); 1830 1831 WriteLiteral(" class=\"form-control\""); 1832 1833 WriteLiteral(">\r\n <input"); 1834 1835 WriteLiteral(" type=\"hidden\""); 1836 1837 WriteLiteral(" id=\"ID\""); 1838 1839 WriteLiteral(" name=\"ID\""); 1840 1841 WriteLiteral(" value=\"127\""); 1842 1843 WriteLiteral(">\r\n"); 1844 1845 1846 #line 623 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1847 1848 1849 #line default 1850 #line hidden 1851 1852 #line 623 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1853 if(!string.IsNullOrEmpty(customerNo) && !string.IsNullOrEmpty(customerListGroupID)){ 1854 1855 1856 #line default 1857 #line hidden 1858 WriteLiteral(" \t\t<input"); 1859 1860 WriteLiteral(" type=\"hidden\""); 1861 1862 WriteLiteral(" name=\"CustomerNumber\""); 1863 1864 WriteLiteral(" id=\"CustomerNumber\""); 1865 1866 WriteAttribute("value", Tuple.Create(" value=\"", 26273), Tuple.Create("\"", 26292) 1867 1868 #line 624 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1869 , Tuple.Create(Tuple.Create("", 26281), Tuple.Create<System.Object, System.Int32>(customerNo 1870 1871 #line default 1872 #line hidden 1873 , 26281), false) 1874 ); 1875 1876 WriteLiteral(">\r\n"); 1877 1878 1879 #line 625 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1880 } 1881 1882 1883 #line default 1884 #line hidden 1885 WriteLiteral(" <button"); 1886 1887 WriteLiteral(" type=\"submit\""); 1888 1889 WriteLiteral("><i"); 1890 1891 WriteLiteral(" class=\"ion-ios-search-strong\""); 1892 1893 WriteLiteral("></i></button>\r\n <div"); 1894 1895 WriteLiteral(" class=\"instant_search\""); 1896 1897 WriteLiteral("></div>\r\n </div>\r\n</form>\r\n \r\n \t\t </div>\r\n "); 1898 1899 WriteLiteral("\r\n"); 1900 1901 1902 #line 633 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1903 1904 1905 #line default 1906 #line hidden 1907 1908 #line 633 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1909 if(!userIsLoggedIn) { 1910 1911 1912 #line default 1913 #line hidden 1914 WriteLiteral(" \t\t\t<div"); 1915 1916 WriteLiteral(" class=\"header-account col-sm-3 col-md-4 col-lg-3\""); 1917 1918 WriteLiteral(">\r\n "); 1919 1920 WriteLiteral(" <a"); 1921 1922 WriteLiteral(" href=\"/Default.aspx?ID=11\""); 1923 1924 WriteLiteral(">"); 1925 1926 1927 #line 635 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1928 Write(Translate("Login", "Login")); 1929 1930 1931 #line default 1932 #line hidden 1933 WriteLiteral("</a>\r\n \t\t\t</div> \r\n"); 1934 1935 1936 #line 637 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1937 } else { 1938 1939 1940 #line default 1941 #line hidden 1942 WriteLiteral(" \t\t\t<div"); 1943 1944 WriteLiteral(" class=\"header-account customer col-sm-3 col-md-4 col-lg-3\""); 1945 1946 WriteLiteral(">\r\n <a"); 1947 1948 WriteAttribute("href", Tuple.Create(" href=\"", 26962), Tuple.Create("\"", 26985) 1949 1950 #line 639 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1951 , Tuple.Create(Tuple.Create("", 26969), Tuple.Create<System.Object, System.Int32>(userAccountLink 1952 1953 #line default 1954 #line hidden 1955 , 26969), false) 1956 ); 1957 1958 WriteLiteral(">\r\n"); 1959 1960 1961 #line 640 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1962 1963 1964 #line default 1965 #line hidden 1966 1967 #line 640 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1968 if (!string.IsNullOrEmpty(customerLogo)){ 1969 1970 1971 #line default 1972 #line hidden 1973 WriteLiteral(" \t\t\t\t\t<img"); 1974 1975 WriteAttribute("src", Tuple.Create(" src=\"", 27066), Tuple.Create("\"", 27173) 1976 , Tuple.Create(Tuple.Create("", 27072), Tuple.Create("/Admin/Public/GetImage.ashx?Image=", 27072), true) 1977 1978 #line 641 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1979 , Tuple.Create(Tuple.Create("", 27106), Tuple.Create<System.Object, System.Int32>(customerLogo 1980 1981 #line default 1982 #line hidden 1983 , 27106), false) 1984 , Tuple.Create(Tuple.Create("", 27119), Tuple.Create("&Format=jpg&Width=190&Height=85&Compression=100&Crop=5", 27119), true) 1985 ); 1986 1987 WriteLiteral(" class=\"img-responsive\""); 1988 1989 WriteLiteral(">\r\n"); 1990 1991 1992 #line 642 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 1993 }else{ 1994 1995 1996 #line default 1997 #line hidden 1998 WriteLiteral(" \t\t\t\t\t<span>"); 1999 2000 2001 #line 643 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2002 Write(customerName); 2003 2004 2005 #line default 2006 #line hidden 2007 WriteLiteral("</span>\r\n"); 2008 2009 2010 #line 644 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2011 } 2012 2013 2014 #line default 2015 #line hidden 2016 WriteLiteral(" </a>\r\n </div>\r\n"); 2017 2018 2019 #line 647 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2020 } 2021 2022 2023 #line default 2024 #line hidden 2025 WriteLiteral(" \r\n <div"); 2026 2027 WriteLiteral(" class=\"col-sm-3 col-md-3 col-lg-3 minicart\""); 2028 2029 WriteLiteral(">\r\n <a"); 2030 2031 WriteAttribute("href", Tuple.Create(" href=\"", 27444), Tuple.Create("\"", 27464) 2032 2033 #line 650 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2034 , Tuple.Create(Tuple.Create("", 27451), Tuple.Create<System.Object, System.Int32>(userCartLink 2035 2036 #line default 2037 #line hidden 2038 , 27451), false) 2039 ); 2040 2041 WriteLiteral(">\r\n <i"); 2042 2043 WriteLiteral(" class=\"ion-android-cart\""); 2044 2045 WriteLiteral("></i> \r\n "); 2046 2047 WriteLiteral("\r\n"); 2048 2049 2050 #line 653 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2051 2052 2053 #line default 2054 #line hidden 2055 2056 #line 653 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2057 if (@GetBoolean("Ecom:Order.IsEmpty")) { 2058 2059 2060 #line default 2061 #line hidden 2062 WriteLiteral(" <span"); 2063 2064 WriteLiteral(" data-minicart-update=\"\""); 2065 2066 WriteLiteral(">("); 2067 2068 2069 #line 654 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2070 Write(cartQuantity); 2071 2072 2073 #line default 2074 #line hidden 2075 WriteLiteral(") - "); 2076 2077 2078 #line 654 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2079 Write(cartPrice); 2080 2081 2082 #line default 2083 #line hidden 2084 WriteLiteral("<sup> "); 2085 2086 2087 #line 654 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2088 Write(currencyCart); 2089 2090 2091 #line default 2092 #line hidden 2093 WriteLiteral("</sup></span> \r\n"); 2094 2095 2096 #line 655 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2097 } else { 2098 2099 2100 #line default 2101 #line hidden 2102 WriteLiteral(" <span"); 2103 2104 WriteLiteral(" data-minicart-update=\"\""); 2105 2106 WriteLiteral(">Cosul este gol</span> \r\n"); 2107 2108 2109 #line 657 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2110 } 2111 2112 2113 #line default 2114 #line hidden 2115 WriteLiteral(" \r\n </a>\r\n </div>\r\n </div>\r\n " + 2116 " </div>\r\n </div>\r\n </div> \r\n </div>\r\n\r\n\r\n\r\n"); 2117 2118 2119 #line 669 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2120 Write(SnippetStart("BottomJS")); 2121 2122 2123 #line default 2124 #line hidden 2125 WriteLiteral("\r\n\t<script"); 2126 2127 WriteLiteral(" type=\"text/javascript\""); 2128 2129 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/main-v2.js\""); 2130 2131 WriteLiteral("></script>\r\n"); 2132 2133 2134 #line 671 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2135 Write(SnippetEnd("BottomJS")); 2136 2137 2138 #line default 2139 #line hidden 2140 WriteLiteral(" \r\n <div"); 2141 2142 WriteLiteral(" class=\"main-nav-2 hidden-xs hidden-sm\""); 2143 2144 WriteLiteral(">\r\n <span"); 2145 2146 WriteLiteral(" style=\"display: none;\""); 2147 2148 WriteLiteral(">\r\n"); 2149 2150 WriteLiteral(" "); 2151 2152 2153 #line 674 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2154 Write(GetGlobalValue("Global:Item.Page.DisplayOptions").ToString()); 2155 2156 2157 #line default 2158 #line hidden 2159 WriteLiteral("\r\n </span>\r\n\r\n <div"); 2160 2161 WriteLiteral(" class=\"container\""); 2162 2163 WriteLiteral(">\r\n <div"); 2164 2165 WriteLiteral(" class=\"row\""); 2166 2167 WriteLiteral(">\r\n\r\n \r\n <div"); 2168 2169 WriteLiteral(" class=\"col-md-3 hidden-sm hidden-xs\""); 2170 2171 WriteLiteral(">\r\n <div"); 2172 2173 WriteAttribute("class", Tuple.Create(" class=\"", 28479), Tuple.Create("\"", 28529) 2174 , Tuple.Create(Tuple.Create("", 28487), Tuple.Create("left-nav-box", 28487), true) 2175 , Tuple.Create(Tuple.Create(" ", 28499), Tuple.Create("clearfix", 28500), true) 2176 2177 #line 682 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2178 , Tuple.Create(Tuple.Create(" ", 28508), Tuple.Create<System.Object, System.Int32>(navigationCollapsed 2179 2180 #line default 2181 #line hidden 2182 , 28509), false) 2183 ); 2184 2185 WriteLiteral(">\r\n <div"); 2186 2187 WriteLiteral(" class=\"category-heading\""); 2188 2189 WriteLiteral("><p>Categorii de produse</p></div>\r\n <div"); 2190 2191 WriteLiteral(" class=\"menu3dmega\""); 2192 2193 WriteLiteral(" id=\"menuMega\""); 2194 2195 WriteLiteral(">\r\n"); 2196 2197 WriteLiteral(" "); 2198 2199 2200 #line 685 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2201 Write(RenderNavigation(new { 2202 template = "CategoriesNavigationB2B.xslt", 2203 expandmode = "all", 2204 sitemapmode="true", 2205 id = "categories", 2206 startlevel = 1, 2207 endlevel = 5, 2208 areaid = 1 2209 })); 2210 2211 2212 #line default 2213 #line hidden 2214 WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n"); 2215 2216 2217 #line 697 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2218 2219 2220 #line default 2221 #line hidden 2222 2223 #line 697 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2224 if(!string.IsNullOrEmpty(customerNo)) 2225 { 2226 2227 2228 #line default 2229 #line hidden 2230 WriteLiteral(" <div"); 2231 2232 WriteLiteral(" class=\"col-md-9\""); 2233 2234 WriteLiteral(" style=\"padding-left: 0;\""); 2235 2236 WriteLiteral(">\r\n"); 2237 2238 WriteLiteral(" "); 2239 2240 2241 #line 700 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2242 Write(RenderNavigation(new { 2243 template = "MainNavigation-v2.xslt", 2244 expandmode = "all", 2245 id = "NavMainAll", 2246 startlevel = 2, 2247 endlevel = 4, 2248 parentid = 169, 2249 customerGroup = @customerListGroupID, 2250 customerRole = @customerRole 2251 })); 2252 2253 2254 #line default 2255 #line hidden 2256 WriteLiteral("\r\n\r\n </div>\r\n"); 2257 2258 2259 #line 712 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2260 } else { 2261 2262 2263 2264 #line default 2265 #line hidden 2266 2267 #line 714 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2268 2269 2270 2271 2272 #line default 2273 #line hidden 2274 WriteLiteral(" <div"); 2275 2276 WriteLiteral(" class=\"col-md-9\""); 2277 2278 WriteLiteral(">\r\n"); 2279 2280 WriteLiteral(" "); 2281 2282 2283 #line 717 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2284 Write(RenderNavigation(new { 2285 template = "MainNavigation-v2.xslt", 2286 expandmode = "all", 2287 id = "NavMainAll", 2288 startlevel = 1, 2289 endlevel = 4 2290 })); 2291 2292 2293 #line default 2294 #line hidden 2295 WriteLiteral(" \r\n </div>\r\n"); 2296 2297 2298 #line 725 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2299 2300 } 2301 2302 2303 #line default 2304 #line hidden 2305 WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n\r\n <div"); 2306 2307 WriteLiteral(" class=\"container\""); 2308 2309 WriteLiteral(">\r\n <div"); 2310 2311 WriteLiteral(" class=\"row\""); 2312 2313 WriteLiteral("> \r\n \r\n\r\n"); 2314 2315 2316 #line 735 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2317 if (Pageview.User.UserID == 0) { 2318 2319 2320 2321 #line default 2322 #line hidden 2323 WriteLiteral("<h3>Autentificare</h3>\r\n"); 2324 2325 WriteLiteral("\t\t<div"); 2326 2327 WriteLiteral(" class=\"login-box-mode\""); 2328 2329 WriteLiteral(" data-login-box-mode=\"login\""); 2330 2331 WriteLiteral(">\r\n"); 2332 2333 2334 #line 739 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2335 2336 2337 #line default 2338 #line hidden 2339 2340 #line 739 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2341 if (!string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["username"]) || !string.IsNullOrWhiteSpace(System.Web.HttpContext.Current.Request["password"])) { 2342 2343 2344 #line default 2345 #line hidden 2346 WriteLiteral("\t\t\t<div"); 2347 2348 WriteLiteral(" class=\"loginbox-login-failed alert alert-error\""); 2349 2350 WriteLiteral(">Datele de utilizator introduse nu sunt corecte</div>\r\n"); 2351 2352 2353 #line 741 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2354 } 2355 2356 2357 #line default 2358 #line hidden 2359 WriteLiteral("\r\n\t\t\t<form"); 2360 2361 WriteLiteral(" class=\"form-horizontal\""); 2362 2363 WriteLiteral(" method=\"post\""); 2364 2365 WriteLiteral(">\r\n\t\t\t\t<div"); 2366 2367 WriteLiteral(" class=\"control-group\""); 2368 2369 WriteLiteral(">\r\n\t\t\t\t\t<input"); 2370 2371 WriteLiteral(" type=\"text\""); 2372 2373 WriteLiteral(" id=\"login-username\""); 2374 2375 WriteLiteral(" name=\"username\""); 2376 2377 WriteLiteral(" spellcheck=\"false\""); 2378 2379 WriteLiteral(" placeholder=\"Username\""); 2380 2381 WriteAttribute("value", Tuple.Create(" value=\'", 30722), Tuple.Create("\'", 30781) 2382 2383 #line 745 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2384 , Tuple.Create(Tuple.Create("", 30730), Tuple.Create<System.Object, System.Int32>(System.Web.HttpContext.Current.Request["username"] 2385 2386 #line default 2387 #line hidden 2388 , 30730), false) 2389 ); 2390 2391 WriteLiteral(">\r\n\t\t\t\t</div>\r\n\t\t\t\t<div"); 2392 2393 WriteLiteral(" class=\"control-group\""); 2394 2395 WriteLiteral(">\r\n\t\t\t\t\t<input"); 2396 2397 WriteLiteral(" type=\"password\""); 2398 2399 WriteLiteral(" id=\"login-password\""); 2400 2401 WriteLiteral(" name=\"password\""); 2402 2403 WriteLiteral(" placeholder=\"Password\""); 2404 2405 WriteAttribute("value", Tuple.Create(" value=\'", 30916), Tuple.Create("\'", 30975) 2406 2407 #line 748 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2408 , Tuple.Create(Tuple.Create("", 30924), Tuple.Create<System.Object, System.Int32>(System.Web.HttpContext.Current.Request["password"] 2409 2410 #line default 2411 #line hidden 2412 , 30924), false) 2413 ); 2414 2415 WriteLiteral(">\r\n\t\t\t\t</div>\r\n <input"); 2416 2417 WriteLiteral(" type=\"submit\""); 2418 2419 WriteLiteral(" value=\"Login\""); 2420 2421 WriteLiteral(">\r\n\t\t\t</form>\r\n\t\t</div>\r\n"); 2422 2423 2424 #line 753 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2425 } else { 2426 2427 2428 2429 #line default 2430 #line hidden 2431 WriteLiteral(" "); 2432 2433 WriteLiteral(" Esti autentificat cu userul "); 2434 2435 2436 #line 755 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2437 Write(Pageview.User.UserName); 2438 2439 2440 #line default 2441 #line hidden 2442 WriteLiteral("\r\n"); 2443 2444 WriteLiteral("\t<br>\r\n"); 2445 2446 WriteLiteral("\t<br>\r\n"); 2447 2448 2449 #line 758 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2450 2451 2452 2453 #line default 2454 #line hidden 2455 WriteLiteral(" <form"); 2456 2457 WriteLiteral(" method=\"post\""); 2458 2459 WriteLiteral(">\r\n"); 2460 2461 2462 #line 760 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2463 2464 2465 #line default 2466 #line hidden 2467 2468 #line 760 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2469 if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) { 2470 2471 2472 #line default 2473 #line hidden 2474 WriteLiteral(" <table"); 2475 2476 WriteLiteral(" border=\"0\""); 2477 2478 WriteLiteral(">\r\n\t\t <tr>\r\n <td>Alege userul pe care vrei sa il impers" + 2479 "onezi</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n <td>\r\n " + 2480 " <select"); 2481 2482 WriteLiteral(" id=\"DWExtranetSecondaryUserSelector\""); 2483 2484 WriteLiteral(" name=\"DWExtranetSecondaryUserSelector\""); 2485 2486 WriteLiteral(">\r\n"); 2487 2488 2489 #line 768 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2490 2491 2492 #line default 2493 #line hidden 2494 2495 #line 768 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2496 foreach (var secondaryUser in GetLoop("DWExtranetSecondaryUsers")) { 2497 2498 2499 #line default 2500 #line hidden 2501 WriteLiteral("\t\t <option"); 2502 2503 WriteAttribute("value", Tuple.Create(" value=\'", 31684), Tuple.Create("\'", 31725) 2504 2505 #line 769 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2506 , Tuple.Create(Tuple.Create("", 31692), Tuple.Create<System.Object, System.Int32>(secondaryUser.GetValue("UserID") 2507 2508 #line default 2509 #line hidden 2510 , 31692), false) 2511 ); 2512 2513 WriteLiteral(">"); 2514 2515 2516 #line 769 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2517 Write(secondaryUser.GetValue("UserName")); 2518 2519 2520 #line default 2521 #line hidden 2522 WriteLiteral("</option>\r\n"); 2523 2524 2525 #line 770 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2526 } 2527 2528 2529 #line default 2530 #line hidden 2531 WriteLiteral(" </select>\r\n </td>\r\n\t\t </tr>" + 2532 "\r\n\t\t <tr>\r\n\t\t\t <td"); 2533 2534 WriteLiteral(" colspan=\"2\""); 2535 2536 WriteLiteral("><input"); 2537 2538 WriteLiteral(" type=\"submit\""); 2539 2540 WriteLiteral(" tabindex=\"3\""); 2541 2542 WriteLiteral(" value=\"OK\""); 2543 2544 WriteLiteral("></td>\r\n\t\t </tr>\r\n\t </table>\r\n"); 2545 2546 2547 #line 778 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2548 } else { 2549 2550 2551 #line default 2552 #line hidden 2553 WriteLiteral(" <h3>"); 2554 2555 2556 #line 779 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2557 Write(GetGlobalValue("Global:Extranet.SecondaryUser.UserName")); 2558 2559 2560 #line default 2561 #line hidden 2562 WriteLiteral(" este impersonat de "); 2563 2564 2565 #line 779 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2566 Write(Pageview.User.UserName); 2567 2568 2569 #line default 2570 #line hidden 2571 WriteLiteral(".</h3>\r\n"); 2572 2573 WriteLiteral(" <br>\r\n"); 2574 2575 WriteLiteral("\t\t\t<input"); 2576 2577 WriteLiteral(" type=\"submit\""); 2578 2579 WriteLiteral(" name=\"DwExtranetRemoveSecondaryUser\""); 2580 2581 WriteLiteral(" id=\"DwExtranetRemoveSecondaryUser\""); 2582 2583 WriteLiteral(" value=\"Stop impersonation\""); 2584 2585 WriteLiteral(">\r\n"); 2586 2587 2588 #line 782 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2589 } 2590 2591 2592 #line default 2593 #line hidden 2594 WriteLiteral(" <br>\r\n <br>\r\n\r\n\t\t<a"); 2595 2596 WriteLiteral(" class=\"btn\""); 2597 2598 WriteAttribute("href", Tuple.Create(" href=\"", 32338), Tuple.Create("\"", 32399) 2599 , Tuple.Create(Tuple.Create("", 32345), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 32345), true) 2600 2601 #line 786 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2602 , Tuple.Create(Tuple.Create("", 32382), Tuple.Create<System.Object, System.Int32>(Pageview.Page.ID 2603 2604 #line default 2605 #line hidden 2606 , 32382), false) 2607 ); 2608 2609 WriteLiteral(">Logout</a>\r\n\r\n\r\n\r\n\r\n </form>\r\n"); 2610 2611 2612 #line 792 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2613 } 2614 2615 2616 #line default 2617 #line hidden 2618 WriteLiteral(" </div>\r\n </div> \r\n <div"); 2619 2620 WriteLiteral(" class=\"container\""); 2621 2622 WriteLiteral(">\r\n <div"); 2623 2624 WriteLiteral(" class=\"row\""); 2625 2626 WriteLiteral(">\r\n\r\n \r\n <div"); 2627 2628 WriteLiteral(" class=\"brands-wrapper\""); 2629 2630 WriteLiteral("> \r\n <div"); 2631 2632 WriteLiteral(" class=\"container\""); 2633 2634 WriteLiteral("> \r\n <div"); 2635 2636 WriteLiteral(" class=\"col-md-12\""); 2637 2638 WriteLiteral(">\r\n <div"); 2639 2640 WriteLiteral(" class=\"row\""); 2641 2642 WriteLiteral(">\r\n \r\n"); 2643 2644 WriteLiteral(" "); 2645 2646 2647 #line 804 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2648 Write(RenderParagraphContent(1514)); 2649 2650 2651 #line default 2652 #line hidden 2653 WriteLiteral(" \r\n \r\n "); 2654 2655 WriteLiteral("\r\n \r\n "); 2656 2657 WriteLiteral("\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n</div> \r\n </div>\r\n</d" + 2658 "iv>\r\n"); 2659 2660 WriteLiteral("\r\n\r\n \r\n \r\n\r\n<div"); 2661 2662 WriteLiteral(" class=\"footer\""); 2663 2664 WriteLiteral(">\r\n <div"); 2665 2666 WriteLiteral(" class=\"container\""); 2667 2668 WriteLiteral(">\r\n <div"); 2669 2670 WriteLiteral(" class=\"row\""); 2671 2672 WriteLiteral(">\r\n \r\n <div"); 2673 2674 WriteLiteral(" class=\"col-md-3 col-sm-6 col-xs-12 shopinfo\""); 2675 2676 WriteLiteral(">\r\n <h4"); 2677 2678 WriteLiteral(" class=\"title\""); 2679 2680 WriteLiteral(">AUSTRAL</h4>\r\n <p>\r\n"); 2681 2682 WriteLiteral(" "); 2683 2684 2685 #line 932 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2686 Write(GetValue("Item.Area.Contact")); 2687 2688 2689 #line default 2690 #line hidden 2691 WriteLiteral("\r\n </p>\r\n <div"); 2692 2693 WriteLiteral(" class=\"social-icons\""); 2694 2695 WriteLiteral(">\r\n <ul> \r\n <li"); 2696 2697 WriteLiteral(" class=\"icon facebook\""); 2698 2699 WriteLiteral("><a"); 2700 2701 WriteAttribute("href", Tuple.Create(" href=\'", 37647), Tuple.Create("\'", 37690) 2702 2703 #line 936 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2704 , Tuple.Create(Tuple.Create("", 37654), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Facebook_Link") 2705 2706 #line default 2707 #line hidden 2708 , 37654), false) 2709 ); 2710 2711 WriteLiteral(" target=\"_blank\""); 2712 2713 WriteLiteral("><i"); 2714 2715 WriteLiteral(" class=\"fa fa-facebook fa-fw\""); 2716 2717 WriteLiteral("></i></a></li>\r\n \t\t <li"); 2718 2719 WriteLiteral(" class=\"icon twitter\""); 2720 2721 WriteLiteral("><a"); 2722 2723 WriteAttribute("href", Tuple.Create(" href=\'", 37792), Tuple.Create("\'", 37834) 2724 2725 #line 937 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2726 , Tuple.Create(Tuple.Create("", 37799), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Twitter_Link") 2727 2728 #line default 2729 #line hidden 2730 , 37799), false) 2731 ); 2732 2733 WriteLiteral(" target=\"_blank\""); 2734 2735 WriteLiteral("><i"); 2736 2737 WriteLiteral(" class=\"fa fa-twitter fa-fw\""); 2738 2739 WriteLiteral("></i></a></li>\r\n \t\t <li"); 2740 2741 WriteLiteral(" class=\"icon linkedin\""); 2742 2743 WriteLiteral("><a"); 2744 2745 WriteAttribute("href", Tuple.Create(" href=\'", 37934), Tuple.Create("\'", 37977) 2746 2747 #line 938 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2748 , Tuple.Create(Tuple.Create("", 37941), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.Linkedin_link") 2749 2750 #line default 2751 #line hidden 2752 , 37941), false) 2753 ); 2754 2755 WriteLiteral(" target=\"_blank\""); 2756 2757 WriteLiteral("><i"); 2758 2759 WriteLiteral(" class=\"fa fa-linkedin fa-fw\""); 2760 2761 WriteLiteral("></i></a></li>\r\n \t\t <li"); 2762 2763 WriteLiteral(" class=\"icon google-plus\""); 2764 2765 WriteLiteral("><a"); 2766 2767 WriteAttribute("href", Tuple.Create(" href=\'", 38083), Tuple.Create("\'", 38128) 2768 2769 #line 939 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2770 , Tuple.Create(Tuple.Create("", 38090), Tuple.Create<System.Object, System.Int32>(GetValue("Item.Area.GooglePlus_Link") 2771 2772 #line default 2773 #line hidden 2774 , 38090), false) 2775 ); 2776 2777 WriteLiteral(" target=\"_blank\""); 2778 2779 WriteLiteral("><i"); 2780 2781 WriteLiteral(" class=\"fa fa-google-plus fa-fw\""); 2782 2783 WriteLiteral("></i></a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div" + 2784 ""); 2785 2786 WriteLiteral(" class=\"col-md-3 col-sm-6 col-xs-12 footermenu\""); 2787 2788 WriteLiteral("> \r\n <h4"); 2789 2790 WriteLiteral(" class=\"title\""); 2791 2792 WriteLiteral(">UTILE </h4> \r\n"); 2793 2794 WriteLiteral(" "); 2795 2796 2797 #line 945 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2798 Write(GetValue("DwNavigation(BottomNavigation)")); 2799 2800 2801 #line default 2802 #line hidden 2803 WriteLiteral(" \r\n <a"); 2804 2805 WriteLiteral(" href=\"http://australservicii.ro/\""); 2806 2807 WriteLiteral(" target=\"_blank\""); 2808 2809 WriteLiteral("><img"); 2810 2811 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/img/Banner_Australservicii.png\""); 2812 2813 WriteLiteral(" alt=\"\""); 2814 2815 WriteLiteral(" style=\"margin: 9px 0 0 0;\""); 2816 2817 WriteLiteral("></a> \r\n </div> \r\n <div"); 2818 2819 WriteLiteral(" class=\"col-md-3 col-sm-6 col-xs-12 footermenu\""); 2820 2821 WriteLiteral(">\r\n <h4"); 2822 2823 WriteLiteral(" class=\"title\""); 2824 2825 WriteLiteral(">COMENZI</h4>\r\n"); 2826 2827 WriteLiteral(" "); 2828 2829 2830 #line 950 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2831 Write(GetValue("DwNavigation(BottomNavigation1)")); 2832 2833 2834 #line default 2835 #line hidden 2836 WriteLiteral("\r\n <img"); 2837 2838 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/img/MobilPay-banner.png\""); 2839 2840 WriteLiteral(" alt=\"\""); 2841 2842 WriteLiteral("> \r\n </div> \r\n <div"); 2843 2844 WriteLiteral(" class=\"col-md-3 col-sm-6 col-xs-12 getintouch\""); 2845 2846 WriteLiteral(">\r\n <h4"); 2847 2848 WriteLiteral(" class=\"title\""); 2849 2850 WriteLiteral(">Certificari</h4>\r\n <img"); 2851 2852 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/img/ukas.jpg\""); 2853 2854 WriteLiteral(" alt=\"\""); 2855 2856 WriteLiteral("> \r\n </div>\r\n \r\n \t</div>\r\n </div>\r\n</div> \r\n <div"); 2857 2858 WriteLiteral(" class=\"cart--footer\""); 2859 2860 WriteLiteral(">\r\n <div"); 2861 2862 WriteLiteral(" class=\"container\""); 2863 2864 WriteLiteral(">\r\n <div"); 2865 2866 WriteLiteral(" class=\"row\""); 2867 2868 WriteLiteral(">\r\n <div"); 2869 2870 WriteLiteral(" class=\"col-xs-12\""); 2871 2872 WriteLiteral(">\r\n <a"); 2873 2874 WriteLiteral(" href=\"#\""); 2875 2876 WriteLiteral(" class=\"emptyCart\""); 2877 2878 WriteLiteral(">Goleste cos</a>\r\n"); 2879 2880 WriteLiteral(" "); 2881 2882 2883 #line 966 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2884 Write(GetValue("CartV2.NextStepButtonName")); 2885 2886 2887 #line default 2888 #line hidden 2889 WriteLiteral("\r\n \r\n"); 2890 2891 2892 #line 968 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2893 2894 2895 #line default 2896 #line hidden 2897 2898 #line 968 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2899 2900 var cartLink = "/Default.aspx?ID=13"; 2901 if(!string.IsNullOrEmpty(customerNo)) { 2902 cartLink = "/Default.aspx?ID=42"; 2903 } 2904 2905 2906 #line default 2907 #line hidden 2908 WriteLiteral("\r\n <a"); 2909 2910 WriteLiteral(" class=\"cart\""); 2911 2912 WriteAttribute("href", Tuple.Create(" href=\"", 39640), Tuple.Create("\"", 39656) 2913 2914 #line 974 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2915 , Tuple.Create(Tuple.Create("", 39647), Tuple.Create<System.Object, System.Int32>(cartLink 2916 2917 #line default 2918 #line hidden 2919 , 39647), false) 2920 ); 2921 2922 WriteLiteral(">\r\n <span"); 2923 2924 WriteLiteral(" class=\"spacing\""); 2925 2926 WriteLiteral(">Aveti <span"); 2927 2928 WriteLiteral(" class=\"em\""); 2929 2930 WriteLiteral(" cartproducts=\"\""); 2931 2932 WriteLiteral(">produse</span> in cos</span>\r\n <span"); 2933 2934 WriteLiteral(" class=\"spacing\""); 2935 2936 WriteLiteral(">Cost total: <span"); 2937 2938 WriteLiteral(" class=\"em\""); 2939 2940 WriteLiteral(" carttotals=\"\""); 2941 2942 WriteLiteral(">Cosul este gol</span></span>\r\n <span"); 2943 2944 WriteLiteral(" class=\"spacing cart--footer__button\""); 2945 2946 WriteLiteral(">"); 2947 2948 2949 #line 977 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 2950 Write(Translate("footer checkout", "Vezi cosul tau")); 2951 2952 2953 #line default 2954 #line hidden 2955 WriteLiteral("</span>\r\n </a>\r\n </div>\r\n </div>\r\n </div> \r\n" + 2956 " </div>\r\n </div> \r\n \r\n\r\n \r\n \r\n \r\n "); 2957 2958 WriteLiteral("\r\n <script"); 2959 2960 WriteLiteral(" type=\"text/javascript\""); 2961 2962 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/bootstrap.min.js\""); 2963 2964 WriteLiteral("></script>\r\n <script"); 2965 2966 WriteLiteral(" type=\"text/javascript\""); 2967 2968 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/libraries/slick.min.js\""); 2969 2970 WriteLiteral("></script>\r\n\r\n\r\n "); 2971 2972 WriteLiteral("\r\n\r\n <script"); 2973 2974 WriteLiteral(" type=\"text/javascript\""); 2975 2976 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/cdnjs/select2.min.js\""); 2977 2978 WriteLiteral("></script> \r\n\r\n <script"); 2979 2980 WriteLiteral(" type=\"text/javascript\""); 2981 2982 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/jquery.noty.packaged.js\""); 2983 2984 WriteLiteral("></script> \r\n <script"); 2985 2986 WriteLiteral(" type=\"text/javascript\""); 2987 2988 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/bpopup.js\""); 2989 2990 WriteLiteral("></script>\r\n <script"); 2991 2992 WriteLiteral(" type=\"text/javascript\""); 2993 2994 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/jquery.flexslider.min.js\""); 2995 2996 WriteLiteral("></script>\r\n \r\n\r\n \r\n \r\n <script"); 2997 2998 WriteLiteral(" type=\"text/javascript\""); 2999 3000 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/libraries/jscookie.js\""); 3001 3002 WriteLiteral("></script>\r\n <script"); 3003 3004 WriteLiteral(" type=\"text/javascript\""); 3005 3006 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/alertify.js\""); 3007 3008 WriteLiteral("></script>\r\n "); 3009 3010 WriteLiteral("\r\n <script"); 3011 3012 WriteLiteral(" type=\"text/javascript\""); 3013 3014 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/mobile-menu-v2.js\""); 3015 3016 WriteLiteral("></script>\r\n <script"); 3017 3018 WriteLiteral(" type=\"text/javascript\""); 3019 3020 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/login.js\""); 3021 3022 WriteLiteral("></script>\r\n <script"); 3023 3024 WriteLiteral(" type=\"text/javascript\""); 3025 3026 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/main.js\""); 3027 3028 WriteLiteral("></script>\r\n <script"); 3029 3030 WriteLiteral(" type=\"text/javascript\""); 3031 3032 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/carousels.js\""); 3033 3034 WriteLiteral("></script>\r\n <script"); 3035 3036 WriteLiteral(" type=\"text/javascript\""); 3037 3038 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/main-v2.js?v=2\""); 3039 3040 WriteLiteral("></script>\r\n <script"); 3041 3042 WriteLiteral(" type=\"text/javascript\""); 3043 3044 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/product-modal.js\""); 3045 3046 WriteLiteral("></script>\r\n\r\n\r\n "); 3047 3048 WriteLiteral("\r\n\r\n"); 3049 3050 WriteLiteral("\r\n <script"); 3051 3052 WriteLiteral(" type=\"text/javascript\""); 3053 3054 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/cdnjs/lodash.min.js\""); 3055 3056 WriteLiteral("></script> \r\n <script"); 3057 3058 WriteLiteral(" type=\"text/javascript\""); 3059 3060 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/cdnjs/photoswipe.min.js\""); 3061 3062 WriteLiteral("></script>\r\n <script"); 3063 3064 WriteLiteral(" type=\"text/javascript\""); 3065 3066 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/cdnjs/photoswipe-ui-default.min.j" + 3067 "s\""); 3068 3069 WriteLiteral("></script>\r\n\r\n\r\n\r\n\r\n\r\n <script"); 3070 3071 WriteLiteral(" type=\"text/javascript\""); 3072 3073 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/product-list.js\""); 3074 3075 WriteLiteral("></script> \r\n <script"); 3076 3077 WriteLiteral(" type=\"text/javascript\""); 3078 3079 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/loader.js\""); 3080 3081 WriteLiteral("></script> \r\n <script"); 3082 3083 WriteLiteral(" type=\"text/javascript\""); 3084 3085 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/minicart.js\""); 3086 3087 WriteLiteral("></script> \r\n <script"); 3088 3089 WriteLiteral(" type=\"text/javascript\""); 3090 3091 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/voucher.js\""); 3092 3093 WriteLiteral("></script>\r\n <script"); 3094 3095 WriteLiteral(" type=\"text/javascript\""); 3096 3097 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/cart.js\""); 3098 3099 WriteLiteral("></script>\r\n <script"); 3100 3101 WriteLiteral(" type=\"text/javascript\""); 3102 3103 WriteLiteral(" src=\"/Files/Templates/Designs/Fusion/assets/js/jquery.validate.js\""); 3104 3105 WriteLiteral("></script>\r\n\t\r\n"); 3106 3107 WriteLiteral(" "); 3108 3109 3110 #line 1036 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 3111 Write(RenderSnippet("modalBottom")); 3112 3113 3114 #line default 3115 #line hidden 3116 WriteLiteral("\r\n"); 3117 3118 WriteLiteral(" "); 3119 3120 3121 #line 1037 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 3122 Write(RenderSnippet("bottomJS")); 3123 3124 3125 #line default 3126 #line hidden 3127 WriteLiteral("\r\n\r\n "); 3128 3129 WriteLiteral("\r\n <div"); 3130 3131 WriteLiteral(" class=\"b-modal\""); 3132 3133 WriteLiteral(" id=\"quickview\""); 3134 3135 WriteLiteral(">\r\n <div"); 3136 3137 WriteLiteral(" id=\"results\""); 3138 3139 WriteLiteral(" class=\"clearfix\""); 3140 3141 WriteLiteral("></div>\r\n </div> \r\n\t\r\n \r\n \r\n"); 3142 3143 WriteLiteral(" "); 3144 3145 3146 #line 1046 "C:\Sites\www.austral.ro\Files\Templates\Designs\Fusion\_parsed\LoginwithImpersonation.parsed.cshtml" 3147 Write(RenderScripts("footer")); 3148 3149 3150 #line default 3151 #line hidden 3152 WriteLiteral(" \r\n </body>\r\n"); 3153 3154 } 3155 } 3156 } 3157

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