{if $set.logo}
{else} {$base.FirmName} {/if}
{php} if($GLOBALS['lang'] == 'zh'){ $sql = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid='0' and soder!='0' order by `soder` asc "; }elseif($GLOBALS['lang'] == 'tw'){ $sql = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid='0' and soder!='0' order by `soder` asc "; }else{ $sql = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid='0' and soder!='0' order by `soder` asc "; } $RS = $GLOBALS['dbes']->getAll($sql); foreach($RS as $v){ $ico_img = explode('.',$v[action]); if($v[action] == 'other.php' || $v[action] == 'othertw.php' || $v[action] == 'otheren.php' ){ $list_nav .= "
$v[name]
"; }elseif($v[action] == 'productcart.php' || $v[action] == 'ordercheck.php'){ $list_nav .= ""; }else{ $list_nav .= "
$v[name]
"; } } echo $list_nav; {/php}
{php}navname('profiles'){/php}
{php} if($GLOBALS['lang'] == 'zh'){ $sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firm_news')." WHERE FirmID = '". $GLOBALS['FrimID']."' ORDER BY `NewsID` DESC "; }elseif($GLOBALS['lang'] == 'tw'){ $sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firm_news_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' ORDER BY `NewsID` DESC "; }else{ $sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firm_news_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' ORDER BY `NewsID` DESC "; } $WS = $GLOBALS['dbes']->getAll($sql2); foreach($WS as $val){ $img = explode('#',$val[pic]); if(empty($img[0])){ $img_one =$GLOBALS['tpl']['img'].'imgjs/erre.gif'; }else{ $img_one = $img[0]; } $news_liset .= '
'.$val[NewsTitle].'
'.$val[OutDate].'
'; } echo $news_liset; {/php}
{literal} {/literal}