version 1.108, 2010/03/10 14:20:53
|
version 1.110, 2010/08/07 19:23:51
|
Line 282 ENDSCRIPT
|
Line 282 ENDSCRIPT
|
#----------Print last update |
#----------Print last update |
my $lastmod=$syllabus{'uploaded.lastmodified'}; |
my $lastmod=$syllabus{'uploaded.lastmodified'}; |
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
my $who = &Apache::loncommon::aboutmewrapper( |
my $who; |
&Apache::loncommon::plainname($syllabus{'uploaded.name'}, |
if (($env{'user.name'} ne 'public') && ($env{'user.domain'} ne 'public')) { |
$syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, |
$who = &Apache::loncommon::aboutmewrapper( |
$syllabus{'uploaded.domain'}); |
&Apache::loncommon::plainname($syllabus{'uploaded.name'}, |
|
$syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, |
|
$syllabus{'uploaded.domain'}); |
|
} else { |
|
# Public user? |
|
# Only display name of user, but no link to personal information page |
|
$who = &Apache::loncommon::plainname( |
|
$syllabus{'uploaded.name'}, |
|
$syllabus{'uploaded.domain'}); |
|
} |
|
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<div class="LC_info">'.&mt('Last updated').': '. |
$r->print('<div class="LC_info">'.&mt('Last updated').': '. |
$lastmod . ' '. |
$lastmod . ' '. |
Line 376 ENDSCRIPT
|
Line 386 ENDSCRIPT
|
$r->print('<form method="post" action="">'. |
$r->print('<form method="post" action="">'. |
'<input type="hidden" name="forceedit" value="edit" />'); |
'<input type="hidden" name="forceedit" value="edit" />'); |
} |
} |
my @htmlids=(); |
|
my $url_include_handler = sub { |
my $url_include_handler = sub { |
my ($r, $field, $message, $group, $data_ref, $fields_ref, $target, $allowed) = @_; |
my ($r, $field, $message, $group, $data_ref, $fields_ref, $target, $allowed) = @_; |
my %data = %{$data_ref}; |
my %data = %{$data_ref}; |
Line 418 ENDSCRIPT
|
Line 427 ENDSCRIPT
|
} |
} |
}; |
}; |
my %custom_hash = ( 'lll_includeurl' => $url_include_handler ); |
my %custom_hash = ( 'lll_includeurl' => $url_include_handler ); |
@htmlids = &Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields, |
&Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields, |
$target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_hash); |
$target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_hash); |
if ($allowed) { |
if ($allowed) { |
$r->print('</form>'. |
$r->print('</form>'. |
&Apache::lonhtmlcommon::htmlareaselectactive(@htmlids)); |
&Apache::lonhtmlcommon::htmlareaselectactive()); |
} |
} |
} else { |
} else { |
if ($target ne 'tex') {$r->print('<p>');} else {$r->print('\par ');} |
if ($target ne 'tex') {$r->print('<p>');} else {$r->print('\par ');} |