version 1.125, 2009/04/15 10:49:30
|
version 1.128, 2009/05/11 13:34:10
|
Line 215 sub handler {
|
Line 215 sub handler {
|
$args->{'no_nav_bar'} = 1; |
$args->{'no_nav_bar'} = 1; |
} |
} |
$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 = |
my $start_page = &Apache::loncommon::start_page("Personal Data",$rss_link,$args); |
&Apache::loncommon::start_page("Personal Data",$rss_link,$args); |
|
$r->print($start_page); |
$r->print($start_page); |
|
|
} |
#Print Privacy Note |
|
if ($allowed) { |
#Print Privacy Note |
$r->print('<div class="LC_info">' |
if ($allowed) { |
|
$r->print('<div class="LC_info">' |
|
.'<b>'.&mt('Privacy Note:').'</b> ' |
.'<b>'.&mt('Privacy Note:').'</b> ' |
.&mt('The information you submit can be viewed by anybody who is logged into LON-CAPA. Do not provide information that you are not ready to share publicly.') |
.&mt('The information you submit can be viewed by anybody who is logged into LON-CAPA. Do not provide information that you are not ready to share publicly.') |
.'</div>' |
.'</div>' |
Line 233 sub handler {
|
Line 230 sub handler {
|
#Print last modified |
#Print last modified |
|
|
my $lastmod; |
my $lastmod; |
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { |
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { |
$lastmod=$syllabus{'uploaded.lastmodified'}; |
$lastmod=$syllabus{'uploaded.lastmodified'}; |
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
$r->print('<div class="LC_info">'); |
$r->print('<div class="LC_info">'); |
$r->print(&mt('Last updated').': '.$lastmod . ''); |
$r->print(&mt('Last updated').': '.$lastmod . ''); |
$r->print('</div>'); |
$r->print('</div>'); |
|
} |
} |
} |
#Print Help Text |
#Print Help Text |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
Line 248 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 284 sub handler {
|
Line 282 sub handler {
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<div class="LC_ContentBoxSpecial">'); |
$r->print('<div class="LC_ContentBoxSpecial">'); |
$r->print('<h2 class="LC_hcell">'.&Apache::loncommon::plainname($cnum,$cdom).'</h2>'); |
$r->print('<h2 class="LC_hcell">'.&Apache::loncommon::plainname($cnum,$cdom).'</h2>'); |
$r->print('<blockquote>'); |
$r->print('<div class="LC_BoxPadding">' ); |
if ($courseenv{'nickname'}) { |
if ($courseenv{'nickname'}) { |
$r->print('<h2>"'.$courseenv{'nickname'}.'"</h2>'); |
$r->print('<h2>"'.$courseenv{'nickname'}.'"</h2>'); |
} |
} |
Line 379 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 400 my $image;
|
Line 397 my $image;
|
} |
} |
if ($target ne 'tex') {$r->print('<br />');} else {$r->print('\\\\');} |
if ($target ne 'tex') {$r->print('<br />');} else {$r->print('\\\\');} |
} else { |
} else { |
# &Apache::lontemplate::send_message($r,$cnum,$cdom); |
|
$r->print('<p>'.&mt('No personal information provided').'.</p>'); |
$r->print('<p>'.&mt('No personal information provided').'.</p>'); |
} |
} |
if($target ne 'tex'){ |
|
#$r->print('</blockquote>'); |
|
#$r->print('</div>'); |
|
} |
|
|
|
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 417 my $image;
|
Line 409 my $image;
|
$r->print('<span class="LC_info">'); |
$r->print('<span class="LC_info">'); |
$r->print(&mt('Shared by course faculty and staff').&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message")); |
$r->print(&mt('Shared by course faculty and staff').&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message")); |
$r->print('</span> <p>'); |
$r->print('</span> <p>'); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
$r->print('</p>'); |
$r->print('</p>'); |
&Apache::lontemplate::print_end_template($r); |
&Apache::lontemplate::print_end_template($r); |
|
|
Line 426 my $image;
|
Line 418 my $image;
|
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
} |
} |
} |
} |
$r->print('</blockquote>'); |
|
$r->print('</div>'); |
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
|
$r->print('</div>'); |
|
$r->print('</div>'); |
if ($env{'form.popup'}) { |
if ($env{'form.popup'}) { |
$r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a>'); |
$r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a>'); |
} |
} |