- echo "<BR><B>Recent Searches</B>\n".
- "<TABLE WIDTH=\"95%\" CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"$color[0]\">\n";
- for ($i=0;$i<$recent_count;$i++) {
- if (!empty($what_array[$i])) {
- if ($folder_array[$i] == "") {
- $folder_array[$i] = "INBOX";
- }
- echo "<TR><TD WIDTH=35%>$folder_array[$i]</TD>\n".
- "<TD ALIGN=LEFT>$what_array[$i]</TD>\n".
- "<TD ALIGN=RIGHT>$where_array[$i] ".
- "<A HREF=search.php?".
- "count=$i&submit=save".
- ">save</A>\n".
- " | <A HREF=search.php?".
- "mailbox=", urlencode($folder_array[$i]), "&".
- "what=", urlencode($what_array[$i]), "&".
- "where=", urlencode($where_array[$i]), "&".
- "submit=Search_no_update>search</A>\n".
- " | <A HREF=search.php?count=$i&submit=forget>forget</A>".
- " </TD></TR>\n";
+ echo "<br>\n"
+ . html_tag( 'table', '', 'center', $color[9], 'width="95%" cellpadding="1" cellspacing="1" border="0"' )
+ . html_tag( 'tr',
+ html_tag( 'td', '<b>' . _("Recent Searches") . '</b>', 'center' )
+ )
+ . html_tag( 'tr' )
+ . html_tag( 'td' )
+ . html_tag( 'table', '', 'center', '', 'width="100%" cellpadding="0" cellspacing="0" border="0"' );
+ for ($i=1; $i <= $recent_count; ++$i) {
+ if (isset($attributes['search_folder'][$i])) {
+ if ($attributes['search_folder'][$i] == "") {
+ $attributes['search_folder'][$i] = "INBOX";
+ }
+ }
+ if ($i % 2) {
+ echo html_tag( 'tr', '', '', $color[0] );
+ } else {
+ echo html_tag( 'tr', '', '', $color[0] );
+ }
+ if (isset($attributes['search_what'][$i]) &&
+ !empty($attributes['search_what'][$i])) {
+ echo html_tag( 'td', $attributes['search_folder'][$i], 'left', '', 'width="35%"' )
+ . html_tag( 'td', $attributes['search_what'][$i], 'left' )
+ . html_tag( 'td', $attributes['search_where'][$i], 'center' )
+ . html_tag( 'td', '', 'right' )
+ . "<a href=search.php?count=$i&submit=save>"
+ . _("save")
+ . '</a>'
+ . ' | '
+ . '<a href=search.php'
+ . '?mailbox=' . urlencode($attributes['search_folder'][$i])
+ . '&what=' . urlencode($attributes['search_what'][$i])
+ . '&where=' . urlencode($attributes['search_where'][$i])
+ . '&submit=Search_no_update'
+ . '>' . _("search") . '</a>'
+ . ' | '
+ . "<a href=search.php?count=$i&submit=forget>"
+ . _("forget")
+ . '</a>'
+ . '</td></tr>';