微信
{ if $langzh eq zh}中文 {/if} { if $langtw eq tw}{$lang.tw}|{/if} { if $langen eq en}{$lang.en} {/if}
{php}navname(customnews){/php}
    {php} more_title('customnews') {/php}
{php}navname(customnews){/php}
{php}navname(customnews){/php} {php} $action = "customnews.php"; if($GLOBALS['lang'] == 'zh'){ $sql = "SELECT id FROM ".$GLOBALS['eces']->table('firms_nav')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND action = '".$action."' and soder!='0' ORDER BY `soder` ASC "; }elseif($GLOBALS['lang'] == 'tw'){ $sql = "SELECT id FROM ".$GLOBALS['eces']->table('firms_nav_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND action = '".$action."' and soder!='0' ORDER BY `soder` ASC "; }else{ $sql = "SELECT id FROM ".$GLOBALS['eces']->table('firms_nav_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND action = '".$action."' and soder!='0' ORDER BY `soder` ASC "; } $RS = $GLOBALS['dbes']->getRow($sql); if($RS){ if($GLOBALS['lang'] == 'zh'){ $sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid = '".$RS[id]."' and soder!='0' ORDER BY `soder` ASC "; }elseif($GLOBALS['lang'] == 'tw'){ $sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav_tw')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid = '".$RS[id]."' and soder!='0' ORDER BY `soder` ASC "; }else{ $sql2 = "SELECT * FROM ".$GLOBALS['eces']->table('firms_nav_en')." WHERE FirmID = '". $GLOBALS['FrimID']."' AND pid = '".$RS[id]."' and soder!='0' ORDER BY `soder` ASC "; } $TS = $GLOBALS['dbes']->getAll($sql2); foreach($TS as $v){ if($v[id] == $id ){ $hover = ' class="hover" '; } $list .= "$v[name]"; } } echo $list; {/php}
{foreach from=$news_foreach item=news} {/foreach}
{if $page}
{$lang.pager_1}{$page.record_count} {$lang.pager_2} {if $page.page > 3 }{$lang.page_first}{/if} {if $page.page > 1}{/if} {if $page.page_count neq 1} {foreach from=$page.page_number key=key item=item} {if $page.page eq $key} {$key} {else} [{$key}] {/if} {/foreach} {/if} {if $page.page_count > 1 and $page.page_count!=$page.page} {/if} {if $page.page_count > 1 and $page.page_count!=$page.page}{$lang.page_last}{/if}
{/if} 
{literal} {/literal} {literal} {/literal} {$flaotQQ}