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

发布时间:   浏览: 次  作者: Dede58
[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']?> 附件原名

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。

Copyright © 2005-2019 dede58 版权所有 Power by DedeCms

在线客服