version 1.92, 2009/06/08 18:04:46
|
version 1.93, 2009/06/11 16:48:33
|
Line 162 ENDSCRIPT
|
Line 162 ENDSCRIPT
|
text=>"Course syllabus"}); |
text=>"Course syllabus"}); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs()); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs()); |
} |
} |
|
|
} |
} |
# ---------------------------------------------------------- Load syllabus info |
# ---------------------------------------------------------- Load syllabus info |
my %syllabus=&Apache::lonnet::dump('syllabus',$cdom,$cnum); |
my %syllabus=&Apache::lonnet::dump('syllabus',$cdom,$cnum); |
Line 230 ENDSCRIPT
|
Line 229 ENDSCRIPT
|
} |
} |
} |
} |
|
|
|
#--------Functions |
|
if( $allowed || $privileged) { |
|
my $functions=&Apache::lonhtmlcommon::start_funclist(); |
|
if ($allowed) { |
|
$functions.=&Apache::lonhtmlcommon::add_item_funclist( |
|
'<a href="'.$r->uri.'?forcestudent=1">' |
|
.&mt('Show Public View').'</a>' |
|
.&Apache::loncommon::help_open_topic( |
|
'Uploaded_Templates_PublicView')); |
|
} elsif ($privileged) { |
|
$functions.=&Apache::lonhtmlcommon::add_item_funclist( |
|
'<a href="'.$r->uri.'?forceedit=1">' |
|
.&mt('Edit').'</a>'); |
|
} |
|
$functions.=&Apache::lonhtmlcommon::end_funclist(); |
|
$r->print(&Apache::loncommon::head_subbox($functions)); |
|
} |
|
|
#---------------------Print External URL Syllabus Info |
#---------------------Print External URL Syllabus Info |
if( ($allowed) && ($target ne 'tex') ) { |
if( ($allowed) && ($target ne 'tex') ) { |
my $protocol = $Apache::lonnet::protocol{$homeserver}; |
my $protocol = $Apache::lonnet::protocol{$homeserver}; |
Line 273 ENDSCRIPT
|
Line 290 ENDSCRIPT
|
:'') |
:'') |
.'\\\\'); |
.'\\\\'); |
} |
} |
#--------Functions |
|
if ($target ne 'tex') { |
|
if( $allowed || $privileged) { |
|
$r->print(&Apache::lontemplate::start_functionslist()); |
|
if ($allowed) { |
|
$r->print(&Apache::lontemplate::item_functionslist( |
|
'<a href="'.$r->uri.'?forcestudent=1">'.&mt('Show Public View').'</a>' |
|
.&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView'))); |
|
} elsif ($privileged) { |
|
$r->print(&Apache::lontemplate::item_functionslist( |
|
'<a href="'.$r->uri.'?forceedit=1">'.&mt('Edit').'</a>')); |
|
} |
|
$r->print(&Apache::lontemplate::end_functionslist()); |
|
} |
|
} |
|
#----------------------------Print Headtitle |
#----------------------------Print Headtitle |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<h1>'.$courseenv{'description'}.'</h1>'); |
$r->print('<h1>'.$courseenv{'description'}.'</h1>'); |