{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_navsss .= "
- $v[name]
";
}elseif($v[action] == 'productcart.php' || $v[action] == 'ordercheck.php'){
$list_navsss .= "";
}else{
$list_navsss .= "
- $v[name]
";
}
}
echo $list_navsss;
{/php}
{php}aboutimg(340,120,0,1){/php}
{php}about(170){/php}
{php}
if($GLOBALS['lang'] == 'zh'){
$sql = "SELECT * FROM ".$GLOBALS['eces']->table('firm_products')." WHERE FirmID = '". $GLOBALS['FrimID']."' ";
}elseif($GLOBALS['lang'] == 'tw'){
$sql = "SELECT * FROM ".$GLOBALS['eces']->table('firm_products_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' ";
}else{
$sql = "SELECT * FROM ".$GLOBALS['eces']->table('firm_products_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' ";
}
$sql .= "ORDER BY `addTime` DESC LIMIT 0,12 ";
$RS = $GLOBALS['dbes']->getAll($sql);
foreach($RS AS $v){
if(!empty($v[PicPath])){
$picimg = $v[PicPath] ;
}else{
$picimg = $GLOBALS['tpl']['img']."imgjs/erreso.gif";
}
if($idd < 6){
$contenet .= '
';
}else{
$contenet2 .= '
';
}
$idd++;
}
echo '- '.$contenet.'
- '.$contenet2.'
';
{/php}
{literal}
{/literal}
{php}News(20,0,3,'fleft','fright','couldsdsd',99){/php}
{php}othernews(20,0,3,'fleft','mainl_dd',999,2,'',0,1){/php}
{php}othernews(20,0,3,'fleft','mainl_dd',999,2,'',0,1){/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);
$count = 1;
foreach($RS as $v){
$contenall .= '
'.$v[cat_name].' |
';
if($count % 2 == 0) { echo ''.$contenall.'
'; unset($contenall); }
$count++;
}
{/php}