/** * 判断是否可修改 * @access private * @return true|false */ private function verify($status = '10000') { $id = get_post_value('bulletin_id'); $m = new Bulletin(); $m->clear(); $m->setTable('vcb_bulletin'); $m->setWhere('bulletin_id', '=', $id); $m->setWhere('status', '=', $status); $data = $m->getFieldValue('COUNT(*)'); return $data > 0 ? false : true; }