Subversion Repositories ORC

Rev

Rev 25 | Rev 33 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25 Rev 29
Line 99... Line 99...
99
sub fetchDerbyNameWithRCid {
99
sub fetchDerbyNameWithRCid {
100
  my $DEPT = shift // "";
100
  my $DEPT = shift // "";
101
	my $optionList = "";
101
	my $optionList = "";
Line 102... Line 102...
102
	
102
	
103
	my $cathan;
103
	my $cathan;
104
	if (!$DEPT) {
104
	if (!$DEPT or $DEPT eq "CMP") {
105
	  $cathan = $internalDBH->prepare("select RCid, derby_name from official where level > 0 order by derby_name");
105
	  $cathan = $internalDBH->prepare("select RCid, derby_name from official where level > 0 order by derby_name");
106
  	$cathan->execute();
106
  	$cathan->execute();
107
	} else {
107
	} else {
108
    $cathan = $internalDBH->prepare("select RCid, derby_name from official where level > 0 and (department like ? and department not like ?) order by derby_name");
108
    $cathan = $internalDBH->prepare("select RCid, derby_name from official where level > 0 and (department like ? and department not like ?) order by derby_name");
Line 179... Line 179...
179
		else
179
		else
180
		{
180
		{
181
			my $thing = "filter-${colName}";
181
			my $thing = "filter-${colName}";
182
			return "<INPUT type=text name=$thing value=\"$FORM{$thing}\" size=15 $onChange>";
182
			return "<INPUT type=text name=$thing value=\"$FORM{$thing}\" size=15 $onChange>";
183
		}
183
		}
-
 
184
	} elsif ($colFilterTypeHash{$colName} eq 'boolean') {
-
 
185
		if (defined $filter)
-
 
186
		{
-
 
187
			return "$colName = $filter";
-
 
188
		}
-
 
189
		else
-
 
190
		{
-
 
191
			my $thing = "filter-${colName}";
-
 
192
			my $Options = "<OPTION></OPTION><OPTION>True</OPTION><OPTION>False</OPTION>";
-
 
193
	
-
 
194
			$Options =~ s/>($FORM{$thing})/ selected>$1/;
-
 
195
			return "<SELECT name=filter-${colName} $onChange>$Options</SELECT>";
-
 
196
		}
184
	} elsif ($colFilterTypeHash{$colName} eq 'ERROR') {
197
	} elsif ($colFilterTypeHash{$colName} eq 'ERROR') {
185
		return "<center><strong><font color=red>ERROR!</font>";
198
		return "<center><strong><font color=red>ERROR!</font>";
186
	} elsif ($colFilterTypeHash{$colName} eq 'none') {
199
	} elsif ($colFilterTypeHash{$colName} eq 'none') {
187
		return;
200
		return;
188
	}
201
	}