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

version 1.22, 2004/05/03 19:04:49 version 1.24, 2004/05/04 14:34:25
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 156  ENDDOCUMENT Line 156  ENDDOCUMENT
    $r->print('<img src="'.$syllabus{'uploaded.photourl'}.     $r->print('<img src="'.$syllabus{'uploaded.photourl'}.
              '" align="right" />');               '" 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 178  ENDDOCUMENT Line 178  ENDDOCUMENT
      $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.       $r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'.
        &Apache::lonxml::xmlparse($r,' ',$message).'\\\\');         &Apache::lonxml::xmlparse($r,' ',$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 186  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 205  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.24


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