<? $taginfo_r=explode(',',$navinfor['infotags']); if(is_array($taginfo_r)){ foreach($taginfo_r as $tagname){ if($tagname){ $tagr=$empire->fetch1("select tagid from {$dbtbpre}enewstags where tagname='$tagname' limit 1"); if($tagr['tagid']){ $tsql=$empire->query("select * from {$dbtbpre}enewstagsdata where tagid=".$tagr['tagid'].""); while($tr=$empire->fetch($tsql)){ if($tr['id']==$navinfor['id'] && $tr['classid']==$navinfor['classid']){ continue; } if(empty($class_r[$tr['classid']]['tbname'])) { continue; } $infor=$empire->fetch1("select id,classid,newspath,filename,groupid,titleurl,title from {$dbtbpre}ecms_".$class_r[$tr['classid']]['tbname']." where id=".$tr[id]." limit 1"); $ti_url=sys_ReturnBqTitleLink($infor); ?> <!-- 模板部分 开始 --> <a href="<?=$ti_url?>"><?=$infor['title']?></a> <!-- 模板部分 结束 --> <? } } } } } ?> |
|