'; $_links .= ''; $_links .= ''; $tpl->addVar("index", "NAVIGATION", create_navigation_horziontal($go[2])); $_items = create_navigation_horziontal($go[2], 'item'); if($_items<>"") { $tpl->addVar("index", "NAVIGATION_ITEM", $_items); $tpl->addVar("index", "DSPNAVIGITEM", "block"); } else { $tpl->addVar("index", "DPSNAVIGITEM", "none"); } // Navigation Horizontal function create_navigation_horziontal($cid=0, $art="") { global $conn; $class = ""; $subitems = ""; if($art=="") { $sql = "SELECT cm.*, cmt.* FROM basicms_menu cm INNER JOIN basicms_menu_text cmt ON cm.menu_id = cmt.menu_id WHERE cm.menu_parent='0' AND cmt.menu_lang = '".$_SESSION['lang']."' AND cm.menu_active = 'y'"; if($_SESSION['country']<>"") $sql .= " AND (cm.menu_country = '' OR cm.menu_country='".$_SESSION['country']."')"; $sql .= " ORDER BY cm.menu_sort ASC"; $result = $conn->Execute($sql); $str = ''; return ($str); } else { $parent = get_field('basicms_menu', 'menu_parent', " WHERE menu_id='".$cid."'"); if($parent==0) $parent = $cid; $sql = "SELECT cm.*, cmt.* FROM basicms_menu cm INNER JOIN basicms_menu_text cmt ON cm.menu_id = cmt.menu_id WHERE cm.menu_parent='".$parent."' AND cmt.menu_lang = '".$_SESSION['lang']."' AND cm.menu_active = 'y'"; if($_SESSION['country']<>"") $sql .= " AND (cm.menu_country = '' OR cm.menu_country='".$_SESSION['country']."')"; $sql .= " ORDER BY cm.menu_sort ASC"; $result = $conn->Execute($sql); if($result->NumRows()>0) { $str = ''; } } return ($str); } function show_dir($id, $parent) { global $conn; $_dir = ''; return ($_dir); } function check_dir($id) { global $conn; $sql = "SELECT cm.*, cmt.* FROM basicms_menu cm INNER JOIN basicms_menu_text cmt ON cm.menu_id = cmt.menu_id WHERE cm.menu_parent='".$id."' AND cmt.menu_lang = '".$_SESSION['lang']."' AND cm.menu_active = 'y'"; if($_SESSION['country']<>"") $sql .= " AND (cm.menu_country = '' OR cm.menu_country='".$_SESSION['country']."')"; $sql .= " ORDER BY cm.menu_sort ASC"; $result = $conn->Execute($sql); return $result->NumRows(); } function check_menu() { global $conn; $sql = "SELECT cm.menu_id FROM basicms_menu cm INNER JOIN basicms_websites cw ON cm.menu_content = cw.site_id WHERE cw.site_link='index.php?s=".$_GET['s']."'"; $result = $conn->Execute($sql); return $result->fields['menu_id']; } ?> | Willkommen bei Zippert und Co. :: Partner für Metalldächer und Fassadenverkleidung


0