J5_08留言模块

weeya2年前JTBC教程672

联系我们模块放留言板
1、/Public/contactus/common/diplomat.index.php文件
      $renderer = new Renderer('index.detail');
替换为:
    $timestamp = time();
    $uniqueId = Random::getNumeric28();
    $sign = Encoder::saltedMD5($uniqueId . $timestamp);
    $renderer = new Renderer('index.detail', ['timestamp' => $timestamp, 'unique_id' => $uniqueId, 'sign' => $sign]);

2、JS文件要引进来
<jtbc-script init="initForm" src="{$=$getActualRoute('feedback/')}{$=$assets_path}/js/feedback.js"></jtbc-script>

3、<div class="feedback_form">这个div要一致

4、外面还要有一个<container></container>包含起来。

5、</header>下面加一行这个。<headerholder></headerholder>

6、<button type="submit" class="b2 submit">提交</button>
提交是button,其他标签不行。

$variables = [
  'pagenum' => $model -> pagination -> pageNum,
  'pagecount' => $model -> pagination -> pageCount,
];

相关文章

J5增加PDF附件下载功能

1、模块管理增加att字段,选择29附件管理器2、模板代码<table class="table table-striped m-0"><tbody><...

J5_03首页模板

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

J5导航条高亮显示js控制on代码

导航菜单实现高亮显示,增加一个js判断,菜单增加一个id调用。1、页脚增加这个判断        <!-- header menu active hove...

J5模块首页-列表分类-文章页面自定义TDK

J5模块首页-列表分类-文章页面自定义TDK方法1、模块添加字段,后台开发维护》模块管理》右边的设置,在模块设置界面,点击右上角添加新字段按钮添加3个字段,用来存储自定义的TDK数据seotitle,...

J5_10多语言

多语言/Public/console/common/language/sel_lang.jtbc增加节点不同语言不同模板Public/common/diplomat/index.php修改return...

J5_01安装相关

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

发表评论    

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