<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
IncludeTemplateLangFile(__FILE__);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><?$APPLICATION->ShowTitle()?></title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/style.css" />
<?$APPLICATION->ShowHead();?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans&subset=latin,latin-ext,cyrillic">
<!-- jQuery library (served from Google) -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- bxSlider Javascript file -->
<script src="/js/jquery.bxslider.js"></script>
<!-- bxSlider CSS file -->
<link href="/css/jquery.bxslider.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jqueryslidemenu.js"></script>
<link rel="stylesheet" type="text/css" href="/css/jqueryslidemenu.css" />
<!--[if lte IE 7]>
<style type="text/css">
html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->
<script type="text/javascript">
function colourRows(){
rowEl=document.getElementById("tab").getElementsByTagName("tr")
for(var rowCount=0; rowCount<rowEl.length; rowCount++){
if((rowCount+1) % 2 == 0) {
rowEl[rowCount].style.backgroundColor="#fff"
rowEl[rowCount].style.color="black"
}
else{
rowEl[rowCount].style.backgroundColor="#f2f2f2"
rowEl[rowCount].style.color="black"
}}}
</script>
</head>
<body onload="colourRows() ; colourCells() ; colourCols()">
<div id="panel"><?$APPLICATION->ShowPanel();?></div>
<div class="wrapper">
<table class="header">
<tr>
<th scope="col">
<div class="logo">
<a href="/">
<?$APPLICATION->IncludeFile(
SITE_DIR."include/logo.php",
Array(),
Array("MODE"=>"html")
);?>
</a>
</div>
</div>
<div class="tel">
<?$APPLICATION->IncludeFile(
SITE_DIR."include/phone.php",
Array(),
Array("MODE"=>"html")
);?>
</div>
<div class="search">
<form class="search-form" action="/search/">
<input name="q" type="text" class="find" onfocus="if(this.value == 'Поиск по сайту...'){this.value = '';}" type="text" onblur="if(this.value == ''){this.value='Поиск по сайту...';}" value="Поиск по сайту...">
<input type="submit" class="search-bt" value=" ">
</form>
</div>
<div class="bascet">
<div class="bas-tit">Корзина:</div>
<div class="in"> <?$APPLICATION->IncludeComponent(
"yenisite:catalog.basket.small",
".default",
Array(
"BASKET_URL" => "/account/cart/",
"VALUTA" => "руб."
),
false
);?></div>
</th>
</tr>
</table>
<table class="menu-head">
<tr>
<th scope="col">
<div id="myslidemenu" class="jqueryslidemenu">
<?$APPLICATION->IncludeComponent("bitrix:menu", "top", array(
"ROOT_MENU_TYPE" => "top",
"MAX_LEVEL" => "1",
"CHILD_MENU_TYPE" => "left",
"USE_EXT" => "Y",
"MENU_CACHE_TYPE" => "A",
"MENU_CACHE_TIME" => "3600",
"MENU_CACHE_USE_GROUPS" => "Y",
"MENU_CACHE_GET_VARS" => ""
),
false,
array(
"ACTIVE_COMPONENT" => "Y"
)
);?>
</div>
</th>
</tr>
</table>
<table class="cont">
<tr>
<th scope="col">
<?$APPLICATION->IncludeComponent("bitrix:breadcrumb", "nav", Array(
"START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка
"PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь)
"SITE_ID" => "-", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный)
),
false
);?>
<table class="content">
<tr>
<th width="285" scope="col">
<div class="sidebar">
<div class="katalog">
<h3>Каталог</h3>
<?preg_match('/\/products\/([0-9]{1,})\//si', $_SERVER["REQUEST_URI"], $SECTION_ID);
$FILTER_BRANDS_SECTION = trim($SECTION_ID[1]);
$SECTION_ID = trim($SECTION_ID[1]);
$rs = CIBlockSection::GetList(false, Array("IBLOCK_ID"=>8, "ACTIVE"=>"Y", "SECTION_ID"=>$SECTION_ID));
if($rs->SelectedRowsCount() < 1)
{
$rs = CIBlockSection::GetList(false, Array("IBLOCK_ID"=>8, "ACTIVE"=>"Y", "ID"=>$SECTION_ID));
if($ar = $rs->GetNext()) $SECTION_ID = $ar["IBLOCK_SECTION_ID"];
}?>
<?$APPLICATION->IncludeComponent("bitrix:catalog.section.list", "left-menu", Array(
"IBLOCK_TYPE" => "product",
"IBLOCK_ID" => "8",
"SECTION_ID" => $SECTION_ID,
"SECTION_CODE" => "",
"SECTION_URL" => "",
"COUNT_ELEMENTS" => "N",
"TOP_DEPTH" => "1",
"SECTION_FIELDS" => "",
"SECTION_USER_FIELDS" => "",
"ADD_SECTIONS_CHAIN" => "N",
"CACHE_TYPE" => "N",
"CACHE_TIME" => "36000000",
"CACHE_GROUPS" => "Y",
),
false
);?>
</div>
<?if($FILTER_BRANDS_SECTION)
{
$cache = new CPHPCache;
if(!$cache->StartDataCache(3600*24, "filter-brands".$FILTER_BRANDS_SECTION, "/products/filter-brands/"))
{
$v = $cache->GetVars();
$FILTER_BRANDS = $v["FILTER_BRANDS"];
}
else
{
if(CModule::IncludeModule("iblock"))
{
$_rs = CIBlockPropertyEnum::GetList(Array("SORT" => "ASC", "VALUE" => "ASC"), Array("IBLOCK_ID" => 8, "CODE" => "brand"));
while($_ar = $_rs->GetNext())
{
$_cnt = CIBlockElement::GetList(false, Array("IBLOCK_ID" => 8, "ACTIVE" => "Y", "SECTION_ID" => $FILTER_BRANDS_SECTION, "INCLUDE_SUBSECTIONS" => "Y", "PROPERTY_brand" => $_ar["ID"]));
if($_cnt->SelectedRowsCount() < 1) continue;
$FILTER_BRANDS[$_ar["ID"]] = $_ar["VALUE"];
}
}
$cache->EndDataCache(Array("FILTER_BRANDS"=>$FILTER_BRANDS));
}
if(count($FILTER_BRANDS) > 0)
{
?><form method="get" action="" name="arrFilter_form" style="margin:20px 0 20px 25px">
<p>Производитель:<br />
<select name="arrFilter_pf[brand]">
<option value="">(Все)</option>
<?foreach($FILTER_BRANDS as $val => $key)
{
if($_GET["arrFilter_pf"]["brand"] == $val) echo '<option selected value="'.$val.'">'.$key.'</option>';
else echo '<option value="'.$val.'">'.$key.'</option>';
}?>
</select></p><br />
<input type="submit" class="sub-order" style="margin:0" value="Фильтр" name="set_filter">
<input type="hidden" value="Y" name="set_filter">
</form><?
}?>
<?/*$APPLICATION->IncludeComponent(
"bitrix:catalog.filter",
"catalog_filter",
Array(
"IBLOCK_TYPE" => "product",
"IBLOCK_ID" => "8",
"FILTER_NAME" => "arrFilter",
"FIELD_CODE" => array(),
"PROPERTY_CODE" => array(0=>"brand"),
"LIST_HEIGHT" => "5",
"TEXT_WIDTH" => "20",
"NUMBER_WIDTH" => "5",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_GROUPS" => "Y",
"SAVE_IN_SESSION" => "N",
"PRICE_CODE" => array()
)
);*/?>
<?}?>
<div class="action-bg">
<?
$arFilter = Array("IBLOCK_ID"=>6,"ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, Array("nPageSize"=>1));
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields(); ?>
<?=$arFields['PREVIEW_TEXT']?>
<?} ?>
</div>
<div class="reklama">
<?$APPLICATION->IncludeFile(
SITE_DIR."include/reklama.php",
Array(),
Array("MODE"=>"html")
);?>
</div>
</div>
</th>
<th scope="col">
<div class="cont-part">
<div class="info">
<h1><?$APPLICATION->ShowTitle(false);?></h1>
#WORK_AREA#<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
</div>
</div>
</th>
</tr>
</table>
<table class="footer">
<tr>
<th scope="col">
<div class="copy">
<?$APPLICATION->IncludeFile(
SITE_DIR."include/copy.php",
Array(),
Array("MODE"=>"html")
);?>
</div>
<div class="footer-menu">
<ul>
<?$APPLICATION->IncludeComponent("bitrix:menu", "bottom", array(
"ROOT_MENU_TYPE" => "top",
"MAX_LEVEL" => "1",
"CHILD_MENU_TYPE" => "left",
"USE_EXT" => "Y",
"MENU_CACHE_TYPE" => "A",
"MENU_CACHE_TIME" => "3600",
"MENU_CACHE_USE_GROUPS" => "Y",
"MENU_CACHE_GET_VARS" => ""
),
false,
array(
"ACTIVE_COMPONENT" => "Y"
)
);?>
</ul>
</div>
</th>
</tr>
</table>
</th>
</tr>
</table>
</div>
<script>
$('.bxslider').bxSlider({
mode: 'fade',
pager: false
});
</script>
</body>
</html> |