版权所有:九州易通科技有限公司


函数参数说明:
{loop article(0,20,'aid',10,true,'image,commend=1') $i $arc}
  • [{$arc[typename]}] {$arc[title]} ({$arc[adddate]})
    {/loop}
    article( 栏目 , 截取字数 , 排序 'new' (最新)/ 'hit' (最热)/aid(最新) /aid-asc(按发布顺序), 调用记录条数 , 缩略图 ,推荐位)
    常用字段:
    title
    url : 链接
    typename : 栏目名称
    typeurl : 栏目链接
    adddate : 日期
    image: 缩略图
    打印当前调用表内容
    < ?php
    print_r($type);
    ? >
    指定栏目不显示
    {php if($t['typeid']==1 || $t['typeid']==2) continue;}
    指定显示某栏目名称及链接
    {loop position($typeid=3) $t}{$t['name']}{/loop}
    当前栏目名称
    {$type[$typeid][typename]}
    当前栏目链接
    {$typeurl($typeid)}
    当栏目关键词
    {$type[$typeid][keyword]}
    当前内容页关键词
    {$archive[keyword]}
    当栏目描述
    {$type[$typeid][description]}
    当前内容页描述
    {$archive[description]}
    获取config配置文件中选项内容
    {get('选项内容前缀')}
    添加的内容简介调用:
    $arc['introduce']
    从内容截取 :
    {cut($arc['introduce'],200)}...
    从内容截取 :
    {cut($arc['content'],200)}...
    万能型:
    {cut(strip_tags($arc['content']),200)}
    父级栏目循环显示子栏目文章
    {loop type($typeid) $t}
    {$t[typename]}
    {loop article($t[typeid],20,'aid',8,true,'image<>""') $i $arc}

    {$arc[title]}
    {/loop}
    {/loop}
    网站地图
    首页
    {loop type() $t}

    {$t[typename]}



    {loop type($t) $t1}

    {$t1[typename]}



    {loop type($t1) $t2}

    {$t2[typename]}


    {loop type($t2) $t3}
    {$t3[typename]}

    {/loop}
    {/loop}
    {/loop}
    {/loop}
    计数累加
    {php $i=0;}
    {loop $archives $arc}{php $k=$i+1;}
    {$arc[adddate]}{$arc[title]}

  • {php $i++; }
    {/loop}
    表单调用
    {myform('my_表单名称')}
    友情链接调用
    friendlink('image',类id,数量,logo宽度)

    image/logo
    text/文字

    {loop friendlink('image',1,5,100) $flink}
    {$flink[link]}
    {/loop}
    [循环输出栏目文章]
    {loop type(44) $t}
    [栏目文章-{$t[typename]}]
    {loop article($t[typeid],20,'aid',2) $i $arc}
  • {=$i+1} {$arc[title]} ({=sdate($arc[adddate],'Y-m')})
    {/loop}
    {/loop}


    =================
    footer.html ---------------- 全站页底模板
    header.html ----------------全站页头模板
    left.html ---------------------全站左侧导航模板
    logolinks.html ------------- logo友情链接内容模板
    myinfo.html ---------------- 网站介绍模板
    textlinks.html -------------- 文字链接内容模板

    amdin=============
    login.html ---------------- 后台登录模板

    announ============
    show.heml---------------- 公告展示页模板

    archive============
    index.html------------------ 一级栏目页模板
    list.html---------------------- 终极栏目页模板
    search.html --------------- 搜索页模板
    show.html ------------------ 内容页模板

    comment ===========
    comment_js.html--------- 评论循环调用内容列表标签模板
    list.html ---------------------- 评论列表模板

    index ==============
    index.html ------------------ 网站首页模板

    install===============
    index.html ------------------ 安装页模板
    license.html----------------- 安装授权页

    manage=============
    archive==============
    add.html---------------------- 会员中心添加文章模板
    edit.html --------------------- 会员中心编辑文章模板
    list.html ----------------------- 会员中心管理文章列表模板

    message================
    error.html
    index.html
    skin====================

    system===================
    pagination.html ------------分页模板

    user===================
    changepassword.html---- 会员中心修改密码模板
    fckupload.html -------------- 会议中心上传图片模板
    foot.html ---------------------- 会议中心页底模板
    head.html --------------------- 会员中心页头模板
    index.html --------------------- 会议中心首页模板
    leftmenu.html-----------------会员中心左侧菜单模板
    login.html ---------------------- 登陆模板
    login_js.html ------------------ 登陆调用模板
    login_success.html --------- 登陆提示页模板
    register.html ------------------ 注册页面模板


    =========================
    后台模板备注

    cache---------
    config--------- 系统设置
    database----- 数据管理
    fiels------------ 自定义字段
    index----------- 后台首页
    skin------------- 风格包
    table
    announcement-- 公告