Diff for /loncom/interface/portfolio.pm between versions 1.212.2.3 and 1.212.2.4

version 1.212.2.3, 2010/02/02 07:09:41 version 1.212.2.4, 2010/02/12 19:19:21
Line 88  sub display_common { Line 88  sub display_common {
   
         my $iconpath= $r->dir_config('lonIconsURL') . "/";          my $iconpath= $r->dir_config('lonIconsURL') . "/";
         my %lt=&Apache::lonlocal::texthash(          my %lt=&Apache::lonlocal::texthash(
  'upload' => 'Upload',                     'upload'          => 'Upload',
  'upload_label' => 'Upload file to current directory',                     'upload_label'    => 'Upload file to current directory',
  'createdir' => 'Create Subdirectory',                     'createdir'       => 'Create Subdirectory',
  'createdir_label' =>                      'createdir_label' => 'Create subdirectory in current directory',
  'Create subdirectory in current directory',                     'parse'           => 'Upload embedded images/multimedia/css/linked files if HTML file',
                                          'parse' => 'If HTML file, upload embedded images/multimedia/css/linked files'                 );
                                             );  
         my $escuri = &HTML::Entities::encode($r->uri,'&<>"');          my $escuri = &HTML::Entities::encode($r->uri,'&<>"');
  my $help_fileupload = &Apache::loncommon::help_open_topic('Portfolio AddFiles');   my $help_fileupload = &Apache::loncommon::help_open_topic('Portfolio AddFiles');
  my $help_createdir = &Apache::loncommon::help_open_topic('Portfolio CreateDirectory');   my $help_createdir = &Apache::loncommon::help_open_topic('Portfolio CreateDirectory');
Line 105  sub display_common { Line 105  sub display_common {
             $parse_check = <<"END";              $parse_check = <<"END";
         <br />          <br />
         <span class="LC_nobreak">          <span class="LC_nobreak">
          <label>$lt{'parse'}           <label>
          <input type="checkbox" name="parserflag" checked="checked" />            <input type="checkbox" name="parserflag" checked="checked" />
             $lt{'parse'}
          </label>           </label>
         </span>          </span>
 END  END
Line 117  END Line 118  END
         $r->print('<div class="LC_left_float">'          $r->print('<div class="LC_left_float">'
                  .'<form method="post" enctype="multipart/form-data" action="'.$escuri.'">'                   .'<form method="post" enctype="multipart/form-data" action="'.$escuri.'">'
                  .'<fieldset>'                   .'<fieldset>'
                  .'<legend>'.$lt{'upload_label'}.'</legend>'                   .'<legend><b>'.$lt{'upload_label'}.'</b></legend>'
                  .$groupitem                    .$groupitem 
                  .'<input name="uploaddoc" type="file" />'                   .'<input name="uploaddoc" type="file" />'
                  .'<input type="hidden" name="currentpath" value="'.$current_path.'" />'                   .'<input type="hidden" name="currentpath" value="'.$current_path.'" />'
Line 135  END Line 136  END
         $r->print('<div class="LC_left_float">'          $r->print('<div class="LC_left_float">'
                  .'<form method="post" action="'.$escuri.'">'                   .'<form method="post" action="'.$escuri.'">'
                  .'<fieldset>'                   .'<fieldset>'
                  .'<legend>'.$lt{'createdir_label'}.'</legend>'                   .'<legend><b>'.$lt{'createdir_label'}.'</b></legend>'
                  .'<input name="newdir" type="text" />'.$groupitem                   .'<input name="newdir" type="text" />'.$groupitem
                  .'<input type="hidden" name="currentpath" value="'.$current_path.'" />'                   .'<input type="hidden" name="currentpath" value="'.$current_path.'" />'
                  .'<input type="hidden" name="action" value="'.$env{"form.action"}.'" />'                   .'<input type="hidden" name="action" value="'.$env{"form.action"}.'" />'

Removed from v.1.212.2.3  
changed lines
  Added in v.1.212.2.4


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