帝国cms列表页跳转到内容页的列表模板代码
此代码适用于栏目下面只有一个文章的 例如公司简介,联系我们等单页形式 代码如下<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd……
此代码适用于栏目下面只有一个文章的 例如公司简介,联系我们等单页形式 代码如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>[!--pagetitle--] </title></head><body>[e:loop={'selfinfo',1,0,0,'','newstime ASC'}]<script type="text/javascript">self.location.href='<?=$bqsr['titleurl']?>';</script>[/e:loop] </body></html>
- 上一篇
在帝国cms内容页模板显示该信息的下线时间
<?$info=$empire->fetch1("select * from phome_enewsinfovote where classid='$navinfor[classid]' and id='$navinfor[id]'");echo date("Y-m-d H:i:s",$info[infodowntime]);?>
- 下一篇
iframe框架调用高度自适应方法
以下代码加入到你想加的帝国cms模板即可<iframe frameborder="0" src="http://www.daixiao360.cn/" class="iframe" frameborder="0" id="test" onload="this.height=100" width="762px" scrolling="no"&