Пример #1
0
    $k = 0;
    
    //настройки сайта
		$APPLICATION->IncludeComponent(
                                	"bitrix:main.include",
                                	"",
                                	Array(
                                		"COMPONENT_TEMPLATE" => ".default",
                                		"AREA_FILE_SHOW" => "file",
                                		"AREA_FILE_SUFFIX" => "inc",
                                		"EDIT_TEMPLATE" => "",
                                		"PATH" => "/include/option_site.php"
                                	)
                                );
	
	$baner_city = baner_city('out_city_link');						
	$count_b = count($baner_city);
	
    $page_size = $GLOBALS['options_props']['count_element']['~VALUE']- ($count_b*2); 
	
    /*$count_baner = count($baner);
    
    if($count_baner == 3){ $page_size = 19; $two_big = 13;}
    elseif($count_baner == 2){ $page_size = 21; $two_big = 13;}
    elseif($count_baner == 1){ $page_size = 23; $two_big = 15;}
    else { $page_size = 25; $two_big = 17;}*/
    
    //if($page != 1) { $page_size ++;}
    
    $count_element = count_element_out_city(2);
    
Пример #2
0
    $k = 0;
    	
		//настройки сайта
		$APPLICATION->IncludeComponent(
                                	"bitrix:main.include",
                                	"",
                                	Array(
                                		"COMPONENT_TEMPLATE" => ".default",
                                		"AREA_FILE_SHOW" => "file",
                                		"AREA_FILE_SUFFIX" => "inc",
                                		"EDIT_TEMPLATE" => "",
                                		"PATH" => "/include/option_site.php"
                                	)
                                );
	
	$baner_city = baner_city('in_city_link');						
	$count_b = count($baner_city);
	
    $page_size = $GLOBALS['options_props']['count_element']['~VALUE']- ($count_b*2); 
    
    $count_element = count_element_in_city(2);
    
    $mater = material_incity($page_size,$page);
    $count_mater = count($mater);
?>


    <!--count--><?php 
echo $count_mater;
?>
<!--endcount-->