";
}
}
$is86xx = $GLOBALS['dbes']->getOne("SELECT is86xx FROM ".$GLOBALS['eces']->table('firms_baseinfo')." WHERE FirmID = '". $GLOBALS['FrimID']."'");
$sql = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid='0' AND soder != '0' order by `soder` ".$orderby;
$RS = $GLOBALS['dbes']->getAll($sql);
foreach($RS as $v){
$sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid = '".$v[id]."' AND soder != '0' order by `soder` asc";
$ts = $GLOBALS['dbes']->getAll($sql2);
if(empty($ts)){
if($v[action] == 'other.php'){
$list .= "