{dede:field name='id' runphp='yes'} global $refObj; $RO=(isset($this)&&is_object($this->refObj))?$this->refObj:$refObj; $F=is_object($RO)&&isset($RO->Fields)&&is_array($RO->Fields)?$RO->Fields:array(); $__seo=ZB_THEME_LIB.'/zb_seo.php';if(is_file($__seo))require_once $__seo; $DedeMeValue=function_exists('zb_seo_doc_title_html')?zb_seo_doc_title_html($F):(''.htmlspecialchars(isset($F['title'])?$F['title']:'',ENT_QUOTES).''); {/dede:field} {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}
{dede:field name='id' runphp='yes'} global $dsql; require_once ZB_THEME_LIB.'/zb_url.php'; $aid=intval($DedeMeValue); if(!function_exists('zb_nav_url'))require_once ZB_THEME_LIB.'/zb_block.php'; $h=''; $DedeMeValue=$h; {/dede:field} {dede:field name='id' runphp='yes'} if(!empty($GLOBALS['h_teams_no'])){ $DedeMeValue='
数据不存在
'; } else{ $D=$GLOBALS['h_teams']; $logo=function_exists('zb_media_cover')?zb_media_cover($D['litpic']):$D['litpic']; $logoHtml=$logo?'':''; $h='
' .'
'.$logoHtml.'

'.htmlspecialchars($D['title'],ENT_QUOTES).'

' .'
'; if($D['league'])$h.=''.(($__cl=function_exists('zb_entity_link')?zb_entity_link('league',$D['league']):'')?'':'').htmlspecialchars($D['league'],ENT_QUOTES).($__cl?'':'').''; $h.='
'; // 简介 $body=$D['body']?trim($D['body']):('本站为您聚合'.$D['title'].'最新赛程、直播信号、阵容名单与相关资讯。'); $h.='
'.htmlspecialchars(cn_substr(html2text($body),300),ENT_QUOTES).'
'; $h.='
'; $GLOBALS['h_teams_head_html']=$h; $DedeMeValue=$h; } {/dede:field}
最新赛程 / 直播
{dede:field name='id' runphp='yes'} global $dsql; require_once ZB_THEME_LIB.'/zb_url.php'; $aid=intval($DedeMeValue);$now=time(); $dsql->SetQuery("SELECT l.aid,l.teamz_id,l.teamk_id,l.teamz_num,l.teamk_num,l.matchdatetime,l.is_finish,z.title zn,z.litpic zimg,k.title kn,k.litpic kimg,m.title mn FROM `#@__addonlive` l LEFT JOIN `#@__archives` z ON z.id=l.teamz_id LEFT JOIN `#@__archives` k ON k.id=l.teamk_id LEFT JOIN `#@__archives` m ON m.id=l.match_id WHERE l.teamz_id='$aid' OR l.teamk_id='$aid' ORDER BY l.matchdatetime DESC LIMIT 10"); $dsql->Execute('sc');$h='';$sc=0; while($r=$dsql->GetArray('sc')){ $sc++;$ts=intval($r['matchdatetime']);$fin=intval($r['is_finish']); if($fin===1||($ts>0&&$ts<$now-10800)){$btn='看录像';$bcls='v41-btn-end';} elseif($ts>$now||!$ts){$btn='赛前预告';$bcls='v41-btn-soon';} else{$btn='观看直播';$bcls='v41-btn-live';} $zcov=function_exists('zb_media_cover')?zb_media_cover($r['zimg']):$r['zimg']; $kcov=function_exists('zb_media_cover')?zb_media_cover($r['kimg']):$r['kimg']; $zlogo=$zcov?'':''; $klogo=$kcov?'':''; $zu=function_exists('zb_entity_link')?zb_entity_link('team',$r['zn']):'';$ku=function_exists('zb_entity_link')?zb_entity_link('team',$r['kn']):'';$lu=function_exists('zb_entity_link')?zb_entity_link('league',isset($r['mn'])?$r['mn']:''):''; $h.='
'.($ts?date('H:i',$ts):'待定').'
'.($ts?date('n-j',$ts):'').'
' .'
'; if($fin===1||intval($r['teamz_num'])||intval($r['teamk_num'])) $h.='
'.intval($r['teamz_num']).'-'.intval($r['teamk_num']).'
'; else $h.=''; $h.='
' .'
'; } if(!$sc)$h='
近期无赛事
'; $DedeMeValue=$h; {/dede:field}
球队阵容
{dede:field name='id' runphp='yes'} global $dsql; require_once ZB_THEME_LIB.'/zb_url.php'; $aid=intval($DedeMeValue); $dsql->SetQuery("SELECT a.id,a.title,a.litpic FROM `#@__addonplayer` p JOIN `#@__archives` a ON a.id=p.aid WHERE p.team_id='$aid' AND a.arcrank>=0 ORDER BY a.id LIMIT 12"); $dsql->Execute('pl');$h='
';$pn=0; while($p=$dsql->GetArray('pl')){ $pn++;$pcov=function_exists('zb_media_cover')?zb_media_cover($p['litpic']):$p['litpic']; $alogo=$pcov?''.htmlspecialchars($p['title'],ENT_QUOTES).'':''; $h.=''.$alogo.''.htmlspecialchars($p['title'],ENT_QUOTES).''; } $h.='
'; if(!$pn)$h='
暂无阵容名单
'; $DedeMeValue=$h; {/dede:field}
相关资讯报道
{dede:field name='id' runphp='yes'} global $dsql; require_once ZB_THEME_LIB.'/zb_url.php'; $D=$GLOBALS['h_teams'];$kw=addslashes($D['title']); $dsql->SetQuery("SELECT id,title FROM `#@__archives` WHERE channel=10 AND arcrank>=0 AND title LIKE '%$kw%' ORDER BY id DESC LIMIT 6"); $dsql->Execute('nw');$h='
';$nn=0; while($n=$dsql->GetArray('nw')){ $nn++;$h.=''; } $h.='
'; if(!$nn)$h='
暂无相关资讯
'; $DedeMeValue=$h; {/dede:field}
{dede:field name='id' runphp='yes'}$RO=(isset($this)&&is_object($this->refObj))?$this->refObj:null;$F=(is_object($RO)&&isset($RO->Fields)&&is_array($RO->Fields))?$RO->Fields:array();require_once ZB_THEME_LIB.'/zb_url.php';$__p=zb_prenext_link('pre',$F);$__n=zb_prenext_link('next',$F);$__h=trim($__p.' '.$__n);$DedeMeValue=$__h===''?'':'
'.$__h.'
';{/dede:field}
{dede:include filename='foot.htm'/}