public function displayAdminConfirmDelete(Tracker_IDisplayTrackerLayout $layout, Tracker_Artifact $artifact) { $token = new CSRFSynchronizerToken(TRACKER_BASE_URL . '/?tracker=' . (int) $this->id . '&func=admin-delete-artifact'); $this->displayAdminItemHeader($layout, 'clean'); echo '<div class="tracker_confirm_delete">'; echo '<form name="delete_artifact" method="post" action="' . TRACKER_BASE_URL . '/?tracker=' . (int) $this->id . '&func=admin-delete-artifact">'; echo $token->fetchHTMLInput(); echo $GLOBALS['Language']->getText('plugin_tracker_admin', 'clean_confirm_text', array($artifact->getXRefAndTitle())); echo '<div class="tracker_confirm_delete_preview">'; echo $this->fetchFormElementsReadOnly($artifact); echo '</div>'; echo '<div class="tracker_confirm_delete_buttons">'; echo '<input type="submit" tabindex="2" name="confirm" value="' . $GLOBALS['Language']->getText('plugin_tracker_admin', 'clean_confirm') . '" />'; echo '<input type="submit" tabindex="1" name="cancel" value="' . $GLOBALS['Language']->getText('plugin_tracker_admin', 'clean_cancel') . '" />'; echo '</div>'; echo '<input type="hidden" name="id" value="' . $artifact->getId() . '" />'; echo '</form>'; echo '</div>'; $this->displayFooter($layout); }