version 1.106, 2009/02/26 16:17:30
|
version 1.107, 2009/03/01 13:23:12
|
Line 221 sub handler {
|
Line 221 sub handler {
|
|
|
} |
} |
|
|
|
#Print Help Text |
|
if ($target ne 'tex') { |
|
if($privleged){ |
|
$r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes'))); |
|
} |
|
} |
|
|
#----------------Print Functions |
#----------------Print Functions |
if( $target ne 'tex'){ |
if( $target ne 'tex'){ |
&Apache::lontemplate::print_start_page_functions($r); |
&Apache::lontemplate::print_start_page_functions($r); |
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'}}); |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.$query_string.'">'.&mt('Show Public View').'</a>'.&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView')); |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.$query_string.'">'.&mt('Show Public View').'</a>'.&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView')); |
&Apache::lontemplate::print_functions_content($r,&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes'))); |
}elsif($privleged){ |
}elsif($privleged){ |
|
my $query_string = &build_query_string({'forceedit' => '1','popup' => $env{'form.popup'}}); |
my $query_string = &build_query_string({'forceedit' => '1','popup' => $env{'form.popup'}}); |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.$query_string.'">'. &mt('Edit').'</a>'); |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.$query_string.'">'. &mt('Edit').'</a>'); |
} |
} |