From c435f076fe6b5b58e09ae19a8e216f37b069d802 Mon Sep 17 00:00:00 2001 From: jervfors Date: Fri, 12 Nov 2004 14:21:31 +0000 Subject: [PATCH] XHTML fixes git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8365 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 60 ++++++++----------- functions/options.php | 2 +- functions/strings.php | 2 +- plugins/abook_take/functions.php | 2 +- plugins/bug_report/setup.php | 2 +- plugins/calendar/functions.php | 6 +- plugins/change_password/options.php | 2 +- plugins/filters/options.php | 2 +- plugins/filters/spamoptions.php | 6 +- plugins/listcommands/mailout.php | 2 +- .../message_details/message_details_top.php | 4 +- plugins/newmail/newmail.php | 2 +- plugins/newmail/newmail_opt.php | 16 ++--- plugins/newmail/testsound.php | 4 +- plugins/spamcop/spamcop.php | 2 +- plugins/translate/options.php | 6 +- src/addrbook_search.php | 12 ++-- src/addrbook_search_html.php | 34 +++++------ src/addressbook.php | 12 ++-- src/folders.php | 2 +- src/left_main.php | 8 +-- src/options.php | 8 +-- src/options_highlight.php | 6 +- src/options_identities.php | 4 +- src/right_main.php | 4 +- 25 files changed, 98 insertions(+), 112 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index eef07eff..1f062aa9 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -316,7 +316,7 @@ function printMessageInfo($aMsg) { case 2: /* from */ if ($senderAddress != $senderName) { $senderAddress = strtr($senderAddress, array_flip(get_html_translation_table(HTML_SPECIALCHARS))); - $title = ' title="' . str_replace('"', "''", $senderAddress) . '"'; + $title = ' title="' . str_replace(array('"', '<', '>'), array("''", '<', '>'), $senderAddress) . '"'; } else { $title = ''; } @@ -335,7 +335,7 @@ function printMessageInfo($aMsg) { $fontstr_end . $flag_end . $bold_end, 'center', $hlt_color, - 'nowrap' ); + 'style="white-space: nowrap;"' ); break; case 4: /* subject */ $td_str = $bold; @@ -350,7 +350,7 @@ function printMessageInfo($aMsg) { $title = get_html_translation_table(HTML_SPECIALCHARS); $title = array_flip($title); $title = strtr($sSubject, $title); - $title = str_replace('"', "''", $title); + $title = str_replace(array('"', '<', '>'), array("''", '<', '>'), $title); $td_str .= " title=\"$title\""; } $td_str .= ">$flag$subject$flag_end$bold_end"; @@ -406,7 +406,7 @@ function printMessageInfo($aMsg) { $td_str, 'right', $hlt_color, - 'nowrap' ); + 'style="white-space: nowrap;"' ); } // plain text message markers @@ -444,7 +444,7 @@ function printMessageInfo($aMsg) { $td_str, 'center', $hlt_color, - 'nowrap' ); + 'style="white-space: nowrap;"' ); } break; case 6: /* size */ @@ -1040,14 +1040,9 @@ function showMessagesForMailbox($imapConnection, &$aMailbox) { . "}\n" . "\n" . "\n"; - } ?> - - - - - + } + mail_message_listing_beginning($imapConnection, $aMailbox, $msg_cnt_str, $paginator_str); +?>
- -
@@ -1055,28 +1050,20 @@ function showMessagesForMailbox($imapConnection, &$aMailbox) {
- - -
-
- - - - - + [' . $thread_name + . $sort . '&start_messages=1' + . '&mailbox=' . urlencode($aMailbox['NAME']) . '">' . $thread_name . ']'; } else { $thread_link_str =''; @@ -1201,6 +1189,7 @@ function mail_message_listing_beginning ($imapConnection, echo '
' ."\n" . $moveFields; + echo ' - +
'; $button_str = ''; // display flag buttons only if supported @@ -1233,13 +1222,13 @@ function mail_message_listing_beginning ($imapConnection, ' . $paginator . $thread_link_str . '', 'left') . "\n"; ?> - + ' . $msg_cnt_str . '', 'right') . "\n"; ?>
@@ -1295,8 +1284,8 @@ function mail_message_listing_end($aMailbox, $paginator_str, $msg_cnt_str) { @@ -1309,7 +1298,6 @@ function mail_message_listing_end($aMailbox, $paginator_str, $msg_cnt_str) { /* End of message-list table */ do_hook('mailbox_index_after'); - echo "\n"; } /** @@ -1342,7 +1330,7 @@ function printHeader($aMailbox) { echo html_tag( 'td',get_selectall_link($aMailbox) , '', '', 'width="1%"' ); break; case 5: /* flags */ - echo html_tag( 'td','' , '', '', 'width="1%"' ); + echo html_tag( 'td',' ' , '', '', 'width="1%"' ); break; case 2: /* from */ if (handleAsSent($aMailbox['NAME'])) { @@ -1361,7 +1349,7 @@ function printHeader($aMailbox) { echo "\n"; break; case 3: /* date */ - echo html_tag( 'td' ,'' , 'left', '', 'width="5%" nowrap' ) + echo html_tag( 'td' ,'' , 'left', '', 'width="5%" style="white-space: nowrap;"' ) . '' . _("Date") . ''; if ($showsort) { if ($internal_date_sort) { @@ -1381,7 +1369,7 @@ function printHeader($aMailbox) { echo "\n"; break; case 6: /* size */ - echo html_tag( 'td', '', 'center','','width="5%" nowrap') + echo html_tag( 'td', '', 'center','','width="5%" style="white-space: nowrap;"') . '' . _("Size") . ''; if ($showsort) { ShowSortButton($aMailbox, SQSORT_SIZE_ASC, SQSORT_SIZE_DEC); @@ -1458,7 +1446,7 @@ function get_selectall_link($aMailbox) { . "//-->\n" . '' . ''; -// . ' . _("Toggle All") +// . ' . _("Toggle All") // . "\n"; } else { $result .= "' . $string . ':  ', $align, '', - 'nowrap' ); + 'style="white-space: nowrap;"' ); } /** diff --git a/functions/options.php b/functions/options.php index c6d305ec..c242aafb 100644 --- a/functions/options.php +++ b/functions/options.php @@ -669,7 +669,7 @@ function print_option_groups($option_groups) { echo html_tag( 'tr', "\n". html_tag( 'td', '' . $next_optgrp['name'] . '' , - 'center' ,'', 'valign="middle" colspan="2" nowrap' ) + 'center' ,'', 'valign="middle" colspan="2" style="white-space: nowrap;"' ) ) ."\n"; } diff --git a/functions/strings.php b/functions/strings.php index 0997f6fd..6a62a5de 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -836,7 +836,7 @@ function makeComposeLink($url, $text = null, $target='') // build the compose in new window link... - // if javascript is on, use onClick event to handle it + // if javascript is on, use onclick event to handle it if($javascript_on) { sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION); return ''. $text.''; diff --git a/plugins/abook_take/functions.php b/plugins/abook_take/functions.php index 536bf18d..7294190e 100644 --- a/plugins/abook_take/functions.php +++ b/plugins/abook_take/functions.php @@ -84,7 +84,7 @@ function abook_take_options() { global $abook_take_verify; - echo '' . html_tag('td',_("Address Book Take:"),'right','','nowrap') . "\n" . '' . html_tag('td',_("Address Book Take:"),'right','','style="white-space: nowrap;"') . "\n" . '\n"; } diff --git a/plugins/bug_report/setup.php b/plugins/bug_report/setup.php index 0c2bd4e1..c388c145 100644 --- a/plugins/bug_report/setup.php +++ b/plugins/bug_report/setup.php @@ -79,7 +79,7 @@ function bug_report_load() { function bug_report_options() { global $bug_report_visible; - echo '' . html_tag('td',_("Bug Reports:"),'right','','nowrap') . "\n" . + echo '' . html_tag('td',_("Bug Reports:"),'right','','style="white-space: nowrap;"') . "\n" . ''; diff --git a/plugins/change_password/options.php b/plugins/change_password/options.php index 4f254b0e..2c26e45a 100644 --- a/plugins/change_password/options.php +++ b/plugins/change_password/options.php @@ -52,7 +52,7 @@ if (isset($Messages) && count($Messages) > 0) { } ?>
- ' . $paginator_str . '', 'left'); ?> - ' . $msg_cnt_str . '', 'right'); ?> + ' . $paginator_str . '', 'left'); ?> + ' . $msg_cnt_str . '', 'right'); ?>
' . + echo '
' . addCheckbox('abook_take_abook_take_verify', $abook_take_verify) . _("Try to verify addresses") . "
- + diff --git a/plugins/filters/options.php b/plugins/filters/options.php index 6a6b44b6..73b823ca 100644 --- a/plugins/filters/options.php +++ b/plugins/filters/options.php @@ -121,7 +121,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) { '
'. html_tag( 'table', '', '', '', 'border="0" cellpadding="2" cellspacing="0"' ) . html_tag( 'tr' ) . - html_tag( 'th', _("What to Scan:"), 'right', '', 'nowrap' ) . + html_tag( 'th', _("What to Scan:"), 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . ''; @@ -136,7 +136,7 @@ if (isset($action) && $action == 'spam') { 'left' ) ) . html_tag( 'tr' ) . - html_tag( 'th', _("What to Scan:"), 'right', '', 'nowrap' ) . + html_tag( 'th', _("What to Scan:"), 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td' ) . '  '. - '  '. + '  '. + '  '. addSubmit(_("Save Message")). ''. ''. diff --git a/plugins/newmail/newmail.php b/plugins/newmail/newmail.php index 3bc00904..ab4f1062 100644 --- a/plugins/newmail/newmail.php +++ b/plugins/newmail/newmail.php @@ -35,7 +35,7 @@ sqGetGlobalVar('numnew', $numnew, SQ_GET); '

' . "\n" . '
' . "\n". ''."\n". + '" onclick="javascript:window.close();" />'."\n". '', 'center' ) ) , diff --git a/plugins/newmail/newmail_opt.php b/plugins/newmail/newmail_opt.php index 26f2739c..289b85f7 100644 --- a/plugins/newmail/newmail_opt.php +++ b/plugins/newmail/newmail_opt.php @@ -70,7 +70,7 @@ echo '
' . "\n" . // Option: media_allbox echo html_tag( 'tr' ) . - html_tag( 'td', _("Check all boxes, not just INBOX").':', 'right', '', 'nowrap' ) . + html_tag( 'td', _("Check all boxes, not just INBOX").':', 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . '
' . "\n"; // Option: media_recent echo html_tag( 'tr' ) . - html_tag( 'td', _("Count only messages that are RECENT").':', 'right', '', 'nowrap' ) . + html_tag( 'td', _("Count only messages that are RECENT").':', 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . '' . "\n"; // Option: media_changetitle echo html_tag( 'tr' ) . - html_tag( 'td', _("Change title on supported browsers").':', 'right', '', 'nowrap' ) . + html_tag( 'td', _("Change title on supported browsers").':', 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . ' ('._("requires JavaScript to work").') ('._("requires JavaScript to work").')' . "\n" . '
'; - echo '\n"; + echo '\n"; } else { ?>
diff --git a/plugins/translate/options.php b/plugins/translate/options.php index 8bc0b6d4..ffda075a 100644 --- a/plugins/translate/options.php +++ b/plugins/translate/options.php @@ -44,14 +44,14 @@ displayPageHeader($color, 'None'); '' . '' . ''. - ''. '' . - ''.html_tag('td',_("When reading:"),'right','','nowrap="nowrap"'). + ''.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"'). '\n"; if (!$disable_compose_translate) { - echo ''.html_tag('td',_("When composing:"),'right','','nowrap'). + echo ''.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"'). '\n"; @@ -210,7 +210,7 @@ if ($show == 'form' && empty($listall)) { '" method="post">' . "\n" . html_tag( 'table', '', '', '', 'border="0" width="100%" height="100%"' ) . html_tag( 'tr' ) . - html_tag( 'td', ' ' . _("Search for") . "\n", 'left', '', 'nowrap valign="middle" width="10%"' ) . + html_tag( 'td', ' ' . _("Search for") . "\n", 'left', '', 'style="white-space: nowrap;" valign="middle" width="10%"' ) . html_tag( 'td', '', 'left', '', '' ) . addInput('query', $query, 28); diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 0bb8c875..d64e8b52 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -73,7 +73,7 @@ function addr_display_result($res, $includesource = true) { if (sizeof($res) <= 0) return; - echo addForm($PHP_SELF, 'POST', 'addrbook'). + echo addForm($PHP_SELF, 'post', 'addrbook'). addHidden('html_addr_search_done', 'true'); addr_insert_hidden(); $line = 0; @@ -92,11 +92,11 @@ if ($javascript_on) { "}\n" . "//-->\n" . "\n"; - $chk_all = '' . _("All") . ' '._("To").''. + $chk_all = '' . _("All") . ' '._("To").''. '  '. - '' . _("All") . ' '._("Cc").''. + '' . _("All") . ' '._("Cc").''. '  '. - '' . _("All") . ''; + '' . _("All") . ''; } echo html_tag( 'table', '', 'center', '', 'border="0" width="98%"' ) . html_tag( 'tr', '', '', $color[9] ) . @@ -120,7 +120,7 @@ if ($javascript_on) { } if ($squirrelmail_language == 'ja_JP') { - echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) . + echo html_tag( 'tr', '', '', $tr_bgcolor, 'style="white-space: nowrap;"' ) . html_tag( 'td', ' ' . _("To") . ' ' . @@ -128,12 +128,12 @@ if ($javascript_on) { htmlspecialchars($email) . '" /> ' . _("Cc") . ' ' . ' ' . _("Bcc") . ' ' , - 'center', '', 'width="5%" nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ', 'left', '', 'nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'nowrap' ); + 'center', '', 'width="5%" style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'style="white-space: nowrap;"' ); } else { - echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) . + echo html_tag( 'tr', '', '', $tr_bgcolor, 'style="white-space: nowrap;"' ) . html_tag( 'td', addCheckBox('send_to_search[T'.$line.']', FALSE, $email). ' ' . _("To") . ' ' . @@ -141,14 +141,14 @@ if ($javascript_on) { ' ' . _("Cc") . ' ' . addCheckBox('send_to_search[B'.$line.']', FALSE, $email). ' ' . _("Bcc") . ' ' , - 'center', '', 'width="5%" nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'nowrap' ); + 'center', '', 'width="5%" style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'style="white-space: nowrap;"' ); } if ($includesource) { - echo html_tag( 'td', ' ' . $row['source'] . ' ', 'left', '', 'nowrap' ); + echo html_tag( 'td', ' ' . $row['source'] . ' ', 'left', '', 'style="white-space: nowrap;"' ); } echo "\n"; $line ++; @@ -189,7 +189,7 @@ html_tag( 'table', echo '
' . html_tag( 'table', '', 'center', '', 'border="0"' ) . html_tag( 'tr' ) . - html_tag( 'td', '', 'left', '', 'nowrap valign="middle"' ) . "\n" . + html_tag( 'td', '', 'left', '', 'style="white-space: nowrap;" valign="middle"' ) . "\n" . addForm($PHP_SELF.'?html_addr_search=true', 'post', 'f'). "\n
\n" . ' ' . _("Search for") . "\n"; @@ -293,7 +293,7 @@ else { if ($addrquery == '' || sizeof($res) == 0) { /* printf('
'."\n", $PHP_SELF); */ echo '
'. - addForm('compose.php','POST','k'); + addForm('compose.php','post','k'); addr_insert_hidden(); echo '' . "\n" . '
'; diff --git a/src/addressbook.php b/src/addressbook.php index 09a5a41b..853b01a7 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -320,9 +320,9 @@ if ($showaddrlist) { ' ' , 'center', '', 'valign="top" width="1%"' ); } - echo html_tag( 'td', ' ' . $row['nickname'] . ' ', 'left', '', 'valign="top" width="1%" nowrap' ) . - html_tag( 'td', ' ' . $row['lastname'] . ' ' . $row['firstname'] . ' ', 'left', '', 'valign="top" width="1%" nowrap' ) . - html_tag( 'td', '', 'left', '', 'valign="top" width="1%" nowrap' ) . ' '; + echo html_tag( 'td', ' ' . $row['nickname'] . ' ', 'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . $row['lastname'] . ' ' . $row['firstname'] . ' ', 'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' ) . + html_tag( 'td', '', 'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' ) . ' '; } else { echo html_tag( 'tr', '', '', $tr_bgcolor); if ($abook->backends[$row['backend']]->writeable) { @@ -336,9 +336,9 @@ if ($showaddrlist) { ' ' , 'center', '', 'valign="top" width="1%"' ); } - echo html_tag( 'td', ' ' . $row['nickname'] . ' ', 'left', '', 'valign="top" width="1%" nowrap' ) . - html_tag( 'td', ' ' . $row['name'] . ' ', 'left', '', 'valign="top" width="1%" nowrap' ) . - html_tag( 'td', '', 'left', '', 'valign="top" width="1%" nowrap' ) . ' '; + echo html_tag( 'td', ' ' . $row['nickname'] . ' ', 'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . $row['name'] . ' ', 'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' ) . + html_tag( 'td', '', 'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' ) . ' '; } $email = $abook->full_address($row); echo makeComposeLink('src/compose.php?send_to='.rawurlencode($email), diff --git a/src/folders.php b/src/folders.php index f64c5bbe..9ac8316e 100644 --- a/src/folders.php +++ b/src/folders.php @@ -99,7 +99,7 @@ echo html_tag( 'table', '', 'center', '', 'width="70%" cellpadding="4" cellspaci ) . html_tag( 'tr' ) . html_tag( 'td', '', 'center', $color[0] ) . - addForm('folders_create.php', 'POST', 'cf'). + addForm('folders_create.php', 'post', 'cf'). addInput('folder_name', '', 25). "
\n". _("as a subfolder of"). '
'. "
' . + '
' . _("Select your translator:") . '' . '
"._("To")." | " . @@ -151,15 +151,15 @@ function display_result($res, $includesource = true) { "'" . $email . "');\">"._("Cc")." | " . '"._("Bcc")."", - 'center', '', 'valign="top" width="5%" nowrap' ) . - html_tag( 'td', ' ' . htmlspecialchars($row['name']), 'left', '', 'valign="top" nowrap' ) . + 'center', '', 'valign="top" width="5%" style="white-space: nowrap;"' ) . + html_tag( 'td', ' ' . htmlspecialchars($row['name']), 'left', '', 'valign="top" style="white-space: nowrap;"' ) . html_tag( 'td', ' ' . '" . htmlspecialchars($row['email']) . '' , 'left', '', 'valign="top"' ) . - html_tag( 'td', htmlspecialchars($row['label']), 'left', '', 'valign="top" nowrap' ); + html_tag( 'td', htmlspecialchars($row['label']), 'left', '', 'valign="top" style="white-space: nowrap;"' ); if ($includesource) { - echo html_tag( 'td', ' ' . $row['source'], 'left', '', 'valign="top" nowrap' ); + echo html_tag( 'td', ' ' . $row['source'], 'left', '', 'valign="top" style="white-space: nowrap;"' ); } echo "

'; /* Lastly, display the folder list. */ @@ -1121,4 +1121,4 @@ sqimap_logout($imapConnection); ?>
- \ No newline at end of file + \ No newline at end of file diff --git a/src/options.php b/src/options.php index a25c7c98..68457c1a 100644 --- a/src/options.php +++ b/src/options.php @@ -407,12 +407,10 @@ if ($optpage == SMOPT_PAGE_MAIN) { /* If we are not looking at the main option page, display the page here. */ /*************************************************************************/ } else { - echo addForm('options.php', 'POST', 'f') + echo addForm('options.php', 'post', 'f') . create_optpage_element($optpage) . create_optmode_element(SMOPT_MODE_SUBMIT) - . html_tag( 'table', '', '', '', 'width="100%" cellpadding="2" cellspacing="0" border="0"' ) . "\n" - . html_tag( 'tr' ) . "\n" - . html_tag( 'td', '', 'left' ) . "\n"; + . html_tag( 'table', '', '', '', 'width="100%" cellpadding="2" cellspacing="0" border="0"' ) . "\n"; /* Output the option groups for this page. */ print_option_groups($optpage_data['options']); @@ -457,7 +455,7 @@ if ($optpage == SMOPT_PAGE_MAIN) { /* Spit out a submit button. */ OptionSubmit($submit_name); - echo '
'; + echo '
'; /* If it is not empty, trigger the bottom hook. */ if ($bottom_hook_name != '') { diff --git a/src/options_highlight.php b/src/options_highlight.php index 5822f889..1cb1c7e1 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -163,7 +163,7 @@ if ($mhl_count > 0) { echo html_tag( 'tr', html_tag( 'td', $links, - 'left', $color[4], 'width="20%" nowrap' ) . + 'left', $color[4], 'width="20%" style="white-space: nowrap;"' ) . html_tag( 'td', htmlspecialchars($message_highlight_list[$i]['name']) , 'left' ) . @@ -361,14 +361,14 @@ if ($action == 'edit' || $action == 'add') { else if ($selected_choose == '') $selected_input = TRUE; - echo addForm('options_highlight.php', 'POST', 'f'). + echo addForm('options_highlight.php', 'post', 'f'). addHidden('action', 'save'); if($action == 'edit') { echo addHidden('theid', (isset($theid)?$theid:'')); } echo html_tag( 'table', '', 'center', '', 'width="80%" cellpadding="3" cellspacing="0" border="0"' ) . "\n"; echo html_tag( 'tr', '', '', $color[0] ) . "\n"; - echo html_tag( 'td', '', 'right', '', 'nowrap' ) . "\n"; + echo html_tag( 'td', '', 'right', '', 'style="white-space: nowrap;"' ) . "\n"; echo _("Identifying name") . ":"; echo ' ' . "\n"; echo html_tag( 'td', '', 'left' ) . "\n"; diff --git a/src/options_identities.php b/src/options_identities.php index a8cbbb67..83f6db57 100644 --- a/src/options_identities.php +++ b/src/options_identities.php @@ -300,7 +300,7 @@ if (!empty($_POST)) { function sti_input( $title, $hd, $data, $post, $bg ) { $return_val = html_tag( 'tr', - html_tag( 'td', $title . ':', 'right', '', 'nowrap' ) . + html_tag( 'td', $title . ':', 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '' , 'left' ) , '', $bg ); return ($return_val); @@ -308,7 +308,7 @@ function sti_input( $title, $hd, $data, $post, $bg ) { function sti_textarea( $title, $hd, $data, $post, $bg ) { $return_val = html_tag( 'tr', - html_tag( 'td', $title . ':', 'right', '', 'nowrap' ) . + html_tag( 'td', $title . ':', 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '' , 'left' ) , '', $bg ); return ($return_val); diff --git a/src/right_main.php b/src/right_main.php index ea29fdac..9bfe326d 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -177,7 +177,7 @@ if (isset($aMailbox['FORWARD_SESSION'])) { session_write_close(); sqsession_is_active(); $comp_uri = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox). - '&session='.$aMailbox['FORWARD_SESSION']; + '&session='.$aMailbox['FORWARD_SESSION']; displayPageHeader($color, $mailbox, "comp_in_new('$comp_uri');", false); } else { // save mailboxstate @@ -185,7 +185,7 @@ if (isset($aMailbox['FORWARD_SESSION'])) { session_write_close(); // we have to redirect to the compose page $location = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox). - '&session='.$aMailbox['FORWARD_SESSION']; + '&session='.$aMailbox['FORWARD_SESSION']; header("Location: $location"); exit; } -- 2.25.1