public function display_registration_form() { $m = $this->init_module(Base_EssClient::module_name()); $this->display_module($m, array(true), 'admin'); return self::$return; }
private static function format_client_messages($cleanup = true) { $msgs = Module::static_get_module_variable(Base_EssClient::module_name(), 'messages', array(array(), array(), array())); $red = '#FFCCCC'; $orange = '#FFDD99'; $green = '#DDFF99'; $ret = self::format_messages_frame($red, __('Error messages') . ':', $msgs[2]) . self::format_messages_frame($orange, __('Warning messages') . ':', $msgs[1]) . self::format_messages_frame($green, __('Information messages') . ':', $msgs[0]); if ($cleanup) { Module::static_unset_module_variable(Base_EssClient::module_name(), 'messages'); } return $ret; }