Diff for /loncom/interface/lonaboutme.pm between versions 1.82 and 1.86

version 1.82, 2008/12/10 21:46:58 version 1.86, 2008/12/16 09:22:14
Line 167  sub handler { Line 167  sub handler {
   
     if ($is_course) {      if ($is_course) {
         if ($target ne 'tex') {          if ($target ne 'tex') {
  my @brcrum = [{href=>"/adm/navmaps",text=>"Navigate Course Contents"},      my $brcrum = [{href=>"/adm/navmaps",text=>"Navigate Course Contents"},
  {href=>"/adm/aboutme",text=>"Course Information"}];    {href=>"/adm/aboutme",text=>"Course Information"}];
             my $start_page =              my $start_page =
                 &Apache::loncommon::start_page(                  &Apache::loncommon::start_page(
                     "Course Information",                      "Course Information",
Line 176  sub handler { Line 176  sub handler {
                      {'function' => $env{'forcestudent'},                       {'function' => $env{'forcestudent'},
                       'domain'   => $cdom,                        'domain'   => $cdom,
                       'force_register' => $env{'forceregister'},                        'force_register' => $env{'forceregister'},
    bread_crumbs => @brcrum});                        'bread_crumbs' => $brcrum});
             $r->print($start_page);              $r->print($start_page);
             $r->print('<h2>'.&mt('Group files').'</h2>');              $r->print('<h2>'.&mt('Group files').'</h2>');
             &print_portfiles_link($r,$is_course);              &print_portfiles_link($r,$is_course);
Line 293  my $image; Line 293  my $image;
        }         }
        if ($allowed) {         if ($allowed) {
            $r->print(             $r->print(
  '<form method="post">  
                <input type="submit" name="delupl" value="'.&mt('Delete Photo').'" />  
           </form>'.  
  '<form method="post" enctype="multipart/form-data">'.   '<form method="post" enctype="multipart/form-data">'.
          '<h3>'.&mt('Upload a Photo').'</h3>'.           '<h3>'.&mt('Upload a Photo').'</h3>'.
          '<input type="file" name="uploaddoc" size="50" />'.           '<input type="file" name="uploaddoc" size="50" />'.
          '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.           '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.
          '<input type="hidden" name="popup" value="'.$env{'form.popup'}.'" />'.           '<input type="hidden" name="popup" value="'.$env{'form.popup'}.'" />'.
  '</form><form method="post">');   '</form><form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" /> </form>
   ');
   
        }         }
   
    if($allowed) {
    $r->print('<form method="post">');
    }
   
  &Apache::lontemplate::start_columnSection($r);   &Apache::lontemplate::start_columnSection($r);
  &Apache::lontemplate::print_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus);   &Apache::lontemplate::print_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus);
        if($target ne 'tex')         if($target ne 'tex')
Line 782  sub aboutme_access { Line 785  sub aboutme_access {
         $cdom = $coursehash{'domain'};          $cdom = $coursehash{'domain'};
         $cnum = $coursehash{'cnum'};          $cnum = $coursehash{'cnum'};
     }      }
     if ((&allowed('srm',$privcheck)) || (&allowed('dff',$privcheck))) {      if ((&Apache::lonnet::allowed('srm',$privcheck)) || 
           (&Apache::lonnet::allowed('dff',$privcheck))) {
         if (&in_course($uname,$udom,$cnum,$cdom)) {          if (&in_course($uname,$udom,$cnum,$cdom)) {
             return 1;              return 1;
         }          }

Removed from v.1.82  
changed lines
  Added in v.1.86


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