Hello,
I have a website from which I am building a searchable database.
I am trying to add a menu bar to the top of the age using php.
This is the code I have so far (which is default), in fact I erased some catagories I didn't need.
function print_menu($aCategory = 0)
{
global $gDirConfig;
global $gDirLang;
global $gTab;
global $menus;
$url = $gDirConfig['base'].$gDirConfig['dir'];
$menu['home']['caption'] = $gDirLang['home'];
$menu['home']['url'] = $url;
$menu['search']['caption'] = $gDirLang['search'];
$menu['search']['url'] = $url.'search.php';
if ($gDirConfig['suggest_category'])
{
$menu['suggest-category']['caption'] = $gDirLang['suggest_category'];
$menu['suggest-category']['url'] = "{$url}suggest-category.php?id={$aCategory}";
}
if ($menus)
{
foreach($menus as $item)
{
$menu_items = explode(',',$item['menus']);
if (in_array('1', $menu_items))
{
$menu[$item['name']]['caption'] = $gDirLang['page_'.$item['id'].'_name'];
$page_url = $gDirConfig['mod_rewrite'] ? "p{$item['name']}.html" : "page.php?name={$item['name']}";
$menu[$item['name']]['url'] = $item['unique_url'] ? $item['unique_url'] : $url.$page_url;
}
}
}
I want to add several more bars, which link to an external page. Could someone send me a link or help me out with this?
I've searched the web and this site abit, but can not find anything.
The man who was helpin me design this site just had a death in the family out of state, and he will not be back for a few months. Any help is appreciated.