{php}navname(productshow){/php}
{php}
if($GLOBALS['lang'] == 'zh'){
$sql = "SELECT cat_id,cat_name,parent_id FROM ".$GLOBALS['eces']->table('category_zh')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND parent_id = '0' ORDER BY `sort_order` ASC ";
}elseif($GLOBALS['lang'] == 'tw'){
$sql = "SELECT cat_id,cat_name,parent_id FROM ".$GLOBALS['eces']->table('category_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND parent_id = '0' ORDER BY `sort_order` ASC ";
}else{
$sql = "SELECT cat_id,cat_name,parent_id FROM ".$GLOBALS['eces']->table('category_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND parent_id = '0' ORDER BY `sort_order` ASC ";
}
$RS = $GLOBALS['dbes']->getAll($sql);
foreach($RS as $v){
$contenall .= '
'.$v[cat_name].'
';
if($GLOBALS['lang'] == 'zh'){
$sql1 = "SELECT cat_id,cat_name,parent_id FROM ".$GLOBALS['eces']->table('category_zh')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND parent_id = '".$v[cat_id]."' ORDER BY `sort_order` ASC ";
}elseif($GLOBALS['lang'] == 'tw'){
$sql1 = "SELECT cat_id,cat_name,parent_id FROM ".$GLOBALS['eces']->table('category_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND parent_id = '".$v[cat_id]."' ORDER BY `sort_order` ASC ";
}else{
$sql1 = "SELECT cat_id,cat_name,parent_id FROM ".$GLOBALS['eces']->table('category_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND parent_id = '".$v[cat_id]."' ORDER BY `sort_order` ASC ";
}
$TS = $GLOBALS['dbes']->getAll($sql1);
$tontstl = '
';
foreach($TS as $t){
$tontstl .= '- '.$t[cat_name].'
';
}
$tontstl .= '
';
$contenall .= $tontstl;
}
echo $contenall;
{/php}
{php}navname('contactus'){/php}
{if $base.LinkMan neq ''}
{$lang.LinkMan}{$base.LinkMan}
{/if}
{if $base.Telephone neq ''}
{$lang.Telephone}{$base.Telephone}
{/if}
{if $base.Fax neq ''}
{$lang.Fax}{$base.Fax}
{/if}
{if $base.QQNo neq ''}
{$lang.QQNo}{$base.QQNo}
{/if}
{if $base.Email neq ''}
{/if}
{if $base.Address neq ''}
{$lang.Address}{$base.Address}
{/if}