<div class=»SortQuanty»>Показать по:
<div class=»AllQuanty»>
<span style=»position: absolute;width: 9px;height: 5px;top: 50%;margin-top: -3px;cursor: default;background: url(./img/icons.png) -658px 0;»></span>
<?if($_REQUEST[«COUNT»] !== «6» ):?>
<a href=»<?=$APPLICATION->GetCurPageParam(«COUNT=6», array(«COUNT»))?>» class=»<? if($_REQUEST[«COUNT»] == «6» || empty($_REQUEST[«COUNT»])){?> active <? } ?>»><span>6</span></a>
<?else:?>
<span>6</span><?endif;?>
<?if(empty($_REQUEST[«COUNT»])):?>
<span>6</span>
<?endif;?>
<?if($_REQUEST[«COUNT»] !== «9» ):?>
<a href=»<?=$APPLICATION->GetCurPageParam(«COUNT=9», array(«COUNT»))?>» class=»<? if($_REQUEST[«COUNT»] == «9»){?> active <? } ?>»><span>9</span></a>
<?else:?>
<span>9</span>
<?endif;?>
<?if($_REQUEST[«COUNT»] !== «12»):?>
<a href=»<?=$APPLICATION->GetCurPageParam(«COUNT=12», array(«COUNT»))?>» class=»<? if($_REQUEST[«COUNT»] == «12»){?> active <? } ?>»><span>12</span></a>
<?else:?>
<span>12</span>
<?endif;?>
<?if($_REQUEST[«COUNT»] == «all»):?><span>Все</span>
<?else:?>
<a href=»<?=$APPLICATION->GetCurPageParam(«COUNT=all», array(«COUNT»))?>» class=»<? if($_REQUEST[«COUNT»] == «all»){?> active <? } ?>»>
<span>Все</span></a><?endif;?>
</div>
</div>
<?if(empty($_REQUEST[«COUNT»])){ $count=6;}?>
<?
if (!empty($_REQUEST[«COUNT»])){
if ($_REQUEST[«COUNT»] == «all»){
$count = 100000;
}
else{
$count = $_REQUEST[«COUNT»]*1;
}
}?>
в компоненте
«PAGE_ELEMENT_COUNT» => $count,
Your humor added a lot to this topic! For more information, click here: FIND OUT MORE. What do you think?