J5_08留言模块

weeya1年前JTBC教程325

联系我们模块放留言板
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_06关于我们联系我们内容页

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

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

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

J5_09搜索

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

J5_02公共模板

头部尾部    <TITLE>{$=$htmlEncode(implode(' - ', array_reverse($meta_title)...

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

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

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

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

发表评论    

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