Error compiling template "Designs/Fusion/eCom/Productlist/Product_List_list.cshtml"
Line 111: The name 'navigationXSLT' does not exist in the current context

1 @using Dynamicweb.eCommerce.Products; 2 @using System.Web; 3 @using System; 4 @{ 5 var DisplayOptions = ""; 6 7 if (!string.IsNullOrEmpty(GetGlobalValue("Global:Item.Page.DisplayOptions").ToString())){ 8 DisplayOptions = (GetGlobalValue("Global:Item.Page.DisplayOptions").ToString() == "wide") ? "container-wide" : ""; 9 } 10 var pageURL = "/Default.aspx?" + System.Web.HttpContext.Current.Request.QueryString; 11 12 var galleryType = Pageview.Area.Item["Gallery"]; 13 var cartBehaviour = Pageview.Area.Item["CartBehaviour"]; 14 var cart_page_id = Pageview.Area.Item["CartPage_ID"]; 15 var currentUser = Dynamicweb.Frontend.PageView.Current().User; 16 var currentUserAccess = Dynamicweb.Modules.UserManagement.User.GetCurrentUser(); 17 var firstPageID = Pageview.Area.get_Value("AreaFirstPage"); 18 var currentPageID = GetGlobalValue("Global:Page.ID"); 19 20 string cartPage = "13"; 21 22 //Rolul userului autentificat 23 int customerRole = -1; 24 25 26 //customer numberul userului autentificat 27 //string customerNo = currentUser.LoggedIn ? currentUser.CustomerNumber.ToString() : null; 28 string customerNo = currentUserAccess != null ? currentUserAccess.CustomerNumber : null; 29 30 //Id-ul nodului parinte pentru navigatie 31 var navigationParentId = !string.IsNullOrEmpty(customerNo) ? 17 : 17; 32 33 //determina daca navigatia este colapsata sau este vizibila implicit 34 var navigationCollapsed = "category-collapsed"; 35 if (!string.IsNullOrEmpty(GetString("Item.Page.DisplayOptions.Value"))){ 36 navigationCollapsed = GetString("Item.Page.DisplayOptions.Value"); 37 } 38 39 //determina fisierul XSLT folosit pentru randarea navigatiei 40 @*var navigationXSLT = !string.IsNullOrEmpty(customerNo) ? "CategoriesNavigationB2B.xslt" : "CategoriesNavigationB2B.xslt"; 41 var navigationMobileXSLT = !string.IsNullOrEmpty(customerNo) ? "CategoriesNavigationMobileB2B-v2.xslt" : "CategoriesNavigationMobileB2B-v2.xslt";*@ 42 43 //determina daca afisam navigatie pe coloana din stanga sau nu 44 var navigationColumn = 3; 45 46 //determina numarul de coloane al zonei de content 47 var navigationContent = 9; 48 49 //defineste obiect general de tip customer settings 50 var customerSettings = !string.IsNullOrEmpty(customerNo) ? BrandFusion.Dw.Austral.eCommerce.CustomerFacade.Get(customerNo) : null; 51 52 //Limita lunara totala pentru comenzi 53 var customerMonthlyLimit = customerSettings != null ? customerSettings.MonthlyBudget.GetValueOrDefault() : 0; 54 55 //Ziua de inceput pentru plasarea comenzilor 56 var customerOrderStart = customerSettings != null ? customerSettings.OrderStart.GetValueOrDefault() : 0; 57 58 //Ziua de sfarsit pentru plasarea comenzilor 59 var customerOrderEnd = customerSettings != null ? customerSettings.OrderEnd.GetValueOrDefault() : 0; 60 61 //Ziua de inceput pentru aprobarea comenzilor 62 var customerApprovalStart = customerSettings != null ? customerSettings.ApprovalStart.GetValueOrDefault() : 0; 63 64 //Ziua de sfarsit pentru aprobarea comenzilor 65 var customerApprovalEnd = customerSettings != null ? customerSettings.ApprovalEnd.GetValueOrDefault() : 0; 66 67 int todayDay = (int)DateTime.Now.Day; 68 69 70 bool orderAllow = true ; 71 bool approveAllow = true ; 72 73 if (todayDay < customerOrderStart || todayDay > customerOrderEnd){ 74 orderAllow = false; 75 } 76 if (todayDay < customerApprovalStart || todayDay > customerApprovalEnd){ 77 approveAllow = false; 78 } 79 80 81 82 string customerListGroupID = null; 83 84 if(!string.IsNullOrEmpty(customerNo)){ 85 customerListGroupID= BrandFusion.Dw.Austral.eCommerce.GroupFacade.GetGroupId(customerNo); 86 customerRole = BrandFusion.Dw.Austral.eCommerce.UserFacade.GetRole(currentUserAccess).GetValueOrDefault(); 87 } 88 89 90 HttpContext.Current.Session["userListView"] = "box"; 91 92 if(System.Web.HttpContext.Current.Request["view"] != null){ 93 HttpContext.Current.Session["userListView"] = System.Web.HttpContext.Current.Request["view"]; 94 } 95 96 string userListView = HttpContext.Current.Session["userListView"].ToString(); 97 98 99 } 100 101 <div class="container"> 102 <div class="row"> 103 <div class="col-md-3 reset-padding-right left-nav pull-left"> 104 <div class="left-nav-box clearfix"> 105 <div class="category-scope"> 106 <div class="menu-heading"> 107 <p>Categorii de produse</p> 108 </div> 109 <div class="menu3dmega @navigationCollapsed" id="menuMega"> 110 @RenderNavigation(new { 111 template = @navigationXSLT, 112 expandmode = "all", 113 id = "categories", 114 startlevel = 2, 115 endlevel = 4, 116 parentid = 17 117 }) 118 </div> 119 </div> 120 </div> 121 <h4 class="filter-products box-heading" data-test='@GetLoop("Ecom:Search.Filters").Count()'>@Translate("filterProducts", "Filtreaza dupa")</h4> 122 <div class="filter-vertical"> 123 <form name="EcomSearch" class="form-filters" method="get" action='@GetValue("Global:Pageview.Url.Raw")'> 124 <input type="hidden" name="ID" value='@GetValue("Global:Page.ID")' /> 125 @*<input type="hidden" name="groupId" value='<!--@Server:Request.groupid-->' />*@ 126 <input type="submit" style="display:none;"> 127 128 @foreach (LoopItem i in GetLoop("Ecom:Search.Filters")){ 129 130 if(i.GetString("Ecom:Search.Filter.TagName").Equals("Groups")) 131 { 132 <text>@i.GetValue("Ecom:Search.Filter.Output")</text> 133 } 134 135 if(i.GetString("Ecom:Search.Filter.TagName").Equals("Price")) 136 { 137 <text>@i.GetValue("Ecom:Search.Filter.Output")</text> 138 } 139 140 if(i.GetString("Ecom:Search.Filter.TagName").Equals("Rating")) 141 { 142 <text>@i.GetValue("Ecom:Search.Filter.Output")</text> 143 } 144 145 if (!i.GetString("Ecom:Search.Filter.TagName").Equals("Price")) 146 { 147 if (!i.GetString("Ecom:Search.Filter.TagName").Equals("RatingSlider")) 148 { 149 if (!i.GetString("Ecom:Search.Filter.TagName").Equals("StockPresence")) 150 { 151 if (i.GetBoolean("Ecom:Search.Filter.SupportsOptions")) 152 { 153 if (i.GetBoolean("Ecom:Search.Filter.HasNonEmptyOptions")) 154 { 155 string filterName = i.GetString("Ecom:Search.Filter.Name"); 156 if (i.GetString("Ecom:Search.Filter.Name").StartsWith("Filter")) 157 { 158 string filterString = (filterName + GetString("Ecom:Group.Name")).ToLower().Replace(" ", ""); 159 filterName = Translate(filterString, filterString); 160 } 161 162 if (i.GetBoolean("Ecom:Search.Filter.HasOptions")) 163 { 164 var iteration = 1; 165 <div class="filter-wrapper @i.GetValue("Ecom:Search.Filter.CssClass")"> 166 <h3><span>@filterName</span></h3> 167 <div class="filter-content"> 168 169 @if(i.GetLoop("Ecom:Search.Filter.Options").Count() > 10) { 170 <ul data-group='@i.GetString("Ecom:Search.Filter.CurrentGroupID")'> 171 @foreach (LoopItem j in i.GetLoop("Ecom:Search.Filter.Options")) { 172 if(j.GetInteger("Ecom:Search.Filter.Option.ResultsCount")>0 && !j.GetBoolean("Ecom:Search.Filter.Option.Label") && i.GetString("Ecom:Search.Filter.TagName") == j.GetString("Ecom:Search.Filter.TagName") && iteration <= 10){ 173 <li> 174 <label for="chk@(j.GetValue("Ecom:Search.Filter.TagName"))@(j.GetValue("Ecom:Search.Filter.Options.LoopCounter"))"> 175 <input type="checkbox" class="filter-option-value" id="chk@(j.GetValue("Ecom:Search.Filter.TagName"))@(j.GetValue("Ecom:Search.Filter.Options.LoopCounter"))" name="@j.GetValue("Ecom:Search.Filter.TagName")" value="@j.GetValue("Ecom:Search.Filter.Option.Value")" @if(Dynamicweb.Input.FormatBoolean(j.GetValue("Ecom:Search.Filter.Option.Selected"))){<text> checked="checked"</text>} /> 176 @j.GetValue("Ecom:Search.Filter.Option.Label") 177 <span class="badge">@j.GetValue("Ecom:Search.Filter.Option.ResultsCountFormatted")</span> 178 </label> 179 </li> 180 } 181 iteration++; 182 } 183 </ul> 184 iteration = 0; 185 <ul class="hidden-filter" data-group='@i.GetString("Ecom:Search.Filter.CurrentGroupID")'> 186 @foreach (LoopItem j in i.GetLoop("Ecom:Search.Filter.Options")) { 187 if(j.GetInteger("Ecom:Search.Filter.Option.ResultsCount")>0 && !j.GetBoolean("Ecom:Search.Filter.Option.Label") && i.GetString("Ecom:Search.Filter.TagName") == j.GetString("Ecom:Search.Filter.TagName") && iteration > 10){ 188 <li> 189 <label for="chk@(j.GetValue("Ecom:Search.Filter.TagName"))@(j.GetValue("Ecom:Search.Filter.Options.LoopCounter"))"> 190 <input type="checkbox" class="filter-option-value" id="chk@(j.GetValue("Ecom:Search.Filter.TagName"))@(j.GetValue("Ecom:Search.Filter.Options.LoopCounter"))" name="@j.GetValue("Ecom:Search.Filter.TagName")" value="@j.GetValue("Ecom:Search.Filter.Option.Value")" @if(Dynamicweb.Input.FormatBoolean(j.GetValue("Ecom:Search.Filter.Option.Selected"))){<text> checked="checked"</text>} /> 191 @j.GetValue("Ecom:Search.Filter.Option.Label") 192 <span class="badge">@j.GetValue("Ecom:Search.Filter.Option.ResultsCountFormatted")</span> 193 </label> 194 </li> 195 } 196 iteration++; 197 } 198 </ul> 199 <button type="button" class="filter-show-more"><i class="ion-plus-circled"></i> <span>mai mult</span></button> 200 } else { 201 <ul data-group='@i.GetString("Ecom:Search.Filter.CurrentGroupID")'> 202 @foreach (LoopItem j in i.GetLoop("Ecom:Search.Filter.Options")) 203 { 204 if(j.GetInteger("Ecom:Search.Filter.Option.ResultsCount")>0 && !j.GetBoolean("Ecom:Search.Filter.Option.Label") && i.GetString("Ecom:Search.Filter.TagName") == j.GetString("Ecom:Search.Filter.TagName") ) 205 { 206 <li> 207 <label for="chk@(j.GetValue("Ecom:Search.Filter.TagName"))@(j.GetValue("Ecom:Search.Filter.Options.LoopCounter"))"> 208 <input type="checkbox" class="filter-option-value" id="chk@(j.GetValue("Ecom:Search.Filter.TagName"))@(j.GetValue("Ecom:Search.Filter.Options.LoopCounter"))" name="@j.GetValue("Ecom:Search.Filter.TagName")" value="@j.GetValue("Ecom:Search.Filter.Option.Value")" @if(Dynamicweb.Input.FormatBoolean(j.GetValue("Ecom:Search.Filter.Option.Selected"))){<text> checked="checked"</text>} /> 209 @j.GetValue("Ecom:Search.Filter.Option.Label") 210 <span class="badge">@j.GetValue("Ecom:Search.Filter.Option.ResultsCountFormatted")</span> 211 </label> 212 </li> 213 } 214 } 215 </ul> 216 } 217 218 219 220 </div> <!-- / .filter-container --> 221 </div> <!-- / .filter-wrapper --> 222 } 223 224 } 225 } 226 } 227 } 228 } 229 230 if(!Dynamicweb.Input.FormatBoolean(i.GetValue("Ecom:Search.Filter.SupportsOptions"))) 231 { 232 <text> 233 @i.GetValue("Ecom:Search.Filter.Output") 234 </text> 235 } 236 } 237 @* <div class="vertical-filters-control"> 238 <a id="clearFilters" href="#" class="btn-gray anuleaza">@Translate("deleteFilters", "Anuleaza Filtrele")</a> 239 <button type="submit" id="applyFilters" class="btn-main">@Translate("applyFilters", "Filtreaza")</button> 240 </div> *@ 241 242 243 </form> 244 245 </div> 246 247 248 @SnippetStart("bottomJS") 249 <style type="text/css" media="screen"> 250 .filter-show-more { 251 padding: 0; 252 background-color: transparent; 253 color: #000; 254 font-weight: 400; 255 margin-top: 0.3em; 256 } 257 .hidden-filter { 258 display: none; 259 } 260 .filter-show-more i { 261 vertical-align: middle; 262 } 263 #filter-wrapper { 264 opacity: 0; 265 } 266 </style> 267 <script type="text/javascript"> 268 $(function(){ 269 270 $('.filter-show-more').on("click", function(e){ 271 e.preventDefault(); 272 $(this).toggleClass("opened"); 273 $(this).parents(".filter-wrapper").find(".hidden-filter").slideToggle(); 274 $(this).find("i").toggleClass("ion-plus-circled").toggleClass("ion-minus-circled"); 275 if($(this).hasClass("opened")){ 276 $(this).find("span").html("mai putin"); 277 } else { 278 $(this).find("span").html("mai mult"); 279 } 280 281 }); 282 283 if($('.filter-products').length) { 284 if($('.filter-wrapper').length > 0) { 285 $('#filter-wrapper').css("opacity","1"); 286 // $('.filter-products').parent().css("visibility","hidden"); 287 // $('.product-list').parents(".col-md-9").removeClass("col-md-9").addClass("col-md-12"); 288 } 289 } 290 291 292 293 }); 294 295 296 </script> 297 @SnippetEnd("bottomJS") 298 </div> 299 300 <div class="col-xs-9"> 301 <div class="row"> 302 <div class="col-xs-12" filters='@GetValue("Item.Area.Filters.Value")' gallery='@GetValue("Item.Area.Gallery.Value")'> 303 <div class="breadcrumbs clearfix"> 304 <ul> 305 <li><a href="/" itemprop="url" title="Acasa"><span itemprop="title">acasa</span></a></li> 306 <li id="NavBreadcrumb" class="dwnavigation" data-settings="template:breadcrumb.xslt;expandmode:pathonly;"></li> 307 @if (System.Web.HttpContext.Current.Request.QueryString["productid"] != null) { 308 <li class="active"><span class="sbreadcrumb">&raquo;&nbsp;</span> @GetValue("Title") </li> 309 } 310 </ul> 311 @RenderNavigation(new { 312 template = "breadcrumb.xslt", 313 expandmode = "pathonly" 314 }) </div> 315 </div> 316 <div class="sort-block col-sm-12"> 317 <div class="row"> 318 <h2 class="heading-category col-sm-6">@GetValue("Ecom:Group.Name")</h2> 319 <div class="col-xs-6"> 320 <div class="filter-horizontal"> 321 <div class="pagination-info"> 322 <p>@Translate("page", "Pagina") @GetValue("Ecom:ProductList.CurrentPage") @Translate("of", "din") @GetValue("Ecom:ProductList.TotalPages")</p> 323 </div> 324 <div class="view-mode"> <a href='@(pageURL + "&view=box")'><i class="fa fa-th"></i></a> <a href='@(pageURL + "&view=list")'><i class="fa fa-list"></i></a> </div> 325 </div> 326 </div> 327 </div> 328 </div> 329 <div class="col-xs-12 product-list clearfix"> 330 331 @if(!string.IsNullOrEmpty(currentUser.CustomerNumber)) { 332 <table style="width:100%" class="table-products"> 333 <colgroup> 334 <col style="width:5%"> 335 <col style="width:30%"> 336 <col style="width:10%"> 337 <col style="width:10%"> 338 <col style="width:5%"> 339 <col style="width:10%"> 340 <col style="width:15%"> 341 <col style="width:15%"> 342 </colgroup> 343 <thead> 344 <tr style="text-align: center;"> 345 <th></th> 346 <th>Produs</th> 347 <th>Cod produs</th> 348 <th>Varianta</th> 349 <th>Cantitate</th> 350 <th>Pret</th> 351 <th>Pret total</th> 352 <th></th> 353 </tr> 354 </thead> 355 <tbody> 356 @{ 357 int row = 1; 358 foreach (LoopItem i in GetLoop("Products")){ 359 double priceProductDB = Math.Round(i.GetDouble("Ecom:Product.DBPrice.PriceWithoutVAT"),2); 360 double priceProductDiscount = Math.Round(i.GetDouble("Ecom:Product.Discount.Price.PriceWithoutVAT"),2); 361 362 string productId = i.GetString("Ecom:Product.ID"); 363 string productNumber = i.GetString("Ecom:Product.Number"); 364 string productName = i.GetString("Ecom:Product.Name"); 365 string productCode= i.GetString("Ecom:Product:Field.ItemCode.Value.Clean"); 366 367 368 if(i.GetLoop("VariantCombinations").Count > 1){ 369 foreach(var variant in i.GetLoop("VariantCombinations")){ 370 371 string variantId = variant.GetString("Ecom:VariantCombination.VariantID"); 372 string variantName = variant.GetString("Ecom:VariantCombination.VariantText"); 373 374 <tr> 375 <td class="icon"><a href="#" proD pid="@productId">Detalii</a></td> 376 <td class="name">@productName </td> 377 <td class="product-id">@productCode</td> 378 <td class="variant-name">@variantName</td> 379 <td class="qty"> 380 <input class="inputQuantity" type="text" placeholder="0" pid="@productId" vid="@variantId" price="@priceProductDiscount" row="@row" /> 381 </td> 382 <td class="product-price">@priceProductDiscount LEI</td> 383 <td total class="total-product-price" row="@row">0 LEI</td> 384 <td><button class="btn-finalize">Adauga in cos</button></td> 385 </tr> 386 row++; 387 } 388 } else { 389 390 <tr> 391 <td class="icon"><a href="#" proD pid="@productId">Detalii</a></td> 392 <td class="name">@productName</td> 393 <td class="product-id">@productId</td> 394 <td class="variant-name"> </td> 395 <td class="qty"> 396 <input class="inputQuantity" type="text" placeholder="0" pid="@productId" row="@row" price="@priceProductDiscount"/> 397 </td> 398 <td class="product-price">@priceProductDiscount LEI</td> 399 <td total class="total-product-price" row="@row">0 LEI</td> 400 <td><button class="btn-finalize">Adauga in cos</button></td> 401 402 </tr> 403 404 row++; 405 } 406 407 408 409 410 411 412 } 413 } 414 </tbody> 415 416 </table> 417 418 <!--@SnippetStart(bottomJS)--> 419 <script src="Files/Templates/Designs/Fusion/assets/js/listAddToCart.js"></script> 420 <!--@SnippetEnd(bottomJS)--> 421 422 423 } else { 424 425 <div class="row"> @foreach (LoopItem i in GetLoop("Products")){ 426 double priceProductDB = Math.Round(i.GetDouble("Ecom:Product.DBPrice"),2); 427 double priceProductDiscount = Math.Round(i.GetDouble("Ecom:Product.Discount.Price.Price"),2); 428 <p>List</p> 429 <div class="col-xs-4 list-view product item-scope"> 430 <div class="product-box"> 431 <a href="@i.GetValue("Ecom:Product.LinkGroup.Clean")" class="btn-home-add pull-right">@Translate("viewproduct", "Add to Cart")</a> 432 <div class="product-image"> 433 @if (priceProductDB > priceProductDiscount) 434 { 435 <div class="sale list"></div> 436 } 437 @{ 438 string path = "/Files/Images/products/inter/" + i.GetValue("Ecom:Product.Number") + "_inter.jpg"; 439 440 if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(path))){ 441 <img src="/Files/Images/products/inter/@(i.GetValue("Ecom:Product.Number"))_inter.jpg" alt='@i.GetValue("Ecom:Product.Name")' class="img-responsive" /> 442 } else { 443 <img src="/Files/Images/products/inter/no-image-available_inter.jpg" alt='@i.GetValue("Ecom:Product.Name")' class="img-responsive" /> 444 } 445 } 446 </div> 447 <h2> 448 <a href="@i.GetValue("Ecom:Product.LinkGroup.Clean")">@i.GetValue("Ecom:Product.Name")</a> 449 </h2> 450 <div class="product-content"> 451 <p>@String.Format("{0:#,##0.##}", priceProductDiscount) @i.GetValue("Ecom:Product.Price.Currency.Symbol")</p> 452 @if (priceProductDB > priceProductDiscount) 453 { 454 <small>@Translate("oldPrice", "Pret vechi"): @String.Format("{0:#,##0.##}", priceProductDB) @i.GetValue("Ecom:Product.Price.Currency.Symbol")</small> 455 } 456 </div> 457 458 459 @* <div class="product-extra"> 460 <div class="bottom-info"> 461 <label class="compare_label"> 462 <input type="checkbox" class="compare_product" produs='@i.GetValue("Ecom:Product.ID")' numar_produs='@i.GetValue("Ecom:Product.Number")' nume_produs='@i.GetValue("Ecom:Product.Name")' /> 463 @Translate("compareproduct", "compare product") 464 </label> 465 </div> 466 </div> *@ 467 </div> 468 </div> 469 470 471 472 473 } </div> 474 } </div> 475 <div class="col-xs-12 sort-block"> 476 <div class="row"> 477 <div class="col-xs-6"></div> 478 <div class="col-xs-6 filter-horizontal"> 479 <div class="pagination-info"> 480 <ul class="pagination pagination-custom pull-right"> 481 @using System.Text 482 @using System.Web 483 484 @{ 485 int currentPage = GetInteger("Ecom:ProductList.CurrentPage"); 486 int pageSize = GetInteger("Ecom:ProductList.PageSize"); 487 int totalPages = GetInteger("Ecom:ProductList.TotalPages"); 488 int pageId = GetInteger("Ecom:ProductList:Page.ID"); 489 490 491 StringBuilder querySb = new StringBuilder(); 492 string pageIdFromQuery = ""; 493 494 foreach (string key in HttpContext.Current.Request.QueryString.AllKeys) 495 { 496 if (key != null) 497 { 498 if (!key.ToUpper().Equals("ID") && !key.ToUpper().Equals("GROUPID") && !key.ToUpper().Equals("PAGENUM")) 499 { 500 string value = HttpContext.Current.Request.QueryString[key].ToString(); 501 querySb.Append("&"); 502 querySb.Append(String.Format("{0}={1}", key, HttpUtility.UrlEncode(value))); 503 } 504 if (key.Equals("ID")) 505 { 506 try 507 { 508 pageIdFromQuery = HttpContext.Current.Request.QueryString[key].ToString(); 509 } 510 catch { } 511 } 512 } 513 } 514 515 if (string.IsNullOrEmpty(pageIdFromQuery)) 516 { 517 pageIdFromQuery = pageId.ToString(); 518 } 519 string groupValue = HttpContext.Current.Request.QueryString.Get("GroupID"); 520 if (!string.IsNullOrEmpty(groupValue)) 521 { 522 groupValue = "&GROUPID=" + groupValue; 523 } 524 } 525 526 @if (currentPage > 1) 527 { 528 <li><a href="Default.aspx?ID=@pageIdFromQuery&PageNum=1@(groupValue)@(querySb.ToString())"><i class="fa fa-angle-double-left"></i></a></li> 529 <li><a href="Default.aspx?ID=@pageIdFromQuery&PageNum=@(currentPage - 1)@(groupValue)@(querySb.ToString())"><i class="fa fa-angle-left"></i></a></li> 530 } 531 532 @{ 533 int firstPage = currentPage - 2; 534 if (firstPage < 1) 535 { 536 firstPage = 1; 537 } 538 if (firstPage > 1) 539 { 540 <li class="disabled"><a href="javascript:void(0);">...</a></li> 541 } 542 int lastPage = currentPage + 2; 543 if (lastPage > totalPages) 544 { 545 lastPage = totalPages; 546 } 547 for (int i = firstPage; i <= lastPage; i++) 548 { 549 if (i == currentPage) 550 { 551 <li class="active disabled"><a href="javascript:void(0);">@i</a></li> 552 } 553 else 554 { 555 <li><a href="Default.aspx?ID=@pageIdFromQuery&PageNum=@(i)@(groupValue)@(querySb.ToString())">@i</a></li> 556 } 557 } 558 if (lastPage < totalPages) 559 { 560 <li class="disabled"><a href="javascript:void(0);">...</a></li> 561 } 562 if (currentPage < totalPages) 563 { 564 <li><a href="Default.aspx?ID=@pageIdFromQuery&PageNum=@(currentPage + 1)@(groupValue)@(querySb.ToString())"><i class="fa fa-angle-right"></i></a></li> 565 <li><a href="Default.aspx?ID=@pageIdFromQuery&PageNum=@(totalPages)@(groupValue)@(querySb.ToString())"><i class="fa fa-angle-double-right"></i></a></li> 566 } 567 } 568 569 </ul> 570 <p class="pull-right">@Translate("page", "Pagina") @GetValue("Ecom:ProductList.CurrentPage") @Translate("of", "din") @GetValue("Ecom:ProductList.TotalPages")</p> 571 </div> 572 </div> 573 </div> 574 </div> 575 </div> 576 </div> 577 </div> 578 <div id="compare-block"> 579 <div class="wrapper-compare-box"> 580 <div id="compare-render-content"></div> 581 <a href="/Default.aspx?ID=3250?Compare=" data-href='/Default.aspx?ID=3250&Compare=' class="btn-compara" id="mini_compare"><i class="fa fa-exchange" aria-hidden="true"></i> @Translate("compare", "Compare")</a> 582 </div> 583 </div> 584 585 </div> 586 587 <!-- Modal --> 588 <div class="modal fade" id="points" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 589 <div class="modal-dialog"> 590 <div class="modal-content"> 591 <div class="modal-header"> 592 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> 593 <h4 class="modal-title" id="myModalLabel">@Translate("loyaltypoints", "loyalty points")</h4> 594 </div> 595 <div class="modal-body"> 596 <!--@Global:Paragraph.Content(41)--> 597 </div> 598 </div> 599 <!-- /.modal-content --> 600 </div> 601 <!-- /.modal-dialog --> 602 </div> 603 <!-- /.modal --> 604 605 @SnippetStart("modalBottom") 606 <!-- Modal --> 607 <div id="myModal" class="modal fade" role="dialog"> 608 <div class="modal-dialog"> 609 <!-- Modal content--> 610 <div class="modal-content"> 611 <div class="modal-header"> 612 <h4 class="modal-title">Aveti deja produse in cos.</h4> 613 </div> 614 <div class="modal-body info-modal"> 615 <p>Doriti sa continuati comanda sau renuntati la comanda existenta si incepeti una noua?</p> 616 <p><br /> 617 </p> 618 <a continue href="#" class="continue-shopping" style="display:inline-block;">Continua</a> <a deleteOrder href="#" class="btn-blue" style="display:inline-block;" >Incepe comanda noua</a> </div> 619 </div> 620 </div> 621 </div> 622 <div id="pleaseWait" class="modal fade" role="dialog"></div> 623 <div id="prodDetails" class="modal fade" role="dialog"> 624 <div class="modal-dialog"> 625 <!-- Modal content--> 626 <div class="modal-content"> 627 <div class="modal-header"> 628 <h4 class="modal-title"></h4> 629 </div> 630 <div class="modal-body info-modal"></div> 631 </div> 632 </div> 633 </div> 634 @SnippetEnd("modalBottom") 635 <!--@SnippetStart(bottomJS)--> 636 <script src="Files/Templates/Designs/Fusion/assets/js/optiuni_retail.js"></script> 637 <!--@SnippetEnd(bottomJS)--> 638 639