version 1.60, 2010/06/05 22:07:05
|
version 1.63, 2011/05/02 18:32:30
|
Line 218 sub handler {
|
Line 218 sub handler {
|
} |
} |
if ($group ne '') { |
if ($group ne '') { |
$syllabus{'uploaded.photourl'}= |
$syllabus{'uploaded.photourl'}= |
&Apache::lonnet::userfileupload('uploaddoc',1, |
&Apache::lonnet::userfileupload('uploaddoc','coursedoc', |
'bulletin/'.$group.'/'.$marker); |
'bulletin/'.$group.'/'.$marker); |
} else { |
} else { |
$syllabus{'uploaded.photourl'}= |
$syllabus{'uploaded.photourl'}= |
&Apache::lonnet::userfileupload('uploaddoc',1, |
&Apache::lonnet::userfileupload('uploaddoc','coursedoc', |
'bulletin/'.$marker); |
'bulletin/'.$marker); |
} |
} |
} |
} |
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)); |
|
} |
} |
if ($target ne 'tex'){ |
if ($target ne 'tex'){ |
$r->print('<br/><br/><hr/><br/>'); |
$r->print('<br/><br/><hr/><br/>'); |