/[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.14 by dpavlin, Tue Jun 25 15:25:14 2002 UTC revision 1.15 by dpavlin, Tue Jun 25 15:59:51 2002 UTC
# Line 2933  sub vGetSearch { Line 2933  sub vGetSearch {
2933    
2934          # Make sure that we send the header          # Make sure that we send the header
2935          $Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Pretraživanje s više kriterija" : "Jednostavno pretraživanje";          $Value = ($ENV{'PATH_INFO'} eq "/GetExpandedSearch") ? "Pretraživanje s više kriterija" : "Jednostavno pretraživanje";
         my $JavaScript = '<SCRIPT LANGUAGE="JavaScript">  
                 <!-- hide  
                 function SetChecked(val) {  
                         dml=document.Search;  
                         len = dml.elements.length;  
                         var i=0;  
                         for( i=0 ; i<len ; i++) {  
                                 if (dml.elements[i].name==\'Database\') {  
                                         dml.elements[i].checked=val;  
                                 }  
                         }  
                 }  
                 // -->  
                 </SCRIPT>  
                 ';  
2936    
2937          &vSendHTMLHeader($Value, $JavaScript);          &vSendHTMLHeader($Value, $main::JavaScript_SetChecked);
2938    
2939          undef(%Value);          undef(%Value);
2940          $Value{'GetSearch'} = "GetSearch";          $Value{'GetSearch'} = "GetSearch";
# Line 3064  sub vGetSearch { Line 3049  sub vGetSearch {
3049          # Database selection          # Database selection
3050          if ( %main::DatabaseDescriptions ) {          if ( %main::DatabaseDescriptions ) {
3051    
3052                  print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Odaberite bazu koju želite pretraživati:                  print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Odaberite bazu koju želite pretraživati:</TD></TR>
3053                  </td><td>                  <TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=4>
                 <font size=-1>Označi  
                         <a href=\"javascript:SetChecked(1)\">sve</a>,  
                         <a href=\"javascript:SetChecked(0)\">niti jednu</a>.  
                 </font>  
                 </TD></TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=4>  
3054                  ");                  ");
3055                                    
3056                  # Parse out the database names and put them into a                  # Parse out the database names and put them into a
# Line 3971  sub vGetUserSettings { Line 3951  sub vGetUserSettings {
3951    
3952    
3953          # Make sure that we send the header          # Make sure that we send the header
3954          &vSendHTMLHeader("My Settings", undef);          &vSendHTMLHeader("My Settings", $main::JavaScript_SetChecked);
3955          undef(%Value);          undef(%Value);
3956          $Value{'GetUserSettings'} = "GetUserSettings";          $Value{'GetUserSettings'} = "GetUserSettings";
3957          &vSendMenuBar(%Value);          &vSendMenuBar(%Value);
# Line 4009  sub vGetUserSettings { Line 3989  sub vGetUserSettings {
3989          print("<H3> Postavke: </H3>\n");          print("<H3> Postavke: </H3>\n");
3990    
3991          print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n");          print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>\n");
3992          print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetUserSettings\" METHOD=POST>\n");          print("<FORM ACTION=\"$ENV{'SCRIPT_NAME'}/SetUserSettings\" NAME=\"Search\" METHOD=POST>\n");
3993                                    
3994          # Send the buttons          # Send the buttons
3995          print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=RESET VALUE=\"Pobriši polja\"> <INPUT TYPE=SUBMIT VALUE=\"Sačuvaj postavke\"> </TD></TR>\n");          print("<TR><TD ALIGN=RIGHT VALIGN=TOP COLSPAN=2> <INPUT TYPE=RESET VALUE=\"Pobriši polja\"> <INPUT TYPE=SUBMIT VALUE=\"Sačuvaj postavke\"> </TD></TR>\n");
# Line 4071  sub vGetUserSettings { Line 4051  sub vGetUserSettings {
4051    
4052                  print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Odabrane baze: </B> </TD></TR>\n");                  print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> <B> Odabrane baze: </B> </TD></TR>\n");
4053    
4054                  print("<TR><TD ALIGN=LEFT VALIGN=TOP> Označite baze koje uvijek želite pretraživati:</TD> <TD ALIGN=LEFT VALIGN=TOP>\n");                  print("<TR><TD ALIGN=LEFT VALIGN=TOP COLSPAN=2> Označite baze koje uvijek želite pretraživati:</TD></TR><TR><TD ALIGN=CENTER VALIGN=TOP COLSPAN=2>\n");
4055                                    
4056                  # Parse out the database names and put them into a                  # Parse out the database names and put them into a
4057                  # hash table, they should be separated with a '\n'                  # hash table, they should be separated with a '\n'
4058                  if ( defined($SelectedDatabases) && ($SelectedDatabases ne "") ) {                  if ( defined($SelectedDatabases) && ($SelectedDatabases ne "") ) {
4059                          @ItemList = split(",", $SelectedDatabases);                          @ItemList = split(",", $SelectedDatabases);
4060                  }                  }
4061            
4062                  &ShowDatabaseCheckBoxes(@ItemList);                  &ShowDatabaseCheckBoxes(@ItemList);
4063                    
4064                  print("</TD></TR>\n");                  print("</TD></TR>\n");
# Line 4224  sub vSetUserSettings { Line 4204  sub vSetUserSettings {
4204          $Value{'UserName'} = $main::FormData{'UserName'};          $Value{'UserName'} = $main::FormData{'UserName'};
4205          $Value{'EmailAddress'} = $main::FormData{'EmailAddress'};          $Value{'EmailAddress'} = $main::FormData{'EmailAddress'};
4206          $Value{'DefaultSearch'} = $main::FormData{'DefaultSearch'};          $Value{'DefaultSearch'} = $main::FormData{'DefaultSearch'};
4207          $Value{'SelectedDatabases'} = $main::FormData{'SelectedDatabases'};          $Value{'SelectedDatabases'} = $main::FormData{'Database'};
4208          if ( defined($Value{'SelectedDatabases'}) ) {          if ( defined($Value{'SelectedDatabases'}) ) {
4209                  $Value{'SelectedDatabases'} =~ s/\0/,/g;                  $Value{'SelectedDatabases'} =~ s/\0/,/g;
4210          }          }
# Line 7403  sub ShowDatabaseCheckBoxes { Line 7383  sub ShowDatabaseCheckBoxes {
7383          }          }
7384                                    
7385          print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n");          print("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n");
7386            print "<tr><td colspan=3 align=\"center\">
7387                    <font size=-1>Označi
7388                            <a href=\"javascript:SetChecked(1)\">sve</a>,
7389                            <a href=\"javascript:SetChecked(0)\">niti jednu</a>.
7390                    </font>
7391                    </td></tr>";
7392    
7393          my @html_database;          my @html_database;
7394    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.26