version 1.39, 2009/10/16 13:47:40
|
version 1.42, 2009/12/22 06:22:12
|
Line 43 use Apache::lonlocal;
|
Line 43 use Apache::lonlocal;
|
use Apache::lonmsgdisplay(); |
use Apache::lonmsgdisplay(); |
use HTML::Entities(); |
use HTML::Entities(); |
|
|
|
use constant { |
|
RICH_TEXT_ALWAYS_ON => 'LC_richAlwaysOn', |
|
RICH_TEXT_ALWAYS_OFF => 'LC_richAlwaysOff', |
|
RICH_TEXT_DEFAULT_ON => 'LC_richDefaultOn', |
|
RICH_TEXT_DETECT_HTML => 'LC_richDetectHtml', |
|
RICH_TEXT_DEFAULT_OFF => 'LC_richDefaultOff' |
|
}; |
|
|
sub start_columnSection { |
sub start_columnSection { |
my ($r) = @_; |
my ($r) = @_; |
Line 62 sub print_aboutme_content_template {
|
Line 69 sub print_aboutme_content_template {
|
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |
if (($syllabus{$field}) || ($allowed)) { |
if (($syllabus{$field}) || ($allowed)) { |
my $message=$syllabus{$field}; |
my $message=$syllabus{$field}; |
&Apache::lonfeedback::newline_to_br(\$message); |
if (!&Apache::lonfeedback::contains_block_html($message)) { |
$message |
&Apache::lonfeedback::newline_to_br(\$message); |
=~s/(http\:\/\/[^\s]+)/\<a href=\"$1\"\>\<tt\>$1\<\/tt\>\<\/a\>/g; |
} |
|
$message=&Apache::lonhtmlcommon::raw_href_to_link($message); |
if ($allowed) { |
if ($allowed) { |
$message=&Apache::lonspeller::markeduptext($message); |
$message=&Apache::lonspeller::markeduptext($message); |
} |
} |
Line 124 sub print_editbox_template {
|
Line 132 sub print_editbox_template {
|
&mt('Save All').'" />'); |
&mt('Save All').'" />'); |
} |
} |
|
|
|
sub print_textarea_template { |
|
my ($r, $content, $field, $wysiwyg) = @_; |
|
$r->print('<textarea cols="81" rows="6" class="'.$wysiwyg.'" id="'.$field.'" name="'.$field.'">'. |
|
&HTML::Entities::encode($content, '"&<>'). |
|
'</textarea><br />'); |
|
} |
|
|
|
sub print_saveall_template { |
|
my ($r) = @_; |
|
$r->print('<input type="submit" name="storesyl" value="'.&mt('Save All').'" />'); |
|
} |
|
|
1; |
1; |