Diff for /loncom/interface/lonsearchcat.pm between versions 1.293 and 1.298

version 1.293, 2008/05/28 21:07:29 version 1.298, 2008/08/08 08:51:39
Line 281  sub handler { Line 281  sub handler {
             $closebutton .="onClick='self.close()'";              $closebutton .="onClick='self.close()'";
         }          }
         $closebutton .= ">";          $closebutton .= ">";
           my $txt_import = &mt('IMPORT');
         $importbutton=<<END;          $importbutton=<<END;
 <input type='button' name='import' value='IMPORT'  <input type='button' name='import' value='$txt_import'
 onClick='javascript:select_group()'>  onClick='javascript:select_group()'>
 END  END
     } else {      } else {
Line 2116  sub copyright_check { Line 2117  sub copyright_check {
         ($env{'user.domain'} ne $resdom)) {          ($env{'user.domain'} ne $resdom)) {
         return 0;          return 0;
     }      }
       # Check for custom rights
       if ($Metadata->{'copyright'} eq 'custom') {
          return &Apache::lonnet::customaccess('bre',$Metadata->{'url'});
       }
     return 1;      return 1;
 }  }
   
Line 2496  END Line 2501  END
         pop(@Lines);          pop(@Lines);
     }      }
     if (@Lines > 2) {      if (@Lines > 2) {
         $pretty_string = join '<br />',(@Lines[0..2],'....<br />');          $pretty_string = join '<br />',(@Lines[0..2],'...<br />');
     }      }
     $r->print(&mt("Search: [_1]",$pretty_string));      $r->print(&mt("Search: [_1]",$pretty_string));
     $r->rflush();      $r->rflush();
Line 2551  END Line 2556  END
     my $server;       my $server; 
     my $status;      my $status;
     my $revise = &revise_button();      my $revise = &revise_button();
     $r->print(<<END);      $r->print(&Apache::loncommon::start_data_table());
 <table>      $r->print(&Apache::loncommon::start_data_table_header_row()
 <tr><th>Status</th><th>Total Matches</th><th>Time Remaining</th><th></th></tr>               .'<th>'.&mt('Status').'</th>'
 <tr>               .'<th>'.&mt('Total Matches').'</th>'
 <td><input type="text" name="status"  value="" size="50" /></td>               .'<th>'.&mt('Time Remaining').'</th>'
 <td><input type="text" name="count"   value="" size="10" /></td>  #             .'<th>&nbsp;</th>'
 <td><input type="text" name="seconds" value="" size="8" /></td>               .&Apache::loncommon::end_data_table_header_row());
 <td>$revise</td>      $r->print(&Apache::loncommon::start_data_table_row()
 </tr>               .'<td><input type="text" name="status"  value="" size="50" readonly="readonly" /></td>'
 </table>               .'<td><input type="text" name="count"   value="" size="10" readonly="readonly" /></td>'
 </form>               .'<td><input type="text" name="seconds" value="" size="8" readonly="readonly" /></td>'
 END  #             ."<td>$revise</td>"
                .&Apache::loncommon::end_data_table_row());
       $r->print(&Apache::loncommon::start_data_table());
       $r->print($revise
                .'</form>');
     $r->rflush();      $r->rflush();
     &reset_timing();      &reset_timing();
     &update_seconds($r);      &update_seconds($r);

Removed from v.1.293  
changed lines
  Added in v.1.298


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>