version 1.124, 2015/03/10 17:32:53
|
version 1.127, 2025/02/26 00:11:38
|
Line 118 sub draft_row {
|
Line 118 sub draft_row {
|
} |
} |
); |
); |
return &Apache::lonhtmlcommon::row_title($status_text). |
return &Apache::lonhtmlcommon::row_title($status_text). |
'<label>'. |
'<fieldset class="LC_landmark">'. |
'<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="yes" checked="checked" />'. |
'<legend class="LC_visually_hidden">'.$status_text.'</legend>'. |
' '.$label{'submit'}{$resptype}.'</label> <br />'. |
'<div><label><input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="yes" checked="checked" />'. |
'<label>'. |
' '.$label{'submit'}{$resptype}.'</label></div>'. |
|
'<div><label>'. |
'<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="no" /> '. |
'<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="no" /> '. |
$label{'draft'}{$resptype}.'</label>'. |
$label{'draft'}{$resptype}.'</label></div></fieldset>'. |
&Apache::lonhtmlcommon::row_closure($closure); |
&Apache::lonhtmlcommon::row_closure($closure); |
} |
} |
|
|
Line 226 sub end_essayresponse {
|
Line 227 sub end_essayresponse {
|
&escape($crsid)); |
&escape($crsid)); |
my $essayurl= |
my $essayurl= |
&Apache::lonnet::declutter($ENV{'REQUEST_URI'}); |
&Apache::lonnet::declutter($ENV{'REQUEST_URI'}); |
my ($adom,$aname,$apath)= |
if ($essayurl eq 'lib/templates/simpleproblem.problem') { |
($essayurl=~/^($LONCAPA::domain_re)\/($LONCAPA::username_re)\/(.*)$/); |
my %crsinfo = &Apache::lonnet::coursedescription($crsid); |
$apath=&escape($apath); |
my $cdom = $crsinfo{'domain'}; |
$apath=~s/\W/\_/gs; |
my $cnum = $crsinfo{'num'}; |
&Apache::lonnet::put('nohist_essay_'.$apath, |
my ($map,$id,$res) = &Apache::lonnet::decode_symb($symb); |
{ $akey => $response },$adom,$aname); |
if ($map =~ m{^\Quploaded/$cdom/$cnum/\E(default(?:|_\d+)\.(?:sequence|page))$}) { |
} |
my $apath = $1.'_'.$id; |
|
$apath=~s/\W/\_/gs; |
|
my $akey = join('.',&escape($name),&escape($domain)); |
|
&Apache::lonnet::put('nohist_essay_'.$apath, |
|
{ $akey => $response },$cdom,$cnum); |
|
} |
|
} else { |
|
my ($adom,$aname,$apath)= |
|
($essayurl=~/^($LONCAPA::domain_re)\/($LONCAPA::username_re)\/(.*)$/); |
|
$apath=&escape($apath); |
|
$apath=~s/\W/\_/gs; |
|
&Apache::lonnet::put('nohist_essay_'.$apath, |
|
{ $akey => $response },$adom,$aname); |
|
} |
|
} |
} |
} |
} |
} |
} |
} |
} elsif ($target eq 'edit') { |
} elsif ($target eq 'edit') { |
$result.=&Apache::edit::end_table(); |
$result.=&Apache::edit::end_table(); |
|
|