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

version 1.81, 2008/12/10 15:58:36 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"},
     {href=>"/adm/aboutme",text=>"Course Information"}];
             my $start_page =              my $start_page =
                 &Apache::loncommon::start_page(                  &Apache::loncommon::start_page(
                     "Course Information",                      "Course Information",
                      undef,                       undef,
                      {'function' => $env{'forcestudent'},                       {'function' => $env{'forcestudent'},
                       'domain'   => $cdom,                        'domain'   => $cdom,
                       'force_register' => $env{'forceregister'},});                        'force_register' => $env{'forceregister'},
                         '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 201  sub handler { Line 204  sub handler {
         if ($env{'form.popup'}) {          if ($env{'form.popup'}) {
             $args->{'no_nav_bar'} = 1;              $args->{'no_nav_bar'} = 1;
         }          }
    $args->{'bread_crumbs'} = [{href=>"/adm/fhwfdev/$cnum/aboutme",text=>"Personal Information"}];
  my $start_page =    my $start_page = 
     &Apache::loncommon::start_page("Personal Information",$rss_link,$args);      &Apache::loncommon::start_page("Personal Information",$rss_link,$args);
  $r->print($start_page);   $r->print($start_page);
Line 289  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 778  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.81  
changed lines
  Added in v.1.86


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