version 1.444.4.2.2.1, 2009/11/27 21:20:44
|
version 1.444.4.2.2.2, 2009/12/02 18:22:12
|
Line 236 sub page_start {
|
Line 236 sub page_start {
|
$body_args{'no_auto_mt_title'} = 1; |
$body_args{'no_auto_mt_title'} = 1; |
my $page_start = &Apache::loncommon::start_page($name,$extra_head, |
my $page_start = &Apache::loncommon::start_page($name,$extra_head, |
\%body_args); |
\%body_args); |
|
unless ($env{'request.gcicontext'} eq 'buildtest') { |
# if (!defined($found{'body'}) |
if (!defined($found{'body'}) |
# && $env{'request.state'} ne 'construct' |
&& $env{'request.state'} ne 'construct' |
# && ($target eq 'web' || $target eq 'webgrade')) { |
&& ($target eq 'web' || $target eq 'webgrade')) { |
# |
|
# my ($symb,undef,undef,undef,$publicuser)= &Apache::lonnet::whichuser(); |
my ($symb,undef,undef,undef,$publicuser)= &Apache::lonnet::whichuser(); |
# if ($symb eq '' && !$publicuser) { |
if ($symb eq '' && !$publicuser) { |
# $page_start .= '<p class="LC_info">' |
$page_start .= '<p class="LC_info">' |
# .&mt('Browsing resource, all submissions are temporary.') |
.&mt('Browsing resource, all submissions are temporary.') |
# .'</p>'; |
.'</p>'; |
# } |
} |
# } |
} |
|
} |
|
|
if (!defined($found{'body'}) && $env{'request.state'} ne 'construct') { |
if (!defined($found{'body'}) && $env{'request.state'} ne 'construct') { |
$page_start .= &Apache::lonxml::message_location(); |
$page_start .= &Apache::lonxml::message_location(); |
Line 895 sub start_problem {
|
Line 896 sub start_problem {
|
($symb eq '' || $Apache::lonhomework::type eq 'practice')) { |
($symb eq '' || $Apache::lonhomework::type eq 'practice')) { |
$form_tag_start.='<input type="hidden" name="rndseed" value="'. |
$form_tag_start.='<input type="hidden" name="rndseed" value="'. |
$rndseed.'" />'; |
$rndseed.'" />'; |
#. |
unless ($env{'request.gcicontext'} eq 'buildtest') { |
# '<input type="submit" name="resetdata" |
$form_tag_start .= '<input type="submit" name="resetdata" |
# value="'.&mt('New Problem Variation').'" />'; |
value="'.&mt('New Problem Variation').'" />'; |
|
} |
if (exists($env{'form.username'})) { |
if (exists($env{'form.username'})) { |
$form_tag_start.= |
$form_tag_start.= |
'<input type="hidden" name="username" |
'<input type="hidden" name="username" |
value="'.$env{'form.username'}.'" />'; |
value="'.$env{'form.username'}.'" />'; |
} |
} |
# if ($env{'request.role.adv'}) { |
unless ($env{'request.gcicontext'} eq 'buildtest') { |
# $form_tag_start.= ' <label class="LC_nobreak">' |
if ($env{'request.role.adv'}) { |
# .'<input type="checkbox" name="showallfoils"'; |
$form_tag_start.= ' <label class="LC_nobreak">' |
# if (defined($env{'form.showallfoils'})) { |
.'<input type="checkbox" name="showallfoils"'; |
# $form_tag_start.=' checked="checked"'; |
if (defined($env{'form.showallfoils'})) { |
# } |
$form_tag_start.=' checked="checked"'; |
# $form_tag_start.= ' /> ' |
} |
# .&mt('Show All Foils') |
$form_tag_start.= ' /> ' |
# .'</label>'; |
.&mt('Show All Foils') |
# |
.'</label>'; |
# } |
} |
|
} |
if ($Apache::lonhomework::type eq 'practice') { |
if ($Apache::lonhomework::type eq 'practice') { |
$form_tag_start.=&practice_problem_header(); |
$form_tag_start.=&practice_problem_header(); |
} |
} |
$form_tag_start.='<hr />'; |
unless ($env{'request.gcicontext'} eq 'buildtest') { |
|
$form_tag_start.='<hr />'; |
|
} |
} |
} |
|
|
($status,$accessmsg,my $slot_name,my $slot) = |
($status,$accessmsg,my $slot_name,my $slot) = |