1、自定义字段关联软件,在文章里显示关联软件信息:

1、自定义字段关联软件,在文章里显示关联软件信息:

[e:loop={"select * from phome_ecms_news where guanlian ='$navinfor[guanlian]' limit 1",10,24,0}]
<?php if (!empty($bqr['guanlian'])) { ?>
<?php
$thistagstr = dp_InfoTag($bqr['classid'], $bqr['id'], '| ', 10);
?>
<div class="m-xgku clearfix">
<span class="f-fl m-xgkuleft" id="m-float-img">
<a href="<?=$bqr['titleurl']?>" rel="external nofollow" rel="external nofollow" rel="external nofollow" title="<?=$bqr['title']?>" target="_blank">
<img src="<?=$bqr['titlepic']?>" alt="<?=$bqr['title']?>">
</a>
</span>
<div class="m-title">
<a href="<?=$bqr['titleurl']?>" rel="external nofollow" rel="external nofollow" rel="external nofollow" title="<?=$bqr['title']?>" id="m-float-name" target="_blank"><?=$bqr['title']?></a>
<span><?=$bqr['bb']?></span>
</div>
<ul class="f-lifl clearfix">
<li class="chang dachang">
类型:<i><?=$class_r[$bqr['classid']]['classname']?></i>
大小:<i><?=$bqr['dx']?></i>
语言:<i><?=$bqr['yy']?></i>
评分:<i><?=$bqr['xj']?></i>
</li>
<li class="chang dachang">标签:<span id="taggo"><?=$thistagstr?></span></li>
</ul>
<a href="<?=$bqr['titleurl']?>" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="kuxiaz" id="m-soft-url" target="_blank">立即下载</a>
</div>
<?php } ?>
[/e:loop]
[e:loop={"select * from phome_ecms_news where guanlian ='$navinfor[guanlian]' limit 1",10,24,0}] <?php if (!empty($bqr['guanlian'])) { ?> <?php $thistagstr = dp_InfoTag($bqr['classid'], $bqr['id'], '| ', 10); ?> <div class="m-xgku clearfix"> <span class="f-fl m-xgkuleft" id="m-float-img"> <a href="<?=$bqr['titleurl']?>" rel="external nofollow" rel="external nofollow" rel="external nofollow" title="<?=$bqr['title']?>" target="_blank"> <img src="<?=$bqr['titlepic']?>" alt="<?=$bqr['title']?>"> </a> </span> <div class="m-title"> <a href="<?=$bqr['titleurl']?>" rel="external nofollow" rel="external nofollow" rel="external nofollow" title="<?=$bqr['title']?>" id="m-float-name" target="_blank"><?=$bqr['title']?></a> <span><?=$bqr['bb']?></span> </div> <ul class="f-lifl clearfix"> <li class="chang dachang"> 类型:<i><?=$class_r[$bqr['classid']]['classname']?></i> 大小:<i><?=$bqr['dx']?></i> 语言:<i><?=$bqr['yy']?></i> 评分:<i><?=$bqr['xj']?></i> </li> <li class="chang dachang">标签:<span id="taggo"><?=$thistagstr?></span></li> </ul> <a href="<?=$bqr['titleurl']?>" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="kuxiaz" id="m-soft-url" target="_blank">立即下载</a> </div> <?php } ?> [/e:loop]

 

 

2、自定义字段关联具体ID:

[e:loop={"select * from [!db.pre!]ecms_phone where id ='$navinfor[phoneid]' order by newstime desc limit 10",0,24,0}]
<a href="<?=$bqsr['titleurl']?>" rel="external nofollow" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_phone where id ='$navinfor[phoneid]' order by newstime desc limit 10",0,24,0}] <a href="<?=$bqsr['titleurl']?>" rel="external nofollow" target="_blank"><?=$bqr['title']?></a> <br> [/e:loop]

更多玩法,自己多试。

 

温馨提示:本文最后更新于 2022-08-06 10:47 ,某些文章具有时效性,若有错误或已失效,请在下方留言或联系QQ:5288293
声明:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:5288293@qq.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明
帝国CMS教程

PHP语句获取当前访问域名echo与变量写法

2022-7-28 18:29:06

帝国CMS教程

帝国cms导航判断有无子栏目显示下拉样式/有子栏目时显示下拉样式

2022-8-10 20:06:07

  • 0 条回复 A文章作者 M管理员
    欢迎您,新朋友,感谢参与互动!
      暂无讨论,说说你的看法吧
    购物车
    优惠劵
    今日签到
    私信列表
    搜索

    夕阳无别事,等风也等你

    联系我们