Diff for /loncom/interface/portfolio.pm between versions 1.72 and 1.73

version 1.72, 2005/01/18 17:45:06 version 1.73, 2005/02/11 00:18:14
Line 121  sub display_directory { Line 121  sub display_directory {
                 } else {                  } else {
                     $r->print('<td><input type="checkbox" name="selectfile" value="'.$filename.'" />                      $r->print('<td><input type="checkbox" name="selectfile" value="'.$filename.'" />
                         <a href="/adm/portfolio?rename='.$filename.'&amp;currentpath='.$current_path.'">Rename</a></td>                          <a href="/adm/portfolio?rename='.$filename.'&amp;currentpath='.$current_path.'">Rename</a></td>
                         <td><a href="/adm/portfolio?meta='.$filename.'&amp;currentpath='.$current_path.'">Meta</a>                          <td><a href="/adm/portfolio'.$current_path.$filename.'.meta">Meta</a>
                         </td>');                          </td>');
                 }                  }
                 $r->print('<td><img src="'.$iconpath.'unknown.gif"></td>');                  $r->print('<td><img src="'.$iconpath.'unknown.gif"></td>');
Line 499  sub createdir { Line 499  sub createdir {
 sub handler {  sub handler {
     # this handles file management      # this handles file management
     my $r = shift;      my $r = shift;
       my $bodytag;
     my $portfolio_root = &Apache::loncommon::propath($ENV{'user.domain'},      my $portfolio_root = &Apache::loncommon::propath($ENV{'user.domain'},
  $ENV{'user.name'}).   $ENV{'user.name'}).
  '/userfiles/portfolio';   '/userfiles/portfolio';
       &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
                                               ['selectfile','currentpath','meta',
        'currentfile','action','fieldname','mode','rename']);
       if ($ENV{"form.mode"} eq 'selectfile'){
           $bodytag = &Apache::loncommon::bodytag('Portfolio Manager',undef,undef,1);
       } else {
           $bodytag = &Apache::loncommon::bodytag('Portfolio Manager');
       }
   
     &Apache::loncommon::no_cache($r);      &Apache::loncommon::no_cache($r);
     &Apache::loncommon::content_type($r,'text/html');      &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;      $r->send_http_header;
Line 509  sub handler { Line 519  sub handler {
     $r->print('<html><head><title>'.      $r->print('<html><head><title>'.
               &mt('Portfolio Manager').                &mt('Portfolio Manager').
               "</title></head>\n".                "</title></head>\n".
               &Apache::loncommon::bodytag('Portfolio Manager'));                $bodytag);
     $r->rflush();      $r->rflush();
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},  
                                             ['selectfile','currentpath','meta',  
      'currentfile','action','fieldname','mode','rename']);  
  if (($ENV{'form.storeupl'} eq 'Upload') & (!$ENV{'form.uploaddoc.filename'})){   if (($ENV{'form.storeupl'} eq 'Upload') & (!$ENV{'form.uploaddoc.filename'})){
        $r->print('<font color="red"> No file was selected to upload.'.         $r->print('<font color="red"> No file was selected to upload.'.
                'To upload a file, click <strong>Browse...</strong>'.                 'To upload a file, click <strong>Browse...</strong>'.

Removed from v.1.72  
changed lines
  Added in v.1.73


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