version 1.120, 2009/04/02 15:09:10
|
version 1.124, 2009/04/14 15:32:12
|
Line 223 sub handler {
|
Line 223 sub handler {
|
|
|
#Print Privacy Note |
#Print Privacy Note |
if ($allowed) { |
if ($allowed) { |
$r->print('<p class="LC_info">' |
$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.') |
.'</p>' |
.'</div>' |
); |
); |
} |
} |
|
|
|
#Print last modified |
|
|
|
my $lastmod; |
|
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { |
|
$lastmod=$syllabus{'uploaded.lastmodified'}; |
|
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
|
$r->print('<div class="LC_info">'); |
|
$r->print(&mt('Last updated').': '.$lastmod . ''); |
|
$r->print('</div>'); |
|
} |
#Print Help Text |
#Print Help Text |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if($allowed){ |
if($allowed){ |
Line 320 sub handler {
|
Line 330 sub handler {
|
&Apache::lonnet::put('aboutme',\%syllabus,$cdom,$cnum); |
&Apache::lonnet::put('aboutme',\%syllabus,$cdom,$cnum); |
} |
} |
|
|
my $lastmod; |
|
my $image; |
my $image; |
# ---------------------------------------------------------------- Get syllabus |
# ---------------------------------------------------------------- Get syllabus |
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { |
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { |
$lastmod=$syllabus{'uploaded.lastmodified'}; |
|
$lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); |
|
$r->print('<br />'.&mt('Last updated').': '.$lastmod); |
|
|
|
|
|
if ($syllabus{'uploaded.photourl'}) { |
if ($syllabus{'uploaded.photourl'}) { |
&Apache::lonnet::allowuploaded('/adm/aboutme', |
&Apache::lonnet::allowuploaded('/adm/aboutme', |
$syllabus{'uploaded.photourl'}); |
$syllabus{'uploaded.photourl'}); |
Line 352 my $image;
|
Line 356 my $image;
|
'<input type="file" name="uploaddoc" size="50" />'. |
'<input type="file" name="uploaddoc" size="50" />'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'. |
'<input type="hidden" name="popup" value="'.$env{'form.popup'}.'" />'. |
'<input type="hidden" name="popup" value="'.$env{'form.popup'}.'" />'. |
'</form><form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" /> </form><p> |
'</form>'); |
'); |
if ($syllabus{'uploaded.photourl'}) { |
|
$r->print('<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" /> </form>') |
|
} |
|
$r->print('<p>'); |
} |
} |
|
|
if($allowed) { |
if($allowed) { |
Line 406 my $image;
|
Line 412 my $image;
|
&& &Apache::lonnet::allowed('srm',$env{'request.course.id'}) |
&& &Apache::lonnet::allowed('srm',$env{'request.course.id'}) |
&& &in_course($cdom,$cnum)) { |
&& &in_course($cdom,$cnum)) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<a name="coursecomment" />'; |
$r->print('<a name="coursecomment" />'); |
&Apache::lontemplate::print_start_template($r,&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course'),'LC_ContentBoxSpecial'); |
&Apache::lontemplate::print_start_template($r,&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course'),'LC_ContentBoxSpecial'); |
$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")); |
Line 487 sub print_portfiles_link {
|
Line 493 sub print_portfiles_link {
|
); |
); |
if ($filecounts->{'both'} > 0) { |
if ($filecounts->{'both'} > 0) { |
$output = '<div class="LC_ContentBoxSpecial"><h4 class="LC_hcell">'; |
$output = '<div class="LC_ContentBoxSpecial"><h4 class="LC_hcell">'; |
$output .= ($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4>'; |
$output .= ($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4><div class="LC_BoxPadding">'; |
|
|
#$output = '<h4>'.($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4>'; |
#$output = '<h4>'.($is_course?$lt{'vgpf'}:$lt{'vpfi'}).'</h4>'; |
$output .= '<a href="/adm/'.$cdom.'/'.$cnum.'/aboutme/portfolio'. |
$output .= '<a href="/adm/'.$cdom.'/'.$cnum.'/aboutme/portfolio'. |
Line 514 sub print_portfiles_link {
|
Line 520 sub print_portfiles_link {
|
} |
} |
$output .= '</ul>'; |
$output .= '</ul>'; |
$output .='</p>'; |
$output .='</p>'; |
$output .='</div>'; |
$output .='</div></div>'; |
} |
} |
$r->print($output); |
$r->print($output); |
return; |
return; |