/[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 1249 by dpavlin, Fri Jul 24 09:29:03 2009 UTC revision 1250 by dpavlin, Fri Jul 24 19:34:26 2009 UTC
# Line 12  use Data::Dump qw/dump/; Line 12  use Data::Dump qw/dump/;
12  use SWISH::API;  use SWISH::API;
13  use JSON;  use JSON;
14  use Text::Unaccent::PurePerl qw/unac_string/;  use Text::Unaccent::PurePerl qw/unac_string/;
15    use HTML::FillInForm::Lite;
16    
17  my $range_around = 5;  my $range_around = 5;
18  my @entries_per_page = ( 30, 50, 100, 500 );  my @entries_per_page = ( 30, 50, 100, 500 );
# Line 152  push @style, "../../$path/$path.css" if Line 153  push @style, "../../$path/$path.css" if
153  dump_yaml( 'style', \@style );  dump_yaml( 'style', \@style );
154    
155  sub search_form {  sub search_form {
156    
157            my $form_html = "$dir/$path/$path-search.html";
158            if ( -e $form_html ) {
159                    my $html = read_file( $form_html );
160                    my $q = CGI->new();
161                    my $h = HTML::FillInForm::Lite->new();
162                    return $h->fill(\$html, $q);
163            }
164    
165          qq|<a name="form"></a>|,          qq|<a name="form"></a>|,
166          start_form( -action => self_url( query => 0 ) ),          start_form( -action => self_url( query => 0 ) ),
167                  checkbox_group(                  checkbox_group(

Legend:
Removed from v.1249  
changed lines
  Added in v.1250

  ViewVC Help
Powered by ViewVC 1.1.26