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

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