Diff for /loncom/publisher/Attic/lonconstruct.pm between versions 1.30 and 1.34

version 1.30, 2005/04/07 06:56:26 version 1.34, 2008/02/03 01:11:01
Line 33  package Apache::lonconstruct; Line 33  package Apache::lonconstruct;
 use strict;  use strict;
 use Apache::Constants qw(:common :http :methods);  use Apache::Constants qw(:common :http :methods);
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::Log ();  
 use HTML::Entities();  use HTML::Entities();
   
 my $DEBUG = 0;  my $DEBUG = 0;
Line 61  my $DEBUG = 0; Line 60  my $DEBUG = 0;
 =cut  =cut
   
 sub Debug {  sub Debug {
         # Put out the indicated message but only if DEBUG is true.
   # Marshall the parameters.      if ($DEBUG) {
      my ($r,$message) = @_;
   my $r       = shift;   $r->log_reason($message);
   my $log     = $r->log;      }
   my $message = shift;  } 
     
   # Put out the indicated message butonly if DEBUG is false.  
     
   if ($DEBUG) {  
     $log->debug($message);  
   }  
 }  
   
   
 # ================================================================ Main Handler  # ================================================================ Main Handler
   
Line 101  sub handler { Line 92  sub handler {
    &Apache::loncommon::get_unprocessed_cgi     &Apache::loncommon::get_unprocessed_cgi
         ($ENV{'QUERY_STRING'},['forceedit']);          ($ENV{'QUERY_STRING'},['forceedit']);
    if ($env{'form.forceedit'}) {     if ($env{'form.forceedit'}) {
        $lowerframe.='?editmode=Edit&problemmode=EditXML';         $lowerframe.='?editmode=Edit&problemmode=editxml';
    }     }
    &Apache::loncommon::get_unprocessed_cgi     &Apache::loncommon::get_unprocessed_cgi
         ($ENV{'QUERY_STRING'},['forceColoredit']);          ($ENV{'QUERY_STRING'},['forceColoredit']);
    if ($env{'form.forceColoredit'}) {     if ($env{'form.forceColoredit'}) {
        $lowerframe.='?editmode=Edit&problemmode=Edit';         $lowerframe.='?editmode=Edit&problemmode=edit';
    }     }
   
 #  #
Line 118  sub handler { Line 109  sub handler {
        $toprows = '110';         $toprows = '110';
        $topsrc = '/adm/localize/adm/publisher.html';         $topsrc = '/adm/localize/adm/publisher.html';
    }     }
    my $html=&Apache::lonxml::xmlbegin();  
    $r->print(<<ENDPAGE);     my $js=qq|
 $html  
 <head><title>LON-CAPA Construction Space</title>  
 <script type="text/javascript">  <script type="text/javascript">
 var lastknownpriv="$lowerframe";  var lastknownpriv="$lowerframe";
 </script>  </script>
 </head>      |;
 <frameset rows="$toprows,*" border="0">  
      my $start_page=
          &Apache::loncommon::start_page('Construction Space',$js,
         {'frameset'    => 1,
          'add_entries' => {
      'rows'   => "$toprows,*",
      'border' => "0",}});
      my $end_page=
          &Apache::loncommon::end_page({'frameset' => 1});
   
      $r->print(<<ENDPAGE);
   $start_page
 <frame src='$topsrc' />  <frame src='$topsrc' />
 <frame src="$lowerframe" name="LONCAPAToBePublished" />  <frame src="$lowerframe" name="LONCAPAToBePublished" />
 </frameset>  $end_page
 </html>  
 ENDPAGE  ENDPAGE
    return OK;     return OK;
 }  }

Removed from v.1.30  
changed lines
  Added in v.1.34


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