version 1.89, 2009/12/12 14:45:42
|
version 1.90, 2009/12/15 20:48:53
|
Line 303 sub handler {
|
Line 303 sub handler {
|
my $titletext=$syllabus{'aaa_title'}; |
my $titletext=$syllabus{'aaa_title'}; |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($allowed) { |
if ($allowed) { |
$r->print('<p>'); |
|
} |
} |
$r->print('<h2>'.$titletext.'</h2>'); |
$r->print('<h2>'.$titletext.'</h2>'); |
} else { |
} else { |
Line 316 sub handler {
|
Line 315 sub handler {
|
$r->print('<form method="post" action="" enctype="multipart/form-data">'); |
$r->print('<form method="post" action="" enctype="multipart/form-data">'); |
&Apache::lontemplate::print_template($r, &mt('Title'), $titletext, $allowed, 'LC_Box'); |
&Apache::lontemplate::print_template($r, &mt('Title'), $titletext, $allowed, 'LC_Box'); |
&Apache::lontemplate::print_editbox_template($r,$syllabus{'aaa_title'},'aaa_title'); |
&Apache::lontemplate::print_editbox_template($r,$syllabus{'aaa_title'},'aaa_title'); |
$r->print('</p>'); |
|
} else { |
} else { |
my $safeinit; |
my $safeinit; |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{'aaa_title'},$safeinit)); |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{'aaa_title'},$safeinit)); |
Line 383 UPLOAD_PHOTO
|
Line 381 UPLOAD_PHOTO
|
} else { |
} else { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($allowed) { |
if ($allowed) { |
$r->print('<p>'); |
|
} |
} |
&Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_Box'); |
&Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_Box'); |
} else { |
} else { |
Line 394 UPLOAD_PHOTO
|
Line 391 UPLOAD_PHOTO
|
if ($allowed) { |
if ($allowed) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
&Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field); |
&Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field); |
$r->print('</p>'); |
|
} else { |
} else { |
my $safeinit; |
my $safeinit; |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
Line 407 UPLOAD_PHOTO
|
Line 403 UPLOAD_PHOTO
|
$r->print(&Apache::lonhtmlcommon::htmlareaselectactive |
$r->print(&Apache::lonhtmlcommon::htmlareaselectactive |
('bbb_content').'</form>'); |
('bbb_content').'</form>'); |
} |
} |
if ($env{'form.grade_target'} ne 'tex') {$r->print('</p>');} |
|
|
|
} else { |
} else { |
if ($group ne '') { |
if ($group ne '') { |