public function format($data, $type, $number = 0, $columns = null) { switch ($this->_field) { case 'actions': return '<a href="javascript:' . $this->_client_id . '.deleteItem(' . $data[0] . ');">Удалить</a>'; default: return parent::format($data, $type); } }
public function format($data, $type, $number = 0, $columns = null) { switch ($this->_field) { case 'actions': return '<a href="javascript:deleteCat(' . $data['cid'] . ');">Удалить</a>, <a href="javascript:editCat(' . $data['cid'] . ',\'' . $data['title'] . '\',\'' . $data['title_ru'] . '\');">Изменить</a>'; default: return parent::format($data, $type); } }
public function format($data, $type, $number = 0, $columns = null) { switch ($this->_field) { case 'actions': return '<a href="javascript:deleteURL(' . $this->_manager . ',' . $data['u2cid'] . ');">Удалить</a>, <a href="javascript:recognizeCat(' . $this->_manager . ',\'' . $data['url'] . '\');">Распознать</a>, <a href="javascript:editURL(' . $this->_manager . ',' . $data['u2cid'] . ',\'' . $data['url'] . '\',\'' . $data['cid'] . '\');">Изменить</a>'; case 'category': return !empty($this->_cats_cid[$data]['title_ru']) ? $this->_cats_cid[$data]['title_ru'] : $this->_cats_cid[$data]['title']; default: return parent::format($data, $type); } }