/** * 函数名称:saverulebygroupAction * 功能描述:保存编辑用户组的权限 */ public function saverulebygroupAction() { $groupid = $this->getPost('groupid'); if (is_numeric($groupid) && $groupid != 1) { $checkedArr = $this->getPost('checkbox'); $model = new Admin_GroupModel(); $result = $model->saveEditRuleByGroupId($groupid, $checkedArr); $this->redirect('list'); } else { $this->redirect('list'); return false; } }