Error parsing template "/Designs/HagsCore/Paragraph/AssetsSearch.cshtml"
Line 1122: (1121:21) - Unexpected "{" after "@" character. Once inside the body of a code block (@if {}, @{}, etc.) you do not need to use "@{" to switch to code.

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System.Web.Optimization; 3 @using Dynamicweb.Ecommerce.Variants; 4 @using HagsWeb.Library.BusinessObjects.UsersLists 5 @using HagsWeb.Library.State 6 @{ 7 string validationMessages = string.Format("messages_{0}.min.js", GetGlobalValue("Global:Area.Lang")); 8 string areaLanguage = GetGlobalValue("Global:Area.Lang"); 9 string customErrorMessage = HagsWeb.Library.Utilities.DWUtilities.GetTranslation("AdvancedSearchError", "You must provide a Product Code or a Product Name for your Search", GetGlobalValue("Global:Area.LongLang")); 10 int collectionCount = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection.Count : 0; 11 string colnCount = string.Empty; 12 if (collectionCount > 0) 13 { 14 colnCount = collectionCount > 0 ? string.Format(@"<span class='collection-number'>{0}</span>", collectionCount) : string.Empty; 15 } 16 } 17 18 @*@Scripts.Render("~/bundle/AssetSearch") 19 20 @if (areaLanguage != "en") 21 { 22 // non english validation messages 23 <script src="/Files/Templates/Designs/HagsCore/script/source/libraries/validation/localization/@validationMessages"></script> 24 }*@ 25 26 <input type="hidden" id="CultureLanguage" value="@GetGlobalValue("Global:Area.LongLang")" /> 27 <input type="hidden" id="PageID" value="@GetGlobalValue("Global:Page.ID")" /> 28 <input type="hidden" id="ErrorMessage" value="@customErrorMessage" /> 29 30 <div id="advancedSearch"> 31 <div class="m-search-primary"> 32 <div class="text-center"> 33 <ul> 34 <li><a class="m-btn-search-options btn btn-default text-uppercase" role="button" href="#advancedsearch-ui" data-toggle="tab">@Translate("AdvancedSearch", "Advanced Search")</a></li> 35 <li><a class="m-btn-search-options btn btn-default text-uppercase" role="button" href="#downloadfinder" data-toggle="tab">@Translate("ProductDownloads", "Product Downloads")</a></li> 36 <li><a class="m-btn-search-options btn btn-default text-uppercase" role="button" href="#productcollection" data-toggle="tab">@Translate("MyProductCollection", "My Product Collection")</a>@colnCount</li> 37 <li><a class="m-btn-search-options btn btn-default text-uppercase" role="button" href="#inspirationfinder" data-toggle="tab">@Translate("InspirationFinder", "Inspiration Finder")</a></li> 38 </ul> 39 </div> 40 </div> 41 42 43 <div class="container"> 44 45 <div class="content"> 46 47 <div class="tab-content"> 48 49 <div class="tab-pane fade" id="advancedsearch-ui"> 50 51 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 52 @using Dynamicweb.Ecommerce.Variants; 53 @using HagsWeb.Library.BusinessObjects.UsersLists; 54 @using HagsWeb.Library.State; 55 @{} 56 57 @*@helper AdvancedSearch(string name) { 58 // your helper can contain code and/or markup, e.g. 59 // var msg = "Hello " + name; 60 // <p>@msg</p> 61 // For more information, visit http://go.microsoft.com/fwlink/?LinkID=204658 62 }*@ 63 64 65 @{ 66 Dynamicweb.Frontend.PageView advSearchPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 67 Dynamicweb.Content.Area advSearchArea = new Dynamicweb.Content.AreaService().GetArea(advSearchPage.AreaID); 68 69 string advancedSearchUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl((Int32)new Dynamicweb.Content.PageService().GetFirstModulePageForArea(advSearchArea.ID, "Searchv1").ID); 70 71 // Search Results in Session - Phase 2 72 //List<AdvancedSearchState> advancedSearchState = SessionManager.UsersAdvancedSearchState != null ? SessionManager.UsersAdvancedSearchState as List<AdvancedSearchState> : new List<AdvancedSearchState>(); 73 74 75 76 77 78 // Dynamicweb.Frontend.PageView thisPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 79 // var area = Dynamicweb.Content.Area.GetAreaById(thisPage.AreaID); 80 81 //var AnchoringVariants = GlobalAnchoringVariants; // Defined in AssetsSearch.cshtml, the controls' parent 82 83 //Dynamicweb.Frontend.PageView thisPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 84 //var area = Dynamicweb.Content.Area.GetAreaById(thisPage.AreaID); 85 86 //Dynamicweb.Frontend.PageView thisPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 87 //ParagraphCollection pageParagraphCollection = Dynamicweb.Content.Paragraph.GetParagraphsByPageID(thisPage.ID); 88 //string pageId = thisPage.ID.ToString(); 89 90 //var area = Dynamicweb.Content.Area.GetAreaById(thisPage.AreaID); 91 // //var l = area.EcomLanguageId; 92 //string EcomLanguageID = area.EcomLanguageId; 93 //string EcomShopID = area.EcomShopID; 94 95 ////string lang = thisPage.GlobalTags.GetTagByName("LongLang").Value; 96 //string l = thisPage.Area.Values["areaecomlanguageid"].ToString(); 97 } 98 99 <div class="m-search-advanced" style="display:block;visibility:visible;"> 100 <div class="m-search-advanced-panel m-search-advanced-product" style="display:block;visibility:visible;"> 101 <div class="l-page"> 102 <div class="container-fluid"> 103 <nav class="text-center"> 104 <ul class="m-nav-tabs-search nav nav-tabs text-uppercase"> 105 <li id="tabSearchPlay" class="active"><a href="#advancedsearch-Play" data-toggle="tab">@Translate("play", "Play")</a></li> 106 <li id="tabSearchSportFitness"><a href="#advancedsearch-SportFitness" data-toggle="tab">@Translate("sport", "Sport &amp; Fitness")</a></li> 107 <li id="tabSearchParkUrban"><a href="#advancedsearch-ParkUrban" data-toggle="tab">@Translate("park", "Park &amp; Urban")</a></li> 108 <li id="tabSearchMarine"><a href="#advancedsearch-Marine" data-toggle="tab">@Translate("marine", "Marine")</a></li> 109 <li id="tabSearchShade"><a href="#advancedsearch-Shade" data-toggle="tab">@Translate("shade", "Shade")</a></li> 110 </ul> 111 </nav> 112 </div> <!-- container-fluid --> 113 <div class="tab-content"> 114 <div class="tab-pane fade in active" id="advancedsearch-Play"> 115 <form id="search-play" name="search-form" method="get" action="@advancedSearchUrl"> 116 <input type="hidden" name="Products" value="Play" /> 117 <div class="l-page"> 118 <div class="container-fluid"> 119 <div class="form-horizontal"> 120 <fieldset class="m-theme-border-grey"> 121 122 <div class="row"> 123 <div class="col-ms-4 col-sm-4"> 124 <div class="form-group"> 125 <label for="aspProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 126 <div class="col-sm-7"><input type="text" class="form-control search-group" id="aspProductCode" name="ProductCode" /></div> 127 </div> 128 </div> 129 <div class="col-ms-4 col-sm-4"> 130 <div class="form-group"> 131 <label for="aspProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 132 <div class="col-sm-7"><input type="text" class="form-control search-group" id="aspProductName" name="ProductName" /></div> 133 </div> 134 </div> 135 @{ 136 List<VariantOption> PlayAnchoringVariants = new HagsWeb.Library.Methods.AssetSearch.ProductAssets().CheckValidVariantOptions("ATP3", "Play", advSearchArea.EcomLanguageId); 137 138 if (PlayAnchoringVariants.Count > 0) 139 { 140 <div class="col-ms-4 col-sm-4"> 141 <div class="form-group"> 142 143 <label for="aspAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 144 <div class="col-sm-7"> 145 <select class="form-control" id="aspAnchoringType" name="AnchoringType"> 146 @if (PlayAnchoringVariants.Count > 1) 147 { 148 <option value="0"> @Translate("SelectAnchoring", "Select Anchoring Type") </option> 149 } 150 @foreach (var option in PlayAnchoringVariants) 151 { 152 <option value='@option.Id'>@option.Name</option> 153 } 154 </select> 155 </div> 156 </div> 157 </div> 158 } 159 else 160 { 161 <input type="hidden" name="AnchoringType" value="0" /> 162 } 163 164 } 165 166 </div> <!-- row --> 167 @*<input type="hidden" name="productsInSession" value="@advancedSearchState.Count()" />*@ 168 169 </fieldset> 170 171 172 173 174 </div> <!--form - horizontal--> 175 </div> <!--container - fluid--> 176 </div> <!--l - page--> 177 <div class="m-search-advanced-buttons text-center"> 178 <button class="m-btn-search btn btn-default text-uppercase" type="reset" name="reset">@Translate("Reset", "Reset")</button> 179 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 180 </div> 181 </form> 182 183 @*<script> 184 $("#search-play").validate(); 185 </script>*@ 186 <div id="results-search-play" class="m-search-advanced-results-panel"> 187 188 @*// Search Results in Session - Phase 2 189 @if (advancedSearchState.Any()) 190 { 191 192 foreach (AdvancedSearchState product in advancedSearchState) 193 { 194 @String.Format("{0}", product.Products) 195 } 196 }*@ 197 198 </div> 199 </div> 200 <div class="tab-pane fade in" id="advancedsearch-SportFitness"> 201 <form id="search-sport" name="search-form" method="get" action="@advancedSearchUrl"> 202 <input type="hidden" name="Products" value="Sport" /> 203 <div class="l-page"> 204 <div class="container-fluid"> 205 <div class="form-horizontal"> 206 <fieldset class="m-theme-border-grey"> 207 <div class="row"> 208 <div class="col-ms-4 col-sm-4"> 209 <div class="form-group"> 210 <label for="sfProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 211 <div class="col-sm-7"><input type="text" class="form-control search-group" id="sfProductCode" name="ProductCode" /></div> 212 </div> 213 </div> 214 <div class="col-ms-4 col-sm-4"> 215 <div class="form-group"> 216 <label for="sfProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 217 <div class="col-sm-7"><input type="text" class="form-control search-group" id="sfProductName" name="ProductName" /></div> 218 </div> 219 </div> 220 221 @{ 222 List<VariantOption> SportAnchoringVariants = new HagsWeb.Library.Methods.AssetSearch.ProductAssets().CheckValidVariantOptions("ATP3", "Sport", advSearchArea.EcomLanguageId); 223 224 if (SportAnchoringVariants.Count > 0) 225 { 226 <div class="col-ms-4 col-sm-4"> 227 <div class="form-group"> 228 <label for="sfAdvancedSearch" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 229 <div class="col-sm-7"> 230 <select class="form-control" id="sfAdvancedSearch" name="AnchoringType"> 231 @if (SportAnchoringVariants.Count > 1) 232 { 233 <option value="0"> @Translate("SelectAnchoring", "Select Anchoring Type") </option> 234 } 235 @foreach (var option in SportAnchoringVariants) 236 { 237 <option value='@option.Id'> @option.Name </option> 238 } 239 </select> 240 </div> 241 </div> 242 </div> 243 } 244 else 245 { 246 <input type="hidden" name="AnchoringType" value="0" /> 247 } 248 } 249 250 </div> <!-- row --> 251 </fieldset> 252 </div> <!-- form-horizontal --> 253 </div> <!-- container-fluid --> 254 </div> <!-- l-page --> 255 <div class="m-search-advanced-buttons text-center"> 256 <button class="m-btn-search btn btn-default text-uppercase" type="reset" name="reset">@Translate("Reset", "Reset")</button> 257 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 258 </div> 259 </form> 260 <div id="results-search-sportfitness" class="m-search-advanced-results-panel"> 261 @*// Search Results in Session - Phase 2 262 @if (advancedSearchState.Any()) 263 { 264 265 foreach (AdvancedSearchState product in advancedSearchState) 266 { 267 @String.Format("{0}", product.Products) 268 } 269 }*@ 270 </div> 271 </div> 272 <div class="tab-pane fade in" id="advancedsearch-ParkUrban"> 273 <form id="search-park" name="search-form" method="get" action="@advancedSearchUrl"> 274 <input type="hidden" name="Products" value="Park" /> 275 <div class="l-page"> 276 <div class="container-fluid"> 277 <div class="form-horizontal"> 278 <fieldset class="m-theme-border-grey"> 279 <div class="row"> 280 <div class="col-ms-4 col-sm-4"> 281 <div class="form-group"> 282 <label for="puProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 283 <div class="col-sm-7"><input type="text" class="form-control search-group" id="puProductCode" name="ProductCode" /></div> 284 </div> 285 </div> 286 <div class="col-ms-4 col-sm-4"> 287 <div class="form-group"> 288 <label for="puProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 289 <div class="col-sm-7"><input type="text" class="form-control search-group" id="puProductName" name="ProductName" /></div> 290 </div> 291 </div> 292 @{ 293 List<VariantOption> ParkAnchoringVariants = new HagsWeb.Library.Methods.AssetSearch.ProductAssets().CheckValidVariantOptions("ATP3", "Park", advSearchArea.EcomLanguageId); 294 295 if (ParkAnchoringVariants.Count > 0) 296 { 297 <div class="col-ms-4 col-sm-4"> 298 <div class="form-group"> 299 <label for="puAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 300 <div class="col-sm-7"> 301 <select class="form-control" id="puAnchoringType" name="AnchoringType"> 302 @if (ParkAnchoringVariants.Count > 1) 303 { 304 <option value="0"> @Translate("SelectAnchoring", "Select Anchoring Type") </option> 305 } 306 @foreach (var option in ParkAnchoringVariants) 307 { 308 <option value='@option.Id'> @option.Name </option> 309 } 310 </select> 311 </div> 312 </div> 313 </div> 314 } 315 else 316 { 317 <input type="hidden" name="AnchoringType" value="0" /> 318 } 319 } 320 321 </div> <!-- row --> 322 </fieldset> 323 </div> <!-- form-horizontal --> 324 </div> <!-- container-fluid --> 325 </div> <!-- l-page --> 326 <div class="m-search-advanced-buttons text-center"> 327 <button class="m-btn-search btn btn-default text-uppercase" type="reset" name="reset">@Translate("Reset", "Reset")</button> 328 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 329 </div> 330 </form> 331 <div id="results-search-parkurban" class="m-search-advanced-results-panel"> 332 @*// Search Results in Session - Phase 2 333 @if (advancedSearchState.Any()) 334 { 335 336 foreach (AdvancedSearchState product in advancedSearchState) 337 { 338 @String.Format("{0}", product.Products) 339 } 340 }*@ 341 </div> 342 </div> 343 <div class="tab-pane fade in" id="advancedsearch-Marine"> 344 <form id="search-marine" name="search-form" method="get" action="@advancedSearchUrl"> 345 <input type="hidden" name="Products" value="Marine" /> 346 <div class="l-page"> 347 <div class="container-fluid"> 348 <div class="form-horizontal"> 349 <fieldset class="m-theme-border-grey"> 350 <div class="row"> 351 <div class="col-ms-4 col-sm-4"> 352 <div class="form-group"> 353 <label for="mProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 354 <div class="col-sm-7"><input type="text" class="form-control search-group" id="mProductCode" name="ProductCode" /></div> 355 </div> 356 </div> 357 <div class="col-ms-4 col-sm-4"> 358 <div class="form-group"> 359 <label for="mProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 360 <div class="col-sm-7"><input type="text" class="form-control search-group" id="mProductName" name="ProductName" /></div> 361 </div> 362 </div> 363 @{ 364 List<VariantOption> MarineAnchoringVariants = new HagsWeb.Library.Methods.AssetSearch.ProductAssets().CheckValidVariantOptions("ATP3", "Marine", advSearchArea.EcomLanguageId); 365 366 if (MarineAnchoringVariants.Count > 0) 367 { 368 <div class="col-ms-4 col-sm-4"> 369 <div class="form-group"> 370 <label for="mAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 371 <div class="col-sm-7"> 372 <select class="form-control" id="mAnchoringType" name="AnchoringType"> 373 @if (MarineAnchoringVariants.Count > 1) 374 { 375 <option value="0"> @Translate("SelectAnchoring", "Select Anchoring Type") </option> 376 } 377 @foreach (var option in MarineAnchoringVariants) 378 { 379 <option value='@option.Id'> @option.Name </option> 380 } 381 </select> 382 </div> 383 </div> 384 </div> 385 } 386 else 387 { 388 <input type="hidden" name="AnchoringType" value="0" /> 389 } 390 } 391 392 </div> <!-- row --> 393 </fieldset> 394 </div> <!-- form-horizontal --> 395 </div> <!-- container-fluid --> 396 </div> <!-- l-page --> 397 <div class="m-search-advanced-buttons text-center"> 398 <button class="m-btn-search btn btn-default text-uppercase" type="reset" name="reset">@Translate("Reset", "Reset")</button> 399 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 400 </div> 401 </form> 402 <div id="results-search-marine" class="m-search-advanced-results-panel"> 403 @*// Search Results in Session - Phase 2 404 @if (advancedSearchState.Any()) 405 { 406 407 foreach (AdvancedSearchState product in advancedSearchState) 408 { 409 @String.Format("{0}", product.Products) 410 } 411 }*@ 412 </div> 413 </div> 414 <div class="tab-pane fade in" id="advancedsearch-Shade"> 415 <form id="search-shade" name="search-form" method="get" action="@advancedSearchUrl"> 416 <input type="hidden" name="Products" value="Shade" /> 417 <div class="l-page"> 418 <div class="container-fluid"> 419 <div class="form-horizontal"> 420 <fieldset class="m-theme-border-grey"> 421 <div class="row"> 422 <div class="col-ms-4 col-sm-4"> 423 <div class="form-group"> 424 <label for="sProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 425 <div class="col-sm-7"><input type="text" class="form-control search-group" id="sProductCode" name="ProductCode" /></div> 426 </div> 427 </div> 428 <div class="col-ms-4 col-sm-4"> 429 <div class="form-group"> 430 <label for="sProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 431 <div class="col-sm-7"><input type="text" class="form-control search-group" id="sProductName" name="ProductName" /></div> 432 </div> 433 </div> 434 @{ 435 List<VariantOption> ShadeAnchoringVariants = new HagsWeb.Library.Methods.AssetSearch.ProductAssets().CheckValidVariantOptions("ATP3", "Shade", advSearchArea.EcomLanguageId); 436 437 if (ShadeAnchoringVariants.Count > 0) 438 { 439 <div class="col-ms-4 col-sm-4"> 440 <div class="form-group"> 441 <label for="sAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 442 <div class="col-sm-7"> 443 <select class="form-control" id="sAnchoringType" name="AnchoringType"> 444 @if (ShadeAnchoringVariants.Count > 1) 445 { 446 <option value="0"> @Translate("SelectAnchoring", "Select Anchoring Type") </option> 447 } 448 @foreach (var option in ShadeAnchoringVariants) 449 { 450 <option value='@option.Id'> @option.Name </option> 451 } 452 </select> 453 </div> 454 </div> 455 </div> 456 } 457 else 458 { 459 <input type="hidden" name="AnchoringType" value="0" /> 460 } 461 } 462 463 </div> <!-- row --> 464 </fieldset> 465 </div> <!-- form-horizontal --> 466 </div> <!-- container-fluid --> 467 </div> <!-- l-page --> 468 <div class="m-search-advanced-buttons text-center"> 469 <button class="m-btn-search btn btn-default text-uppercase" type="reset" name="reset">@Translate("Reset", "Reset")</button> 470 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 471 </div> 472 </form> 473 <div id="results-search-shade" class="m-search-advanced-results-panel"> 474 @*// Search Results in Session - Phase 2 475 @if (advancedSearchState.Any()) 476 { 477 478 foreach (AdvancedSearchState product in advancedSearchState) 479 { 480 @String.Format("{0}", product.Products) 481 } 482 }*@ 483 </div> 484 </div> 485 </div> 486 </div> <!-- l-page --> 487 </div> <!-- m-search-advanced-product --> 488 <div class="text-center"> 489 <a href="#advancedsearch-ui" class="m-search-advanced-close"><img src="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.png" width="112" alt="Search Advanced Close"></a> 490 </div> 491 </div> 492 493 494 495 @*<h1>@GetGlobalValue("Global:Page.Name")</h1> 496 <h1>@GetValue("Global:Page.Name")</h1> 497 <h1>The Advanced Search Include is here.. PageID = @pageId, l=, LanguageID=@EcomLanguageID, ShopID=@EcomShopID, lang=@l</h1> 498 499 <h1>Set Tag = @GetString("CheckTag") // @GetValue("CheckTag") </h1> 500 501 @foreach (var p in pageParagraphCollection) 502 { 503 var a = p.Template; 504 var b = p.ID.ToString(); 505 var c = p.Text; 506 var f = p.Languages; 507 <ul> 508 <li>@a</li> 509 <li>@b</li> 510 <li>@c</li> 511 <li>@f</li> 512 </ul> 513 }*@ 514 515 516 </div> 517 518 <div class="tab-pane fade" id="downloadfinder"> 519 520 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 521 @using HagsWeb.Library.BusinessObjects.UsersLists; 522 @using HagsWeb.Library.State; 523 @using Dynamicweb.Ecommerce.Variants; 524 @{ 525 Dynamicweb.Frontend.PageView downloadsPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 526 Dynamicweb.Content.Area downloadsArea = new Dynamicweb.Content.AreaService().GetArea(downloadsPage.AreaID); 527 528 string downloadsSearchUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl((Int32)new Dynamicweb.Content.PageService().GetFirstModulePageForArea(downloadsArea.ID, "Searchv1").ID); 529 530 // This seems to be still valid 531 List<VariantOption> ProductDownloadsAnchoringVariants = new HagsWeb.Library.Methods.AssetSearch.ProductAssets().GetVariantOptions("ATP3", downloadsArea.EcomLanguageId); 532 533 534 #region Search Results in Session - Phase 2 535 536 537 //// Search Results in Session - Phase 2 538 //List<AdvancedSearchState> downloadsSearchState = SessionManager.UsersAdvancedSearchState != null ? SessionManager.UsersAdvancedSearchState as List<AdvancedSearchState> : new List<AdvancedSearchState>(); 539 //List<AdvancedSearchState> brochuresStateList = new List<AdvancedSearchState>(); 540 //List<AdvancedSearchState> dwgsStateList = new List<AdvancedSearchState>(); 541 //List<AdvancedSearchState> certificatesStateList = new List<AdvancedSearchState>(); 542 //List<AdvancedSearchState> installationGuidesStateList = new List<AdvancedSearchState>(); 543 544 //if (downloadsSearchState.Count() > 0) 545 //{ 546 // foreach (AdvancedSearchState downloadsState in downloadsSearchState) 547 // { 548 // if (!String.IsNullOrEmpty(downloadsState.Brochures)) 549 // { 550 // AdvancedSearchState broch = new AdvancedSearchState(); 551 // broch.Brochures = downloadsState.Brochures; 552 // brochuresStateList.Add(broch); 553 // } 554 // if (!String.IsNullOrEmpty(downloadsState.Dwgs)) 555 // { 556 // AdvancedSearchState dwg = new AdvancedSearchState(); 557 // dwg.Dwgs = downloadsState.Dwgs; 558 // dwgsStateList.Add(dwg); 559 // } 560 // if (!String.IsNullOrEmpty(downloadsState.Certificates)) 561 // { 562 // AdvancedSearchState certs = new AdvancedSearchState(); 563 // certs.Certificates = downloadsState.Certificates; 564 // certificatesStateList.Add(certs); 565 // } 566 // if (!String.IsNullOrEmpty(downloadsState.InstallationGuides)) 567 // { 568 // AdvancedSearchState guide = new AdvancedSearchState(); 569 // guide.InstallationGuides = downloadsState.InstallationGuides; 570 // installationGuidesStateList.Add(guide); 571 // } 572 // } 573 574 //} 575 #endregion 576 577 } 578 <div class="m-search-advanced" style="display:block;visibility:visible;"> 579 <div class="m-search-advanced-panel m-search-advanced-product" style="display:block;visibility:visible;"> 580 <div class="l-page"> 581 <div class="container-fluid"> 582 <nav class="text-center"> 583 <ul class="m-nav-tabs-search nav nav-tabs text-uppercase"> 584 <li><a href="#download-brochures" data-toggle="tab">@Translate("Brochures", "Brochures")</a></li> 585 <li><a href="#download-dwg" data-toggle="tab">@Translate("DWGFiles", "DWG Files")</a></li> 586 <li><a href="#download-certificates" data-toggle="tab">@Translate("Certificates", "Certificates")</a></li> 587 <li><a href="#download-installationguides" data-toggle="tab">@Translate("InstallationGuides", "Installation Guides")</a></li> 588 </ul> 589 </nav> 590 <p>@Translate("ProductDownloadsInstructions", "To find product downloads simply click on one of the options above and then use the search form displayed to find all the documents associated with your search.")</p> 591 <p>&nbsp;</p> 592 </div> <!-- container-fluid --> 593 <div class="tab-content"> 594 595 <div class="tab-pane fade in" id="download-brochures"> 596 <form id="search-brochures" name="search-form" method="post" action="@downloadsSearchUrl?Assets=download-brochures"> 597 <div class="l-page"> 598 <div class="container-fluid"> 599 <div class="form-horizontal"> 600 <input type="hidden" name="SearchType" value="download-brochures" /> 601 </div> <!-- form-horizontal --> 602 </div> <!-- container-fluid --> 603 </div> <!-- l-page --> 604 <div class="m-search-advanced-buttons text-center"> 605 @*<button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("DownloadAll", "Download All")</button>*@ 606 @*<button class="m-btn-search btn btn-default text-uppercase" type="reset" >@Translate("Reset", "Reset")</button>*@ 607 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("DisplayBrochures", "Display All Brochures")</button> 608 </div> 609 <div class="l-page"> 610 <div class="container-fluid"> 611 612 <div id="results-brochures" class="m-downloads m-search-advanced-results-panel"> 613 @*// SearchState - Phase 2 614 @if (brochuresStateList.Any()) 615 { 616 foreach (AdvancedSearchState brochures in brochuresStateList) 617 { 618 @String.Format("{0}", brochures.Brochures) 619 } 620 }*@ 621 </div> <!-- m-downloads --> 622 </div> <!-- container-fluid --> 623 </div> <!-- l-page --> 624 </form> 625 </div> 626 627 <div class="tab-pane fade in" id="download-dwg"> 628 <form id="search-dwg" name="search-form" method="post" action="@downloadsSearchUrl?Assets=download-dwg"> 629 <div class="l-page"> 630 <div class="container-fluid"> 631 <div class="form-horizontal"> 632 <fieldset id="dwg-criteria" class="m-theme-border-grey"> 633 <input type="hidden" name="SearchType" value="download-dwg" /> 634 <div class="row"> 635 <div class="col-ms-4 col-sm-4"> 636 <div class="form-group"> 637 <label for="dwgProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 638 <div class="col-sm-7"><input type="text" class="form-control search-group" id="dwgProductCode" name="ProductCode" /></div> 639 </div> 640 </div> 641 <div class="col-ms-4 col-sm-4"> 642 <div class="form-group"> 643 <label for="dwgProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 644 <div class="col-sm-7"><input type="text" class="form-control search-group" id="dwgProductName" name="ProductName" /></div> 645 </div> 646 </div> 647 @if (ProductDownloadsAnchoringVariants.Count > 0) 648 { 649 650 <div class="col-ms-4 col-sm-4"> 651 <div class="form-group"> 652 653 <label for="dwgAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 654 <div class="col-sm-7"> 655 <select class="form-control" id="dwgAnchoringType" name="AnchoringType"> 656 <option value="0">@Translate("SelectAnchoring", "Select Anchoring Type")</option> 657 @foreach (var option in ProductDownloadsAnchoringVariants) 658 { 659 <option value='@option.Id'>@option.Name</option> 660 } 661 </select> 662 </div> 663 </div> 664 </div> 665 666 } 667 </div> <!-- row --> 668 </fieldset> 669 </div> <!-- form-horizontal --> 670 </div> <!-- container-fluid --> 671 </div> <!-- l-page --> 672 <div class="m-search-advanced-buttons text-center"> 673 @*<button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("DownloadAll", "Download All")</button>*@ 674 <button class="m-btn-search btn btn-default text-uppercase" type="reset">@Translate("Reset", "Reset")</button> 675 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 676 </div> 677 <div class="l-page"> 678 <div class="container-fluid"> 679 680 <div id="results-dwgs" class="m-downloads m-search-advanced-results-panel"> 681 @*// SearchState - Phase 2 682 @if (dwgsStateList.Any()) 683 { 684 foreach (AdvancedSearchState dwgs in dwgsStateList) 685 { 686 @String.Format("{0}", dwgs.Dwgs) 687 } 688 }*@ 689 </div> <!-- m-downloads --> 690 691 692 </div> <!-- container-fluid --> 693 </div> <!-- l-page --> 694 </form> 695 </div> 696 <div class="tab-pane fade in" id="download-certificates"> 697 <form id="search-certificates" name="search-form" method="post" action="@downloadsSearchUrl?Assets=download-certificates"> 698 <div class="l-page"> 699 <div class="container-fluid"> 700 <div class="form-horizontal"> 701 <fieldset id="certificates-criteria" class="m-theme-border-grey"> 702 <input type="hidden" name="SearchType" value="download-certificates" /> 703 <div class="row"> 704 <div class="col-ms-4 col-sm-4"> 705 <div class="form-group"> 706 <label for="certsProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 707 <div class="col-sm-7"><input type="text" class="form-control search-group" id="certsProductCode" name="ProductCode" /></div> 708 </div> 709 </div> 710 <div class="col-ms-4 col-sm-4"> 711 <div class="form-group"> 712 <label for="certsProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 713 <div class="col-sm-7"><input type="text" class="form-control search-group" id="certsProductName" name="ProductName" /></div> 714 </div> 715 </div> 716 @if (ProductDownloadsAnchoringVariants.Count() > 0) 717 { 718 719 <div class="col-ms-4 col-sm-4"> 720 <div class="form-group"> 721 722 <label for="certsAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 723 <div class="col-sm-7"> 724 <select class="form-control" id="certsAnchoringType" name="AnchoringType"> 725 <option value="0">@Translate("SelectAnchoring", "Select Anchoring Type")</option> 726 @foreach (var option in ProductDownloadsAnchoringVariants) 727 { 728 <option value='@option.Id'>@option.Name</option> 729 } 730 </select> 731 </div> 732 </div> 733 </div> 734 735 } 736 </div> <!-- row --> 737 </fieldset> 738 </div> <!-- form-horizontal --> 739 </div> <!-- container-fluid --> 740 </div> <!-- l-page --> 741 <div class="m-search-advanced-buttons text-center"> 742 @*<button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("DownloadAll", "Download All")</button>*@ 743 <button class="m-btn-search btn btn-default text-uppercase" type="reset">@Translate("Reset", "Reset")</button> 744 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 745 746 <div class="adviceMessage"></div> 747 748 </div> 749 <div class="l-page"> 750 <div class="container-fluid"> 751 752 <div id="results-certificates" class="m-downloads m-search-advanced-results-panel"> 753 @*// SearchState - Phase 2 754 @if (certificatesStateList.Any()) 755 { 756 foreach (AdvancedSearchState certs in certificatesStateList) 757 { 758 @String.Format("{0}", certs.Certificates) 759 } 760 }*@ 761 762 </div> <!-- m-downloads --> 763 764 765 </div> <!-- container-fluid --> 766 767 </div> <!-- l-page --> 768 </form> 769 </div> 770 <div class="tab-pane fade in" id="download-installationguides"> 771 <form id="search-installationguides" name="search-form" method="post" action="@downloadsSearchUrl?Assets=download-installationguides"> 772 <div class="l-page"> 773 <div class="container-fluid"> 774 <div class="form-horizontal"> 775 <fieldset id="installationguides-criteria" class="m-theme-border-grey"> 776 <input type="hidden" name="SearchType" value="download-installationguides" /> 777 <div class="row"> 778 <div class="col-ms-4 col-sm-4"> 779 <div class="form-group"> 780 <label for="guidesProductCode" class="col-sm-5 control-label">@Translate("ProductCode", "Product Code")</label> 781 <div class="col-sm-7"><input type="text" class="form-control search-group" id="guidesProductCode" name="ProductCode" /></div> 782 </div> 783 </div> 784 <div class="col-ms-4 col-sm-4"> 785 <div class="form-group"> 786 <label for="guidesProductName" class="col-sm-5 control-label">@Translate("Name", "Name")</label> 787 <div class="col-sm-7"><input type="text" class="form-control search-group" id="guidesProductName" name="ProductName" /></div> 788 </div> 789 </div> 790 @if (ProductDownloadsAnchoringVariants.Count() > 0) 791 { 792 793 <div class="col-ms-4 col-sm-4"> 794 <div class="form-group"> 795 796 <label for="guidesAnchoringType" class="col-sm-5 control-label">@Translate("Anchoring", "Anchoring")</label> 797 <div class="col-sm-7"> 798 <select class="form-control" id="guidesAnchoringType" name="AnchoringType"> 799 <option value="0">@Translate("SelectAnchoring", "Select Anchoring Type")</option> 800 @foreach (var option in ProductDownloadsAnchoringVariants) 801 { 802 <option value='@option.Id'>@option.Name</option> 803 } 804 </select> 805 </div> 806 </div> 807 </div> 808 809 } 810 </div> <!-- row --> 811 </fieldset> 812 </div> <!-- form-horizontal --> 813 </div> <!-- container-fluid --> 814 </div> <!-- l-page --> 815 <div class="m-search-advanced-buttons text-center"> 816 @*<button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("DownloadAll", "Download All")</button>*@ 817 <button class="m-btn-search btn btn-default text-uppercase" type="reset">@Translate("Reset", "Reset")</button> 818 <button class="m-btn-search btn btn-default text-uppercase" type="submit">@Translate("Search", "Search")</button> 819 </div> 820 <div class="l-page"> 821 <div class="container-fluid"> 822 823 <div id="results-guides" class="m-downloads m-search-advanced-results-panel"> 824 @*// SearchState - Phase 2 825 @if (installationGuidesStateList.Any()) 826 { 827 foreach (AdvancedSearchState guide in installationGuidesStateList) 828 { 829 @String.Format("{0}", guide.InstallationGuides) 830 } 831 }*@ 832 833 </div> <!-- m-downloads --> 834 835 836 </div> <!-- container-fluid --> 837 </div> <!-- l-page --> 838 </form> 839 </div> 840 841 </div> 842 </div> <!-- l-page --> 843 </div> <!-- m-search-advanced-product --> 844 <div class="text-center"> 845 <a href="#downloadfinder" class="m-search-advanced-close"><img src="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.png" width="112" alt="Search Advanced Close"></a> 846 </div> 847 </div> 848 849 </div> 850 <div class="tab-pane fade" id="productcollection"> 851 852 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 853 @using System 854 @using System.Collections.Generic 855 @using System.Linq 856 @using HagsWeb.Library.BusinessObjects.UsersLists; 857 @using HagsWeb.Library.Methods.AssetManager; 858 @using HagsWeb.Library.State; 859 860 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 861 @using System.Collections.Generic 862 @using HagsWeb.Library.BusinessObjects.UsersLists 863 864 @helper CatalogueHelper(List<ProductCollectionItem> catalogueCollectionItems, string LanguageId, int AreaId) 865 { 866 <!--Files/Templates/HagsModules/UsersAssetsSearch/MyProductCollection/Catalogue.cshtml--> 867 868 @*the bootstrap modal background/backdrop misbehaves in some browsers covering the modal completly so turn it off data-background="false"*@ 869 <div id="CreateCatalog" class="modal fade in" data-background="false" tabindex="-1" role="dialog" aria-labelledby="CreateCatalogModalLabel" aria-hidden="true"> 870 <div class="modal-backdrop fade in" data-backdrop="static" style="z-index:180;"></div> 871 <div class="modal-dialog" style="width: 1330px;"> 872 <div class="m-form-contact-modal modal-content"> 873 <div class="modal-header"> 874 <button type="button" class="close blue-close icon-remove" data-dismiss="modal"></button> 875 <button type="button" class="close" data-dismiss="modal"> 876 <span aria-hidden="true">x</span> 877 <span class="sr-only">Close</span> 878 </button> 879 <h4 class="modal-title" id="CreateCatalogModalLabel"> 880 @Translate("CreateYourCatalog", "Create Your Catalogue") 881 </h4> 882 </div> 883 <div class="row2"> 884 @*<div class="container-fluid"> 885 <nav class="text-center"> 886 <ul class="m-nav-tabs-search nav nav-tabs text-uppercase"> 887 <li id="tabCatProductList" class="active"><a href="#cat-productlist" data-toggle="tab">Product List</a></li> 888 <li id="tabCustomCatalogue"><a href="#cat-custom" data-toggle="tab">Catalogue</a></li> 889 </ul> 890 </nav> 891 </div>*@ <!-- container-fluid --> 892 </div> 893 894 <div id="div_CreateCatalog"> 895 <div class="row2"> 896 <div id="" class="tab-content"> 897 @*<div id="cat-custom" class="tab-pane fade in active">*@ 898 <div id="cat-custom"> 899 <div> 900 <div class="container-fluid"> 901 <div class="col-ms-12 col-sm-12" style="margin-top: 20px;"> 902 <div class="col-ms-6 col-sm-4"> 903 904 <form id="frm_CreateCatalog" class="form-horizontal" style="display: block"> 905 <input type="hidden" name="areaId" value="@AreaId" /> 906 <input type="hidden" name="languageId" value="@LanguageId" /> 907 <fieldset class="m-theme-border-grey col-ms-12 col-sm-12"> 908 <div class="row"> 909 <div class="col-ms-12 col-sm-12"> 910 <div class="form-group"> 911 <label for="catName" class="col-sm-5 control-label">@Translate("CatalogueName", "Catalogue Name"):</label> 912 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catName" placeholder="@Translate("CatalogueName", "Catalogue Name")" maxlength="72" /></div> 913 </div> 914 </div> 915 <div class="col-ms-12 col-sm-12"> 916 <div class="form-group"> 917 <label for="catHagsContactName" class="col-sm-5 control-label">@Translate("HagsContactName", "Hags Contact Name"):</label> 918 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catHagsContactName" placeholder="@Translate("HagsContactName", "Hags Contact Name")" /></div> 919 </div> 920 </div> 921 <div class="col-ms-12 col-sm-12"> 922 <div class="form-group"> 923 <label for="catHagsContactPhone" class="col-sm-5 control-label">@Translate("HagsPhoneNumber", "Hags Phone Number"):</label> 924 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catHagsContactPhone" placeholder="@Translate("HagsPhoneNumber", "Hags Phone Number")" /></div> 925 </div> 926 </div> 927 <div class="col-ms-12 col-sm-12"> 928 <div class="form-group"> 929 <label for="catHagsContactEmail" class="col-sm-5 control-label">@Translate("HagsContactEmail", "Hags Contact Email"):</label> 930 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catHagsContactEmail" placeholder="@Translate("HagsContactEmail", "Hags Contact Email")" /></div> 931 </div> 932 </div> 933 <div class="col-ms-12 col-sm-12"> 934 <div class="form-group"> 935 <label for="catCompanyName" class="col-sm-5 control-label">@Translate("CompanyName", "Company Name"):</label> 936 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catCompanyName" placeholder="@Translate("CompanyName", "Company Name")" /></div> 937 </div> 938 </div> 939 <div class="col-ms-12 col-sm-12"> 940 <div class="form-group"> 941 <label for="catAddress" class="col-sm-5 control-label">@Translate("CompanyAddress", "Company Address"):</label> 942 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catAddress" placeholder="@Translate("CompanyAddress", "Company Address")" /></div> 943 </div> 944 </div> 945 <div class="col-ms-12 col-sm-12"> 946 <div class="form-group"> 947 <label for="catAddress2" class="col-sm-5 control-label">&nbsp;</label> 948 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catAddress2" placeholder="@Translate("CompanyAddress", "Company Address")" /></div> 949 </div> 950 </div> 951 <div class="col-ms-12 col-sm-12"> 952 <div class="form-group"> 953 <label for="catAddrTown" class="col-sm-5 control-label">@Translate("CompanyTown", "Company Town"):</label> 954 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catAddrTown" placeholder="@Translate("CompanyTown", "Company Town")" /></div> 955 </div> 956 </div> 957 <div class="col-ms-12 col-sm-12"> 958 <div class="form-group"> 959 <label for="catAddrPostCode" class="col-sm-5 control-label">@Translate("CompanyPostCode", "Company Postal Code"):</label> 960 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catAddrPostCode" placeholder="@Translate("CompanyPostCode", "Company Postal Code")" /></div> 961 </div> 962 </div> 963 <div class="col-ms-12 col-sm-12"> 964 <div class="form-group"> 965 <label for="catAddrCountry" class="col-sm-5 control-label">@Translate("CompanyCountry", "Company Country"):</label> 966 <div class="col-sm-7"><input type="text" class="form-control search-group" name="catAddrCountry" placeholder="@Translate("CompanyCountry", "Company Country")" /></div> 967 </div> 968 </div> 969 <div class="col-ms-12 col-sm-12"> 970 <div class="m-search-advanced-buttons text-right"> 971 @{string printShout = Translate("SaveOrPrint", "Save or Print your Product PDF ");} 972 <button class="m-btn-search btn btn-default text-uppercase" name="updatecatalogue" type="button" data-shout="@printShout" role="button">@Translate("UpdateCatalogue", "Update Catalogue")</button> 973 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 974 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button> 975 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" data-dismiss="modal" type="button" role="button">@Translate("Cancel", "Cancel")</button> 976 </div> 977 </div> 978 </div> <!-- row --> 979 </fieldset> 980 </form> <!--form - horizontal--> 981 @*Switch Form here*@ 982 983 <form id="frm_EmailSettings" role="form" class="form-horizontal" style="display:none"> 984 <input type="hidden" name="pdfFileName" value=""/> 985 <fieldset class="m-theme-border-grey col-ms-12 col-sm-12"> 986 <div class="row"> 987 <div class="col-ms-12 col-sm-12"> 988 <div class="form-group"> 989 <label for="emailFrom" class="col-sm-4 control-label">@Translate("EmailFrom", "Email from"):</label> 990 <div class="col-sm-8"><input type="text" class="form-control search-group" name="emailFrom" required placeholder='@Translate("EmailFrom", "Email from")' value="" /></div> 991 </div> 992 </div> 993 <div class="col-ms-12 col-sm-12"> 994 <div class="form-group"> 995 <label for="emailTo" class="col-sm-4 control-label">@Translate("EmailTo", "Email to"):</label> 996 <div class="col-sm-8"><input type="text" class="form-control search-group" name="emailTo" required placeholder='@Translate("EmailTo", "Email to")' value="" /></div> 997 </div> 998 </div> 999 <div class="col-ms-12 col-sm-12"> 1000 <div class="form-group"> 1001 <label for="emailSubject" class="col-sm-4 control-label">@Translate("EmailSubject", "Subject"):</label> 1002 <div class="col-sm-8"><input type="text" class="form-control search-group" name="emailSubject" placeholder='@Translate("EmailSubject", "Subject")' value="" /></div> 1003 </div> 1004 </div> 1005 <div class="col-ms-12 col-sm-12"> 1006 <div class="form-group"> 1007 <label for="emailMessage" class="col-sm-4 control-label">@Translate("Message", "Message"):</label> 1008 <div class="col-sm-8"><textarea class="form-control" name="emailMessage" cols="45" rows="7" value="Test Message" placeholder='@Translate("MyMessage", "My Message")'></textarea></div> 1009 </div> 1010 </div> 1011 </div> 1012 </fieldset> 1013 1014 <div id="emailProgressContent" style="display:none;"> 1015 <span id="CreateCatalogueEmailLabel" style="display: block; text-align: center; margin: auto;">@Translate("SendingYourEmail", "Sending your Email")</span> 1016 <img src="Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin: auto; display: block;" /> 1017 </div> 1018 1019 <div id="emailProgress" style="display: none;"> 1020 </div> <!--container - fluid--> 1021 1022 <div> 1023 1024 <div class="m-search-advanced-buttons text-right" id="preSendEmail" style="display: block;"> 1025 1026 <button class="m-btn-search btn btn-default text-uppercase" name="emailcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1027 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="refreshemail" type="button" role="button">@Translate("Refresh", "Refresh")</button> 1028 <button class="m-btn-search btn btn-default text-uppercase" name="cancelemail" type="button" role="button">@Translate("Cancel", "Cancel")</button> 1029 1030 </div> 1031 1032 1033 <div class="m-search-advanced-buttons text-center" id="downloadResend" style="display: none;"> 1034 1035 <button class="m-btn-search btn btn-default text-uppercase" style="display: none;" name="resendcatalogue" type="button" role="button">@Translate("SendEmail", "Send Email")</button> 1036 <button class="m-btn-sm-more btn btn-default text-uppercase" style="margin: 2px;" name="refreshemail" type="button" role="button">@Translate("ClearFormSendAgain", "Clear form and send again")</button><br/> 1037 <a href="" class="m-btn-sm-more btn btn-default text-uppercase" download>@Translate("DownloadCatalogue", "Download Catalogue")</a> 1038 <button class="m-btn-sm-more btn btn-default text-uppercase" style="margin: 2px;" data-dismiss="modal" type="button" role="button">@Translate("CloseWindow", "Close Window")</button> 1039 1040 </div> 1041 1042 </div> 1043 1044 </form> 1045 <script> 1046 $("#frm_EmailSettings").validate(); 1047 </script> 1048 1049 </div> 1050 <div class="col-ms-6 col-sm-8"> 1051 <div class="row2"> 1052 <div id="loader" style="display:none;text-align:center"> 1053 <span id="CreateCataloguePdfLabel" style="display: inline-block;margin: 10px 10px 0 0;padding: 5px 10px"></span> 1054 <img src="Files/Templates/Designs/HagsCore/res/img/loader/ajax-loader.gif" style="margin:auto;display:block;" /> 1055 </div> 1056 1057 <div id="pdfViewer" style="width: 834px;"> 1058 @*<object id="pdfObjectViewer" style="display: none;" data="" type="application/pdf" width="100%" height="600" /> 1059 <embed id="pdfViewer" style="display: none;" src="" type="application/pdf" /> 1060 <iframe src="" id="pdfIframeViewer" width="100%" height="600" type="application/pdf" style="display:none;" />*@ 1061 </div> 1062 </div> 1063 </div> 1064 </div> 1065 </div> <!--container - fluid--> 1066 </div> 1067 </div> 1068 </div> 1069 </div> 1070 1071 <div id="adviceMessage"></div> 1072 1073 </div> 1074 1075 <div class="modal-footer" id="main-footer"> 1076 1077 <div class="m-search-advanced-buttons text-center"> 1078 1079 <button class="m-btn-search btn btn-default text-uppercase" name="createemail" type="button" role="button">@Translate("EmailCatalogue", "Email Catalogue")</button> 1080 1081 <button class="m-btn-search btn btn-default text-uppercase" data-dismiss="modal" type="button">@Translate("Cancel", "Cancel")</button> 1082 1083 </div> 1084 1085 </div> 1086 1087 </div> 1088 </div> 1089 1090 </div> 1091 1092 } 1093 @{ 1094 Dynamicweb.Frontend.PageView collectionPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 1095 Dynamicweb.Content.Area collectionArea = new Dynamicweb.Content.AreaService().GetArea(collectionPage.AreaID); 1096 1097 List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>(); 1098 bool isQuote = Convert.ToBoolean(collectionArea.Item["QuoteAndOrderChk"]); 1099 bool isCatalog = true; // Convert.ToBoolean(collectionArea.Item["CatalogueServiceChk"]); // To Be Implemented in Site Settings 1100 string downloadingText = HagsWeb.Library.Utilities.DWUtilities.GetTranslation("Downloading...", "Downloading...", collectionArea.Culture); 1101 int currentPage = collectionArea.ID; 1102 } 1103 1104 @if (isCatalog) 1105 { 1106 1107 } 1108 @CatalogueHelper(productCollectionItems, collectionArea.EcomLanguageId, collectionPage.AreaID) 1109 1110 <input type="hidden" id="isQuote" value="@isQuote" /> 1111 <input type="hidden" id="downloadingText" value="@downloadingText" /> 1112 <div class="m-search-advanced" style="display:block;visibility:visible;"> 1113 1114 <!--<div class="pull-left"><h4 class="clearfix">@Translate("MyProductCollection", "My Product Collection")</h4></div>--> 1115 1116 <div class="text-center" style="clear:both;padding-top:10px; border-bottom: 2px solid #000; padding-bottom: 20px;"> 1117 <div id="btns_MyProductCollection"> 1118 @if (productCollectionItems.Any()) 1119 { 1120 <p>@Translate("ProductCollectionButtonInstructions", "Use the buttons below to either download files, create quotes or create orders based on the products you have added to your collection.")</p> 1121 1122 @{ 1123 <ul class="list-inline print-hide"> 1124 List<ProductAsset> imageFileList = new List<ProductAsset>(); 1125 List<ProductAsset> dwgFileList = new List<ProductAsset>(); 1126 List<ProductAsset> instructionsFileList = new List<ProductAsset>(); 1127 string contactUsLink = HagsWeb.Library.Utilities.DWUtilities.GetPageByNavigationTag("ContactUs", currentPage); // /kontakta-oss?mode=quote#contactForms // /kontakta-oss?success=True&mode=quote#contactForms // restful url 1128 1129 foreach (var item in productCollectionItems) 1130 { 1131 1132 foreach (ProductAsset asset in item.AssetDownloads.Where(n => n.Index == HagsWeb.Library.Methods.AssetManager.AssetTypeEnum.ToFriendlyAssetName(HagsWeb.Library.Methods.AssetManager.AssetType.Images) && n.FileName == item.ProductNumber + ".jpg" || n.FileName == item.ProductNumber + "_Side.jpg" || n.FileName == item.ProductNumber + "_Top.jpg").ToList()) 1133 { 1134 imageFileList.Add(asset); 1135 } 1136 1137 foreach (ProductAsset asset in item.AssetDownloads.Where(n => n.Index == HagsWeb.Library.Methods.AssetManager.AssetTypeEnum.ToFriendlyAssetName(HagsWeb.Library.Methods.AssetManager.AssetType.Drawings)).ToList()) 1138 { 1139 dwgFileList.Add(asset); 1140 } 1141 1142 foreach (ProductAsset asset in item.AssetDownloads.Where(n => n.Index == HagsWeb.Library.Methods.AssetManager.AssetTypeEnum.ToFriendlyAssetName(HagsWeb.Library.Methods.AssetManager.AssetType.AssemblyInstructions)).ToList()) 1143 { 1144 instructionsFileList.Add(asset); 1145 } 1146 1147 1148 } 1149 1150 if (imageFileList.Any()) 1151 { 1152 <li><a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" role="button" name="download" data-parent="Bilder" id="imageDownloadButton">@Translate("DownloadImages", "Download Images")</a></li> 1153 } 1154 1155 if (dwgFileList.Any()) 1156 { 1157 <li><a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" role="button" name="download" data-parent="Ritningar" id="dwgDownloadButton">@Translate("DownloadDWGFiles", "Download DWG Files")</a></li> 1158 } 1159 1160 if (instructionsFileList.Any()) 1161 { 1162 <li><a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" role="button" name="download" data-parent="Monteringsanvisningar" id="instructionsDownloadButton">@Translate("DownloadInstallationGuides", "Download Installation Guides")</a></li> 1163 } 1164 1165 if (isQuote) 1166 { 1167 if (!string.IsNullOrEmpty(contactUsLink)) 1168 { 1169 <li><a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@contactUsLink?mode=QuickQuote" role="button" data-parent="#quickquote" id="quickQuoteButton">@Translate("CreateQuickQuote", "Create a Quick Quote")</a></li> 1170 <li><a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@contactUsLink?mode=QuickOrder" role="button" data-parent="#quickorder" id="quickOrderButton">@Translate("CreateQuickOrder", "Create a Quick Order")</a></li> 1171 } 1172 } 1173 if (isCatalog && String.IsNullOrEmpty(GetGlobalValue("Global:Device.IsMobile"))) 1174 { 1175 string printShout = Translate("SaveOrPrint", "Save or Print your Product PDF "); 1176 1177 <li><a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" data-toggle="modal" data-target="#CreateCatalog" data-shout="@printShout" Name="catalogPublishing" role="button" data-parent="#catalogue">@Translate("CreateYourCatalog", "Create Your Catalogue")</a></li> 1178 } 1179 </ul> 1180 } 1181 1182 } 1183 1184 </div> 1185 1186 <div class="m-search-advanced-results-panel" id="frm_MyProductCollection"> 1187 <div class="row2"> 1188 @if (productCollectionItems.Any()) 1189 { 1190 1191 foreach (ProductCollectionItem item in productCollectionItems) 1192 { 1193 1194 <div class="l-group-5 text-left"> 1195 <div class="m-attractor"> 1196 <div class="m-attractor-visual"> 1197 1198 1199 @if (item.ProductImageUrl != null && !String.IsNullOrEmpty(item.ProductUrlReference)) 1200 { 1201 <a href="@item.ProductUrlReference"><img src="@item.ProductImageUrl" class="img-responsive m-product-thumb" /></a> 1202 } 1203 else 1204 { 1205 <img src="/Files/Templates/Designs/HagsCore/res/img/image-not-found.png" class="img-responsive m-product-thumb" /> 1206 } 1207 1208 1209 </div> 1210 1211 <div class="m-attractor-info m-attractor-info-product"> 1212 <h3 class="m-theme-after-yellow m-theme-border-yellow"><a href="@item.ProductUrlReference">@item.ProductName</a></h3> 1213 @*<p>@item.ProductDescription</p>*@ 1214 @*<p>@Translate("ProductNumber", "Product Number"): @item.ProductNumber</p>*@ 1215 <p>@item.ProductNumber</p> 1216 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@item.ProductUrlReference" role="button">@Translate("ProductDetails", "Product Details")</a> 1217 </div> <!-- attractor-info --> 1218 <div class="m-attractor-options"> 1219 <ul class="m-icon-links list-unstyled"> 1220 <li><a href="" name='productcollection' class="clearfix productcollection" data-removeProductlist="@item.ProductNumber"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/plus.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/plus.png" class="m-icon pull-left"><span>@Translate("RemoveFromCollection", "Remove from my collection")</span></a></li> 1221 </ul> 1222 </div> <!-- m-attractor-options --> 1223 </div> 1224 1225 </div> 1226 1227 1228 } 1229 1230 } 1231 else 1232 { 1233 <p>@Translate("NoProductsInCollection", "You have no products in your collection.")</p> 1234 } 1235 </div> 1236 1237 </div> 1238 1239 </div> 1240 1241 <div class="text-center clearfix" style="clear:both;padding-top:10px;"> 1242 <a href="#productcollection" class="m-search-advanced-close"><img src="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.png" width="112" alt="Search Advanced Close"></a> 1243 </div> 1244 </div> 1245 1246 @*<div> 1247 <p>Is Desktop: @GetGlobalValue("Global:Device.IsDesktop")</p> 1248 <p>Is Tablet: @GetGlobalValue("Global:Device.IsTablet")</p> 1249 <p>Is Mobile: @GetGlobalValue("Global:Device.IsMobile")</p> 1250 </div>*@ 1251 1252 </div> 1253 1254 <div class="tab-pane fade" id="inspirationfinder"> 1255 1256 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 1257 @using System.Linq; 1258 @using Dynamicweb.Content.Items; 1259 @{ 1260 Dynamicweb.Frontend.PageView thePage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 1261 int areaId = thePage.Area.ID; 1262 1263 // Get the current area's Paragraphs and find the ItemPublisher Module, returning a link and its paragraph content. Checks if Normalize latin Chars is set in DW 1264 var tuple = HagsWeb.Library.Methods.Items.ItemTypeMethods.GetDefaultCaseStudies(areaId, 3); 1265 string paraContent = tuple.Item1; 1266 int pageId = tuple.Item2; // The Target Case Study Page listin Case study Item Types 1267 string hyperLink = tuple.Item3; 1268 bool latinCharacters = tuple.Item4; 1269 IEnumerable<Item> caseStudies = tuple.Item5; 1270 1271 //http://developer.dynamicweb-cms.com/documentation/for-developers/item-based-structure/querying-items.aspx 1272 1273 //string DataFromItem = RenderItemList(new 1274 //{ 1275 // ItemType = "Case_Study", 1276 // ListSourceType = "Page", 1277 // ListSourcePage = "62", 1278 // //IncludeAllChildItems = true, 1279 // //IncludeParagraphItems = true, 1280 // ItemFieldsList = "*", 1281 // ListTemplate = "ItemPublisher/List/Case Study List.cshtml", 1282 // ListPageSize = "100" 1283 //}).ToString(); 1284 1285 ////int productsPageId = GetPageIdByNavigationTag("Legals"); 1286 } 1287 <div class="m-search-advanced" style="display:block;visibility:visible;"> 1288 <!--<h4>@Translate("InspirationFinder", "Inspiration Finder")</h4>--> 1289 1290 <div class="m-search-advanced-results-panel fade in" id="frm_InspirationFinder"> 1291 1292 @if (caseStudies.Any()) 1293 { 1294 1295 foreach (var study in caseStudies) 1296 { 1297 string studyId = study["Id"].ToString(); 1298 string Name = study["Study_Heading"] == null ? string.Empty : study["Study_Heading"].ToString(); 1299 string hyperlinkId = study["Read_More_Button"] == null ? String.Empty : study["Read_More_Button"].ToString(); 1300 string hyperlinkText = string.Empty; 1301 string Url = "Default.aspx?ID=" + pageId + "&itemId=Case_Study:" + studyId; 1302 1303 1304 // string sb_trim_Original = System.Text.RegularExpressions.Regex.Replace(Name, @"[., ?\/#!$%\^&\*;:{}=\-_`~()]", "-").ToLower(); 1305 //string sb_trim = System.Text.RegularExpressions.Regex.Replace(Name, @"[., ?\/#!$%\^&\*;:{}=\-_`~]", "-").ToLower(); 1306 1307 //string Url = hyperLink + "/" + sb_trim; 1308 1309 //if (latinCharacters) 1310 //{ 1311 // Url = HagsWeb.Library.Utilities.DWUtilities.NormalizeLatinCharacters(Url); 1312 //} 1313 1314 //string Url = hyperLink + "/" + sb_trim; 1315 string DateCreated = study["Study_Created_Date"] == null ? string.Empty : study["Study_Created_Date"].ToString(); 1316 string Description = study["Study_Content"] == null ? string.Empty : study["Study_Content"].ToString(); 1317 string StudyImages = study["Images"] == null ? string.Empty : study["Images"].ToString(); 1318 Item studyImage = null; 1319 1320 if (!string.IsNullOrEmpty(StudyImages)) 1321 { 1322 studyImage = HagsWeb.Library.Methods.Items.ItemTypeMethods.GetItemImages(study["Images"].ToString(), 1).FirstOrDefault(); 1323 } 1324 1325 1326 <div class="l-group-content col-xs-6 col-ms-4 col-sm-3"> 1327 1328 <div class="m-attractor"> 1329 1330 <div class="m-attractor-visual"> 1331 1332 @if (studyImage == null) 1333 { 1334 <a href="@Url"><img src="/Files/Templates/Designs/HagsCore/res/img/image-not-found.png" class="img-responsive" /></a> 1335 } 1336 else 1337 { 1338 <a href="@Url"><img src='@studyImage["Image"].ToString()' class="img-responsive"></a> 1339 } 1340 1341 1342 @*<img src="/Admin/Public/GetImage.ashx?width=1920&Compression=75&image=@image">*@ 1343 </div> 1344 1345 <div class="m-attractor-info m-attractor-info-product"> 1346 @if (!String.IsNullOrEmpty(Name)) 1347 { 1348 <h3 class="m-theme-after-yellow m-theme-border-yellow"><a href="@Url">@Name</a></h3> 1349 } 1350 @if (!String.IsNullOrEmpty(Description)) 1351 { 1352 <p>@Description</p> 1353 } 1354 1355 @if (!String.IsNullOrEmpty(DateCreated)) 1356 { 1357 <p>@DateCreated</p> 1358 } 1359 1360 @if (!String.IsNullOrEmpty(Url)) 1361 { 1362 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@Url" role="button">@Translate("CaseStudyDetails", "Case Study Details")</a> 1363 } 1364 1365 1366 </div> <!-- attractor-info --> 1367 @*<div class="m-attractor-options"> 1368 1369 <ul class="m-icon-links list-unstyled"> 1370 <li><a href="#" class="clearfix"><img src="/Files/Templates/Designs/HagsCore/res/img/icons/plus.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/plus.png" class="m-icon pull-left"><span>Add to my collection</span></a></li> 1371 </ul> 1372 1373 </div>*@ <!-- m-attractor-options --> 1374 1375 </div> <!-- attractor --> 1376 1377 </div> 1378 } 1379 } 1380 1381 </div> 1382 1383 <div class="text-center all-case-studies"> 1384 1385 @if (!String.IsNullOrEmpty(paraContent)) 1386 { 1387 @paraContent 1388 } 1389 1390 @if (!String.IsNullOrEmpty(hyperLink)) 1391 { 1392 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@hyperLink" role="button">@Translate("ViewAllCaseStudies", "View all our case studies")</a> 1393 } 1394 1395 </div> 1396 1397 @*<div class="m-search-advanced-buttons text-center"> 1398 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@hyperLink" role="button">@Translate("ViewAllCaseStudies", "View all our case studies")</a> 1399 </div>*@ 1400 1401 @*</div>*@ 1402 1403 <div class="text-center"> 1404 <a href="#inspirationfinder" class="m-search-advanced-close"><img src="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/buttons/search-advanced-close.png" width="112" alt="Search Advanced Close"></a> 1405 </div> 1406 </div> 1407 1408 </div> 1409 </div> 1410 1411 <div id="NoResults" style="display:none;">Sorry there are currently no items that match your search criteria. Please refine your search using the options above.</div> 1412 1413 </div> 1414 </div> 1415 1416 <div style="margin-top:50px; display:none;" id="SearchResults">@Translate("YourResults", "YourResults") **Search Results here**</div> 1417 1418 1419 </div> 1420 1421 @Scripts.Render("~/bundle/AssetSearch") 1422 1423 @if (areaLanguage != "en") 1424 { 1425 // non english validation messages 1426 <script src="/Files/Templates/Designs/HagsCore/script/source/libraries/validation/localization/@validationMessages"></script> 1427 } 1428

Balance Beam

with beam - single

8061276

Cast In Place

Not applicable
Unpainted – Cast In Place

s

5100 x 3250

  • Age Range 5-12 5-12
  • Age Range 3-5 3-5
  • Assembly Time 1 hrs 1
  • Fall Height (mm) 600 600
  • Safety Area   14.5m² 14.5
  • Age Range: 5-12, 3-5
  • Assembly Time: 1 hours
  • Length (mm): 2050 mm
  • Width (mm): 250 mm
  • Height (mm): 450 mm
  • Net Weight: 32.00 kg
  • Volume (m3): 0.315 m³
  • Fall Height (mm): 600 mm
  • Safety Area Width (mm): 5100 mm
  • Safety Area Length (mm): 3250 mm
  • Safety Area : 14.5 m²
Read more about anchoring

 

Material kg %
Robinia Pseudoacacia 30.4 95
Stainless steel 1.6 5
Aluminum 0 0
  32 kg 100%