From 3fde693bb3935007ca630a23f72e352dd3889549 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Tue, 25 Jun 2002 07:58:34 +0000 Subject: [PATCH] r2l by Yoav git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3006 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- locale/he_HE/LC_MESSAGES/squirrelmail.po | 4 +- src/image.php | 50 ++++++----- src/left_main.php | 39 ++++++--- src/login.php | 107 ++++++++++++++--------- 4 files changed, 120 insertions(+), 80 deletions(-) diff --git a/locale/he_HE/LC_MESSAGES/squirrelmail.po b/locale/he_HE/LC_MESSAGES/squirrelmail.po index 88dd36bb..d53d3489 100644 --- a/locale/he_HE/LC_MESSAGES/squirrelmail.po +++ b/locale/he_HE/LC_MESSAGES/squirrelmail.po @@ -311,7 +311,7 @@ msgstr " #: squirrelmail/src/compose.php:798 msgid "On read" -msgstr "á÷øéä" +msgstr "á÷øéàä" #: squirrelmail/src/compose.php:800 msgid "On Delivery" @@ -536,7 +536,7 @@ msgstr " msgid "" "The help has not been translated to %s. It will be displayed in English " "instead." -msgstr "äëæøä òãééï ìà úåøâîä ì %s. äéà úåöâ áàðâìéú áî÷åí æàú." +msgstr "äòæøä òãééï ìà úåøâîä ì %s. äéà úåöâ áàðâìéú áî÷åí æàú." #: squirrelmail/src/help.php:137 msgid "Some or all of the help documents are not present!" diff --git a/src/image.php b/src/image.php index 52f6c854..559ad12f 100644 --- a/src/image.php +++ b/src/image.php @@ -15,41 +15,49 @@ require_once('../src/validate.php'); require_once('../functions/date.php'); require_once('../functions/page_header.php'); require_once('../src/load_prefs.php'); +require_once('../functions/html.php'); displayPageHeader($color, 'None'); -echo '
' . - '' . - "\n" . - '' . "\n" . - '
' . - '
' . - _("Viewing an image attachment") . " - "; if (isset($where) && isset($what)) { // from a search - echo '' . _("View message") . ''; } else { - echo '' . _("View message") . ''; -} +} $DownloadLink = '../src/download.php?passed_id=' . $passed_id . '&mailbox=' . urlencode($mailbox) . '&passed_ent_id=' . $passed_ent_id . '&absolute_dl=true'; -echo '
' . - _("Download this as a file") . - '
 ' . "\n" . - '
' . "\n" . - - '' . "\n" . - '
' . - '' . - - '
' . "\n"; - '' . "\n"; +echo '
' . + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + '' . + _("Viewing an image attachment") . ' - ' . + $ViewMessageLink . '' , + 'center', $color[0] ) + ) . + html_tag( 'tr', + html_tag( 'td', + '' . + _("Download this as a file") . + '
 ' . "\n" , + 'center' ) + ) , + 'center', '', 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) . + + html_tag( 'table', + html_tag( 'tr', + html_tag( 'td', + '' + , 'left', $color[4] ) + ) + , 'center', '', 'border="0" cellspacing="0" cellpadding="2"' ); ?> diff --git a/src/left_main.php b/src/left_main.php index 12efed21..0a768061 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -17,6 +17,7 @@ require_once('../functions/array.php'); require_once('../functions/imap.php'); require_once('../functions/plugin.php'); require_once('../functions/page_header.php'); +require_once('../functions/html.php'); /* These constants are used for folder stuff. */ define('SM_BOX_UNCOLLAPSED', 0); @@ -65,9 +66,9 @@ function formatMailboxName($imapConnection, $box_array) { if ($unseen > 0) { $line .= ''; } /* Crate the link for this folder. */ - $line .= ""; + $line .= ""; if ($special_color) { - $line .= ""; + $line .= ""; } if ( $mailbox == 'INBOX' ) { $line .= _("INBOX"); @@ -75,8 +76,8 @@ function formatMailboxName($imapConnection, $box_array) { $line .= str_replace(' ',' ',$mailbox); } if ($special_color == TRUE) - $line .= ""; - $line .= ''; + $line .= ''; + $line .= ''; /* If there are unseen message, close bolding. */ if ($unseen > 0) { $line .= ""; } @@ -362,7 +363,10 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { $folder_img = '  '; } else $folder_img = ''; if (!isset($boxes->mbxs[0])) { - echo '
' . $folder_img .$pre .$font. $boxes->mailboxname_sub .$fontend . $end. '
'."\n"; + echo ' ' . html_tag( 'div', + $folder_img .$pre .$font. $boxes->mailboxname_sub .$fontend . $end , + 'left', '', 'class="mbx_sub" id="' .$j. '" onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)"' ) + . "\n"; } else { /* get collapse information */ if ($collapse_folders) { @@ -386,7 +390,10 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { } $collapse_link = $link; } else $collapse_link=''; - echo '
' . $collapse_link . $folder_img .$pre. $font. '  '. $boxes->mailboxname_sub .$fontend . $end. '
'."\n"; + echo ' ' . html_tag( 'div', + $collapse_link . $folder_img .$pre. $font. '  '. $boxes->mailboxname_sub .$fontend . $end , + 'left', '', 'class="mbx_par" id="' .$j. 'P" onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)"' ) + . "\n"; echo ' '."\n"; } } @@ -397,7 +404,8 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { } if (isset($boxes->mbxs[0]) && !$boxes->is_root) /* mailbox contains childs */ - echo '
'."\n"; + echo html_tag( 'div', '', 'left', '', 'class="par_area" id='.$j.'.0 '. $visible ) . "\n"; + if ($j !='ID.0') { $j = $j .'.0'; } @@ -740,8 +748,10 @@ if ($advanced_tree) { echo '


'; } - -echo '
'. _("Folders") . "
\n\n"; +echo "\n\n" . html_tag( 'table', '', '', '', 'border="0" cellspacing="0" cellpadding="0" width="100%"' ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left' ) . + '
'. _("Folders") . "
\n\n"; if ($date_format != 6) { /* First, display the clock. */ @@ -774,13 +784,13 @@ if ($date_format != 6) { } $clk = str_replace(' ',' ',$clk); - echo '
' . str_replace(' ',' ',_("Last Refresh")) . - ": $clk
"; + echo '
' . str_replace(' ',' ',_("Last Refresh")) . + ": $clk
"; } /* Next, display the refresh button. */ -echo '('. - _("refresh folder list") . ')

'; +echo '('. + _("refresh folder list") . ')

'; /* Lastly, display the folder list. */ if ( $collapse_folders ) { @@ -867,6 +877,7 @@ for ($i = 0; $i < count($boxes); $i++) { do_hook('left_main_after'); sqimap_logout($imapConnection); -echo "
\n"; +echo '' . "\n". + "
\n"; ?> diff --git a/src/login.php b/src/login.php index e84abbcd..df1a1b9a 100644 --- a/src/login.php +++ b/src/login.php @@ -59,6 +59,7 @@ require_once('../functions/i18n.php'); require_once('../functions/plugin.php'); require_once('../functions/constants.php'); require_once('../functions/page_header.php'); +require_once('../functions/html.php'); /* * $squirrelmail_language is set by a cookie when the user selects @@ -90,7 +91,7 @@ do_hook('login_cookie'); /* Output the javascript onload function. */ -$header = "