zblog php文章页面调用文章的相关文章

白芸资源网公益广告

zblog php文章页面调用文章的相关文章

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{$aid=$article.ID}
{$tagid=$article.Tags}
{$cid=$article.Category.ID}
{php}
    $tagrd=array_rand($tagid);
    if( sizeof($tagid)>0 && ($tagid[$tagrd]->Count)>1){
        $tagi='%{'.$tagrd.'}%';
        $where = array(array('=','log_Status','0'),array('like','log_Tag',$tagi),array('','log_ID',$aid));
    }else{
        $where = array(array('=','log_Status','0'),array('=','log_CateID',$cid),array('','log_ID',$aid));
    }
    $array = $zbp->GetArticleList(array('*'),$where,array('rand()'=>' '),array(6),'');
    foreach ($array as $related) {
        if(($related->ID)!=$aid){
        $str .= "
  • "time">{$related->Time('m-d')}
  • "title">"icon-doc-text">"{$related->Url}" title="{$related->Title}">{$related->Title}"pcomm">"icon-comment-1"> "{$related->Url}#comments" rel="nofollow" title="{$related->Title}》上的评论">{$related->CommNums}"; } } {/php} {$str}
      © 版权声明
      THE END
      本站一切内容不代表本站立场
      赞赏 分享