Exemplo n.º 1
0
        ?>
							</select>
						</span>

						<span name="report-filter-value-control-PRODUCT.GoodsSection:PRODUCT.SECT">
							<select class="report-filter-select sale-report-site-dependent" name="value" tid="Section">
								<?php 
        echo CBaseSaleReportHelper::getSectionsSelectHTMLOptions();
        ?>
							</select>
						</span>

						<span name="report-filter-value-control-IBLOCK.SectionElement:IBLOCK_ELEMENT.IBLOCK_SECTION">
							<select class="report-filter-select sale-report-site-dependent" name="value" tid="Section">
								<?php 
        echo CBaseSaleReportHelper::getSectionsSelectHTMLOptions();
        ?>
							</select>
							<!-- Loading lists of filters dependent on a site when the filter of a site is changed -->
							<script type="text/javascript">
								BX.ready(
									function ()
									{
										var siteSelect = BX('sale-site-filter');
										if (siteSelect)
										{
											BX.bind(siteSelect, 'change', onChangeSiteFilter);
										}
									}
								);
								function onChangeSiteFilter()