public function _update() { $r= new JTNews($_SESSION['login_user_id']); $r->select($_POST['id']); $r->setFields($_POST); $r->update(); $this->addAlert(new JAlert('更新完成','告知訊息',"./?action=edit&id={$_POST['id']}")); $this->action('edit', $_POST['id']); }