submitPostTitle = $value; } function _insertButton() { $buttons = array(); $buttons[] = new HTML_QuickForm_submit('submit_btn', $this->submitTitle); if ($this->submitPostTitle) { $buttons[] = new HTML_QuickForm_submit('submit_post_btn', $this->submitPostTitle); } switch ($this->cancelType){ case FORM_CBT_RESET: $buttons[] = new HTML_QuickForm_reset('cancel_btn', $this->cancelTitle); break; case FORM_CBT_CANCEL: $s = "location.href = '"; if ($this->cancelUrl) { $s .= $this->cancelUrl . "'"; } else { $s .= Constant::get('BASE_URL').'/'.CURR_PAGE."?action=cancel'"; } $buttons[] = new HTML_QuickForm_button('cancel_btn', $this->cancelTitle, array('onclick' => $s)); break; } $this->addGroup($buttons, 'submit_grp'); } }