/** * 弹出层 * @author pwstrick */ public function layer() { if ($this->controller->is_post()) { $tree = $this->p('tree_hidden'); $data = array('ids' => $tree, 'names' => array('随机3', '随机二')); $this->ajaxSuccessOutput('获取成功!', $data); } $css_tree = form_css(script_url('libs/ztree/zTreeStyle/zTreeStyle.css')); $other_link = $this->formatMetaLink(array(), array($css_tree)); $this->layerTemplate('树形结构', $other_link); $this->view->display('user/layer'); }
/** * 添加css标签 * @param string $url 相对路径 */ function form_css_format($url) { return form_css(css_url($url)); }