version 1.127, 2009/04/21 17:58:17
|
version 1.128, 2009/05/11 13:34:10
|
Line 95 sub handler {
|
Line 95 sub handler {
|
return OK if $r->header_only; |
return OK if $r->header_only; |
my $target=$env{'form.grade_target'}; |
my $target=$env{'form.grade_target'}; |
# ------------------------------------------------------------ Print the screen |
# ------------------------------------------------------------ Print the screen |
if ($target eq 'tex') { |
if ($target eq 'tex') { |
$r->print(&Apache::lonprintout::print_latex_header($env{'form.latex_type'})); |
$r->print(&Apache::lonprintout::print_latex_header($env{'form.latex_type'})); |
} |
} |
my (undef,undef,$cdom,$cnum,undef,$action)=split(/\//,$r->uri); |
my (undef,undef,$cdom,$cnum,undef,$action)=split(/\//,$r->uri); |
Line 217 sub handler {
|
Line 217 sub handler {
|
$args->{'bread_crumbs'} = [{href=>"/adm/fhwfdev/$cnum/aboutme",text=>"Personal Information Page"}]; |
$args->{'bread_crumbs'} = [{href=>"/adm/fhwfdev/$cnum/aboutme",text=>"Personal Information Page"}]; |
my $start_page = &Apache::loncommon::start_page("Personal Data",$rss_link,$args); |
my $start_page = &Apache::loncommon::start_page("Personal Data",$rss_link,$args); |
$r->print($start_page); |
$r->print($start_page); |
|
|
#Print Privacy Note |
#Print Privacy Note |
if ($allowed) { |
if ($allowed) { |
$r->print('<div class="LC_info">' |
$r->print('<div class="LC_info">' |
Line 226 sub handler {
|
Line 226 sub handler {
|
.'</div>' |
.'</div>' |
); |
); |
} |
} |
|
|
#Print last modified |
#Print last modified |
|
|
my $lastmod; |
my $lastmod; |
Line 246 sub handler {
|
Line 246 sub handler {
|
} |
} |
|
|
#----------------Print Functions |
#----------------Print Functions |
if ($target ne 'tex'){ |
if ($target ne 'tex') { |
$r->print(&Apache::lontemplate::start_functionslist()); |
$r->print(&Apache::lontemplate::start_functionslist()); |
if($allowed){ |
if ($allowed) { |
my $query_string = &build_query_string({'forcestudent' => '1','popup' => $env{'form.popup'}}); |
my $query_string = &build_query_string({'forcestudent' => '1','popup' => $env{'form.popup'}}); |
$r->print(&Apache::lontemplate::item_functionslist( |
$r->print(&Apache::lontemplate::item_functionslist( |
'<a href="'.$r->uri.$query_string.'">'.&mt('Show Public View').'</a>' |
'<a href="'.$r->uri.$query_string.'">'.&mt('Show Public View').'</a>' |
Line 377 my $image;
|
Line 377 my $image;
|
&Apache::lontemplate::print_aboutme_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus); |
&Apache::lontemplate::print_aboutme_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus); |
#End Print Content |
#End Print Content |
|
|
if($target ne 'tex')#Begin Print RSS and portfiles |
if($target ne 'tex') { #Begin Print RSS and portfiles |
{ |
|
&print_portfiles_link($r,$is_course); |
&print_portfiles_link($r,$is_course); |
if(&Apache::lonrss::advertisefeeds($cnum,$cdom) ne ''){ |
if (&Apache::lonrss::advertisefeeds($cnum,$cdom) ne '') { |
&Apache::lontemplate::print_start_template($r,'RSS Feeds and Blogs','LC_ContentBoxSpecial'); |
&Apache::lontemplate::print_start_template($r,'RSS Feeds and Blogs','LC_ContentBoxSpecial'); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom)); |
$r->print(&Apache::lonrss::advertisefeeds($cnum,$cdom)); |
&Apache::lontemplate::print_end_template($r); |
&Apache::lontemplate::print_end_template($r); |
Line 397 my $image;
|
Line 396 my $image;
|
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
if ($target ne 'tex') {$r->print('<br />');} else {$r->print('\\\\');} |
if ($target ne 'tex') {$r->print('<br />');} else {$r->print('\\\\');} |
} else { |
} else { |
$r->print('<p>'.&mt('No personal information provided').'.</p>'); |
$r->print('<p>'.&mt('No personal information provided').'.</p>'); |
} |
} |
|
|
if ($env{'request.course.id'} |
if ($env{'request.course.id'} |
&& &Apache::lonnet::allowed('srm',$env{'request.course.id'}) |
&& &Apache::lonnet::allowed('srm',$env{'request.course.id'}) |
Line 418 my $image;
|
Line 417 my $image;
|
$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::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
} |
} |
} |
} |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('</div>'); |
$r->print('</div>'); |
$r->print('</div>'); |
$r->print('</div>'); |