version 1.125, 2009/04/15 10:49:30
|
version 1.126, 2009/04/17 17:54:59
|
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 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>' |
); |
); |
} |
} |
|
|
#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 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 399 my $image;
|
Line 397 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 { |
# &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 410 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 419 my $image;
|
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
} |
} |
} |
} |
$r->print('</blockquote>'); |
$r->print('</div>'); |
$r->print('</div>'); |
$r->print('</div>'); |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($env{'form.popup'}) { |
if ($env{'form.popup'}) { |