- /**
- * Show an Ajax-y error message
- *
- * Goes back to the browser, where it's shown in a popup.
- *
- * @param string $msg Message to show
- *
- * @return void
- */
-
- function ajaxErrorMsg($msg)
- {
- $this->startHTML('text/xml;charset=utf-8', true);
- $this->elementStart('head');
- $this->element('title', null, _('Ajax Error'));
- $this->elementEnd('head');
- $this->elementStart('body');
- $this->element('p', array('id' => 'error'), $msg);
- $this->elementEnd('body');
- $this->elementEnd('html');
- }
-
- /**
- * Formerly page output
- *
- * This used to be the whole page output; now that's been largely
- * subsumed by showPage. So this just stores an error message, if
- * it was passed, and calls showPage.
- *
- * Note that since we started doing Ajax output, this page is rarely
- * seen.
- *
- * @param string $msg An error message, if any
- *
- * @return void
- */
-
- function showForm($msg=null)
- {
- if ($msg && $this->boolean('ajax')) {
- $this->ajaxErrorMsg($msg);
- return;