version 1.46, 2008/03/03 11:25:59
|
version 1.48, 2009/04/04 21:47:40
|
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 235 sub handler {
|
Line 241 sub handler {
|
'<form method="post" enctype="multipart/form-data">'. |
'<form method="post" enctype="multipart/form-data">'. |
'<input type="hidden" name="forceedit" value="edit" />'. |
'<input type="hidden" name="forceedit" value="edit" />'. |
'<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" />'); |
'<input type="hidden" name="forceedit" value="edit" />'); |
} |
} |