{dede:include filename='seo_head.htm'/} {dede:field name='id' runphp='yes'} $aid=intval($DedeMeValue);$__j=ZB_THEME_LIB.'/zb_jsonld.php'; if(is_file($__j)){require_once $__j;$DedeMeValue=zb_jsonld_team($aid);}else{$DedeMeValue='';} {/dede:field}
{dede:include filename='head.htm'/} {dede:field name='id' runphp='yes'} global $dsql; require_once ZB_THEME_LIB.'/zb_url.php'; $aid=(int)$DedeMeValue; $t=$dsql->GetOne("SELECT a.title,a.litpic,t.body,t.match_id,t.type FROM `#@__archives` a LEFT JOIN `#@__addonteams` t ON t.aid=a.id WHERE a.id='$aid'"); if(!is_array($t)){ $GLOBALS['h_teams_no']=true; $DedeMeValue=''; } else{ $GLOBALS['h_teams_no']=false; $leagueName=''; if((int)$t['match_id']>0){$lg=$dsql->GetOne("SELECT title FROM `#@__archives` WHERE id='".(int)$t['match_id']."'");if(is_array($lg))$leagueName=$lg['title'];} $GLOBALS['h_teams']=array('aid'=>$aid,'title'=>$t['title'],'litpic'=>$t['litpic'],'body'=>$t['body'],'type'=>$t['type'],'league'=>$leagueName); $DedeMeValue=''; } {/dede:field}