Subversion Repositories VORC

Rev

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

Rev 56 Rev 60
Line 203... Line 203...
203
		$YEAR = param($_);
203
		$YEAR = param($_);
204
		next;
204
		next;
205
	}
205
	}
Line 206... Line 206...
206
 
206
 
207
	$FORM{$_} = param($_);				# Retrieve all of the FORM data submitted
207
	$FORM{$_} = param($_);				# Retrieve all of the FORM data submitted
208
	
208
  
209
	if ((/^filter/) and ($FORM{$_} ne '')) {	# Build a set of filters to apply
209
	if ((/^filter/) and ($FORM{$_} ne '')) {	# Build a set of filters to apply
210
		my ($filter,$field) = split /-/, $_;		
210
		my ($filter,$field) = split /-/, $_;		
211
		$FILTER->{$field} = $FORM{$_} unless notInArray ($field, \@allFields);
211
		$FILTER->{$field} = $FORM{$_} unless notInArray ($field, \@allFields);
212
	}	elsif ($FORM{$_} eq "true")			# Compile list of fields to display
212
	}	elsif ($FORM{$_} eq "true")			# Compile list of fields to display
Line 384... Line 384...
384
print $h->open ('div', { class=>'rTable' });
384
print $h->open ('div', { class=>'rTable' });
Line 385... Line 385...
385
 
385
 
386
my @tmptitlerow;
386
my @tmptitlerow;
387
foreach my $f (@displayFields)	{  # Print the Column headings
387
foreach my $f (@displayFields)	{  # Print the Column headings
388
  if ($f eq $allFields[0]) {
388
  if ($f eq $allFields[0]) {
-
 
389
#    push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.click();"  }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>'event.stopPropagation(); submit();' }), $NAME{$f}, $LVL >= RollerCon::MANAGER ? $h->input ({ type=>"hidden", name=>$f, value=>"true" })." ".$h->input ({ type=>"button", value=>"Add", onClick=>"window.location.href='view_shift.pl'" }) : "" ]);
389
    push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.click();"  }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>'event.stopPropagation(); submit();' }), $NAME{$f}, $LVL >= RollerCon::MANAGER ? $h->input ({ type=>"hidden", name=>$f, value=>"true" })." ".$h->input ({ type=>"button", value=>"Add", onClick=>"window.location.href='view_shift.pl'" }) : "" ]);
390
    push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.click();"  }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>'event.stopPropagation(); submit();' }), $NAME{$f}, $LVL >= RollerCon::MANAGER ? " ".$h->input ({ type=>"button", value=>"Add", onClick=>"event.stopPropagation(); window.location.href='view_shift.pl'" }) : "" ]);
390
  } else {
391
  } else {
391
    if ($FORM{autoload}) {
392
    if ($FORM{autoload}) {
392
      push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.click();" }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>'event.stopPropagation(); submit();' }), $NAME{$f} ]);
393
      push @tmptitlerow, $h->div ({ class=>'rTableHead', onClick=>"Req.$f.click();" }, [ $h->input ({ type=>"checkbox", class=>"accent", name=>$f, value=>"true", checked=>[], onClick=>'event.stopPropagation(); submit();' }), $NAME{$f} ]);
393
    } else {
394
    } else {