/[webpac2]/trunk/vhost/webpac2.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/vhost/webpac2.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1227 by dpavlin, Thu Jun 11 18:55:53 2009 UTC revision 1228 by dpavlin, Thu Jun 11 18:58:28 2009 UTC
# Line 132  my @attr = @{ $attr_labels->{'-values'} Line 132  my @attr = @{ $attr_labels->{'-values'}
132  warn dump( $attr_labels, $attr_operators );  warn dump( $attr_labels, $attr_operators );
133    
134  my $only_input;  my $only_input;
135    my $inputs_available = 0;
136    
137  foreach ( @{ $db->{input} } ) {  foreach ( @{ $db->{input} } ) {
138          my $input = $_->{name} || die "no name in ",dump( $_ );          my $input = $_->{name} || die "no name in ",dump( $_ );
139          if ( ! $only_input->{'-labels'}->{$input} ) {          if ( ! $only_input->{'-labels'}->{$input} ) {
140                  push @{ $only_input->{'-values'} }, $input;                  push @{ $only_input->{'-values'} }, $input;
141                          $only_input->{'-labels'}->{$input} = $_->{description} || $input;                          $only_input->{'-labels'}->{$input} = $_->{description} || $input;
142                    $inputs_available++;
143          }          }
144  }  }
145    
# Line 163  sub search_form { Line 165  sub search_form {
165                  qq|<input type=hidden name=current_page value=1 >|,                  qq|<input type=hidden name=current_page value=1 >|,
166                  checkbox( -name => 'debug', -default => 0 ), # FIXME hidden?                  checkbox( -name => 'debug', -default => 0 ), # FIXME hidden?
167                  qq|<div id=inputs>|,                  qq|<div id=inputs>|,
168                  h2( 'Select input' ),                  $inputs_available > 1 ?
169                    h2( 'Select input' ) .
170                  checkbox_group(                  checkbox_group(
171                          -name => 'only_input',                          -name => 'only_input',
172                          %$only_input,                          %$only_input,
173                          -linebreak=> 'true',                          -linebreak=> 'true',
174                  ),                  ) : '',
175                  qq|</div>|,                  qq|</div>|,
176                  end_form,                  end_form,
177          ;          ;

Legend:
Removed from v.1227  
changed lines
  Added in v.1228

  ViewVC Help
Powered by ViewVC 1.1.26