From 484ed7c95f5b0f359f38f091516deafefc3d4c3a Mon Sep 17 00:00:00 2001 From: stakadush Date: Thu, 4 Jul 2002 07:32:03 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3028 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/squirrelspell/sqspell_functions.php | 113 +++++++++++--------- 1 file changed, 61 insertions(+), 52 deletions(-) diff --git a/plugins/squirrelspell/sqspell_functions.php b/plugins/squirrelspell/sqspell_functions.php index 333083a3..d73e0197 100644 --- a/plugins/squirrelspell/sqspell_functions.php +++ b/plugins/squirrelspell/sqspell_functions.php @@ -35,35 +35,40 @@ function sqspell_makePage($title, $scriptsrc, $body){ if($scriptsrc) { echo "\n"; } - echo '' - . '' - . "' - . '' - . '' - . ""; + echo html_tag( 'table', '', 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"' ) . "\n" + . html_tag( 'tr', "\n" . + html_tag( 'td', '' . $title .'', 'center', $color[9] ) + ) . "\n" + . html_tag( 'tr', "\n" . + html_tag( 'td', '
', 'left' ) + ) . "\n" + . html_tag( 'tr', "\n" . + html_tag( 'td', $body, 'left' ) + ) . "\n"; /** * Generate a nice "Return to Options" link, unless this is the * starting page. */ if ($MOD != "options_main"){ - echo '' - . ''; + echo html_tag( 'tr', "\n" . + html_tag( 'td', '
', 'left' ) + ) . "\n" + . html_tag( 'tr', "\n" . + html_tag( 'td', '' + . _("Back to "SpellChecker Options" page") + . '', + 'center' ) + ) . "\n"; } /** * Close the table and display the version. */ - echo '' - . '' - . "' - . '' - . '
" - . "$title" - . '

$body

' - . _("Back to "SpellChecker Options" page") - . '

" - . "SquirrelSpell $SQSPELL_VERSION" - . '
'; + echo html_tag( 'tr', "\n" . + html_tag( 'td', '
', 'left' ) + ) . "\n" + . html_tag( 'tr', + html_tag( 'td', 'SquirrelSpell ' . $SQSPELL_VERSION, 'center', $color[9] ) + ) . "\n"; } /** @@ -111,23 +116,23 @@ function sqspell_makeWindow($onload, $title, $scriptsrc, $body){ * Draw the rest of the page. */ echo '>' - . '' - . '' - . "' - . '' - . '' - . '' - . "" - . '' - . '' - . '' - . "' - . '' - . '
" - . "$title" - . '

$body

" - . "SquirrelSpell $SQSPELL_VERSION" - . '
' + . html_tag( 'table', "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', '' . $title . '', 'center', $color[9] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', '
', 'left' ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', $body, 'left' ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', '
', 'left' ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', 'SquirrelSpell ' . $SQSPELL_VERSION, 'center', $color[9] ) + ) , + '', '', 'width="100%" border="0" cellpadding="2"' ) . "\n\n"; } @@ -352,21 +357,25 @@ function sqspell_getWords(){ * The _("SquirrelSpell...) line has to be on one line, otherwise * gettext will bork. ;( */ - $msg='

' - . '' . _("ATTENTION:") . '
' - . _("SquirrelSpell was unable to decrypt your personal dictionary. This is most likely due to the fact that you have changed your mailbox password. In order to proceed, you will have to supply your old password so that SquirrelSpell can decrypt your personal dictionary. It will be re-encrypted with your new password after this.
If you haven't encrypted your dictionary, then it got mangled and is no longer valid. You will have to delete it and start anew. This is also true if you don't remember your old password -- without it, the encrypted data is no longer accessible.") - . '

' - . '
' - . '
' - . '' - . '

' - . _("Delete my dictionary and start a new one") . '
' - . _("Decrypt my dictionary with my old password:") - . '

' - . '
' - . '

' - . ''; + $msg = html_tag( 'p', "\n" . + '' . _("ATTENTION:") . '
' + . _("SquirrelSpell was unable to decrypt your personal dictionary. This is most likely due to the fact that you have changed your mailbox password. In order to proceed, you will have to supply your old password so that SquirrelSpell can decrypt your personal dictionary. It will be re-encrypted with your new password after this.
If you haven't encrypted your dictionary, then it got mangled and is no longer valid. You will have to delete it and start anew. This is also true if you don't remember your old password -- without it, the encrypted data is no longer accessible.") , + 'left' ) . "\n" + . '
' . "\n" + . '
' . "\n" + . '' . "\n" + . html_tag( 'p', "\n" . + '' + . _("Delete my dictionary and start a new one") . '
' + . _("Decrypt my dictionary with my old password:") + . '' , + 'left' ) . "\n" + . '
' . "\n" + . html_tag( 'p', "\n" . + '' , + 'center' ) . "\n" + . '' . "\n"; /** * Add some string vars so they can be i18n'd. */ -- 2.25.1