J5_08留言模块

weeya3年前JTBC教程731

联系我们模块放留言板
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网站首页增加SEO标题

网站增加首页标题1、/Public/common/language/communal.jtbc文件增加节点    <item>  &nbs...

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

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

J5_04产品新闻列表页

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

J5_11增加手机站

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

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

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

发表评论    

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