-/* List search results */
-function display_result($res, $includesource = true) {
- global $color;
-
- if(sizeof($res) <= 0) return;
-
- insert_javascript();
-
- $line = 0;
- echo '<TABLE BORDER="0" WIDTH="98%" ALIGN=center>' .
- '<TR BGCOLOR="' . $color[9] . '"><TH ALIGN=left> ' .
- '<TH ALIGN=left> ' . _("Name") .
- '<TH ALIGN=left> ' . _("E-mail") .
- '<TH ALIGN=left> ' . _("Info");
-
- if ($includesource) {
- echo '<TH ALIGN=left WIDTH="10%"> ' . _("Source");
- }
- echo "</TR>\n";
-
- while (list($undef, $row) = each($res)) {
- echo '<tr';
- if ($line % 2) { echo ' bgcolor="' . $color[0] . '"'; }
- echo ' nowrap><td valign=top nowrap align=center width="5%">' .
- '<small><a href="javascript:to_address(' .
- "'" . $row['email'] . "');\">To</A> | " .
- '<a href="javascript:cc_address(' .
- "'" . $row['email'] . "');\">Cc</A> | " .
- '<a href="javascript:bcc_address(' .
- "'" . $row['email'] . "');\">Bcc</A></small>" .
- '<td nowrap valign=top> ' .
- $row['name'] . ' <td nowrap valign=top>' .
- ' <a href="javascript:to_and_close(' .
- "'" . $row['email'] . "');\">" . $row['email'] . '</A> ' .
- '<td valign=top> ' . $row['label'] . ' ';
- if ($includesource) {
- echo '<td nowrap valign=top> ' . $row['source'];
- }