/[webpac-proto]/search/Search.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 /search/Search.cgi

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

revision 1.16 by dpavlin, Tue Jun 25 16:28:40 2002 UTC revision 1.17 by dpavlin, Tue Jun 25 16:47:58 2002 UTC
# Line 2992  sub vGetSearch { Line 2992  sub vGetSearch {
2992    
2993          # Send the standard fields          # Send the standard fields
2994          $Value = defined($main::FormData{'Any'}) ? "VALUE='$main::FormData{'Any'}'" : "";          $Value = defined($main::FormData{'Any'}) ? "VALUE='$main::FormData{'Any'}'" : "";
2995          print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Pretraži u bilo kojem polju: </TD> <TD ALIGN=LEFT VALIGN=TOP> <INPUT NAME=\"Any\" TYPE=TEXT $Value SIZE=45> </TD></TR>\n");          print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Tražene riječi neka budu u bilo kojem polju: </TD> <TD ALIGN=LEFT VALIGN=TOP> <INPUT NAME=\"Any\" TYPE=TEXT $Value SIZE=45> </TD></TR>\n");
2996                    
2997                    
2998          my $nr_fields = $main::NormalSearchDropdowns;          my $nr_fields = $main::NormalSearchDropdowns;
# Line 3005  sub vGetSearch { Line 3005  sub vGetSearch {
3005    
3006          for (my $field=1; $field<= $nr_fields; $field++) {          for (my $field=1; $field<= $nr_fields; $field++) {
3007    
3008                  print("<TR><TD ALIGN=LEFT VALIGN=TOP>");                  print "<TR>";
3009                  if ($field == 1 ) {                  if ($field == 1 ) {
3010                          print ("Pretraži u određenom polju:");                          print "<TD ALIGN=LEFT VALIGN=TOP ROWSPAN=$nr_fields>";
3011                            print "Tražene riječi neka budu u odabranom polju:";
3012                            print "</td>";
3013                  }                  }
3014                  print ("</TD><TD ALIGN=RIGHT VALIGN=TOP>");                  print ("<TD ALIGN=RIGHT VALIGN=TOP>");
3015    
3016                  print ("<SELECT NAME=\"FieldName${field}\">");                  print ("<SELECT NAME=\"FieldName${field}\">");
3017                  for (my $i=0; $i<=$#SearchFieldNames; $i++) {                  for (my $i=0; $i<=$#SearchFieldNames; $i++) {
# Line 3027  sub vGetSearch { Line 3029  sub vGetSearch {
3029                  if (defined($main::FormData{"FieldContent${field}"})) {                  if (defined($main::FormData{"FieldContent${field}"})) {
3030                          $Value = "VALUE='".$main::FormData{"FieldContent${field}"}."'";                          $Value = "VALUE='".$main::FormData{"FieldContent${field}"}."'";
3031                  }                  }
3032                  print("</SELECT></TD><TD ALIGN=LEFT><INPUT NAME=\"FieldContent${field}\" TYPE=TEXT $Value SIZE=45> </TD></TR>\n");                  print("</SELECT></TD><TD ALIGN=LEFT VALIGN=TOP><INPUT NAME=\"FieldContent${field}\" TYPE=TEXT $Value SIZE=45> </TD></TR>\n");
3033          }          }
3034    
3035    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.26