Telephone
15063366547
QQ
286601999

dede自定义搜索页共用head头部

发表时间:2018-01-12 08:57   作者:锐尚   浏览:
模版中调用:
<?php pasterTempletDiy("default/head.htm");?>
和底部<?php pasterTempletDiy("default/footer.htm");?>

/include/extend.func.php最后边增加

function pasterTempletDiy($path)
{
  require_once(DEDEINC."/arc.partview.class.php");
  global $cfg_basedir,$cfg_templets_dir;
  $tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路径
  $dtp = new PartView();
  $dtp->SetTemplet($tmpfile);
  $dtp->Display();
}

就可以调用出来栏目了

相关文章/Related

  • dede首页、列表页、内容

    评论数的解决方法: 1.首先在根目录plus/文件下创建文件名为fedcount.php的php页面...

  • 济南手机网站建设-dede手

    随着移动端用户越来越多,济南手机网站建设需求越来越大,下面就为大家分享...

  • dede图片集列表页调用多

    复制一下代码:到 include/common.func.php function Getimgs($aid, $imgwith = 300, $imgheight = ...

  • 晨晓网推出dede手机WAP站

    晨晓网推出dede手机WAP站和电脑PC站同步更新,手机网站和电脑站一个后台,填充...