From 5683ca475d5d89dd8eae076ccf680bed256f80ef Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Tue, 19 Jan 1999 08:07:45 +0000 Subject: Majorly changed querying of email addresses. --- query.cgi | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 71 insertions(+), 8 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index 170d84b9d..053511d5d 100755 --- a/query.cgi +++ b/query.cgi @@ -58,7 +58,11 @@ my %type; foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform", "priority", "bug_severity", "product", "reporter", "op_sys", - "component", "version") { + "component", "version", + "email1", "emailtype1", "emailreporter1", + "emailassigned_to1", "emailcc1", + "email2", "emailtype2", "emailreporter2", + "emailassigned_to2", "emailcc2") { $default{$name} = ""; $type{$name} = 0; } @@ -100,8 +104,67 @@ print "Set-Cookie: BUGLIST= Content-type: text/html\n\n"; GetVersionTable(); -my $who = GeneratePeopleInput("assigned_to", $default{"assigned_to"}); -my $reporter = GeneratePeopleInput("reporter", $default{"reporter"}); + +sub GenerateEmailInput { + my ($id) = (@_); + my $defstr = value_quote($default{"email$id"}); + my $deftype = $default{"emailtype$id"}; + if ($deftype eq "") { + $deftype = "substring"; + } + my $assignedto = ($default{"emailassigned_to$id"} eq "1") ? "checked" : ""; + my $reporter = ($default{"emailreporter$id"} eq "1") ? "checked" : ""; + my $cc = ($default{"emailcc$id"} eq "1") ? "checked" : ""; + + if ($assignedto eq "" && $reporter eq "" && $cc eq "") { + if ($id eq "1") { + $assignedto = "checked"; + } else { + $reporter = "checked"; + } + } + + return qq| + +
+ + + + + + + + + + + + +
Email: + matching as + + +Assigned To +
+Reporter +
(Will match any of the selected fields) +CC    +
+
+|; +} + + + + + +my $emailinput1 = GenerateEmailInput(1); +my $emailinput2 = GenerateEmailInput(2); + + # Muck the "legal product" list so that the default one is always first (and @@ -164,12 +227,12 @@ print "

- -
Assigned To:$who +$emailinput1

+$emailinput2

+ + + -

-

Reporter:$reporter -
Changed in the last days. -- cgit v1.2.1