confirmation = $confirmation; } else { $this->confirmation = _t('ConfirmedFormAction.CONFIRMATION', "Are you sure?", PR_MEDIUM, 'Confirmation popup before executing the form action'); } parent::__construct($action, $title, $form); } function Field() { $attributes = array( 'type' => 'submit', 'class' => ($this->extraClass() ? $this->extraClass() : ''), 'id' => $this->id(), 'name' => $this->Name(), 'value' => $this->attrTitle(), 'tabindex' => $this->getTabIndex(), 'onclick' => "return confirm('$this->confirmation');" ); return $this->createTag('input', $attributes); } } ?>