From 21c8d457e2da0523933fd3a153a91524e0ce58eb Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 19 Jan 2003 16:44:02 +0000 Subject: [PATCH] Right-to-left fixes from Saleh Madi (part 2) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4438 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 64 ++++++++++++++++++++++++----------------------- src/read_body.php | 41 +++++++++++++++++------------- 2 files changed, 56 insertions(+), 49 deletions(-) diff --git a/src/compose.php b/src/compose.php index fef9c415..0e2e83a6 100644 --- a/src/compose.php +++ b/src/compose.php @@ -29,6 +29,7 @@ require_once(SM_PATH . 'functions/plugin.php'); require_once(SM_PATH . 'functions/display_messages.php'); require_once(SM_PATH . 'class/deliver/Deliver.class.php'); require_once(SM_PATH . 'functions/addressbook.php'); +require_once(SM_PATH . 'functions/set_language_align.php'); /* --------------------- Get globals ------------------------------------- */ $username = $_SESSION['username']; @@ -36,6 +37,8 @@ $onetimepad = $_SESSION['onetimepad']; $base_uri = $_SESSION['base_uri']; $delimiter = $_SESSION['delimiter']; +$language_align = set_language_align(); + if (isset($_POST['return'])) { $html_addr_search_done = 'Use Addresses'; } @@ -804,7 +807,7 @@ function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, } function showInputForm ($session, $values=false) { - global $send_to, $send_to_cc, $body, + global $send_to, $send_to_cc, $body, $language_align, $passed_body, $color, $use_signature, $signature, $prefix_sig, $editor_size, $attachments, $subject, $newmail, $use_javascript_addr_book, $send_to_bcc, $passed_id, $mailbox, @@ -838,6 +841,7 @@ function showInputForm ($session, $values=false) { '// -->' . "\n\n"; } + echo "\n" . '
'. _("Your Message has been sent").'
'; } - echo '' . "\n"; + echo '
' . "\n"; if ($compose_new_win == '1') { - echo '
'."\n" . - ' '."\n"; + echo '
'."\n" . + ' '."\n"; } if ($location_of_buttons == 'top') { showComposeButtonRow(); @@ -875,10 +879,10 @@ function showInputForm ($session, $values=false) { $idents = getPref($data_dir, $username, 'identities', 0); if ($idents > 1) { - echo ' ' . "\n" . - ' ' . "\n" . + ' ' . "\n" . - ' ' . "\n" . ' ' . "\n"; } - echo ' ' . "\n" . - ' ' . "\n" . + ' ' . "\n" . - ' ' . "\n" . ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n" . + ' ' . "\n" . - ' ' . "\n" . ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n" . + ' ' . "\n" . - ' ' . "\n" . ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n" . + ' ' . "\n" . - ' ' . "\n" . @@ -941,14 +945,14 @@ function showInputForm ($session, $values=false) { } if ($compose_new_win == '1') { - echo ' ' . "\n" . - ' ' . "\n" . + '
' . + echo '
' . _("From:") . '' . "\n" . + ' ' . "\n" . '
' . + echo '
' . _("To:") . '' . "\n" . + ' ' . "\n" . '
' . "\n" . '
' . + '
' . _("CC:") . '' . "\n" . + ' ' . "\n" . '
' . "\n" . '
' . + '
' . _("BCC:") . '' . "\n" . + ' ' . "\n" . '
' . "\n" . '
' . + '
' . _("Subject:") . '' . "\n"; + ' ' . "\n"; echo ' ' . "\n" . '
' . "\n" . + echo '
' . "\n" . '