version 1.75, 2008/12/24 07:55:54
|
version 1.76, 2009/02/13 17:26:55
|
Line 329 ENDSCRIPT
|
Line 329 ENDSCRIPT
|
'<input type="hidden" name="forceedit" value="edit" />'); |
'<input type="hidden" name="forceedit" value="edit" />'); |
} |
} |
my @htmlids=(); |
my @htmlids=(); |
&Apache::lontemplate::start_columnSection($r); |
#&Apache::lontemplate::start_columnSection($r); |
&Apache::lontemplate::start_ContentBox($r, $allowed); |
#&Apache::lontemplate::start_ContentBox($r, $allowed); |
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |
if (($syllabus{$field}=~/\w/) || ($allowed)) { |
if (($syllabus{$field}=~/\w/) || ($allowed)) { |
my $message=$syllabus{$field}; |
my $message=$syllabus{$field}; |
Line 371 ENDSCRIPT
|
Line 371 ENDSCRIPT
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if($allowed){ |
if($allowed){ |
$r->print('<p>'); |
$r->print('<p>'); |
} |
} |
&Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message); |
&Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message,$allowed,'LC_ContentBoxSpecial'); |
} else { |
} else { |
$r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'. |
$r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'. |
&Apache::lonxml::xmlparse($r,'tex',$message).'\\\\'); |
&Apache::lonxml::xmlparse($r,'tex',$message).'\\\\'); |
Line 391 ENDSCRIPT
|
Line 391 ENDSCRIPT
|
$r->print('<p><a href="'.$r->uri.'?forcestudent=1"><font size="+1">'.&mt('Show Public View').'</font></a>'. |
$r->print('<p><a href="'.$r->uri.'?forcestudent=1"><font size="+1">'.&mt('Show Public View').'</font></a>'. |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'</p>'); |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'</p>'); |
} |
} |
&Apache::lontemplate::end_ContentBox($r); |
#&Apache::lontemplate::end_ContentBox($r); |
&Apache::lontemplate::end_columnSection($r); |
#&Apache::lontemplate::end_columnSection($r); |
if ($allowed) { |
if ($allowed) { |
$r->print('</form>'. |
$r->print('</form>'. |
&Apache::lonhtmlcommon::htmlareaselectactive(@htmlids)); |
&Apache::lonhtmlcommon::htmlareaselectactive(@htmlids)); |