version 1.68, 2009/02/20 15:09:28
|
version 1.70, 2009/02/23 22:36:30
|
Line 272 sub handler {
|
Line 272 sub handler {
|
} |
} |
} |
} |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
&Apache::lontemplate::print_start_page_functions($r); |
if($allowed || $privileged){ |
if($allowed){ |
&Apache::lontemplate::print_start_page_functions($r); |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.'?forcestudent=1">'.&mt('Show Student View').'</a>'. |
if($allowed){ |
|
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.'?forcestudent=1">'.&mt('Show Student View').'</a>'. |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView')); |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView')); |
}elsif($privileged){ |
}elsif($privileged){ |
my $edittext = &mt('Edit'); |
my $edittext = &mt('Edit'); |
if ($group ne '') { |
if ($group ne '') { |
$edittext = &mt('Edit Group Homepage'); |
$edittext = &mt('Edit Group Homepage'); |
} |
} |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.'?forceedit=edit'.$refarg.'"><font size="+1">'.$edittext.'</font></a>'); |
&Apache::lontemplate::print_functions_content($r,'<a href="'.$r->uri.'?forceedit=edit'.$refarg.'">'.$edittext.'</a>'); |
if ($group ne '') { |
if ($group ne '') { |
if ($group_edit_perm) { |
if ($group_edit_perm) { |
&Apache::lontemplate::print_functions_content($r,' <font size="+1">'. |
&Apache::lontemplate::print_functions_content($r,' '. |
'<a href="/adm/coursegroups?action=modify&refpage=grouplist'. |
'<a href="/adm/coursegroups?action=modify&refpage=grouplist'. |
'&state=pick_task&groupname='.$group.'">'. |
'&state=pick_task&groupname='.$group.'">'. |
&mt('Edit Group Settings').'</a></font>'); |
&mt('Edit Group Settings').'</a>'); |
} |
} |
} |
} |
|
} |
|
&Apache::lontemplate::print_end_page_functions($r); |
} |
} |
&Apache::lontemplate::print_end_page_functions($r); |
|
} |
} |
if ($allowed) { |
if ($allowed) { |
$r->print( |
$r->print( |
Line 307 sub handler {
|
Line 309 sub handler {
|
if($allowed){ |
if($allowed){ |
$r->print($image.'<div class="clear"> </div>'); |
$r->print($image.'<div class="clear"> </div>'); |
} |
} |
# if(!$allowed){ |
|
# $r-print($image); |
|
# } |
|
|
|
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |
if (($syllabus{$field}) || ($allowed) || |
if (($syllabus{$field}) || ($allowed) || |
Line 335 sub handler {
|
Line 334 sub handler {
|
if($allowed){ |
if($allowed){ |
$r->print('<p>'); |
$r->print('<p>'); |
} |
} |
$r->print('<h2>'.$message.'</h2>'); |
$r->print('<div class="LC_ContentBoxSpecial">'); |
|
$r->print('<h2 class="LC_hcell">'.$message.'</h2>'); |
|
$r->print('<blockquote>'); |
} else { |
} else { |
my $safeinit; |
my $safeinit; |
$r->print(&Apache::lonxml::xmlparse($r,'tex','<h1>'.$message.'</h1>')); |
$r->print(&Apache::lonxml::xmlparse($r,'tex','<h1>'.$message.'</h1>')); |
} |
} |
if ($allowed) { |
if ($allowed) { |
if ($env{'form.grade_target'} ne 'tex') { |
if ($env{'form.grade_target'} ne 'tex') { |
#$r->print('<br /><h3>'.&mt('Title').'</h3>'); |
|
&Apache::lontemplate::print_template($r, &mt('Title'), $message, $allowed, 'LC_ContentBoxSpecial'); |
&Apache::lontemplate::print_template($r, &mt('Title'), $message, $allowed, 'LC_ContentBoxSpecial'); |
&Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field); |
&Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field); |
$r->print('</p>'); |
$r->print('</p>'); |
Line 351 sub handler {
|
Line 351 sub handler {
|
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
} |
} |
} |
} |
# if ($allowed) { $r->print($image . '<div class="clear"> </div>'); } |
|
if(!$allowed) {$r->print($image); } |
if(!$allowed) {$r->print($image); } |
} else { |
} else { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
Line 376 sub handler {
|
Line 375 sub handler {
|
} |
} |
} |
} |
} |
} |
#MUEA: Stand hier if??? |
|
# if(!$allowed){ |
|
# $r->print($image); |
|
# } |
|
if ($allowed && ($env{'form.grade_target'} ne 'tex')) { |
if ($allowed && ($env{'form.grade_target'} ne 'tex')) { |
$r->print(&Apache::lonhtmlcommon::htmlareaselectactive |
$r->print(&Apache::lonhtmlcommon::htmlareaselectactive |
('bbb_content').'</form>'); |
('bbb_content').'</form>'); |
Line 392 sub handler {
|
Line 387 sub handler {
|
$r->print('<p>'.&mt('No page information provided.').'</p>'); |
$r->print('<p>'.&mt('No page information provided.').'</p>'); |
} |
} |
} |
} |
|
|
|
$r->print('</blockquote>'); |
|
$r->print('</div>'); |
if ($env{'form.grade_target'} ne 'tex') { |
if ($env{'form.grade_target'} ne 'tex') { |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} else { |
} else { |