'; if (!defined('ISSO_PRINTER_NO_NAVIGATION')) { define('ISSO_PRINTER_NO_NAVIGATION', 1); } $this->page_start(_('Redirect')); if ($postvars) { $this->form_start($location, null, false, 'postvars'); foreach ($postvars AS $key => $value) { $this->form_hidden_field($key, $value); } $this->form_end(); } $redir = sprintf(_('Please wait to be redirected. If you are not redirected in a few seconds, click here.'), $location); $override = false; if ($message == null) { $showmessage = $redir; } else { $showmessage = '
' . $message . '
'; $showmessage .= "\n

" . $redir . "

"; $override = true; } $this->page_message(_('Redirect'), $showmessage, $override); $this->page_code($js); $this->page_end(); } // ################################################################### /** * Produces an entire page layout that asks the user whether or not * they want to perform X action and provides a link to the YES and NO * action * * @param string Message that asks if they want to do X * @param string Location to go for YES * @param string DO action to pass * @param array Hidden parameters to pass to the next page */ public function confirm($message, $location, $action, $params) { if (!defined('ISSO_PRINTER_NO_NAVIGATION')) { define('ISSO_PRINTER_NO_NAVIGATION', 1); } $this->page_start(_('Confirm')); $this->form_start($location, $action); foreach ($params AS $key => $value) { $this->form_hidden_field($key, $value); } $this->table_start(true, '75%'); $this->table_head(_('Confirm'), 1); $this->row_span("
$message
", ':swap:', 'left', 1); $this->row_submit('', _('Yes'), ''); $this->table_end(); $this->form_end(); $this->page_end(); } // ################################################################### /** * Throws a fatal error; constructs the header and footer * * @param string Error messsage text */ public function error($message) { if (!defined('ISSO_PRINTER_NO_NAVIGATION')) { define('ISSO_PRINTER_NO_NAVIGATION', 1); } $this->page_start(_('Error')); $this->page_message(_('Error'), $message); $this->page_end(); exit; } // ################################################################### /** * A block function that produces a table with a message in it. This * does not print the header and footer. * * @param string The title of the message (appears at the top of the block) * @param string Content of the message * @param bool Override the message: control the entire output (no
)? */ public function page_message($title, $message, $overridemessage = false) { $this->table_start(true, '75%'); $this->table_head($title, 1); $this->row_span(($overridemessage ? $message : "
$message
"), ':swap:', 'left', 1); $this->table_end(); } // ################################################################### /** * Creates a table row with a ", 'top', $colspan); } // ################################################################### /** * Adds a name-value pair to an array that is constructed into a * table row from list_item() items * * @param string Label text * @param string Name of the $optionlist\n\n", $colspan); } // ################################################################### /** * Assembles a list of checkboxes from list_item() items * * @param string Label text * @param string Name of the s * @param integer Colspan attribute */ public function row_checkbox($label, $name, $colspan = 2) { global $listitem; foreach ($listitem AS $value => $box) { $optionlist[] = "\n\t $box[name]"; } $listitem = array(); $this->row_text($label, "\n" . implode('
', $optionlist) . "\n", $colspan); } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>