* @copyright 2004-2007 Alexandros Vellis * @package plugins * @subpackage avelsieve */ /** Includes */ include_once(SM_PATH . 'plugins/avelsieve/include/html_main.inc.php'); /** * HTML Output functions for rule editing / adding in a wizard form. * * These are some old functions that I decided to store in this class, and * probably re-use them later when I reenable the wizard. * * @obsolete */ class avelsieve_html_edit_wizard extends avelsieve_html_edit { /** * @var int Which part of add new rule wizard are we in. 0 means 'any'. */ var $part = 0; /** * Start form. * @return string */ function formheader() { global $PHP_SELF; return '
'; } /** * Bottom control and navigation buttons. * @return string */ function addbuttons() { $out = ''; if (isset($part) && $part != 1) { $out .= ''; } $out .= '
'; if ($this->spamrule) { $out .= ''; } return $out; /* if ($part!=1) { $out .= ''; } */ $dummy = _("Move back to step"); if ($part=="4") { $out .= ''; } else { $out .= ''; } } /** * Simple footer that closes tables, form and HTML. * @return string * @obsolete */ function nakedfooter() { return '
'; } /** * Output notification message for new rule wizard * @param string $text * @return string */ function confirmation($text) { $out = '

'. _("Your new rule states:") . '

'.$text.'

'. _("If this is what you wanted, select Finished. You can also start over or cancel adding a rule altogether."). '

'; return $out; } }