聯(lián)系官方銷售客服
1835022288
028-61286886
插件名稱 | 表單系統(tǒng) V2.5 |
插件作者 | 迅睿官方團隊 |
最近更新 | 2024-10-23 13:40:58 |
修復刪除表單時的故障問題 |
想在后臺的全局表單內容列表里,操作選項里加一個右側鏈接按鈕,參考了
http://223987.com/doc/1232.html
http://223987.com/doc/1352.html
我的代碼是這樣的
// 數據列表 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'].= '<label><a href="'.dr_url(APP_DIR.'/customer/show').'&id={id}" class="btn btn-xs blue"> <i class="fa fa-user"></i> 測試</a></label>'; \Phpcmf\Service::V()->assign([ 'mytable' => $this->mytable, ]); return \Phpcmf\Service::V()->display($tpl); }
為什么只剩下側鏈接一個按鈕了?沒加側鏈接代碼之前數據列表正常顯示的。
回復@開源社區(qū)插件技術-小鵬 圖標顯示正常了,數據列表還是無法顯示
用
list($tpl) = $this->_List();
能顯示數據列表,但是左側那些按鈕圖標又不顯示了。。。。