version 1.43, 2007/05/02 01:33:48
|
version 1.47, 2009/02/02 14:31:58
|
Line 125 sub handler {
|
Line 125 sub handler {
|
|
|
# --------------------------------------- There is such a user, get environment |
# --------------------------------------- There is such a user, get environment |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
|
my $course_or_group; |
|
if($group eq ''){ |
|
$course_or_group="Course"; |
|
}else{ |
|
$course_or_group="Group"; |
|
} |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page("Bulletin Board/Discussion",undef, |
&Apache::loncommon::start_page("$course_or_group Discussion Board",undef, |
{'function' => $forcestudent, |
{'function' => $forcestudent, |
'add_entries' => \%addentries, |
'add_entries' => \%addentries, |
'domain' => $dom, |
'domain' => $dom, |
Line 181 sub handler {
|
Line 187 sub handler {
|
} |
} |
$r->print( |
$r->print( |
'<p>'. |
'<p>'. |
&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'<br /><a href="'.$r->uri.'?'.$query_str.'"><font size="+1">'.&mt('Show Student View').'</font></a>'. |
&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')).'<br /><a href="'.$r->uri.'?'.$query_str.'"><font size="+1">'.&mt('Show Student View').'</font></a>'. |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'</p>'); |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'</p>'); |
} elsif ($privileged and $target ne 'tex') { |
} elsif ($privileged and $target ne 'tex') { |
my $query_str = 'forceedit=edit'; |
my $query_str = 'forceedit=edit'; |
Line 237 sub handler {
|
Line 243 sub handler {
|
'<h3>'.&mt('Upload a Photo').'</h3>'. |
'<h3>'.&mt('Upload a Photo').'</h3>'. |
'<input type="file" name="uploaddoc" size="50">'. |
'<input type="file" name="uploaddoc" size="50">'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'">'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'">'. |
'</form><form method="post">'); |
'</form><form method="post">'. |
|
'<input type="hidden" name="forceedit" value="edit" />'); |
} |
} |
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |
if (($syllabus{$field}) || ($allowed)) { |
if (($syllabus{$field}) || ($allowed)) { |
Line 278 sub handler {
|
Line 285 sub handler {
|
$r->print( |
$r->print( |
'<br />'.&mt('Topic').'<br /><textarea cols="80" rows="2" name="'.$field.'">'. |
'<br />'.&mt('Topic').'<br /><textarea cols="80" rows="2" name="'.$field.'">'. |
&HTML::Entities::encode($syllabus{$field},'&"<>'). |
&HTML::Entities::encode($syllabus{$field},'&"<>'). |
'</textarea><input type="submit" name="storesyl" value="'.&mt('Store').'" />'); |
'</textarea><input type="submit" name="storesyl" value="'.&mt('Save').'" />'); |
} |
} |
} |
} |
} |
} |