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