1 && $tmp[$n-1][0]=='c' && check_int($a=@substr($tmp[$n-1],1)) ) $CatID=(int)$a; else $CatID=$CategUrlToID[$url_name]; //----------------------------------------/ } if ($CatID>1 && ($CategItems[$CatID]['active_info'] || $view_inactive)) { // ----------------------------------------------------------------------------\ if ($CAN_ADMIN_CATS) $query="select c.name as name,title,comment,description, meta_title,meta_keywords,meta_description, u.uplID as uplID,u.img_not_loaded as img_not_loaded, IF(u.img_not_loaded,u.name,CONCAT(u.path,'/',u.name)) as file_name, u.width as w, u.height as h from sc_category as c left join uploads1 as u on c.uplID=u.uplID where c.catID=$CatID"; else $query="select IF(cn.name!='',cn.name,c.name) as name, IF(cn.title!='',cn.title,c.title) as title, IF(cn.comment!='',cn.comment,c.comment) as comment, IF(cn.description!='',cn.description,c.description) as description, IF(cn.meta_title!='',cn.meta_title,c.meta_title) as meta_title, IF(cn.meta_keywords!='',cn.meta_keywords,c.meta_keywords) as meta_keywords, IF(cn.meta_description!='',cn.meta_description,c.meta_description) as meta_description, u.uplID as uplID,u.img_not_loaded as img_not_loaded, IF(u.img_not_loaded,u.name,CONCAT(u.path,'/',u.name)) as file_name, u.width as w, u.height as h from sc_category as c left join uploads1 as u on c.uplID=u.uplID left join sc_category_newval as cn on cn.catID=c.catID where c.catID=$CatID"; $Category=@$sql_fetch_assoc(db_query($query)); // ----------------------------------------------------------------------------/ } else $CatID=0; if (!$CatID || !$Category) $RedirectUrl="$SITE_ROOT/"; else { if ($Category['title']=='') $Category['title']=$Category['name']; if ($Category['description']=='') $Category['description']=$Category['comment']; $PageTitle=$Category['title']; $Meta['title']=$Category['meta_title'] ? $Category['meta_title'] : $Category['title']; $Meta['keywords']=$Category['meta_keywords'] ? $Category['meta_keywords'] : $Category['title']; $Meta['description']=$Category['meta_description'] ? $Category['meta_description'] : ($Category['comment'] ? $Category['comment'] : $Category['title']); } include_once("$ROOT_PATH/common/all_head.php"); ?> '; $ModuleData=array( 'page' => 0, 'pages_url' => '', 'head_title' => 'Featured', 'catID' => $CatID, 'condition' => "((p.price_type=2 and spec_time1<=$TIME and (!spec_time2 or spec_time2>=$TIME)) or pn.price_type=2)", 'cols' => 1, 'rows' => 1, 'rand' => 1 ); include('modules/products_search.php'); echo ''; //-------------------------------------/ } ?> '; $ModuleData=array( 'page' => 0, 'pages_url' => '', 'head_title' => 'Specials', 'catID' => $CatID, 'condition' => "((p.price_type=1 and spec_time1<=$TIME and (!spec_time2 or spec_time2>=$TIME)) or pn.price_type=1)", 'cols' => 1, 'rows' => 1, 'rand' => 1 ); include('modules/products_search.php'); echo ''; //-------------------------------------/ } ?>
"; } ?>

SUBCATEGORIES:
'; foreach ($CategItems[$CatID]['items'] as $id) { $item=$CategItems[$id]; if (!$item['active_info']) continue; list($name,$tit)=call('to_html',$item['name'],$item['title']); $img=($item['has_new'] || $item['last_time']>$T) ? $ImgNew : ''; echo "", ($item['n_prod'] ? "
  • $name" : "
  • $name"), " ($item[n_prod])$img", ($item['comment'] ? ' - '.$item['comment'] : ''), '
    '; } echo '
    '; } ?> ',$CategItems[$CatID]['url_name'].'_page',$CAT_LINK_TEMPLATE[$Config['cat_link_style']]); //-------------------------------------\ $ModuleData=array( 'page' => $page, 'pages_url' => $pages_url, 'head_title' => $Category['name'], 'catID' => $CatID, 'show_desc' => 1 ); include('modules/products_search.php'); //-------------------------------------/ ?> =0 && $Hour<=6 && $Config['auto_update_period'] && ((int)$Config['last_time_updated']+$Config['auto_update_period']*3600)<$TIME) { //----------------------------------------\ ?>