联系官方销售客服
QQ1835022299
028-61286886
插件 | 表单系统 V2.6 |
应用作者 | 太阳成游戏网站官方团队 |
发布时间 | 2021-03-24 10:37:32 |
更新时间 | 2025-04-11 14:05:09 |
想在后台的全局表单内容列表里,操作选项里加一个右侧链接按钮,参考了
我的代码是这样的
// 数据列表 public function index() { $tpl = $this->_Admin_List(true); $this->mytable = [ 'foot_tpl' => '', // 底部按钮字符串 'link_tpl' => '', // 右侧侧链接字符串 'link_var' => 'html = html.replace(/\{id\}/g, row.id);', // 侧链接的js变量替换,例如{id}表示id ]; // 侧链接,加一个a标签链接 $this->mytable['link_tpl'].= ''; \Phpcmf\Service::V()->assign([ 'mytable' => $this->mytable, ]); return \Phpcmf\Service::V()->display($tpl); }
为什么只剩下侧链接一个按钮了?没加侧链接代码之前数据列表正常显示的。
插件教程:/doc/app-710.html