帝国cms内容页调用正文附件下载的代码

admin 2024年1月19日13:47:39帝国cms技巧评论1,160 次浏览阅读模式

内容摘要

[e:loop={"select * from phome_enewsfile_1 where classid='$navinfor[classid]' and id='$navinfor[id]' order by id desc",0,24,0,''

文章正文

[e:loop={"select * from phome_enewsfile_1 where classid='$navinfor[classid]' and id='$navinfor[id]' order by id desc",0,24,0,'',''}]
<a href="<?=$public_r[newsurl]?>d/file/<?=$class_r[$GLOBALS[navclassid]][classpath]?>/<?=$navinfor[newspath]?>/<?=$bqr['filename']?>">
<?=$bqr['no']?>
</a>[/e:loop]

<?=$public_r[newsurl]?>网站根目录

d/file/ 附件存放目录

<?=$class_r[$GLOBALS[navclassid]][classpath]?> 栏目链接

<?=date("Y-m-d",$navinfor[newstime])?> 或 <?=$navinfor[newspath]?> 文章存放的日前目录

<?=$bqr['filename']?> 代码名--附件名

<?=$bqr['no']?> 附件原名

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日13:47:39
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17723.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: