摘要: public function getSortList(){ $arr = array(); $arr[0]['id']=0; $arr[0]['name']="否"; $arr[1]['id']=1; $arr[1]['name']="是"; return CHtml::listData($arr, "id", "name"); //return CHtml::radioButtonList('issort','1', 阅读全文
posted @ 2014-03-18 15:36 haiwei.sun 阅读(357) 评论(0) 推荐(0)
摘要: /** * 获取菜单Tree * * @return multitype: */ public function getMenuAllList() { $resArr = $this->getTreeChilds ( 0 ); $arr = array (); $arr [0] = "作为一级菜单"; foreach ( $resArr as $rs ) { $id = $rs ['id']; $text = $rs ['text']; $arr [$id] = $text; } return $arr; //return $resAr 阅读全文
posted @ 2014-03-18 15:02 haiwei.sun 阅读(1075) 评论(2) 推荐(0)
返回顶部