Diff for /loncom/homework/lonhomework.pm between versions 1.310.4.1 and 1.312

version 1.310.4.1, 2010/08/20 03:48:29 version 1.312, 2009/06/09 16:33:55
Line 111  sub get_target { Line 111  sub get_target {
  } elsif ( $env{'form.grade_target'} eq 'webgrade'   } elsif ( $env{'form.grade_target'} eq 'webgrade'
   && ($Apache::lonhomework::queuegrade eq 'F' )) {    && ($Apache::lonhomework::queuegrade eq 'F' )) {
     return ($env{'form.grade_target'});      return ($env{'form.grade_target'});
         } elsif ($env{'form.grade_target'} eq 'answer') {   }
             if ($env{'form.answer_output_mode'} eq 'tex') {  
                 return ($env{'form.grade_target'});  
             }  
         }  
  if ($env{'form.webgrade'} &&   if ($env{'form.webgrade'} &&
     ($Apache::lonhomework::modifygrades eq 'F'      ($Apache::lonhomework::modifygrades eq 'F'
      || $Apache::lonhomework::queuegrade eq 'F' )) {       || $Apache::lonhomework::queuegrade eq 'F' )) {
Line 692  sub handle_save_or_undo { Line 688  sub handle_save_or_undo {
 sub analyze_header {  sub analyze_header {
     my ($request) = @_;      my ($request) = @_;
     my $js = &Apache::structuretags::setmode_javascript();      my $js = &Apache::structuretags::setmode_javascript();
     my $result =  
  &Apache::loncommon::start_page('Analyzing a problem',$js);  
   
       # Breadcrumbs
       my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
                      'text' => 'Construction Space'},
                     {'href' => '',
                      'text' => 'Problem Testing'},
                     {'href' => '',
                      'text' => 'Analyzing a problem'}];
   
       my $result =
           &Apache::loncommon::start_page('Analyzing a problem',
                                          $js,
                                          {'bread_crumbs' => $brcrum,})
          .&Apache::loncommon::head_subbox(
                   &Apache::loncommon::CSTR_pageheader());
     $result .=       $result .= 
  &Apache::lonxml::message_location().'   &Apache::lonxml::message_location().'
             <form name="lonhomework" method="post" action="'.              <form name="lonhomework" method="post" action="'.
Line 918  sub editxmlmode { Line 926  sub editxmlmode {
  my $only_body =  ($env{'environment.remote'} eq 'off')? 0 : 1;   my $only_body =  ($env{'environment.remote'} eq 'off')? 0 : 1;
  my $dragmath_button =    my $dragmath_button = 
             &Apache::lonhtmlcommon::dragmath_button("LC_editxmltext",1);              &Apache::lonhtmlcommon::dragmath_button("LC_editxmltext",1);
   
       # Breadcrumbs
       my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
                      'text' => 'Construction Space'},
                     {'href' => '',
                      'text' => 'Problem Editing'}];
   
  my $start_page =    my $start_page = 
     &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js,      &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js,
    {'no_auto_mt_title' => 1,     {'no_auto_mt_title' => 1,
Line 925  sub editxmlmode { Line 940  sub editxmlmode {
     'add_entries'      => {      'add_entries'      => {
  'onresize' => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],   'onresize' => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],
  'onload'   => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],   'onload'   => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],
     }});                                      },
  $result.=$start_page.                                                  'bread_crumbs' => $brcrum,
     &renderpage($request,$file,['no_output_web'],1).  });
   
       $result=$start_page
              .&Apache::loncommon::head_subbox(
                   &Apache::loncommon::CSTR_pageheader());
    $result.=&renderpage($request,$file,['no_output_web'],1).
             '<form '.&Apache::edit::form_change_detection().' name="lonhomework" method="post" action="'.              '<form '.&Apache::edit::form_change_detection().' name="lonhomework" method="post" action="'.
     &HTML::Entities::encode($env{'request.uri'},'<>&"').'">'.      &HTML::Entities::encode($env{'request.uri'},'<>&"').'">'.
     &Apache::structuretags::remember_problem_state().'      &Apache::structuretags::remember_problem_state().'
Line 1138  sub newproblem { Line 1158  sub newproblem {
  my $dest = &Apache::lonnet::filelocation("",$request->uri);   my $dest = &Apache::lonnet::filelocation("",$request->uri);
  my $errormsg;   my $errormsg;
  my $instructions;   my $instructions;
           my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
                          'text' => 'Construction Space'},
                         {'href' => '',
                          'text' => "Create New $extension"}];
  my $start_page =    my $start_page = 
     &Apache::loncommon::start_page("Create New $extension");              &Apache::loncommon::start_page("Create New $extension",
  $request->print("                                             undef,
 $start_page                                             {'bread_crumbs' => $brcrum,});
 <h1>".&mt("Creating a new $extension resource.")."</h1>   $request->print(
           $start_page
          .&Apache::loncommon::head_subbox(
                   &Apache::loncommon::CSTR_pageheader())
          .'<h1>'.&mt("Creating a new $extension resource.")."</h1>
 $errormsg  $errormsg
 ".&mt("The requested file [_1] currently does not exist.",  ".&mt("The requested file [_1] currently does not exist.",
       '<span class="LC_filename">'.$shownurl.'</span>')."        '<span class="LC_filename">'.$shownurl.'</span>')."

Removed from v.1.310.4.1  
changed lines
  Added in v.1.312


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>