version 1.59, 2010/03/29 13:34:40
|
version 1.61, 2010/08/07 19:23:50
|
Line 265 sub handler {
|
Line 265 sub handler {
|
&Apache::lonnet::allowuploaded('/adm/syllabus', |
&Apache::lonnet::allowuploaded('/adm/syllabus', |
$syllabus{'uploaded.photourl'}); |
$syllabus{'uploaded.photourl'}); |
} |
} |
my @htmlids=(); |
|
#Outputbox and Inputbox for Image upload |
#Outputbox and Inputbox for Image upload |
if ($allowed) { |
if ($allowed) { |
my $message = '<img src="'.$syllabus{'uploaded.photourl'}.'" alt="'.&mt('Image').'"/>'; |
my $message = '<img src="'.$syllabus{'uploaded.photourl'}.'" alt="'.&mt('Image').'"/>'; |
Line 285 sub handler {
|
Line 284 sub handler {
|
} |
} |
|
|
my %custom_handlers = ( 'aaa_title' => sub {} ); |
my %custom_handlers = ( 'aaa_title' => sub {} ); |
@htmlids = &Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields, |
&Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields, |
$target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_handlers); |
$target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_handlers); |
if ($allowed) { |
if ($allowed) { |
$r->print('</form>'. |
$r->print('</form>'. |
&Apache::lonhtmlcommon::htmlareaselectactive(@htmlids)); |
&Apache::lonhtmlcommon::htmlareaselectactive()); |
} |
} |
if ($target ne 'tex'){ |
if ($target ne 'tex'){ |
$r->print('<br/><br/><hr/><br/>'); |
$r->print('<br/><br/><hr/><br/>'); |
Line 298 sub handler {
|
Line 297 sub handler {
|
$r->print(&Apache::lonxml::xmlparse($r,'tex','<br/><br/><hr/><br/>')); |
$r->print(&Apache::lonxml::xmlparse($r,'tex','<br/><br/><hr/><br/>')); |
} |
} |
} else { |
} else { |
$r->print('<p>'.&mt('No page information provided.').'</p>'); |
if ($target ne 'tex') { |
|
$r->print('<p>'.&mt('No page information provided.').'</p>'); |
|
} |
} |
} |
#Lists discussion posts and box for a new discussion post. |
#Lists discussion posts and box for a new discussion post. |
if ($target ne 'tex') { |
if ($target ne 'tex') { |