Diff for /loncom/interface/lonaboutme.pm between versions 1.22 and 1.26

version 1.22, 2004/05/03 19:04:49 version 1.26, 2004/05/12 19:00:20
Line 107  ENDDOCUMENT Line 107  ENDDOCUMENT
   
        $allowed=(($ENV{'user.name'} eq $cnum) &&          $allowed=(($ENV{'user.name'} eq $cnum) && 
  ($ENV{'user.domain'} eq $cdom));   ($ENV{'user.domain'} eq $cdom));
        if ($forcestudent) { $allowed=0; }         if ($forcestudent or $target eq 'tex') { $allowed=0; }
     
        if ($allowed) {         if ($allowed) {
    if ($target ne 'tex') {     if ($target ne 'tex') {
Line 153  ENDDOCUMENT Line 153  ENDDOCUMENT
        if ($syllabus{'uploaded.photourl'}) {         if ($syllabus{'uploaded.photourl'}) {
    &Apache::lonnet::allowuploaded('/adm/aboutme',     &Apache::lonnet::allowuploaded('/adm/aboutme',
   $syllabus{'uploaded.photourl'});    $syllabus{'uploaded.photourl'});
    $r->print('<img src="'.$syllabus{'uploaded.photourl'}.     if ($target ne 'tex') {
              '" align="right" />');         $r->print('<img src="'.$syllabus{'uploaded.photourl'}.
    '" align="right" />');
      } else {
          $r->print(&Apache::lonxml::xmlparse($r,'tex','<img src="'.$syllabus{'uploaded.photourl'}.
    '" align="right" />'));
      }
        }         }
        if ($allowed & $target ne 'tex') {         if ($allowed) {
            $r->print(             $r->print(
  '<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>'.
Line 176  ENDDOCUMENT Line 181  ENDDOCUMENT
                             $message.'</blockquote>');                              $message.'</blockquote>');
       } else {        } else {
      $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.       $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.
        &Apache::lonxml::xmlparse($r,' ',$message).'\\\\');         &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\');
       }        }
               if ($allowed and $target ne 'tex') {                if ($allowed) {
                  $r->print('<br /><textarea cols="80" rows="6" name="'.$_.'">'.                   $r->print('<br /><textarea cols="80" rows="6" name="'.$_.'">'.
    $syllabus{$_}.     $syllabus{$_}.
            '</textarea><input type="submit" name="storesyl" value="'.             '</textarea><input type="submit" name="storesyl" value="'.
Line 186  ENDDOCUMENT Line 191  ENDDOCUMENT
       }        }
   }    }
        }         }
        if ($allowed and $target ne 'tex') {         if ($allowed) {
    $r->print('</form>');     $r->print('</form>');
        }         }
        if ($target ne 'tex') {$r->print('</p>');} else {$r->print('\\\\');}         if ($target ne 'tex') {$r->print('</p>');} else {$r->print('\\\\');}
Line 205  ENDDOCUMENT Line 210  ENDDOCUMENT
             $r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom));              $r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom));
     } else {      } else {
  $r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\');   $r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\');
  my $mess=&Apache::lonmsg::disfacetoface($r,$cnum,$cdom);   &Apache::lonmsg::disfacetoface($r,$cnum,$cdom);
  #    $r->print(' '.&Apache::lonxml::xmlparse($r,' ',$mess).' ');  
  $r->print(' >>>>'.$mess.'<<<< ');  
     }      }
         }          }
     }      }

Removed from v.1.22  
changed lines
  Added in v.1.26


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