Replace tabs.tpl (make a backup of course) with the following code:
Code:
{*
8ec8b858917c921a726e2197071ce74d020e5ead, v1 (xcart_4_6_0), 2013-04-02 16:43:59, tabs.tpl, random
vim: set ts=2 sw=2 sts=2 et:
*}
{if $pages_menu} Hello there is a pages menu
<ul id="flexmenu1" class="flexdropdownmenu">
{foreach from=$pages_menu item=p name=page}
{if $p.show_in_menu eq 'Y' && $p.orderby gte "100" && $p.orderby lte "199" }
there are items in flexmenu1
<li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a></li>
{/if}
{/foreach}
</ul>
<ul id="flexmenu2" class="flexdropdownmenu">
{foreach from=$pages_menu item=p name=page}
{if $p.show_in_menu eq 'Y' && $p.orderby gte "200" && $p.orderby lte "299" }
there are items in flexmenu2
<li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a></li>
{/if}
{/foreach}
</ul>
<ul id="flexmenu3" class="flexdropdownmenu">
{foreach from=$pages_menu item=p name=page}
{if $p.show_in_menu eq 'Y' && $p.orderby gte "300" && $p.orderby lte "399" }
there are items in flexmenu3
<li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a></li>
{/if}
{/foreach}
</ul>
<ul id="flexmenu4" class="flexdropdownmenu">
{foreach from=$pages_menu item=p name=page}
{if $p.show_in_menu eq 'Y' && $p.orderby gte "400" && $p.orderby lte "499" }
there are items in flexmenu4
<li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp} </a></li>
{/if}
{/foreach}
</ul>
<br/>
{/if}
{*{if $speed_bar}
<div class="tabs{if $all_languages_cnt gt 1} with_languages{/if} monitor">
<ul>
{foreach from=$speed_bar item=sb name=tabs}
{strip}
<li{interline name=tabs}>
<a href="{$sb.link|amp}">
{$sb.title}
<img src="{$ImagesDir}/spacer.gif" alt="" />
</a>
<div class="t-l"></div><div class="t-r"></div>
</li>
{/strip}
{/foreach}
</ul>
</div>
<div class="tabs-mobile">
<select name="mobileTabs" id="mobileTabs">
<option value="">{$lng.lbl_quick_menu}</option>
{foreach from=$speed_bar|@array_reverse item=sb name=tabs}
{strip}
<option value="{$sb.link|amp}">
{$sb.title}
</option>
{/strip}
{/foreach}
</select>
<script type="text/javascript">
$(function (){ldelim}
$("#mobileTabs").val('1');
$("#mobileTabs").change(function(e) {ldelim}
window.location.href = $(this).val();
{rdelim});
{rdelim});
</script>
</div>
{/if}*}
All I have done is comment out the existng tabs menu for now, to get it out of our way. Then I moved you test words inside the if statements, so they will only show up if those conditions are met.
I think what may be going on is that the static pages don;t actually exist, the way you had your test words placed would cause them to show as long as the $pages_menu existed, and loop for each item in $pages_menu.
This should bring to the surface what is truly going on.
You can see on my test site:
http://trainingpen.com that the <ul> tags are showing up, but there are no <li> tags inside them, because the if statement conditions are not being met.
Perhaps the associated javascript files are playing havoc with the output, since there are no <li>s.
To troubleshoot this, I would remove the links to the CSS and JS temporarily, then edit the .tpl to only show one flexmenu. Ensure that the pages orderby is within the range you specify, then see what the html output is. Get the html output working correctly, then add your JS and CSS back in.