version 1.116, 2011/10/17 12:41:35
|
version 1.119, 2014/12/04 15:41:30
|
Line 91 sub start_essayresponse {
|
Line 91 sub start_essayresponse {
|
'<label>'. |
'<label>'. |
&mt('Collaborators:').' <input type="text" size="70" max="80" name="HWCOL'. |
&mt('Collaborators:').' <input type="text" size="70" max="80" name="HWCOL'. |
$part.'_'.$id.'" value="'.$coll.'" /><br />'. |
$part.'_'.$id.'" value="'.$coll.'" /><br />'. |
&mt('(Enter a maximum of [quant,_1,collaborator] using username or username:domain, e.g. smithje or smithje:[_2].)',$ncol,$env{'user.domain'}); |
&mt('Enter a maximum of [quant,_1,collaborator] using username or username:domain, e.g. smithje or smithje:[_2].',$ncol,$env{'user.domain'}); |
if ($ncol > 1) { |
if ($ncol > 1) { |
$result .= '<br />'.&mt('If entering more than one, use spaces to separate the collaborators.'); |
$result .= '<br />'.&mt('If entering more than one, use spaces to separate the collaborators.'); |
} |
} |
Line 279 sub format_prior_response {
|
Line 279 sub format_prior_response {
|
} |
} |
if ($answer =~ /\S/) { |
if ($answer =~ /\S/) { |
$output.='<p>'.&mt('Submitted text'). |
$output.='<p>'.&mt('Submitted text'). |
'<blockquote>'.$answer.'</blockquote></p>'; |
'<blockquote>'.&HTML::Entities::encode($answer, '"<>&').'</blockquote></p>'; |
} |
} |
|
|
return '<div class="LC_prior_essay">'.$output.'</div>'; |
return '<div class="LC_prior_essay">'.$output.'</div>'; |
} |
} |
|
|
sub file_submission { |
sub file_submission { |
my ($part,$id,$award,$uploadedflag,$totalsize,$deletions)=@_; |
my ($part,$id,$award,$uploadedflag,$totalsize,$deletions,$context,$info)=@_; |
my $files; |
my $files; |
my $jspart=$part; |
my $jspart=$part; |
$jspart=~s/\./_/g; |
$jspart=~s/\./_/g; |
Line 513 sub file_submission {
|
Line 513 sub file_submission {
|
$$uploadedflag=1; |
$$uploadedflag=1; |
} |
} |
} |
} |
|
if ($context eq 'externalresponse') { |
|
my @todelete = keys(%port_delete); |
|
if (@tolock || @todelete) { |
|
if (ref($info) eq 'HASH') { |
|
if ($info->{'ip'}) { |
|
&Apache::lonnet::automated_portfile_access('ip',\@tolock,\@todelete,$info); |
|
} |
|
} |
|
} |
|
} |
&Apache::lonnet::unmark_as_readonly($udom,$uname,[$symb,$crsid]); |
&Apache::lonnet::unmark_as_readonly($udom,$uname,[$symb,$crsid]); |
&Apache::lonnet::mark_as_readonly($udom,$uname,[@tolock],[$symb,$crsid]); |
&Apache::lonnet::mark_as_readonly($udom,$uname,[@tolock],[$symb,$crsid]); |
&Apache::lonnet::clear_selected_files($uname); |
&Apache::lonnet::clear_selected_files($uname); |