J5_07核心团队合作伙伴

weeya1年前JTBC教程329

核心团队team/荣誉资质honor,有列表页,有内容页
{@}
<a href="./?type=detail&amp;id={$id}" class="idxPro_mask">
<img src="{$=$htmlEncode($getValueFromJSON(#avatar, 'fileurl'))}" class="idxPro_img" alt="{$name}" />
</a>
{@}
<jtbc-pagination current-page="{$[pagenum]}" total-page="{$[pagecount]}" url="./?{$=$htmlEncode($request_query_rebuild(['page' => '__page__']))}"></jtbc-pagination>分页
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
合作伙伴partnership/纯图片列表展示,无内页,可做banner图模块
        {@}
        <div class="item">
          <p type="image"><img src="{$=$htmlEncode($getValueFromJSON(#logo, 'fileurl'))}" alt="{$name}" /></p>
        </div>{@}
{$=$render('global.render.partne-div', $fetch(['genre' => 'partnership', 'limit' => 20]))}
首页调用合作伙伴列表

合作伙伴放进公共管理模块下,数据库在表名称前面加上“universal_”即可
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

相关文章

J5增加tag标签自定义URL

1、index.php文件detail节点$rsTag = strval($rs -> tag);//增加tag模块管理-添加字段tag,16标签输入框。2、tag/矿山副井井筒装备安装/htt...

J5列表中获取当前分类的父分类ID

以新闻模块为例子。打开/news/common/diplomat/index.php找到public function list(Request $req, Response $res)函数修改以下内...

J5_05产品新闻详情页

1、头尾模板调用代码{$=$take('global.communal.header')}{$=$take('global.communal.footer')}{$ti...

J5详情页获取当前分类父分类ID

1、修改程序 /public/zhiwu/common/template/index.jtbc文件public function detail(Request $req, Response $res)...

J5_01安装相关

JTBC5.0笔记jtbc模板里只要理解3个东西就完事儿了1个叫 $take1个叫 $render另外1个叫 $fetch/Config/DB/MySQL.php,数据库链接~~~~~~~~~~~~~...

J5_04产品新闻列表页

1、头尾模板调用代码{$=$take('global.communal.header')}{$=$take('global.communal.footer')}1、模块...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。