version 1.415.2.1, 2006/10/04 19:50:43
|
version 1.416, 2006/09/14 21:52:36
|
Line 1014 sub store_counter {
|
Line 1014 sub store_counter {
|
} |
} |
|
|
sub remember_problem_counter { |
sub remember_problem_counter { |
&Apache::lonnet::transfer_profile_to_env(undef,undef,1); |
&Apache::lonnet::transfer_profile_to_env(); |
$state = $env{'form.counter'}; |
$state = $env{'form.counter'}; |
} |
} |
|
|
Line 1025 sub store_counter {
|
Line 1025 sub store_counter {
|
} |
} |
sub get_problem_counter { |
sub get_problem_counter { |
if ($Apache::lonxml::counter_changed) { &store_counter() } |
if ($Apache::lonxml::counter_changed) { &store_counter() } |
&Apache::lonnet::transfer_profile_to_env(undef,undef,1); |
&Apache::lonnet::transfer_profile_to_env(); |
return $env{'form.counter'}; |
return $env{'form.counter'}; |
} |
} |
} |
} |
Line 1329 $cleanbut
|
Line 1329 $cleanbut
|
<input type="submit" name="viewmode" accesskey="v" value="$lt{'vi'}" /> |
<input type="submit" name="viewmode" accesskey="v" value="$lt{'vi'}" /> |
BUTTONS |
BUTTONS |
$buttons.=&Apache::lonhtmlcommon::spelllink('xmledit','filecont'); |
$buttons.=&Apache::lonhtmlcommon::spelllink('xmledit','filecont'); |
|
$buttons.=&Apache::lonhtmlcommon::htmlareaselectactive('filecont'); |
my $editfooter=(<<ENDFOOTER); |
my $editfooter=(<<ENDFOOTER); |
$initialize |
$initialize |
<hr /> |
<hr /> |
Line 1540 sub error {
|
Line 1541 sub error {
|
$errormsg=&mt("An error occured while processing this resource. The author has been notified."); |
$errormsg=&mt("An error occured while processing this resource. The author has been notified."); |
} |
} |
my $host=$Apache::lonnet::perlvar{'lonHostID'}; |
my $host=$Apache::lonnet::perlvar{'lonHostID'}; |
my $msg = join('<br />',(@_,"The occured on host <tt>$host</tt>")); |
my $msg = join('<br />',(@_,"The error occurred on host <tt>$host</tt>")); |
#notify author |
#notify author |
&Apache::lonmsg::author_res_msg($env{'request.filename'},$msg); |
&Apache::lonmsg::author_res_msg($env{'request.filename'},$msg); |
#notify course |
#notify course |