config->parms[0]) ? $site->config->parms[0] : 5; //if ($MenuParm > 0) header("Location: /404.htm"); $item = $site->db->init("groups", $MenuParm, 'group_id'); if (!isset($item->data['name'])) $site->config->error = '404'; //header("Location: /404.htm"); $name = $item->data['name']; $text = $item->data['text']; $casevalue = $item->data['casevalue']; /*if ($item->data['page_id'] && $item->data['page_id'] != $site->config->url) { header("HTTP/1.1 301 Moved Permanently"); header("Location: /".$item->data['page_id']); } */ ?>

db->init('catalog')->select(array('parent_id' => 0, 'ORDER' => 'ord')); if (isset($tempItems)) $sub_groups = $urls->makeUrls(array('item_key' => 'group_id', 'tpl' => 'catalog/group-%d.htm', 'url_field' => 'url_new', 'items' => $tempItems)); //echo '
'; var_dump($sub_groups); die;
if ($sub_groups) {
?>
$item) { $i ++; if ($item['url_new']) { $href1_img = ''; $href1 = ''; $href2 = ''; /* } elseif ($item['page_id']) { $href1_img = ''; $href1 = ''; $href2 = '';*/ } else { $href1_img = ''; $href1 = ''; $href2 = ''; } ?>
html->img($item['image_small'], array('title' => ''.htmlspecialchars(strip_tags($item['name'])).'', 'alt' => ''.htmlspecialchars(strip_tags($item['name'])).'')).$href2 ?>
 
' : '' ?> db->init("groups")->path($MenuParm); if (isset($path)) { foreach ($path as $id => $row) $crumb[] = ($id != $MenuParm ? '' : '').$row['name'].($id != $MenuParm ? '' : ''); } if (isset($crumb)) { $crumb_text = implode(' :: ', array_reverse($crumb)); $CrumbMenu = array('Главная страница', $crumb_text); } ?>