version 1.26, 2004/05/12 19:00:20
|
version 1.31, 2004/08/26 21:42:40
|
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'}); |
if ($target ne 'tex') { |
my $image='<img src="'.$syllabus{'uploaded.photourl'}.'" |
$r->print('<img src="'.$syllabus{'uploaded.photourl'}. |
align="right" />'; |
'" align="right" />'); |
if ($target eq 'tex') { |
} else { |
$image=&Apache::lonxml::xmlparse($r,'tex',$image); |
$r->print(&Apache::lonxml::xmlparse($r,'tex','<img src="'.$syllabus{'uploaded.photourl'}. |
|
'" align="right" />')); |
|
} |
} |
|
$r->print($image); |
} |
} |
if ($allowed) { |
if ($allowed) { |
$r->print( |
$r->print( |
Line 175 ENDDOCUMENT
|
Line 174 ENDDOCUMENT
|
$message=~s/\n/\<br \/\>/g; |
$message=~s/\n/\<br \/\>/g; |
$message |
$message |
=~s/(http\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g; |
=~s/(http\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g; |
|
if ($allowed) { |
|
$message=&Apache::lonspeller::markeduptext($message); |
|
} |
$message=&Apache::lontexconvert::msgtexconverted($message); |
$message=&Apache::lontexconvert::msgtexconverted($message); |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<h3>'.$syllabusfields{$_}.'</h3><blockquote>'. |
$r->print('<h3>'.$syllabusfields{$_}.'</h3><blockquote>'. |
Line 201 ENDDOCUMENT
|
Line 203 ENDDOCUMENT
|
if ($ENV{'request.course.id'}) { |
if ($ENV{'request.course.id'}) { |
if (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) { |
if (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
|
$r->print('<a name="coursecomment" />'); |
$r->print('<hr /><h3>'. |
$r->print('<hr /><h3>'. |
&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'</h3>'. |
&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'</h3>'. |
&mt('Shared by course faculty and staff'). |
&mt('Shared by course faculty and staff'). |
&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message"). |
&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message"). |
'<br />'); |
'<br />'); |
&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); |
$r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom)); |
$r->print('<hr />'); |
|
if (&Apache::lonnet::allowed('vsa', |
|
$ENV{'request.course.id'}) || |
|
&Apache::lonnet::allowed('vsa', |
|
$ENV{'request.course.id'}.'/'. |
|
$ENV{'request.course.sec'})) { |
|
$r->print(&Apache::loncommon::track_student_link |
|
('View recent activity by this student', |
|
$cnum,$cdom).(' 'x2)); |
|
} |
|
$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').'\\\\\\\\'); |
&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); |