帝国cms内容页调用正文附件下载的代码
[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']?> 附件原名
- 上一篇
帝国cms自动刷新内容页代码
此内容就是自动生成内容页。把以下代码保存php文件文件名index.php,然后放到e目录下面extend文件夹下面gx文件夹下面 如果没有gx文件夹,就新建个gx文件夹,访问地址就是 您的网址/e/extend/gx/文章加载中..
- 下一篇
帝国cms内容页SQl方式调用当前TAG标签
本文是介绍的帝国cms内容页SQl方式调用当前TAG标签的方式 具体调用代码如下:<?php$fr=$empire->fetch1("select infotags from {$dbtbpre}ecms_news_data_{$navinfor[stb]} where id='$navinfor[id]'");$infotags