From: stekkel Date: Fri, 5 Jul 2002 14:28:33 +0000 (+0000) Subject: readded replaced html tag stuff X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=dcbe1eccb02754d102d78dd79d3c80d207846a62 readded replaced html tag stuff git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3051 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/search.php b/src/search.php index 73f997d0..8d77d2b1 100644 --- a/src/search.php +++ b/src/search.php @@ -218,12 +218,12 @@ elseif ($submit == 'delete') { do_hook('search_before_form'); -echo "
\n". - "\n". - "\n". - "
\n". - "
" . _("Search") . "
\n". - "
\n"; +echo "
\n". + html_tag( 'table', + html_tag( 'tr', "\n" . + html_tag( 'td', '' . _("Search") . '', 'center', $color[0] ) + ) , + '', '', 'width="100%"') . "\n"; /* update the recent and saved searches from the pref files */ $attributes = get_recent($username, $data_dir); @@ -233,39 +233,43 @@ $count_all = 0; /* Saved Search Table */ if ($saved_count > 0) { - echo "
\n" - . "" - . '
Saved Searches
' - . ''; + echo "
\n" + . html_tag( 'table', '', 'center', $color[9], 'width="95%" cellpadding="1" cellspacing="1" border="0"' ) + . html_tag( 'tr', + html_tag( 'td', 'Saved Searches', 'center' ) + ) + . html_tag( 'tr' ) + . html_tag( 'td' ) + . html_tag( 'table', '', 'center', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ); for ($i=0; $i < $saved_count; ++$i) { if ($i % 2) { - echo ""; + echo html_tag( 'tr', '', '', $color[0] ); } else { - echo ""; + echo html_tag( 'tr', '', '', $color[4] ); } - echo "" - . "" - . "" - . ''; + . '' + . ''; } - echo "
".$saved_attributes['saved_folder'][$i]."".$saved_attributes['saved_what'][$i]."".$saved_attributes['saved_where'][$i]."' - . '' . _("edit") . '' + . '>' . _("edit") . '' . ' | ' - . '' . _("search") . '' + . '>' . _("search") . '' . ' | ' - . "" + . "" . _("delete") - . '' - . '
\n"; + echo "\n"; } if ($recent_count > 0) { @@ -473,9 +477,8 @@ if ($search_all == 'all') { /* search one folder option */ else { if (($submit == _("Search") || $submit == 'Search_no_update') && !empty($what)) { - echo '
' . - _("Search Results") . - "
\n"; + echo '
' + . html_tag( 'div', '' . _("Search Results") . '', 'center' ) . "\n"; sqimap_mailbox_select($imapConnection, $mailbox); $msgs = sqimap_search($imapConnection, $where, $what, $mailbox, $color, 0, $search_all, $count_all); printSearchMessages($msgs, $mailbox, count($msgs), $imapConnection); @@ -484,7 +487,8 @@ else { /* must have search terms to search */ if ($submit == _("Search") && empty($what)) { - echo "
Please enter something to search for
\n"; + echo '
' + . html_tag( 'div', 'Please enter something to search for', 'center' ) . "\n"; } $allow_thread_sort = $old_value;