/******************************************************************************
Выводим сайты определенного каталога
******************************************************************************/
$ddd = $pr = $mas = $uln = $loc = array();
include_once($path.'site/public/catalog/lib.php');
$_ci = & new CatalogInfo($ll['id'],$tv,$ln,$fr);
#Находим название и свойства каталога
$_ci->GetCatalogInfo();
if(strlen($_ci->name)<1) Send("p0/index.html",1);
if($_ci->publish != 1) Send("u1/index.html",1);
$last = $ll['content'];
$ll['content'] = $_ci->name;
#Показываем анонс для группы каталогов
if($_ci->tp==0){
$str = ($_ci->alen>0) ? $_ci->GetGroupAnnounse() : '';
$ddd['{CatInfo}'] = $str;
$ddd['{CatInfo.length}'] = strlen($str);
include($path."site/public/catalog/start.php");
return;
} //if group
#Показываем анонс выбранного каталога
if($_ci->tp!=0 && $_ci->alen>0 && !empty($post['s'])){
$d.= $_ci->GetGroupAnnounse();
return;
} //if catalog
#Подключаем необходимые библиотеки
include_once($path."panel/design/shablon/prepare_templates.php");
include_once($path."panel/design/lib.php");
include_once($path."panel/lib/Grid/GetCeilsContent.php");
#Находим шаблон дизайна
GetTemplates($post,$ll['id'],$ll['id'],($_ci->sub==0 ? 1 : 3),10);
#Находим путь до каталога
$delim = (!in_array($shopid, array(163,254))) ? ' > ' : ' / ';
$_ci->GetCatalogPath($delim);
#Делаем симлинки для разделов
if(defined("URL_SYNONAMES") && URL_SYNONAMES > 0){
$extra = intval($_POST['x']);
$_ci->synname[0] = $_ci->GetCatalogSynoname(0,0,0); #Main_page
$_ci->synname[1] = $_ci->GetCatalogSynoname($tv,0,$extra); #Current_catalog
$_ci->synname[2] = ($_ci->pt > 0) ? $_ci->GetCatalogSynoname($_ci->pt,0,$extra) : $synname[0]; #Parent_catalog
} //if have_synoname
#Генерим основное содержание
$str = (strpos($tpl['main_shab'], '{elements}') !== false) ? $_ci->BuildCatalogLines($ddd,$flt) : '';
$ddd['{num}'] = (strpos($tpl['main_shab'], '{elements}') !== false) ? $_ci->num : 0;
$ddd['{EmptyMessage}'] = SetNoResults("Не обнаружено записей в данном каталоге.");
$ddd['{PageID}'] = $ll['id'];
$ddd['{PageTitle}'] = $last;
$ddd['{PageUrl}'] = (strlen($_ci->synname[0]) > 0) ? '/'.$_ci->synname[0] : '/p'.$ll['id'].'/index.html';
$ddd['{way}'] = ($shopid!=163 ? $_ci->way: $_ci->wayA);
$ddd['{way2}'] = str_replace('>','/',$_ci->way);
$ddd['{way3}'] = str_replace('>',' ',$_ci->way);
$ddd['{WayShort}'] = substr(str_replace(' > ',' / ',$_ci->wayA),3);
$ddd['{WayShort2}'] = substr($_ci->way,3);
$ddd['{CatID}'] = $tv;
$ddd['{CatTitle}'] = $_ci->name;
$ddd['{CatDesc}'] = $_ci->desc;
$ddd['{desc}'] = $_ci->desc;
$ddd['{CatImgID}'] = $_ci->img;
$ddd['{CatImgSRC}'] = $_ci->imgSrc;
$ddd['{CatUrl}'] = (strlen($_ci->synname[1]) > 0) ? '/'.$_ci->synname[1] : '/p'.$ll['id'].'/t'.$tv.'/index.html';
$ddd['{CatAnnounceLength}'] = $_ci->alen;
$ddd['{CatAnnounceUrl}'] = "/p".$ll['id']."/t".$tv."/s1/index.html";
$ddd['{ParentID}'] = $_ci->pt;
$ddd['{ParentUrl}'] = (strlen($_ci->synname[2]) > 0) ? '/'.$_ci->synname[2] : '/p'.$ll['id'].'/t'.$_ci->pt.'/index.html';
$ddd['{filterID}'] = intval($post['x']);
$ddd['{filterName}'] = $_ci->sa[$_ci->filterID][intval($post['x'])];
list($ptName, $ptOrdinal) = $_ci->GetParentName();
$ddd['{ParentTitle}'] = $ptName;
$ddd['{ParentOrdinal}'] = $ptOrdinal;
$ddd['{userID}'] = intval($_SESSION['usr'][$shopid]);
if($_ci->tp==1 && $_ci->alen>0){
$str2 = $_ci->GetGroupAnnounse();
if(!isset($ddd['{from}'])) $ddd['{from}'] = $fr;
$ddd['{CatalogAnnotation}'] = $str2;
$ddd['{CatalogAnnotation.length}'] = strlen($str2);
}
else{
if(!isset($ddd['{from}'])) $ddd['{from}'] = $fr;
$ddd['{CatalogAnnotation}'] = '';
$ddd['{CatalogAnnotation.length}'] = 0;
}
$ddd['{ColumnsNum}'] = sizeof($_ci->cfa[$_ci->struct]);
$prev = ($fr > $_ci->lim) ? ($fr - $_ci->lim) : 0;
$next = (($fr + $_ci->lim) < $_ci->num) ? ($fr + $_ci->lim) : $fr;
$ddd['{prev.href}'] = '/p'.$ll['id'].'/t'.$tv.($prev>0 ? '/f'.$prev : '').'/index.html';
$ddd['{next.href}'] = '/p'.$ll['id'].'/t'.$tv.($next>0 ? '/f'.$next : '').'/index.html';
if(sizeof($_ci->cfa[$_ci->struct]) > 0){
$col_ord = 0;
reset($_ci->cfa[$_ci->struct]);
while(list(, $a) = each($_ci->cfa[$_ci->struct])){
$ddd['{h'.$col_ord.'}'] = $a[0];
$ddd['{h'.$col_ord.'.length}'] = strlen($a[0]);
$ddd['{h'.$col_ord.'.extra}'] = $a[2];
$col_ord++;
} //while a
} //if have column_info
include_once($path."panel/structure/change_property/seo/lib.php");
list($ttt,$ttd,$ttk) = getValues($ll['id'],$tv,0);
$ddd['{CatInfo}'] = $ttd;
$ddd['{CatInfo.length}'] = strlen($ttd);
if(strpos($tpl['main_shab'],'{Neiborhods}')!==false) $ddd['{Neiborhods}'] = $_ci->GetNeiborhods();
$ddd['{elements}'] = $str;
$ddd["\n"] = "\n";
#Работаем с full_ttl и мета-тегами
$ed = str_pad(decbin($ll['editor']),3,'0',STR_PAD_LEFT);
if(!empty($ed[1])){
include_once($path."panel/structure/change_property/seo/lib.php");
list($ttt,$ttd,$ttk) = getValues($ll['id'],65535,1);
$brand = (!empty($_POST['x']) && !empty($_ci->filterID)) ? $_ci->sa[$_ci->filterID][intval($_POST['x'])] : '';
if($ttt!='') $ll['full_ttl'] = strip_tags(str_replace(array("{Catalog}","{Brand}"),array($_ci->name,$brand),$ttt));
if($ttd!='') $ll['info'] = strip_tags(str_replace(array("{Catalog}","{Brand}"),array($_ci->name,$brand),$ttd));
if($ttk!='') $ll['promo'] = strip_tags(strtolower(str_replace(array("{Catalog}","{Brand}","\"","'",".",",",":"),array($_ci->name,$brand,""),$ttk)));
} //if have tmpl
#Соединяем контент
$dcnt = str_replace(array_keys($ddd),array_values($ddd),$tpl['main_shab']);
$dcnt = preg_replace(array('@(\{h\d+\})@s', '@(\{h\d+\.length\})@s', '@(\{h\d+\.extra\})@s'), array('',0,0), $dcnt);
RemoveTemplateConditions($dcnt);
RemoveStandartObjects($dcnt);
$dcnt = preg_replace("@(\n+)@i","\n", $dcnt);
$d.= $dcnt;
unset($ddd,$_ci,$str,$cnt,$da,$ord,$max,$tpl,$flt,$tmpl,$prev,$pr,$mas,$uln,$loc);
?>
PCM
О КОМПАНИИ
Компания ViP Technology, специализируется на продаже и поставках промышленного насосного оборудования для транспортировки агрессивных, абразивных, взрывоапасных и высоковязких жидкостей в химической, лакокрасочной, нефтеперерабатывающей, парфюмерной и пищевой промышленностях.
Подробнее »
PCM
Продукция
Приглашаем к сотрудничеству региональных дилеров по производителям:
Wilden, Almatec, Standardpump, PCM, Varisco, PIAB.
Особенно приветствуются следующие города: Уфа, Ижевск, Казань, Екатеринбург.
Насосы ViP Technology © 2005 - 2011
«СегментСЕО» — продвижение сайтов Петербург
192019 Санкт-Петербург, ул. Бехтерева д. 3 к. 2.
тел/факс: +7(812) 702-7393, 702-7394
125362, г.Москва ул. Водников д.2
тел/факс: +7(495)646-49-36