From fd2611e99f704928397bfad9525a03d411732c82 Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 17 Oct 2002 16:44:54 +0000 Subject: [PATCH] UI consistancy git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3894 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/display_messages.php | 65 ++++++++++++++++------------------ 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a/functions/display_messages.php b/functions/display_messages.php index cce8e110..580a62c7 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -63,51 +63,32 @@ function error_username_password_incorrect() { if (!isset($frame_top)) { $frame_top = '_top'; } - - echo '
'. - ''. - ''. - ''. - '' . - ''. - '
' . _("ERROR") . '
'. - '
' . _("Unknown user or password incorrect.") . - '
'. + _("Unknown user or password incorrect.") . + '
'. + '' . _("Click here to try again") . '.'. - '
'. - ''; + ''; + error_box($string,$color); +echo ''; } function error_message($message, $mailbox, $sort, $startMessage, $color) { $urlMailbox = urlencode($mailbox); - echo '
'. - "". - ''. - "'."\n". + ''. - '
". - "" . _("ERROR") . ''. - '
'. - "
$message
\n". - '
'. - "
'. + '"; - printf (_("Click here to return to %s"), $mailbox); - echo '.'. - '
'; + . "&mailbox=$urlMailbox\">" . + sprintf (_("Click here to return to %s"), $mailbox) . + ''; + error_box($string, $color); } function plain_error_message($message, $color) { - echo "
". - ''. - "'. - '
". - "" . _("ERROR") . ''. - '
'. - "
$message". - '
'; + error_box($message, $color); } function logout_error( $errString, $errTitle = '' ) { @@ -181,4 +162,20 @@ function logout_error( $errString, $errTitle = '' ) { ''; } +function error_box($string, $color) { + echo ' '; + echo ' '; + echo '
'; + echo ' '; + echo ' '; + echo '
'; + echo ' ' . _("ERROR") . ':'; + echo '
'; + echo ' '; + echo ' ' . html_tag( 'td', $string."\n", 'left') + . ''; + echo '
'; + echo '
'; + echo ' '; +} ?> -- 2.25.1