J5_08留言模块

weeya2年前JTBC教程725

联系我们模块放留言板
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_01安装相关

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

J5_06关于我们联系我们内容页

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

J5_03首页模板

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

J5增加tag标签自定义URL

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

J5_09搜索

    需要在可以被搜索的模块目录中手动添加common/search.jtbc引导文件来激活搜索功能    需要手动构建关键字输入框并通过...

J5_11增加手机站

1、Public/common/diplomat/index.php文件    return Jtbc::take('index.index');替换成&...

发表评论    

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